Skip to content

A simple GUI to help with HSV thresholding in OpenCV.

Notifications You must be signed in to change notification settings

Mr-Monwe/HSV-Thresholding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HSV-Thresholding

This is a GUI tool to help determine the HSV value needed for thresholding in OpenCV. Keep in mind the program assumes a fixed lighting condition, so it it best to recalibrate the HSV values before deploying your program.

What is HSV?

Demo

You can adjust the upper and lower bounds by using the slider with a mouse, typing the value in the text box, or tapping the keyboard to scrub the slider once it has been highlighted.

Main Preview

Fixes

The default camera path is set to 2, if it does not open up or if you have multiple cameras you can try to change this line in the main python file.

Start by using 0 and increase the value by 1 until you see the video feed.

# Set camera path and capture from web cam
cap = cv2.VideoCapture(0)