ClassesClasses | | Operators

get_text_resultget_text_resultGetTextResultGetTextResult (Operator)

Name

get_text_resultget_text_resultGetTextResultGetTextResult — Query a control value of a text segmentation result.

Signature

get_text_result( : : TextResultID, ResultName : ResultValue)

Herror get_text_result(const Hlong TextResultID, const char* ResultName, Hlong* ResultValue)

Herror T_get_text_result(const Htuple TextResultID, const Htuple ResultName, Htuple* ResultValue)

void GetTextResult(const HTuple& TextResultID, const HTuple& ResultName, HTuple* ResultValue)

HTuple HTextResult::GetTextResult(const HTuple& ResultName) const

HTuple HTextResult::GetTextResult(const HString& ResultName) const

HTuple HTextResult::GetTextResult(const char* ResultName) const

static void HOperatorSet.GetTextResult(HTuple textResultID, HTuple resultName, out HTuple resultValue)

HTuple HTextResult.GetTextResult(HTuple resultName)

HTuple HTextResult.GetTextResult(string resultName)

Description

get_text_resultget_text_resultGetTextResultGetTextResultGetTextResult queries the control result ResultNameResultNameResultNameResultNameresultName of TextResultIDTextResultIDTextResultIDTextResultIDtextResultID returned by find_textfind_textFindTextFindTextFindText. The possible parameter values for ResultNameResultNameResultNameResultNameresultName differ, depending on the text model used within the text segmentation process of find_textfind_textFindTextFindTextFindText.

In the following, first the possible parameter values for text models with ModeModeModeModemode = 'auto'"auto""auto""auto""auto" are listed, and then those for text models with ModeModeModeModemode = 'manual'"manual""manual""manual""manual".

The following results can be queried:

Execution Information

Parameters

TextResultIDTextResultIDTextResultIDTextResultIDtextResultID (input_control)  text_result HTextResult, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Text result.

ResultNameResultNameResultNameResultNameresultName (input_control)  string(-array) HTupleHTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Name of the result to be returned.

Default value: 'class' "class" "class" "class" "class"

List of values: 'class'"class""class""class""class", 'class_element'"class_element""class_element""class_element""class_element", 'class_line'"class_line""class_line""class_line""class_line", 'confidence'"confidence""confidence""confidence""confidence", 'confidence_element'"confidence_element""confidence_element""confidence_element""confidence_element", 'confidence_line'"confidence_line""confidence_line""confidence_line""confidence_line", 'manual_num_lines'"manual_num_lines""manual_num_lines""manual_num_lines""manual_num_lines", 'manual_thresholds'"manual_thresholds""manual_thresholds""manual_thresholds""manual_thresholds", 'num_classes'"num_classes""num_classes""num_classes""num_classes", 'num_lines'"num_lines""num_lines""num_lines""num_lines", 'polarity'"polarity""polarity""polarity""polarity", 'polarity_element'"polarity_element""polarity_element""polarity_element""polarity_element", 'polarity_line'"polarity_line""polarity_line""polarity_line""polarity_line"

ResultValueResultValueResultValueResultValueresultValue (output_control)  string(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Value of ResultName.

Example (HDevelop)

read_image (Image, 'numbers_scale')
create_text_model_reader ('auto', 'Document_Rej.omc', TextModel)
* Optionally specify text properties
set_text_model_param (TextModel, 'min_char_height', 20)
find_text (Image, TextModel, TextResultID)
* Return character regions and corresponding classification results
get_text_object (Characters, TextResultID, 'all_lines')
get_text_result (TextResultID, 'class', Class)
clear_text_result (TextResultID)
clear_text_model (TextModel)

Result

If the parameters are valid, the operator get_text_resultget_text_resultGetTextResultGetTextResultGetTextResult returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

find_textfind_textFindTextFindTextFindText

See also

get_text_objectget_text_objectGetTextObjectGetTextObjectGetTextObject

Module

Foundation


ClassesClasses | | Operators