Coder Social home page Coder Social logo

cvramanan / hsvrangetool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hariangr/hsvrangetool

0.0 0.0 0.0 2.56 MB

A tool for selecting optimal range (Including dilation and erotion) for HSV

Python 98.04% Makefile 0.21% Dockerfile 1.75%

hsvrangetool's Introduction

HSV Range Tool

A tool for selecting optimal range (Including dilation and erotion) for HSV

App preview (Using example image)

App Screenshot

How to run:

Make sure you have python installed on your system. Instal required dependency by running pip install -r requirements.txt in your terminal or install manually PyQt5 and Opencv-Python

If you're using virtualenv don't forget to source into your venv before proceeding

After configuring your environment, run python3 main.py or if you're on Mac, you can run make run as a shortcut Open a picture by clicking Open button

Adjust the Hue of both Upper range and Lower range before proceeding to adjust Saturation and Value (As adjusting Hue have the biggest impact)

You can use picture in ./example for training, try to adjust the Upper and Lower range so only the ball is visible

You can also adjust dilation and erotion which usually used along with HSV in opencv computer vision project

Run using DOCKER

Simply build and run in 1 step using docker compose:

docker-compose up

or build and run manually in 2 steps

  1. Build docker image
 docker build -t myapp .
  1. Run using:
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -u qtuser -v $(pwd):/app -w /app myapp

Fork of Project

I made this project for workshops that I did for Technology Artisan (An organization that I am a part of in college) and therefor you can also find the project there (Technology Artisan Intro to Computer Vision repo under hsv_tool). This fork also have additional feature (Hough transform, line detection etc) which added by my senior (@RicoFerdian) which I wouldn't include here since I want this repo to just focus as ranging tool

Also, as I stated above I made this tool just to introduce my friends (Including myself) to computer vision in a workshop, but this tool proved useful in a lot of ways, especially a project that I did in wheeled soccer robot (Beroda Gandiwa). If anyone looking for a helper tool, but too lazy to create one of their own, you can use this tool, and pull request is also welcome

hsvrangetool's People

Contributors

hariangr 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.