Name
get_text_objectget_text_objectGetTextObjectget_text_objectGetTextObjectGetTextObject — Query an iconic value of a text segmentation result.
get_text_objectget_text_objectGetTextObjectget_text_objectGetTextObjectGetTextObject queries the iconic result ResultNameResultNameResultNameResultNameResultNameresultName of
TextResultIDTextResultIDTextResultIDTextResultIDTextResultIDtextResultID returned by find_textfind_textFindTextfind_textFindTextFindText. The following results
can be queried:
- 'all_lines'"all_lines""all_lines""all_lines""all_lines""all_lines":
-
Returnes all segmented lines, sorted top to
bottom and left to the right.
- ['line',Index]:["line",Index]:["line",Index]:["line",Index]:["line",Index]:["line",Index]:
-
Returns the line specified by 'Index'"Index""Index""Index""Index""Index"
(e.g. ['line',0]["line",0]["line",0]["line",0]["line",0]["line",0] to return the first line).
If 'persistence'"persistence""persistence""persistence""persistence""persistence" was activated with the text model used to create
TextResultIDTextResultIDTextResultIDTextResultIDTextResultIDtextResultID, the following additional values can be queried:
- 'compensated_image'"compensated_image""compensated_image""compensated_image""compensated_image""compensated_image":
-
the enhanced image used for segmentation.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Name of the result to be returned.
Default value:
'all_lines'
"all_lines"
"all_lines"
"all_lines"
"all_lines"
"all_lines"
List of values: 'all_lines'"all_lines""all_lines""all_lines""all_lines""all_lines", 'compensated_image'"compensated_image""compensated_image""compensated_image""compensated_image""compensated_image", 'line'"line""line""line""line""line"
If the parameters are valid, the operator
get_text_objectget_text_objectGetTextObjectget_text_objectGetTextObjectGetTextObject returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
find_textfind_textFindTextfind_textFindTextFindText
get_text_resultget_text_resultGetTextResultget_text_resultGetTextResultGetTextResult
Foundation