Skip to content

set_rejection_params_ocr_class_mlpSetRejectionParamsOcrClassMlpSetRejectionParamsOcrClassMlpset_rejection_params_ocr_class_mlpT_set_rejection_params_ocr_class_mlp🔗

Short description🔗

set_rejection_params_ocr_class_mlpSetRejectionParamsOcrClassMlpSetRejectionParamsOcrClassMlpset_rejection_params_ocr_class_mlpT_set_rejection_params_ocr_class_mlp — Set the rejection class parameters of an OCR classifier.

Signature🔗

set_rejection_params_ocr_class_mlp( ocr_mlp OCRHandle, string GenParamName, string GenParamValue )void SetRejectionParamsOcrClassMlp( const HTuple& OCRHandle, const HTuple& GenParamName, const HTuple& GenParamValue )static void HOperatorSet.SetRejectionParamsOcrClassMlp( HTuple OCRHandle, HTuple genParamName, HTuple genParamValue )def set_rejection_params_ocr_class_mlp( ocrhandle: HHandle, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[str] ) -> None

Herror T_set_rejection_params_ocr_class_mlp( const Htuple OCRHandle, const Htuple GenParamName, const Htuple GenParamValue )

void HOCRMlp::SetRejectionParamsOcrClassMlp( const HTuple& GenParamName, const HTuple& GenParamValue ) const

void HOCRMlp::SetRejectionParamsOcrClassMlp( const HString& GenParamName, const HString& GenParamValue ) const

void HOCRMlp::SetRejectionParamsOcrClassMlp( const char* GenParamName, const char* GenParamValue ) const

void HOCRMlp::SetRejectionParamsOcrClassMlp( const wchar_t* GenParamName, const wchar_t* GenParamValue ) const (Windows only)

void HOCRMlp.SetRejectionParamsOcrClassMlp( HTuple genParamName, HTuple genParamValue )

void HOCRMlp.SetRejectionParamsOcrClassMlp( string genParamName, string genParamValue )

Description🔗

set_rejection_params_ocr_class_mlpSetRejectionParamsOcrClassMlp sets the rejection class parameters of the OCR classifier passed in OCRHandleOCRHandleocrhandle. The parameter to be set is specified with GenParamNamegenParamNamegen_param_name. Its value is specified with GenParamValuegenParamValuegen_param_value. For some OCR applications it is important to know, if a letter to be classified is similar to the training set or not. If a letter is different to the training set, then it can be classified a rejection class. This additional rejection class must be specified as an additional character in create_ocr_class_mlpCreateOcrClassMlp. For details on how to specify a rejection class, see set_rejection_params_class_mlpSetRejectionParamsClassMlp.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters🔗

OCRHandleOCRHandleocrhandle (input_control, state is modified) ocr_mlp → (handle)HTuple (HHandle)HOCRMlp, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the OCR classifier.

GenParamNamegenParamNamegen_param_name (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Name of the general parameter.

Default: 'sampling_strategy'"sampling_strategy"
List of values: 'hyperbox_tolerance', 'random_seed', 'rejection_class_index', 'rejection_sample_factor', 'sampling_strategy'"hyperbox_tolerance", "random_seed", "rejection_class_index", "rejection_sample_factor", "sampling_strategy"

GenParamValuegenParamValuegen_param_value (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Value of the general parameter.

Default: 'hyperbox_around_all_classes'"hyperbox_around_all_classes"
List of values: 'hyperbox_around_all_classes', 'hyperbox_around_each_class', 'hyperbox_ring_around_each_class', 'no_rejection_class'"hyperbox_around_all_classes", "hyperbox_around_each_class", "hyperbox_ring_around_each_class", "no_rejection_class"

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_ocr_class_mlpCreateOcrClassMlp, read_ocr_class_mlpReadOcrClassMlp

Possible successors

trainf_ocr_class_mlpTrainfOcrClassMlp

Module🔗

OCR/OCV