Skip to content

Instantly share code, notes, and snippets.

# by default we chose to detect blue but using the slider window, we can customize the sliders to detect any window we'd like.
import numpy as np
import cv2
from collections import deque
def setValues(x):
print("")
cv2.namedWindow("Color Detectors")
cv2.createTrackbar("Upper Hue", "Color Detectors", 153, 180, setValues)