select_shape 借助形状特征选择区域

Name 名称

select_shape --- Choose regions with the aid of shape features.借助形状特征选择区域

Signature 签名

select_shape(Regions : SelectedRegions : Features, Operation, Min, Max : )

Description 描述

select_shape运算符根据形状选择区域。对于来自区域的每个输入区域,计算指示特征(特征)。如果每个(Operation = 'and')或至少一个(Operation = 'or')计算特征都在默认限制内(Min,Max),则该区域适应于输出(重复)。

条件:

有关这些特性的说明,请参阅本章的文档(区域/特性)。

特征的可能值:

"area":

对象面积

"row":

中心的行索引

"column":

中心的列索引

"width":

区域的宽度(平行于坐标轴;见height_width_ratio)

"height":

区域的高度(平行于坐标轴;见height_width_ratio)

"ratio":

区域的高度和宽度之比(平行于坐标轴;见height_width_ratio)

row1:

左上角的行索引

"column1":

左上角的列索引

"row2":

右下角的行索引

"column2":

右下角的列索引

"circularity":

圆形(见圆形)

"circularity":

紧凑度(见紧凑度)

"contlength":

轮廓的总长度(参见contlength运算符)

"convexity":

凸性(见凸性)

"rectangularity":

矩形度(见矩形度)

"ra":

等效椭圆的主半径(参见elliptic_axis)。

rb:

等效椭圆的次半径(参见elliptic_axis)

"φ":

等效椭圆的方向(参见elliptic_axis)

"anisometry:"

各向异性(见偏心率)

bulkiness:

体积(见操作者偏心)

"struct_factor:"

结构因子(见操作者偏心)

"outer_radius":

最小圆弧半径(参见smallst_circle)

"inner_radius":

最大内圆的半径(参见inner_circle)。

"inner_width":

区域内最大的平行轴矩形的宽度(参见inner_rectangle1)。

"inner_height":

区域内与轴平行的最大矩形的高度(参见inner_rectangle1)。

"dist_mean":

从区域边界到中心的平均距离(参见圆度运算符)

"dist_deviation:"

区域边界到中心的距离偏差(参见操作符圆度)

"roundness":

圆度(参见操作符圆度)

"num_sides":

多边形的边数(参见圆度运算符)

"connect_num":

连接组件的数量(参见connect_and_holes操作符)

"holes_num":

孔的数量(参见connect_and_holes运算符)

"area_holes":

物体的孔面积(参见运算符area_holes)

"max_diameter":

区域的最大直径(参见diameter_region运算符)

"max_diameter":

区域的方向(参见orientation_region运算符)

"euler_number":

欧拉数(参见euler_number运算符)

"rect2_phi":

最小外接矩形的方向(参见smallest_rectangle2运算符)

"rect2_len1":

最小外接矩形长度的一半(参见smallst_rectangle2运算符)

"rect2_len2":

最小外接矩形宽度的一半(参见smallst_rectangle2运算符)

"moments_m11":

区域的几何矩(参见operator moments_region_2nd)

"moments_m20":

区域的几何矩(参见operator moments_region_2nd)

"moments_m02":

区域的几何矩(参见operator moments_region_2nd)

"moments_ia":

区域的几何矩(参见operator moments_region_2nd)

"moments_ib":

区域的几何矩(参见operator moments_region_2nd)

"moments_m11_invar":

区域的几何矩(参见operator moments_region_2nd_invar)

"moments_m20_invar":

区域的几何矩(参见operator moments_region_2nd_invar)

"moments_m02_invar":

区域的几何矩(参见operator moments_region_2nd_invar)

"moments_phi1":

区域的几何矩(参见operator moments_region_2nd_rel_invar)

"moments_phi2":

区域的几何矩(参见operator moments_region_2nd_rel_invar)

"moments_m21":

区域的几何矩(参见operator moments_region_3rd)

"moments_m12":

区域的几何矩(参见operator moments_region_3rd)

"moments_m03":

区域的几何矩(参见operator moments_region_3rd)

"moments_m30":

区域的几何矩(参见operator moments_region_3rd)

"moments_m21_invar":

区域的几何矩(参见operator moments_region_3rd_invar)

"moments_m12_invar":

区域的几何矩(参见operator moments_region_3rd_invar)

"moments_m03_invar":

区域的几何矩(参见operator moments_region_3rd_invar)

"moments_m30_invar":

区域的几何矩(参见operator moments_region_3rd_invar)

"moments_i1":

区域的几何矩(参见operator moments_region_central)。

"moments_i2":

区域的几何矩(参见operator moments_region_central)。

"moments_i3":

区域的几何矩(参见operator moments_region_central)。

"moments_i4":

区域的几何矩(参见operator moments_region_central)。

的时刻

参数说明

*Regions (输入参数)要检查的区域。

*SelectedRegions (输出参数)满足条件的地区

*Features 要检查的形状特征。

*Operation 个体特征的联动类型。默认值:'and' 值列表:'and', 'or'

*Min 特征的下限或` min `。

*Max 特征的上限或` max `。

HDevelop例程

two_camera_calibration.hdev 使用特殊的校准对象进行高精度镶嵌

threshold.hdev 选择某个区间内的灰度值

text_line_orientation.hdev 检测并纠正text_lines的方向

surface_scratch.hdev 通过局部阈值和形态学检测表面划痕

select_shape.hdev 根据形状特征选择区域

select_region_spatial.hdev 选择参考区域的左(右、上、下)区域

rim_simple.hdev 在边缘上挖洞

rim.hdev Inspect holes and characters on a rim

measure_pump.hdev Measure positions and radii of circular shapes

measure_grid.hdev Get junctions of a grid that separates keys

measure_chip.hdev Get extents and positions of rectangular chip components

label_word_process_mlp.hdev Read a best-before label using a MLP-based OCR classifier and a lexicon to improve results

inspect_solar_fingers.hdev Extract broken fingers on solar cells

hull.hdev Inspect an injection molded nozzle

gray_features.hdev Calculate standard gray-value features

find_surface_model_noisy_data.hdev Find an object with surface-based matching in a noisy 3D scene acquired with a time-of-flight (TOF) camera

find_pads.hdev Find pads on a die

engraved_cnn.hdev Read characters on a metal surface with a CNN-based OCR classifier

compactness.hdev Calculate the compactness of regions

color_segmentation_pizza.hdev Find salami pieces on pizza based on color image processing

circularity.hdev Calculate the circularity of regions

circular_barcode.hdev Read a circular bar code printed on a CD

check_fish_stick_dimension.hdev Measure the size of raw fish sticks

check_blister.hdev Check content of automatically filled blisters

atoms.hdev Locate irregularities in an atomic grid structure

3d_position_of_rectangle.hdev Estimate 3D pose of rectangular objects

3d_position_of_circles.hdev Determine the pose of circles in 3D from their perspective 2D projections

3d_coordinates.hdev Measure slanted object in world coordinates

相关推荐
带娃的IT创业者6 分钟前
机器学习实战(8):降维技术——主成分分析(PCA)
人工智能·机器学习·分类·聚类
调皮的芋头30 分钟前
iOS各个证书生成细节
人工智能·ios·app·aigc
红花与香菇2____2 小时前
【学习笔记】Cadence电子设计全流程(二)原理图库的创建与设计(上)
笔记·嵌入式硬件·学习·pcb设计·cadence·pcb工艺
flying robot3 小时前
人工智能基础之数学基础:01高等数学基础
人工智能·机器学习
Moutai码农3 小时前
机器学习-生命周期
人工智能·python·机器学习·数据挖掘
188_djh3 小时前
# 10分钟了解DeepSeek,保姆级部署DeepSeek到WPS,实现AI赋能
人工智能·大语言模型·wps·ai技术·ai应用·deepseek·ai知识
Jackilina_Stone3 小时前
【DL】浅谈深度学习中的知识蒸馏 | 输出层知识蒸馏
人工智能·深度学习·机器学习·蒸馏
bug404_4 小时前
分布式大语言模型服务引擎vLLM论文解读
人工智能·分布式·语言模型
Logout:4 小时前
[AI]docker封装包含cuda cudnn的paddlepaddle PaddleOCR
人工智能·docker·paddlepaddle
拥有一颗学徒的心4 小时前
鸿蒙第三方库MMKV源码学习笔记
笔记·学习·性能优化·harmonyos