A simple CLI program written in go that returns the dominant colors in an image.
Warning
This tutorial assumes you're on linux.
- Clone the repo
git clone https://github.com/Reishimanfr/color-finder
- cd into the newly created directory
cd color-finder
- Build the source code
go build
- Add execute permissions to binary
chmod +x ./color-finder
--path
- Path to the file to be analyzed by color finder (required)
--return-amount
- Amount of dominant colors to be returned (default: 5)
--scaling
- How much should the input image be scaled down by? (default: 1/4, higher = accurate but slower)
--threads
- Amount of threads to be used by the program. More = faster but more CPU and RAM usage. (default: 20)
--debug
- Should additional data useful for debugging be shown? (default: false)