ClassesClassesClassesClasses | | | | Operators

traind_ocv_projtraind_ocv_projTraindOcvProjtraind_ocv_projTraindOcvProjTraindOcvProj (Operator)


traind_ocv_projtraind_ocv_projTraindOcvProjtraind_ocv_projTraindOcvProjTraindOcvProj — Training of an OCV tool.


traind_ocv_proj(Pattern : : OCVHandle, Name, Mode : )

Herror traind_ocv_proj(const Hobject Pattern, const Hlong OCVHandle, const char* Name, const char* Mode)

Herror T_traind_ocv_proj(const Hobject Pattern, const Htuple OCVHandle, const Htuple Name, const Htuple Mode)

Herror traind_ocv_proj(Hobject Pattern, const HTuple& OCVHandle, const HTuple& Name, const HTuple& Mode)

void HImage::TraindOcvProj(const HOCV& OCVHandle, const HTuple& Name, const HTuple& Mode) const

void HImageArray::TraindOcvProj(const HOCV& OCVHandle, const HTuple& Name, const HTuple& Mode) const

void HOCV::TraindOcvProj(const HImageArray& Pattern, const HTuple& Name, const HTuple& Mode) const

void TraindOcvProj(const HObject& Pattern, const HTuple& OCVHandle, const HTuple& Name, const HTuple& Mode)

void HImage::TraindOcvProj(const HOCV& OCVHandle, const HTuple& Name, const HString& Mode) const

void HImage::TraindOcvProj(const HOCV& OCVHandle, const HString& Name, const HString& Mode) const

void HImage::TraindOcvProj(const HOCV& OCVHandle, const char* Name, const char* Mode) const

void HOCV::TraindOcvProj(const HImage& Pattern, const HTuple& Name, const HString& Mode) const

void HOCV::TraindOcvProj(const HImage& Pattern, const HString& Name, const HString& Mode) const

void HOCV::TraindOcvProj(const HImage& Pattern, const char* Name, const char* Mode) const

void HOperatorSetX.TraindOcvProj(
[in] IHUntypedObjectX* Pattern, [in] VARIANT OCVHandle, [in] VARIANT Name, [in] VARIANT Mode)

void HImageX.TraindOcvProj(
[in] IHOCVX* OCVHandle, [in] VARIANT Name, [in] BSTR Mode)

void HOCVX.TraindOcvProj(
[in] IHImageX* Pattern, [in] VARIANT Name, [in] BSTR Mode)

static void HOperatorSet.TraindOcvProj(HObject pattern, HTuple OCVHandle, HTuple name, HTuple mode)

void HImage.TraindOcvProj(HOCV OCVHandle, HTuple name, string mode)

void HImage.TraindOcvProj(HOCV OCVHandle, string name, string mode)

void HOCV.TraindOcvProj(HImage pattern, HTuple name, string mode)

void HOCV.TraindOcvProj(HImage pattern, string name, string mode)


traind_ocv_projtraind_ocv_projTraindOcvProjtraind_ocv_projTraindOcvProjTraindOcvProj trains patterns for an OCV tool that has been created using the operators create_ocv_projcreate_ocv_projCreateOcvProjcreate_ocv_projCreateOcvProjCreateOcvProj or read_ocvread_ocvReadOcvread_ocvReadOcvReadOcv. For this training one or multiple patterns are provided to the system. Such a pattern consists of an image with a reduced domain (ROI) for the area of the pattern. Note that the pattern should not only contain foreground pixels (e.g. dark pixels of a character) but also background pixels. This can be implemented e.g. by the smallest surrounding rectangle of the pattern. Without this context an evaluation of the pattern is not possible.

If more than one pattern has to be trained this can be achieved by multiple calls (one for each pattern) or by calling traind_ocv_projtraind_ocv_projTraindOcvProjtraind_ocv_projTraindOcvProjTraindOcvProj once with all patterns and a tuple of the corresponding names. The result will be in both cases the same. However using multiple calls will normally result in a longer execution time than using one call with all patterns.



PatternPatternPatternPatternPatternpattern (input_object)  singlechannelimage(-array) objectHImageHImageHImageHImageXHobject (byte)

Pattern to be trained.

OCVHandleOCVHandleOCVHandleOCVHandleOCVHandleOCVHandle (input_control)  ocv HOCV, HTupleHTupleHOCV, HTupleHOCVX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the OCV tool to be trained.

NameNameNameNameNamename (input_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name(s) of the object(s) to analyse.

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

ModeModeModeModeModemode (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Mode for training (only one mode implemented).

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

List of values: 'single'"single""single""single""single""single"

Example (C++ (HALCON 5.0-10.0))



traind_ocv_projtraind_ocv_projTraindOcvProjtraind_ocv_projTraindOcvProjTraindOcvProj returns 2 (H_MSG_TRUE), if the handle and the training pattern(s) are correct. Otherwise, an exception is raised.

Possible Predecessors

write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainf, create_ocv_projcreate_ocv_projCreateOcvProjcreate_ocv_projCreateOcvProjCreateOcvProj, read_ocvread_ocvReadOcvread_ocvReadOcvReadOcv, thresholdthresholdThresholdthresholdThresholdThreshold, connectionconnectionConnectionconnectionConnectionConnection, select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape

Possible Successors


See also




ClassesClassesClassesClasses | | | | Operators