Skip to content

tylergeery/color_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Color Analyzer

Simple API for image color analysis.

This is a first attempt at using Rust, and largely a learning experience. Please feel free to contribute and teach me a few things.

Production

Feel free to test out the project here

Features

  • Submit a hosted URL or file upload at upload page
  • Allows for image url submission at predict endpoint
  • Allows for form data submission at submit endpoint
  • Parses base hex colors from server/src/colors.json
  • Output ordered list of colors based on individual pixel analysis
  • Runs on GAE Flexible custom runtime
  • UI Option to predict based on middle of image (middle 50% of pixels)

Up and Running

make dev

Running test suite

make test

Deprecated: Deploying on GAE

docker tag color_analyzer:latest us.gcr.io/rust-color-analyzer/color_analyzer
gcloud auth configure-docker
docker push us.gcr.io/rust-color-analyzer/color_analyzer
gcloud app deploy --image-url=us.gcr.io/rust-color-analyzer/color_analyzer app.yaml

TODO

  • Add K-NN approach for determining dominant color
  • Run all prediction operations asynchronously
  • Explore Luma color pixels as an options

About

Simple REST API for image color analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published