gopherize-photo

command module
v0.0.0-...-b4d8d38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 10 Imported by: 0

README

gopherize-photo

This is just-for-fun experiment with pictures and OpenCV following the challenge by OMPRussia company at GopherCon Russia 2020.

Requirements

opencv is required.

See https://gocv.io/getting-started/ for how to install.

Usage

Build:

go build -o gopherize-photo .

Gopherize the example:

./gopherize-photo \
  -classifier example-data/haarcascade_frontalface_default.xml \
  -photo example-data/me.jpg \
  -photo-detect-scale 1.1 \
  -photo-detect-min-size 200 \
  -photo-detect-max-size 800  \
  -photo-detect-min-neighbours 8 \
  -gopher example-data/gopher2.png \
  -gopher-x-coeff 0.95 \
  -gopher-y-coeff 0.3 \
  -out example-data/output.jpg

Result:

Click me

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL