Library that provides pixelation for image redaction
Project description
pixelate-redactor
Redact images with pixels
Works with Python >= 2.6, Python >= 3.2.
Installation
pip install pixelate-redactor
Example
pixelate-redactor
pixelate-redactor \
--input=img/example_img_original.png \
--output=img/example_img_redacted.png \
--pixel-size=10 \
--start-x=90 \
--start-y=180 \
--size-x=150 \
--size-y=150
pixelate-redactor-boxes
pixelate-redactor \
--input=img/example_img_original.png \
--output=img/example_img_redacted.png \
--pixel-size=10 \
--boxes=img/boxes.json
with img/boxes.json:
{
"__box_name_1__": {
"px": 90,
"py": 180,
"sx": 150,
"sy": 150
},
"__box_name_2__": {
"px": 90,
"py": 180,
"sx": 150,
"sy": 150
}
}
(the values are the same, to keep the same result from the single box example)
px-> Position Xpy-> Position Ysx-> Size Xsy-> Size Y
Results
From this:
To this:
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
pixelate-redactor-0.4.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixelate-redactor-0.4.tar.gz.
File metadata
- Download URL: pixelate-redactor-0.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35080c557cc03fb10ab81c4cf9c0f88465138aa1f1b3d4e9e98ba61afd4f3f6b
|
|
| MD5 |
88e60ed67c23d789c0841ed057104a0d
|
|
| BLAKE2b-256 |
2537fa4b0da97ba024bd66724a6900e008bde33b93692666bbe7fed624acdb24
|
File details
Details for the file pixelate_redactor-0.4-py3-none-any.whl.
File metadata
- Download URL: pixelate_redactor-0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f031d3358f1b326e4fc0522ca0150938af37ad439b062dac744d9648ed8bba52
|
|
| MD5 |
a8c38efb1bb58f0f6c886f584db72697
|
|
| BLAKE2b-256 |
34d84d970aa2797e8aa65dff8317cd5ea7bb3165abd4925ecf6c0c73e4b55e87
|