1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
ByakuganVisualizer
The ByakuganVisualizer repository hosts a Python tool designed to compare images and highlight their differences. It simplifies the process of identifying disparities between images, making it ideal for tasks like testing and quality assurance. Moreover, it offers a color filter that can be used to correct images for color-blind users.
Installation
pip install byakuganvisualizer
Usage
Command Line Interface
usage: byakugan_vision [-h] [--version] [--diff DIFF] [--filter {red,blue,green,yellow}] [--images IMAGES] [--deuteranomaly DEUTERANOMALY]
[--protanomaly PROTANOMALY] [--out_dir OUT_DIR]
ByakuganVisualizer: Tool for correcting the color palett for color blind people and highlighting differences of images.
options:
-h, --help show this help message and exit
--version show program's version number and exit
--diff DIFF String containing a list of tuples "Path_To_Image1a,Path_To_Image2a;Path_To_Image1b,Path_To_Image2b...". Each tuple
contains two paths to images to be compared.
--filter {red,blue,green,yellow}
Filter type (red, blue, green, yellow)
--images IMAGES List of image names to be manipulated by a filter. E.g.: A,B,C,D
--deuteranomaly DEUTERANOMALY
Expresses your degree of deuteranomaly, which will be used to correct the image. Default is 1.
--protanomaly PROTANOMALY
Expresses your degree of protanomaly, which will be used to correct the image. Default is 1.
--out_dir OUT_DIR Output directory for the difference images
Python API
Please read the API documentation for the classes Byakugan and ImageFilter for more information.
You can simply import the classes as follows:
from byakuganvisualizer.Byakugan import Byakugan
from byakuganvisualizer.ImageFilter import ImageFilter
Image Correction for Color Blind People
In the following examples the image is corrected for deuteranomaly and protanomaly. Correction in this context means that the image is adjusted to be more distinguishable for color-blind people.
Note: The float values for deuteranomaly and protanomaly are between 0 and 10. The default value is 1. The used algorithm is based on the following paper: https://arxiv.org/abs/1711.10662.
The image used in the example is from the following source: https://www.anime2you.de/news/606180/naruto-feiert-20-anime-jubilaeum/
Deuteranomaly Correction
byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 2
Protanomaly Correction
byakugan_vision --images "tests/test_images/naruto.jpg" --protanomaly 2
Deuteranomaly and Protanomaly Correction
byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 2 --protanomaly 2
byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 0.5 --protanomaly 0.5
Filter an Image
byakugan_vision --images "tests/test_images/naruto.jpg" --filter red
Differences between images
The left image used in the example is from the following source: https://www.anime2you.de/news/606180/naruto-feiert-20-anime-jubilaeum/
Difference with no Filter
byakugan_vision --diff "tests/test_images/naruto.jpg,tests/test_images/naruto_modified.jpg" --out_dir tests/test_images/diff
Note: The output depends on the order of the images in the tuple. The first image is subtracted from the second image. That is why the following command results in a different output:
byakugan_vision --diff "tests/test_images/naruto_modified.jpg,tests/test_images/naruto.jpg" --out_dir tests/test_images/diff
Red Filtered Difference
byakugan_vision --diff "tests/test_images/naruto.jpg,tests/test_images/naruto_modified.jpg" --filter red --out_dir tests/test_images/diff
Blue Filtered Difference
byakugan_vision --diff "tests/test_images/naruto.jpg,tests/test_images/naruto_modified.jpg" --filter blue --out_dir tests/test_images/diff
Green Filtered Difference
byakugan_vision --diff "tests/test_images/naruto.jpg,tests/test_images/naruto_modified.jpg" --filter green --out_dir tests/test_images/diff
Yellow Filtered Difference
byakugan_vision --diff "tests/test_images/naruto.jpg,tests/test_images/naruto_modified.jpg" --filter yellow --out_dir tests/test_images/diff
Byakugan
The Bykugan from Naruto is a powerful ability that grants users the ability to see through objects, detect chakra, and perceive long distances, but users are born blind, relying solely on this special vision.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for ByakuganVisualizer 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ByakuganVisualizer-0.2.2.tar.gz | 6.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| byakuganvisualizer-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
| ByakuganVisualizer-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / ByakuganVisualizer-0.2.2.tar.gz
| Download URL | ByakuganVisualizer-0.2.2.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a65c1b291519174a995c1b1b0c245bb2597d57562a3f0299df5d989000a2be94
|
|
BLAKE2b-256 checksum How to use checksums |
ed4053e408f5ddd5108c9cd300af76c979de8ce22af51277d2feb6757a15373b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.14
|
Release files / byakuganvisualizer-0.2.2-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | byakuganvisualizer-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30d27e17cef926af3c6a030de31741da9b782683944221a8f1aef3adeff1d571
|
|
BLAKE2b-256 checksum How to use checksums |
e15e184c5c614ffe5fca930fd51a9c652237bae9e213823ea8364ca322109fa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / ByakuganVisualizer-0.2.2-py3-none-any.whl
| Download URL | ByakuganVisualizer-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adca71ba97688569e7f422e8cb96052c246c4e66e8b2e923e34dedebfc6d34e6
|
|
BLAKE2b-256 checksum How to use checksums |
04bc1b9823df8a9d4b68f36075a57e3a82260a845633ec4bc257bf0d5cc723d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.14
|