Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

epixelic/python-smart-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

python-smart-crop

Smart crops images uisng OpenCV

Uses the algorithms described in https://github.com/thumbor/thumbor/wiki/Detection-algorithms but actually combining both methods. We try to detect faces on the image, then, in any case we detect features. We then combine both results with different weights, so face detection is, in this case 3,33 times stronger than feature detection.

Installing

Requires python-opencv, install the dependency on debian with apt install python-opencv.

Install the command using PIP: pip install git+https://github.com/epixelic/python-smart-crop

Tested on Debian 8 and Ubuntu WSL.

Usage: smartcrop -W 1140 -H 400 -i input.jpg -o output.jpg

See smartcrop --help

About

Smart crops images uisng OpenCV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /