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

相关推荐
补三补四20 分钟前
k近邻算法K-Nearest Neighbors(KNN)
人工智能·机器学习
AI绘画月月22 分钟前
AI绘画 | Stable Diffusion 图片背景完美替换
图像处理·人工智能·计算机视觉·ai作画·stable diffusion·midjourney·sd
阿里云大数据AI技术23 分钟前
阿里云 AI 搜索开放平台新发布:增加 QwQ 模型
人工智能·云计算
Toky丶27 分钟前
【文献阅读】Vision-Language Models for Vision Tasks: A Survey
人工智能·语言模型·自然语言处理
小白狮ww32 分钟前
Retinex 算法 + MATLAB 软件,高效率完成图像去雾处理
开发语言·人工智能·算法·matlab·自然语言处理·图像识别·去雾处理
掘金安东尼39 分钟前
用 Python 搭桥,Slack 上跑起来的 MCP 数字员工
人工智能·面试·github
skywalk816343 分钟前
体验智谱清言的AutoGLM进行自动化的操作(Chrome插件)
运维·人工智能·自动化·glm·autoglm
Chaos_Wang_1 小时前
NLP高频面试题(三十)——LLama系列模型介绍,包括LLama LLama2和LLama3
人工智能·自然语言处理·llama
新智元1 小时前
美国 CS 专业卷上天,满分学霸惨遭藤校全拒!父亲大受震撼引爆热议
人工智能·openai