apply_bead_inspection_modelT_apply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModelapply_bead_inspection_model应用胶珠检查模型(算子)

名称

apply_bead_inspection_modelT_apply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModelapply_bead_inspection_model — 根据胶珠检查模型的定义,在图像中检查胶珠。

签名

apply_bead_inspection_model(Image : LeftContour, RightContour, ErrorSegment : BeadInspectionModel : ErrorType)

Herror T_apply_bead_inspection_model(const Hobject Image, Hobject* LeftContour, Hobject* RightContour, Hobject* ErrorSegment, const Htuple BeadInspectionModel, Htuple* ErrorType)

void ApplyBeadInspectionModel(const HObject& Image, HObject* LeftContour, HObject* RightContour, HObject* ErrorSegment, const HTuple& BeadInspectionModel, HTuple* ErrorType)

HXLD HBeadInspectionModel::ApplyBeadInspectionModel(const HImage& Image, HXLD* RightContour, HXLD* ErrorSegment, HTuple* ErrorType) const

static void HOperatorSet.ApplyBeadInspectionModel(HObject image, out HObject leftContour, out HObject rightContour, out HObject errorSegment, HTuple beadInspectionModel, out HTuple errorType)

HXLD HBeadInspectionModel.ApplyBeadInspectionModel(HImage image, out HXLD rightContour, out HXLD errorSegment, out HTuple errorType)

def apply_bead_inspection_model(image: HObject, bead_inspection_model: HHandle) -> Tuple[HObject, HObject, HObject, Sequence[str]]

描述

算子 apply_bead_inspection_modelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModelApplyBeadInspectionModelapply_bead_inspection_model 将胶珠检查模型 BeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelbeadInspectionModelbead_inspection_model 应用于输入 ImageImageImageImageimageimage。输出参数 ErrorSegmentErrorSegmentErrorSegmentErrorSegmenterrorSegmenterror_segment 指示检测到的错误位置。参数 ErrorTypeErrorTypeErrorTypeErrorTypeerrorTypeerror_type 指示每个段落检测到的错误类型。有关可能错误的详细信息,请参阅 create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model 中的参数说明和示意图。ErrorTypeErrorTypeErrorTypeErrorTypeerrorTypeerror_type 的取值可为:

'no bead'"no bead""no bead""no bead""no bead""no bead"

在此位置未检测到任何胶珠。

'incorrect position'"incorrect position""incorrect position""incorrect position""incorrect position""incorrect position"

在此位置发现的珠粒中心点到轮廓的距离超出了 PositionTolerancePositionTolerancePositionTolerancePositionTolerancepositionToleranceposition_tolerance 允许的范围。

'too thin'"too thin""too thin""too thin""too thin""too thin"

胶珠比 TargetThicknessTargetThicknessTargetThicknessTargetThicknesstargetThicknesstarget_thicknessThicknessToleranceThicknessToleranceThicknessToleranceThicknessTolerancethicknessTolerancethickness_tolerance 允许的厚度薄。

'too thick'"too thick""too thick""too thick""too thick""too thick"

胶珠比 TargetThicknessTargetThicknessTargetThicknessTargetThicknesstargetThicknesstarget_thicknessThicknessToleranceThicknessToleranceThicknessToleranceThicknessTolerancethicknessTolerancethickness_tolerance 允许的厚度厚。

通过 create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_modelset_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param 设置的通用参数值会显著影响同一模型的检测结果。有关这些参数的详细信息,请参阅 create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model

请注意,该算子忽略图像域,并将模型应用于整张图像。

执行信息

此算子修改后续输入参数的状态:

在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。

参数

ImageImageImageImageimageimage (输入对象)  singlechannelimage objectHImageHObjectHImageHobject (byte / uint2)

用于胶珠检查的图像。

LeftContourLeftContourLeftContourLeftContourleftContourleft_contour (输出对象)  xld-array objectHXLDHObjectHXLDHobject *

检测到的胶珠左侧轮廓。

RightContourRightContourRightContourRightContourrightContourright_contour (输出对象)  xld-array objectHXLDHObjectHXLDHobject *

检测到的胶珠右侧轮廓。

ErrorSegmentErrorSegmentErrorSegmentErrorSegmenterrorSegmenterror_segment (输出对象)  xld-array objectHXLDHObjectHXLDHobject *

检测到的错误段。

BeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelbeadInspectionModelbead_inspection_model (输入控制,状态被修改)  bead_inspection_model HBeadInspectionModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

待使用的胶珠检查模型的句柄。

ErrorTypeErrorTypeErrorTypeErrorTypeerrorTypeerror_type (输出控制)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

检测到的错误类型。

结果

算子 apply_bead_inspection_modelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModelApplyBeadInspectionModelapply_bead_inspection_model 在给定参数有效且在可接受范围内时返回值 2 ( H_MSG_TRUE )。 否则,将抛出异常。

可能的前趋

create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model, set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param

可能的后继

set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param, clear_bead_inspection_modelclear_bead_inspection_modelClearBeadInspectionModelClearBeadInspectionModelClearBeadInspectionModelclear_bead_inspection_model

另见

get_bead_inspection_paramget_bead_inspection_paramGetBeadInspectionParamGetBeadInspectionParamGetBeadInspectionParamget_bead_inspection_param, create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model, set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param

模块

二维计量