Blur Detector
This function block evaluates whether an image appears sharp or blurry. It provides a single boolean output that indicates if the input image is considered blurred and a simple readout showing the computed blur score to help you tune sensitivity.
π₯ Inputs (sockets)
Input Image Accepts an RGB/BGR image to be evaluated for blurriness.
π€ Outputs (sockets)
Is Blurred? Boolean result indicating whether the provided image is considered blurred (true) or not (false).
πΉοΈ Controls
Detection Threshold Slider to adjust how sensitive the blur test is. Lower values make the test stricter (fewer images marked as blurry); higher values make it more permissive.
Current blur value Read-only text that displays the most recent numeric blur score so you can compare it against the threshold.
π― Features
Quick pass/fail blur check suitable for real-time streams or batch image checks.
Visual numeric feedback via
Current blur valueto help find an appropriateDetection Threshold.Simple single-socket input and single boolean output for easy integration into larger flows.
βοΈ Running mechanism
When a new image arrives, the block analyzes the image content to estimate overall sharpness and produces a numeric blur score. That score is compared with the user-set Detection Threshold to produce the boolean Is Blurred? output. The block updates the Current blur value display so you can adjust the threshold interactively.
π Usage Instructions
Connect an image source (camera, loader, or previous processing block) to
Input Image.Adjust
Detection Thresholduntil theCurrent blur valueseparates acceptable and unacceptable images for your application.Use the
Is Blurred?output to gate downstream logic (for example, to discard frames, trigger re-capture, or log low-quality images).
π‘ Tips and Tricks
For live camera checks, pair with
Camera USBor other image input blocks to monitor incoming frames for focus issues.If you need to visualize or save examples of blurry frames, connect the image stream to
Show Imageand/orImage Loggerso you can review and tune settings.Preprocessing can influence the blur score: try using
Image Resizeto normalize image size orDenoisingto reduce noise that may affect the measurement.To simulate blurry inputs during testing, use the
Blurblock upstream.Combine with ROI tools like
Image ROIorImage ROI Selectto check sharpness only in relevant areas of the frame (for example, the region where the object of interest appears).
π οΈ Troubleshooting
If every image is labeled blurry: raise the
Detection Thresholdor ensure your input images are not downscaled too aggressively before evaluation.If no images are labeled blurry even when visibly out of focus: lower the
Detection Thresholdand verify the test region matches where blur is occurring (use ROI blocks to limit evaluation to the area of interest).If the
Current blur valuedisplay does not update, confirm a valid image is connected toInput Imageand that the image source is producing frames (try connecting the source to aShow Imageblock to verify visually).
Last updated
Was this helpful?