Corner Detector
This function block detects corner patterns in an image and highlights them for visual inspection. It is useful for feature extraction, alignment checks, and preparation for shape or tracking tasks.
π₯ Inputs
Image Any This is the image to analyze. Accepts grayscale or color images.
π€ Outputs
Detected Corners An image with detected corners drawn for quick visual feedback.
Number of Corners Total count of detected corner points.
Locations List of corner coordinates (multiple points) for downstream processing.
πΉοΈ Controls
Detector Type Choose the corner detection method (options include HARRIS CORNER and SHI-THOMAS CORNER).
Threshold Adjusts sensitivity for how many corners are detected. Higher values reduce detections; lower values increase detections.
π¨ Features
Visual markers drawn on the input image to show each detected corner.
Option to switch between two widely used corner detection algorithms.
Returns both visual output and structured data (count and coordinates) for further processing.
βοΈ Running Mechanism
When provided an image through the input socket, the block analyzes local intensity patterns to locate corner points. It marks each detected corner on a copy of the input image and outputs the annotated image, the number of corners found, and the list of their coordinates. You can switch detection method and tune the Threshold to control sensitivity.
π Usage Instructions
Connect an image source to the
Image Anyinput.Select the desired
Detector Type.Adjust
Thresholduntil the number of detected corners matches your expectation.Use the
Detected Cornersoutput to preview results andLocationsoutput for further automation.
π‘ Tips and Tricks
Preprocess noisy images with
BlurorDenoisingto remove spurious corners from texture noise.Improve contrast and visibility of features with
Contrast OptimizationorAdjust Colorsbefore detection.Limit the search area using
Image ROI SelectorImage ROIso only the region of interest is processed.If the image is very large and detection is slow, use
Image Resizeto downscale before running this block.Visualize results larger or inspect details using the
Show Imageblock.Combine corner outputs with
Find ContourorFeature Detectorwhen you need higher-level object localization or matching.Store or freeze a good frame for reference with
Image Memoryor save examples viaImage Logger.
π οΈ Troubleshooting
If too many corners are detected, raise the
Thresholdor apply smoothing withBlur.If too few or no corners are detected, lower the
Thresholdor increase contrast withContrast Optimization.If detected points appear outside the area of interest, crop the input with
Image ROI Selectbefore feeding this block.For inconsistent results across lighting conditions, try
Adjust Colorsor disable automatic camera adjustments upstream (use camera advanced settings if available).
Last updated
Was this helpful?