Code Monkey home page Code Monkey logo

color-rate-calculator's Introduction

Color-Rate-Calculator

Python application which calculates the rate of dark and light parts of objects in the input picture.

For accurate results, the input image shouldn't have a very colourful background. The bigger part of the image the object, the better the results are. To avoid segmentation, the input image should have a one colour background.

Packages used:
-opencv
-tkinter
-math
-numpy

How to use:

  1. [optional step] Before launch, cut the important part out from the original picture to make the calculation more accurate.
  2. Launch program, choose image.
  3. 3 window appears: a hsv colour palette, the original input image, a window which will show the segmented area.
  4. Let's designate a black part of the object on the original image. Can be done by one click, or by designating with a rectangle by holding the left mouse button.
  5. We can make the segmented area more accurate by h, s, v, Shift + h, Shift + s, Shift + v buttons. The hsv colour palette may help for experts, but it's easy to reach optimal result without understanding it.
  6. Once the segmentated area is accurate enough, we can save it in a variable. In case of black part: press b button.
  7. Designating the white part works the same way. Once it is ready press w button to save. (The colour sequence is optional, and works both way)
  8. If the 2 aera is ready and the b and w button was pushed, the results appear in the console.

color-rate-calculator's People

Contributors

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