You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use an image with width 47 pixels and height 160 pixels (any image with width or height less than 100 pixels would work). 47x160 is the image size with which I found the issue.
System information (version)
Detailed description
Steps to reproduce
Use an image with width 47 pixels and height 160 pixels (any image with width or height less than 100 pixels would work). 47x160 is the image size with which I found the issue.
I followed the steps listed in this doc to run bar code detection and decoding from the following tutorial
https://opencv.org/recognizing-one-dimensional-barcode-using-opencv/
import cv2
bardet = cv2.barcode_BarcodeDetector()
img = cv2.imread("your file path")
ok, decoded_info, decoded_type, corners = bardet.detectAndDecode(img)
The above code results in floating point error (due to divide by zero error when window_size is 0 in calCoherence() method
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: