Closed Daltz333 closed 5 years ago
#convert frames to grayscale as zbar-py only accepts grayscale opencv
gray = (frame, cv2.COLOR_BGR2GRAY)
This does not convert a frame to grayscale. It makes a 2-tuple of the frame and the cv2 constant. And sometimes frame is None, I guess. None of this is a zbar problem.
EDIT: Found that I didn't assign a variable to scanner.scan(gray), assigned variable and error still there.
On Raspberry Pi3, Python 3.4, OpenCV3 I get the below error. Attached is code, error, and additional information. CODE:
Error:
When printing out the value of "gray" sometimes randomly I get
And just as randomly I get
But it always no matter what the result is, it always gives me the ValueError exception.