image-knocker
Knock your images before you get stressed.
Background
One day, I had run my deep learning model training program and got off work on Friday. When I checked the training process on Monday after arriving at work, the program was terminated because of some images that cannot be opened by image processing libraries like PIL.
I developed this project to check images that cannot be opened by image processing libraries before running computer vision applications.
image-knocker is very fast and simple!
Install
pip install image-knocker
Usage
foo@bar:~$ image-knocker --path dataset_path/ --exts png jpg jpeg
Output
if corrupted image in dataset:
Knocking... Root Path: D:\datasets\detection\VOCdevkit
100%|██████████████████| 34179/34179 [00:03<00:00, 10911.31it/s]
Corrupted image files are detected!
D:/datasets/detection/VOCdevkit/outlier.png
Corrupted image file list is saved to D:\datasets\detection\corrupted_imgs_list.txt
else:
Knocking... Root Path: D:\datasets\detection\VOCdevkit
100%|██████████████████| 34178/34178 [00:04<00:00, 7792.30it/s]
There are no corrupted image files!
All images were loaded successfully using PIL.Image.open!
Metadata
Release files for image-knocker 0.0.1.4
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 | |
|---|---|---|---|---|
| image_knocker-0.0.1.4.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| image_knocker-0.0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / image_knocker-0.0.1.4.tar.gz
| Download URL | image_knocker-0.0.1.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2418181b30cf73308720d5eb92d28d651f1ee250830343e4af442098a4749bbd
|
|
BLAKE2b-256 checksum How to use checksums |
b1bb9b1d5e10a6761cb095627f2fd56fa9853c4c0b450afc0843f7ab5b983233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
|
Release files / image_knocker-0.0.1.4-py3-none-any.whl
| Download URL | image_knocker-0.0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76e215f882279db0940add6307b733119d51300cb2f58b9edeeb9ba4231f728a
|
|
BLAKE2b-256 checksum How to use checksums |
25ac4c0c4dd9e2065ff5075d68d3744113b2152f3103eb07932e6ff1cbcb8da8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
|
Security for image-knocker 0.0.1.4
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.