Operator Reference
Deep Counting
This chapter explains how to use Deep Counting.
Deep Counting is used to find objects in images and returns the number of objects.
Deep Counting uses user-defined templates to prepare a Deep Counting model. This model can be used to count objects that resemble the templates.
The general workflow is described in the following section.
General Workflow
This paragraph describes how to obtain the number from objects of a kind
in images using a Deep Counting model.
An application scenario can be seen in the HDevelop example
deep_counting_workflow.hdev
-
Create a Deep Counting model by using
-
Query the available DL devices for inference by using
-
Set the model parameters, the used devices or augmentation parameters for the templates using
-
Draw templates for the preparation of the model. This can be done using the procedure
-
draw_deep_counting_templates
.
The drawn templates are needed for the operator
.prepare_deep_counting_model
-
-
Prepare the model for the inference using
Note that when changing parameters that influence the template creation, or when other templates should be used,
must be called again, before the model can be applied withprepare_deep_counting_model
.apply_deep_counting_model
-
Apply the model using the operator
The result will be saved in
.DeepCountingResult
-
Visualize the Deep Counting results from
using the procedureDeepCountingResult
-
dev_display_deep_counting_results
.
-
List of Operators
apply_deep_counting_model
- Apply a Deep Counting model on a set of images for inference.
create_deep_counting_model
- Create a Deep Counting model for counting objects.
get_deep_counting_model_param
- Return the parameters of a Deep Counting model.
prepare_deep_counting_model
- Set templates of a Deep Counting model.
read_deep_counting_model
- Read a Deep Counting model from a file.
set_deep_counting_model_param
- Set selected parameters of the Deep Counting model.
write_deep_counting_model
- Write a Deep Counting model in a file.