This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |