get_params_ocr_class_cnnget_params_ocr_class_cnnGetParamsOcrClassCnnGetParamsOcrClassCnnget_params_ocr_class_cnnT_get_params_ocr_class_cnn
Short description
get_params_ocr_class_cnnget_params_ocr_class_cnnGetParamsOcrClassCnnGetParamsOcrClassCnnget_params_ocr_class_cnnT_get_params_ocr_class_cnn — Return the parameters of a CNN-based OCR classifier.
Signature
get_params_ocr_class_cnn( ocr_cnn OCRHandle, string GenParamName, out string GenParamValue )get_params_ocr_class_cnn( : : OCRHandle, GenParamName : GenParamValue )void GetParamsOcrClassCnn( const HTuple& OCRHandle, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetParamsOcrClassCnn( HTuple OCRHandle, HTuple genParamName, out HTuple genParamValue )def get_params_ocr_class_cnn( ocrhandle: HHandle, gen_param_name: MaybeSequence[str] ) -> Sequence[Union[int, str]]
def get_params_ocr_class_cnn_s( ocrhandle: HHandle, gen_param_name: MaybeSequence[str] ) -> Union[int, str]Herror T_get_params_ocr_class_cnn( const Htuple OCRHandle, const Htuple GenParamName, Htuple* GenParamValue )
HTuple HOCRCnn::GetParamsOcrClassCnn( const HTuple& GenParamName ) const
HTuple HOCRCnn::GetParamsOcrClassCnn( const HString& GenParamName ) const
HTuple HOCRCnn::GetParamsOcrClassCnn( const char* GenParamName ) const
HTuple HOCRCnn::GetParamsOcrClassCnn( const wchar_t* GenParamName ) const (Windows only)
HTuple HOCRCnn.GetParamsOcrClassCnn( HTuple genParamName )
HTuple HOCRCnn.GetParamsOcrClassCnn( string genParamName )
Description
get_params_ocr_class_cnnGetParamsOcrClassCnn returns the parameters
GenParamNamegenParamNamegen_param_name of an OCR classifier OCRHandleOCRHandleocrhandle in
GenParamValuegenParamValuegen_param_value. This is particularly useful if the
classifier was read with read_ocr_class_cnnReadOcrClassCnn.
The output of get_params_ocr_class_cnnGetParamsOcrClassCnn
can, for example, be used to check whether a character to be read is
contained in the classifier.
Possible values for GenParamNamegenParamNamegen_param_name are:
- 'characters'"characters":
Returns a list of all trained symbols which may be recognized by the
CNN-based OCR classifier. Note that if 'characters'"characters" is specified
then no other generic parameter is allowed. Otherwise an exception is
thrown.
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters
OCRHandleOCRHandleocrhandle (input_control) ocr_cnn → (handle)(handle)HTuple (HHandle)HOCRCnn, HTuple (IntPtr)HHandleHtuple (handle)
Handle of the OCR classifier.
GenParamNamegenParamNamegen_param_name (input_control) string(-array) → (string)(string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
A tuple of generic parameter names.
Default: 'characters'"characters"
List of values: 'characters'"characters"
GenParamValuegenParamValuegen_param_value (output_control) string(-array) → (integer / string)(integer / string)HTuple (Hlong / HString)HTuple (int / long / string)Sequence[Union[int, str]]Htuple (Hlong / char*)
A tuple of generic parameter values.
Result
If the parameters are valid, the operator
get_params_ocr_class_cnnGetParamsOcrClassCnn returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Combinations with other operators
Combinations
Possible predecessors
read_ocr_class_cnnReadOcrClassCnn
Possible successors
do_ocr_single_class_cnnDoOcrSingleClassCnn, do_ocr_multi_class_cnnDoOcrMultiClassCnn
Module
OCR/OCV