Skip to content

zuqini/text-color-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Color Predictor

A simple feed forward neural net written from scratch in Python for educational purposes.

Given the RGB values of a solid background color - predicts whether a black or white text should be displayed for best readability.

The current iteration has an accuracy of 97~% based on my own test set.

screen shot 2019-01-02 at 2 15 44 am

Running

$ python3 train.py

View your test set results in the generated results.html.

You can also create your own data set for training/testing using this tool. Drop the generated json in the data/ folder and update the trainer to read from that instead.

About

Toy neural network for predicting the best text color given the background color

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors