get_found_component_model

In Halcon, get_found_component_modelis an operator used to obtain component-based shape model matching results. This operator is used to extract detailed information about matching results obtained from operations such as or find_component_model.find_scaled_shape_models

The following is get_found_component_modelthe parameter explanation of the operator:

get_found_component_model (
  FoundComponents: tuple,           // 输入参数,表示匹配结果的元组
  ComponentModelID: int,            // 输入参数,表示之前创建的组件模型的ID
  ModelStart: int,                  // 输入参数,表示匹配模型的起始点索引
  ModelEnd: int,                    // 输入参数,表示匹配模型的结束点索引
  RowComp: real,                    // 输入参数,表示匹配的中心行坐标
  ColumnComp: real,                 // 输入参数,表示匹配的中心列坐标
  AngleComp: real,                  // 输入参数,表示匹配的角度
  ScoreComp: real,                  // 输入参数,表示匹配的得分
  ModelComp: int,                   // 输入参数,表示匹配模型的索引
  Match: int,                       // 输入参数,表示匹配的索引号
  AdditionalResult: string,         // 输入参数,表示是否返回额外结果信息(例如:"true"或"false")
  RowCompInst: real,                // 输出参数,表示匹配实例的中心行坐标
  ColumnCompInst: real,             // 输出参数,表示匹配实例的中心列坐标
  AngleCompInst: real,              // 输出参数,表示匹配实例的角度
  ScoreCompInst: real               // 输出参数,表示匹配实例的得分
)

By using get_found_component_modeloperators, you can obtain the detailed information of the matching instance from the matching result, including the center position, angle, score, etc. of the instance.

Hope the above answer is helpful to you. If you have other questions, please feel free to ask.

Guess you like

Origin blog.csdn.net/xiaogongzhu001/article/details/131899153