Skip to content

Instantly share code, notes, and snippets.

@lachlanagnew
Last active August 10, 2018 01:48
Show Gist options
  • Save lachlanagnew/ee15aa83b25b026505c17fc0bb2d9b5d to your computer and use it in GitHub Desktop.
Save lachlanagnew/ee15aa83b25b026505c17fc0bb2d9b5d to your computer and use it in GitHub Desktop.
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
_, img = cap.read()
#Convert BGR colour space that the camera picks up to HSV
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment