Detect Reference
This function block is used to automatically identify objects in an input image based on a reference image. It supports various options for fine-tuning the detection process.
π₯ Inputs
Image
The main image in which the reference object needs to be detected.
Reference
The reference image of the object that should be matched.
Mask
An optional mask image that can isolate areas to consider during the detection process.
π€ Outputs
Image Any
The output image showing the detected objects with matching regions highlighted.
Rectangle Coordinates
The coordinates of rectangles that bound the detected references, supporting multiple detections.
Match Percentage
The percentage of match for each detected object.
πΉοΈ Controls
Match Threshold %
A slider that sets the threshold for acceptance of matches. By tweaking this value, you can minimize false positives.
Down-size
A slider that reduces the size of the reference image to improve processing speed, allowing for faster detection.
Rotations
A slider to set the number of rotation slices for detection of objects in various orientations.
Sweep Angle
A slider range that defines the angle sweep for rotations during object detection.
Horizontal Flip Search
A checkbox that includes consideration for flipped versions of the reference image, which can aid in detection under certain conditions.
Estimation Method
A dropdown menu to select the method of estimation for object matching.
Color Mode
A dropdown menu to select whether to process images in grayscale or color (BGR), with color processing typically increasing accuracy.
π¨ Features
Rotational Detection
Effectively detects objects from multiple rotational angles, enhancing detection capabilities.
Mask Support
The option to use a mask helps concentrate detection on vital areas of the input image, improving efficiency.
Visual Feedback
The resulting image output clearly displays matched areas, providing real-time feedback on detection results.
π Usage Instructions
Connect Input Images: Link the input image to the
Image
input, and the reference image to theReference
input. Optionally, connect a mask to theMask
input.Set Parameters: Use the sliders and dropdowns to define the desired match threshold, size reduction, rotations, and color mode.
Evaluate: Run the block to perform object detection. The resulting output will display the matches found in the image.
π Evaluation
When executed, this function block effectively analyzes the input image based on the reference provided and outputs the matched image, coordinates, and match percentages.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated