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.
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
with prepare_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 procedure
DeepCountingResult
dev_display_deep_counting_results
.
apply_deep_counting_model
create_deep_counting_model
get_deep_counting_model_param
prepare_deep_counting_model
read_deep_counting_model
set_deep_counting_model_param
write_deep_counting_model