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_scanif you want to install inside an isolated environment. - Via pip
pip install image_to_scanto 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 |
Metadata
Release files for image-to-scan 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| image-to-scan-0.0.6.tar.gz | 880.3 kB | Without provenance | Details for image-to-scan-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| image_to_scan-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for image_to_scan-0.0.6-py3-none-any.whl |
Total release size: 892.2 kB
Release files / image-to-scan-0.0.6.tar.gz
| Download URL | image-to-scan-0.0.6.tar.gz |
|---|---|
| Size | 880.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
044a7faa38b88d5d6e342e3502808c0fe71ea6d52e280bde8c1badb6c912f4cb
|
|
BLAKE2b-256 checksum How to use checksums |
8b247171782eb63cebef50ad9b0849121228ed11a72612533d48f35a0beac1dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
|
Release files / image_to_scan-0.0.6-py3-none-any.whl
| Download URL | image_to_scan-0.0.6-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70acbeaf6b9a773d8fefab2711e7126e8dac968a7ebf425da5bc3025a1432ab5
|
|
BLAKE2b-256 checksum How to use checksums |
81d2ebc4d1462ae89a4caea06d33edc09fc3de90387d1365d872c91f4d25b622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
|
Security for image-to-scan 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.