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'