Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 523 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 523 Bytes

PyDominantColor is a C Python extension responsible for returning the dominant color of an image.

It is compatible only with Python 2.7, but it shouldn't be hard to port it for Python 3+.

# Build the docker image needed to build the extension
docker build -t builderimage .

# Build de dominantcolor.so extension
docker run --rm -v "$PWD":/go/src/github.com/StudioSol/PyDominantColor \
    -w /go/src/github.com/StudioSol/PyDominantColor builderimage \
    go build -v -buildmode=c-shared -o dominantcolor.so