Why its necessary to have cv2.waitKey() & 0xff to run video
seems like without cv2.waitKey() & 0xff my video capture wont start.. What if I want another stopping method? for example:
cv2.imshot('stream',frame)
roi = None
roi = cv2.selectROI(frame, False) #on the live stream getting region of interest
if cv2.waitKey(10) & roi != None:
cv2.destroyWindow('frame')
this doesn't seems to work..
roi values are correct (tuple with 4 vaues)
getting this error
unsupported operand type(s) for &: 'int' and 'NoneType'
I failt to understand what the bitwise AND would do there...
if I waited 10ms and the value roi became true (instead if None) after I selected region of interest under cv2.selectROI function... this is what I want - after I selected roi to close the stream window and proceed to work..
cv2.imshot
does not exist and the indentation is broken'and
cv2.selectROI()
wont ever returnNone