Skip to main content

A simple toolkit for detecting and cropping main body from pictures.

Project description

cropimage

This is a simple toolkit for cropping main body from pictures.

Installation

pip install cropimage

Get Started

from cropimage import Cropper

cropper = Cropper()

# Get a Numpy array of the cropped image
cropped_array = cropper.crop('./images/input.jpg', completeness=True, target_size=(500,500))

# Save the cropped image
cv2.imwrite('cropped.jpg', result)

Contributing

If you find any issue of this project, feel free to open an issue or contribute!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cropimage-0.0.2.tar.gz (27.0 MB view hashes)

Uploaded Source

Built Distribution

cropimage-0.0.2-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page