RasterObjectDetector
接受一个光栅的输入和输出的矩形几何结构,概述了检测到的(多个)对象。变压器采用OpenCV的级联分类器用于物体检测和允许各种对象类型和检测模型或分类器的选择。每个分类器进行训练来检测特定对象,例如:人的身体,面部和眼睛。多个分类可以在相同的变压器中使用的相同的源光栅(一个或多个),以产生不同的结果的,由检测模型分组。
Detection models use a detection kernel window that is moved across the entire raster. If the pixel pattern in a specific area of the raster matches the kernel “sufficiently”, that area is treated as a detected object. For the purposes of matching, the kernel and source raster are scaled up and down, respectively, to detect smaller and larger objects.
A rough bounding box of the detected object will be individually attached to a feature and output via theDetected港口。该检测参数,缩放因子,邻居和检测物体大小的最小数量一起帮助平衡的对象的数量检测,处理速度和检测精度。详细信息请参见参数部分。
输入端口
变压器接受带有光栅几何输入功能。与非光栅几何图形或无效的光栅几何图形的所有功能都将被拒绝。输入光栅的几何形状可以是图像或其他类型的数据,但必须具有1至4个频带之间,或者所有的8位或16位带中允许的解释,。输入栅格在该过程中被消耗。接受光栅的解释包括GRAY8,Gray16,GrayAlpha16,GrayAlpha32,RGB24,RGB48,RGBA32和RGBA64。
Output Ports
在输入栅格geome每个检测到的对象try, a feature will be produced containing a rectangular geometry that represents a bounding box of the detected object. If the matched portion of the input raster is desired, consider using aClippertransformer after the RasterObjectDetector and routing the detected boxes into the input Clipper port and the input raster into the Clippee port.
Output detected features are tagged with an attribute named_detected_object_typeby default whose value contains the name of the detection model that produced that particular detected feature (for example, ‘LBP - Frontal Face’). The detection attribute name can be changed using theDetected Attribute Nameparameter.
Thefme_basename属性也可以是在确定输出中检测到的几何形状源栅格是有用的。
Non-raster features or features with invalid raster geometries are output through this port.
被拒绝的功能处理:can be set to either terminate the translation or continue running when it encounters a rejected feature. This setting is available both as a defaultFME选项and as aworkspace parameter.
Parameters
Parameters
The parameter determines a group of features to be detected:
- Face
- 身体
- Animal
- Object
- Custom
对于每个检测型,多个检测模型可以使用被选择Detection Modelparameter.
指定是否检测到的对象的输出功能,应该保留输入栅格功能属性。默认值是保留输入属性。
This parameter determines the name of the attribute that will be used to tag each detected object’s feature with the detection model’s name that produced the object. By default this attribute will be named_detected_object_type.
Detection Model
These parameters allow the user to choose multiple detection models under a single detection type.
The transformer offers two broad approaches towards object detection: Haar feature-based cascade classifiers and Local Binary Patterns or LBP.
哈尔基于特征的级联分类器是一种物体检测方法,其中,级联功能从正和负影像,从中提取特征描述该图像的大样本训练。在这种情况下,单词“级联”表示分类由许多简单的链接分类的。一个非常大的组定义的特征是必需的,以分类或检测对象,因此,该方法通常是略慢于LBP。
https://en.wikipedia.org/wiki/Haar-like_feature
https://docs.opencv.org/3.4/d5/d54/group__objdetect.html
局部二元模式利用的特定小区和周围的邻居之间的差异,在指定的窗口大小。对于每个小区,围绕中心小区中的所有邻居进行分析(第一1小区离开,然后2等)以及它们与中心差被计算。结果被放入出现的每个邻近值的频率的直方图。
https://en.wikipedia.org/wiki/Local_binary_patterns
Categorized list of built in detection models:
Detection Model |
Size WxH (px) |
Description |
---|---|---|
哈尔 - 眼睛 | 20x20 | Stump-based frontal eye detector. |
哈尔 - 眼睛Tree Eyeglasses | 20x20 | 基于树的前眼探测器具有更好的处理眼镜。 |
哈尔 - 正面人脸识别Alt键 | 20x20 | Stump-based frontal face detector with gentle Adaptive Boosting. |
哈尔 - 正面人脸识别Alt键Tree | 20x20 | Stump-based frontal face detector with gentle Adaptive Boosting. Detector uses tree of stage classifiers instead of a cascade. |
哈尔 - 正面人脸识别选择2 | 20x20 | 基于残端离散正面脸部检测器与自适应增强。 |
哈尔 - 正面人脸识别默认 | 24×24 | |
Haar - Profile Face | 20x20 | Profile face detector. |
Haar - Left Eye 2Splits | 20x20 | 基于树的eye detectors. |
Haar - Right Eye 2Splits | 20x20 | |
Haar - Smile | 18x36 | 笑脸检测。改进的结果可以通过首先检测面部和供给该图像微笑检测器来实现。 |
LBP - Frontal Face | 24×24 | 24x24的正面脸部检测器。 |
LBP - Frontal Face Improved | 45x45 | 45x45 frontal face detector. |
LBP - 型面孔 | 20 x34 | 20 x34detector of profile faces using LBP features. Only detects faces rotated to the right. Can flip the image to detect left side. |
Detection Model |
Size WxH (px) |
Description |
---|---|---|
Haar - Fullbody | 22x18 | 全身探测器。仅支持正面和背面的意见,但不侧视图。纲要还包括后台的一点点,以确保适当的剪影表示。 |
Haar - Lowerbody | 19x23 | 下半身探测器。共享相同的限制全身探测器。 |
Haar - Upper Body | 18x22 | 上体检测器。共享相同的限制全身探测器。其中表现较好的探测器。 |
Detection Model |
Size WxH (px) |
Description |
---|---|---|
Haar - Frontal Cat Face | 24×24 | A frontal cat face detector using the full set of Haar features, such as horizontal, vertical, and diagonal features |
哈尔-额猫脸扩展 | 24×24 | An upright subject is assumed. In situations where the cat's face might be sideways or upside down (for example, the cat is rolling over), try various rotations of the input image |
LBP - 前腰猫脸 | 24×24 |
Detection Model |
Size WxH (px) |
Description |
---|---|---|
哈尔 - 16级俄罗斯车牌 | 64x16 | Russian License plate number detection |
Haar - Russian Plate Number | 20x60 | |
LBP - Silverware | 12x80 | 12x80 detector of the silverware (forks, spoons, knives) using LBP features. Detector only detects vertically oriented silverware |
This parameter allows you to supply a custom object detection model. You can read further about training your own model in the officialOpenCV Documentation.
Advanced
检测模型的原始检测窗口常常是小的,因此输入栅格在试图检测较大物体缩小。所述比例因子确定图像多少百分比按比例缩小,范围从1%到300%,包括端值。物体检测是在光栅各规模进行,但不是在尺度之间。换句话说,如果所述比例因子为100%,检测将发生在原始栅格,然后按比例缩小X2,X4等光栅
Scaling Factor Percent |
Actual Scaling Value Used |
---|---|
3% | 1.03 |
15% | 1.15 |
100% | 2.00 |
150% | 2.50 |
The table above specifies some of the values used to scale down the raster. Default is 3%.
如果缩放系数小,会有找到对象的几率较高。然而,由于对象正在寻找在更精细的规模,变压器可能需要更长的时间来处理光栅。具有较高的粒度还配备了更多的噪声或假阳性检测等变压器参数的潜在可能有助于减少这些。相反也是较大的比例因子实现。
When a detection (kernel) window is being moved across the raster, an object might be detected multiple times in the same area. These similar area detections are called neighbors.邻居的最小数量specifies how many neighbors each candidate detected object requires before it as accepted as a valid detected object. The default is 2 neighbors.
When the邻居的最小数量是0时,所有检测到的对象将被保留。因此,信任每场比赛将是低的。
When the邻居的最小数量is greater than 0, the algorithm will retain a detected object only if it has at least the specified number of neighbors, thus increasing confidence in each object that is output.
The parameter affects minimum and maximum detection size parameters.
- 百分: Object size parameters will be treated as percentages relative to the size of the source raster. This is the default.
- Pixels: The object size parameters will be treated as exact pixel values.
Minimum and maximum object detection sizes specify the size limits for detected objects; ones that are smaller or larger than the specified sizes, respectively, will be ignored. If no values are provided the detection will happen at all scales defined by theScale Factor Percentparameter. If minimum and maximum sizes are specified and are same, the detection happens only at the specified size.
Specifying the minimum size can greatly improve detection performance. Maximum size is often unnecessary but can also affect performance. By default, maximum size is unset and minimum width and height is 4%.
编辑变压器参数
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click适用的参数旁边。欲了解更多信息,请参阅Transformer Parameter Menu Options.
Transformer Categories
FME许可级别
FME专业版及以上
FME社亚搏国际在线官网区
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索样品和有关该变压器的FME社亚搏国际在线官网区.