PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xhttps://github.com/PyImageSearch/imutils/blob/master/bin/range-detector limit range MAX for h in hsv to 179

pippo1990 opened this issue · comments

Colud we get a limit on MAX h for hsv image of 179/180 instead of 255

as range-detector.py is doing right now :

for i in ["MIN", "MAX"]:

def setup_trackbars(range_filter):
cv2.namedWindow("Trackbars", 0)

for i in ["MIN", "MAX"]:
    v = 0 if i == "MIN" else 255

    for j in range_filter:
        cv2.createTrackbar("%s_%s" % (j, i), "Trackbars", v, 255, callback)

see https://stackoverflow.com/questions/16685707/why-is-the-range-of-hue-0-180-in-opencv

https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778

and https://answers.opencv.org/question/207229/how-to-get-full-hsv-hue-value-range0-360-or-0-1-in-double-in-python/

differences between cv2.COLOR_BGR2HSV or cv2.COLOR_BGR2HSV_FULL