Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pippo1990 opened this issue Mar 17, 2024 · 0 comments

Comments

@pippo1990
Copy link

pippo1990 commented Mar 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant