Skip to content

It uses some mathematical equations to figure out what kind of background either black or white suits the color that you pass to it.

Notifications You must be signed in to change notification settings

aashishpeepra/color-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color-predictor

It uses some mathematical equations (which I wrote from scratch) to figure out what kind of background either black or white suits the color that you pass to it. This is written purely in Python without the use of many other machine learning library.

API version


The api.py is the API version of the Machine Learning code i wrote so you can use the API anywhere by simply hosting it on platforms like heroku (no promotion)

How to use?


I tried to comment description of every function which should be helpfull. You can directly run the withoutML1.py through your console and that will train from the text file containing the color data set with their corresponding suitable background value. After traiing an infinite loop will trigger prompting to enter hexadecimal color value (remember not to pass # with the color, just pass the hexadecimal color value in for RRGGBB)

About

It uses some mathematical equations to figure out what kind of background either black or white suits the color that you pass to it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages