Skip to content

Instantly share code, notes, and snippets.

@codyhex
Created April 5, 2017 21:52
Show Gist options
  • Save codyhex/10b18d126befb5382ccb8de9bcfb47ef to your computer and use it in GitHub Desktop.
Save codyhex/10b18d126befb5382ccb8de9bcfb47ef to your computer and use it in GitHub Desktop.
# Use 0xFF to AND output the only 8bits for a char.
if cv2.waitKey(0) & 0xFF == ord('q'):
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment