Parameters can apply to the whole model or be specific for a given component.
The following table gives an overview, which parameters can be set and
which ones retrieved as well as for which model part they apply.
Note, the device can be reset for an individual component, in which case
only the possibly remaining part of the model (e.g., the remaining
component) will be executed on the device of this handle.
Default: Handle of the default device, thus the GPU with index
0 when querying a list using get_systemget_systemGetSystemGetSystemGetSystemget_system
with 'cuda_devices'"cuda_devices""cuda_devices""cuda_devices""cuda_devices""cuda_devices".
If no device is available, this is an empty tuple.
This parameter will set the device on which the detection component of
the Deep OCR model is executed. For a further description, see
'device'"device""device""device""device""device".
Default: The same value as for 'device'"device""device""device""device""device".
Tuple containing the image dimensions ('detection_image_width'"detection_image_width""detection_image_width""detection_image_width""detection_image_width""detection_image_width",
'detection_image_height'"detection_image_height""detection_image_height""detection_image_height""detection_image_height""detection_image_height", number of channels) the detection
component will process.
Height of the images the detection component will process.
This means, the network will first zoom the input image to this height
before processing it. Thus this size can influence the results.
The model architecture requires that the height is a multiple of two. If
this is not the case, the height is rounded up to the nearest integer
multiple of two.
Width of the images the detection component will process.
This means, the network will first zoom the input image to this width
before processing it. Thus this size can influence the results.
The model architecture requires that the width is a multiple of two. If
this is not the case, the width is rounded up to the nearest integer
multiple of two.
The parameter 'detection_min_character_score'"detection_min_character_score""detection_min_character_score""detection_min_character_score""detection_min_character_score""detection_min_character_score" specifies the lower
threshold used for the character score map to estimate the dimensions of
the characters.
By adjusting the parameter, suggested instances can be split up or
neighboring instances can be merged.
The parameter 'detection_min_link_score'"detection_min_link_score""detection_min_link_score""detection_min_link_score""detection_min_link_score""detection_min_link_score" defines the minimum link
score required between two localized characters to recognize these
characters as coherent word.
The parameter 'detection_min_word_area'"detection_min_word_area""detection_min_word_area""detection_min_word_area""detection_min_word_area""detection_min_word_area" defines the minimum size
that a localized word must have in order to be suggested.
This parameter can be used to filter suggestions that are too small.
The parameter 'detection_min_word_score'"detection_min_word_score""detection_min_word_score""detection_min_word_score""detection_min_word_score""detection_min_word_score" defines the minimum
score a localized instance must contain to be suggested as valid word.
With this parameter uncertain words can be filtered out.
This parameter allows to set a predefined orientation angle for the word
detection. To revert to default behavior using the internal orientation
estimation, 'detection_orientation'"detection_orientation""detection_orientation""detection_orientation""detection_orientation""detection_orientation" is set to 'auto'"auto""auto""auto""auto""auto".
The words are sorted line-wise based on the orientation of the localized
word instances. If a sorting in row and column direction is preferred, the
parameter 'detection_sort_by_line'"detection_sort_by_line""detection_sort_by_line""detection_sort_by_line""detection_sort_by_line""detection_sort_by_line" has to be set to
'false'"false""false""false""false""false".
This parameter will set the device on which the recognition component of
the Deep OCR model is executed. For a further description, see
'device'"device""device""device""device""device".
Default: The same value as for 'device'"device""device""device""device""device".
Tuple containing the image dimensions ('recognition_image_width'"recognition_image_width""recognition_image_width""recognition_image_width""recognition_image_width""recognition_image_width",
'recognition_image_height'"recognition_image_height""recognition_image_height""recognition_image_height""recognition_image_height""recognition_image_height", number of channels)
the recognition component will process.
Height of the images the recognition component will process.
This means, the network will first zoom the input image part to this
height before processing it.
Width of the images the recognition component will process.
This means, the network will first zoom the input image part to this
width before processing it.
If the parameters are valid, the operator get_deep_ocr_paramget_deep_ocr_paramGetDeepOcrParamGetDeepOcrParamGetDeepOcrParamget_deep_ocr_param
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.