HALCON Reference Manual 10.0.2
Table of Contents / OCR / Training Files ClassesClassesClasses | | | Operators

read_ocr_trainfT_read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainf (Operator)

Name

read_ocr_trainfT_read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainf — Read training characters from files and convert to images.

Signature

read_ocr_trainf( : Characters : TrainFileNames : CharacterNames)

Herror T_read_ocr_trainf(Hobject* Characters, const Htuple TrainFileNames, Htuple* CharacterNames)

Herror read_ocr_trainf(Hobject* Characters, const HTuple& TrainFileNames, HTuple* CharacterNames)

HImageArray HImageArray::ReadOcrTrainf(const HTuple& TrainFileNames, HTuple* CharacterNames)

void HOperatorSetX.ReadOcrTrainf(
[out] IHUntypedObjectX*Characters, [in] VARIANT TrainFileNames, [out] VARIANT* CharacterNames)

VARIANT HImageX.ReadOcrTrainf([in] VARIANT TrainFileNames)

static void HOperatorSet.ReadOcrTrainf(out HObject characters, HTuple trainFileNames, out HTuple characterNames)

HTuple HImage.ReadOcrTrainf(HTuple trainFileNames)

HTuple HImage.ReadOcrTrainf(string trainFileNames)

Description

read_ocr_trainfread_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainf reads all characters from the specified file names and converts them into images. The default HALCON file extension for the OCR training file is 'trf'. The domain is defined according to the foreground of the characters (as specified in write_ocr_trainfwrite_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainf). The names of the characters are returned in CharacterNamesCharacterNamesCharacterNamesCharacterNamescharacterNames. If more than one file name is given the files are processed in the order of the file names.

Parallelization

Parameters

CharactersCharactersCharactersCharacterscharacters (output_object)  image-array objectHImageHImageArrayHImageXHobject * (byte / uint2)

Images read from file.

TrainFileNamesTrainFileNamesTrainFileNamesTrainFileNamestrainFileNames (input_control)  filename.read(-array) HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Names of the training files.

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

File extension: .trf

CharacterNamesCharacterNamesCharacterNamesCharacterNamescharacterNames (output_control)  string-array HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Names of the read characters.

Result

If the parameter values are correct the operator read_ocr_trainfread_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainf returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

write_ocr_trainfwrite_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainf

Possible Successors

disp_imagedisp_imagedisp_imageDispImageDispImage, select_objselect_objselect_objSelectObjSelectObj, zoom_image_sizezoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSize

Alternatives

read_ocr_trainf_selectread_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelect

See also

trainf_ocr_class_boxtrainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBox

Module

OCR/OCV


Table of Contents / OCR / Training Files ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH