Coder Social home page Coder Social logo

perfecxx / python-hsv-finder Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.49 MB

Using the Tkinter GUI and OpenCV to filter and get the upper and lower HSV ranges from camera video capture

Python 100.00%
cv2 hsv hsv-color-detection hsv-color-range opencv-contrib-python opencv-python pyperclip tkinter tkinter-gui tkinter-python

python-hsv-finder's Introduction

Python HSV Range Finder

Using the Tkinter GUI and OpenCV to filter and get the upper and lower HSV ranges from camera video capture

Main Feature

  1. View Camera Feed: This package captures video from a camera (webcam) and displays it in a GUI window. The camera feed is continuously updated.

  2. Adjust HSV Range: This package provides sliders for adjusting the lower and upper bounds of the HSV (Hue, Saturation, Value) color range. These sliders allow you to define a specific color range you want to isolate from the camera feed.

  3. View Filtered Result: This package processes the camera feed using the HSV range values set by the sliders. It filters out the colors that fall within the specified range and displays the result in a separate frame.

  4. View Binary Mask: This package converts the filtered result into a binary mask, where the isolated color range appears as white, and everything else appears as black. This binary mask is displayed in a third frame.

  5. Copy HSV Range Values: This package includes buttons that allow you to copy the current lower and upper HSV range values to the clipboard, making it easy to use these values in other applications.

  6. Switch Cameras: You can switch between different cameras if you have multiple camera devices connected to your computer.

Dependencies

Before running this package, you need to install the following package dependencies:

  1. opencv-contrib-python
  2. PIL
  3. pyperclip
pip install opencv-contrib-python
pip install pillow
pip install pyperclip

python-hsv-finder's People

Contributors

perfecxx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.