Helps you transform a photo to a scanned document
Project description
image-to-scan
If you have an image of a document maybe you would like to crop everything outside the document and correct the angle from which the photo was taken, in that case this command line tool might help.
Notes
Originally forked from KMKnation/Four-Point-Invoice-Transform-with-OpenCVThis code is inspired from 4 Point OpenCV getPerspective Transform Example
Installation
- Via pipx
pipx install image_to_scan
if you want to install inside an isolated environment. - Via pip
pip install image_to_scan
to an enviroment of your choice.
image-to-scan
depends on opencv
and numpy
which together will take around 200MiB
After installing it an entry point image-to-scan
will be added.
Run it
Run image-to-scan tests/samples/02/original.jpg
Original Image | Output Image |
---|---|
tests/samples/02/original.jpg |
tests/samples/02/original-scanned.jpg |
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
image-to-scan-0.0.6.tar.gz
(880.3 kB
view hashes)
Built Distribution
Close
Hashes for image_to_scan-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70acbeaf6b9a773d8fefab2711e7126e8dac968a7ebf425da5bc3025a1432ab5 |
|
MD5 | d14a634d7a07ea6ffd1b6c91da813e8a |
|
BLAKE2b-256 | 81d2ebc4d1462ae89a4caea06d33edc09fc3de90387d1365d872c91f4d25b622 |