https://github.com/hokagem/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.

https://github.com/hokagem/byakuganvisualizer

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

color-blind color-correction colorblind image-manipulation numpy pillow
Last synced: 9 months ago · JSON representation

Repository

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.

Basic Info
  • Host: GitHub
  • Owner: HokageM
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 602 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 4
Topics
color-blind color-correction colorblind image-manipulation numpy pillow
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

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

bash 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] [--outdir OUTDIR]

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 "PathToImage1a,PathToImage2a;PathToImage1b,PathToImage2b...". 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. --outdir OUTDIR 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:

python 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

bash byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 2

Protanomaly Correction

bash byakugan_vision --images "tests/test_images/naruto.jpg" --protanomaly 2

Deuteranomaly and Protanomaly Correction

bash byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 2 --protanomaly 2

bash byakugan_vision --images "tests/test_images/naruto.jpg" --deuteranomaly 0.5 --protanomaly 0.5

Filter an Image

bash 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/

First Image Second Image

Difference with no Filter

bash 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:

bash byakugan_vision --diff "tests/test_images/naruto_modified.jpg,tests/test_images/naruto.jpg" --out_dir tests/test_images/diff

Red Filtered Difference

bash 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

bash 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

bash 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

bash 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.

Owner

  • Name: Mike Trzaska
  • Login: HokageM
  • Kind: user
  • Location: Hamburg
  • Company: Eppendorf Liquidhandling GmbH

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 30
  • Total Committers: 1
  • Avg Commits per committer: 30.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 30
  • Committers: 1
  • Avg Commits per committer: 30.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
HokageM m****3@g****m 30

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 8 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • HokageM (4)
Top Labels
Issue Labels
Pull Request Labels
enhancement (4)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 27 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
pypi.org: 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. Additionally, it offers options for customization, which can be helpful for color-blind users.

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 27 Last month
Rankings
Dependent packages count: 9.6%
Average: 36.6%
Dependent repos count: 63.5%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/flake8.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
setup.py pypi