A tool to easily find lower and upper bounds to color filtering in RGB, HSL and HSV working with OpenCV in Python3
Make sure you have OpenCV and Numpy
sudo pip3 install opencv-python
sudo pip3 install numpy
Clone this project
git clone https://github.com/Eranot/opencv_color_filtering_tool.git
(or download it as zip)
Execute the script for a image:
python3 opencv_color_filtering_tool.py -f [image_file]
Execute the script for a video:
python3 opencv_color_filtering_tool.py -f [video_file] --video
The parameter -r can be used to resize the image/video where 0.5 makes it half the size and 2.0 doubles it
python3 opencv_color_filtering_tool.py -f [video_file] --video -r 0.5
The parameter --help can be used to get more information
python3 opencv_color_filtering_tool.py --help