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)
More Results
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.3.tar.gz
(29.7 MB
view hashes)
Built Distribution
Close
Hashes for cropimage-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80296be3c84f6b88868dc0d0a4509bba2cc097e79fa52ec103a26d1c7f5f3fc3 |
|
MD5 | ed11318d41fb6d293eb1c76e36a095b6 |
|
BLAKE2b-256 | c5e7fc8b39c6fd1f312809cc439c2f93d57a437168b8ac3a4aa10130f6d2abe5 |