You are on page 1of 8

Enhancing Video Accessibility for Color

Vision Deficiencies
SK Khaleelullah Hanish Kumar Gantla Rahul
Associate Professor UG Scholar UG Scholar
Dept of IT Dept of IT Dept of IT
Vignan Institute of Technology and Science(A) Vignan Institute of Technology and Science(A) Vignan Institute of Technology and Science(A)
Hyderabad Hyderabad Hyderabad
khaleel1245@gmail.com taragalahanish02@gmail.com gantlarahul24@gmail.com

Rahul Naik Sai Teja


UG Scholar UG Scholar
Dept of IT Dept of IT
Vignan Institute of Technology and Science(A) Vignan Institute of Technology and Science(A)
Hyderabad Hyderabad
ramavathrahulnaik3@gmail.com saitejagoud960@gmail.com
innovative project, "Enhancing Video Accessibility for
Color Blind Viewers. " Color blindness, a condition that
Abstract—Visual content plays a significant role in affects approximately 1 in 12 men and 1 in 200 women,
modern communication, with video sharing platforms
alters the perception of colors, making it difficult to
and online media being primary sources of information
and entertainment. However, individuals with color vision differentiate between certain hues. This condition can
deficiencies often face challenges in perceiving content as
intended, as the color blinded audience may struggle to
differentiate between certain colors. The project aims to often lead to a diminished viewing experience, as
address this issue by developing a solution that enhances colors play a pivotal role in conveying information,
video accessibility for color blind viewers in real-time. The evoking emotions, and providing context in visual
project's primary objective is to create a system that takes content, including videos.
a video input and applies color transformation algorithms
to modify the colors displayed, making them more
The project represents a pioneering effort to bridge the
distinguishable for color blind individuals. The solution is
designed to work with various types of color vision gap between visual content and color blind individuals.
deficiencies, such as red-green color blindness (protanopia By harnessing the power of machine learning and image
and deuteranopia) and blue-yellow color blindness processing techniques, a solution is being developed to
(tritanopia). The outcomes of the project aim to make dynamically adjust the colors in videos, ensuring that
digital video content more inclusive and accessible to color blind viewers can enjoy and comprehend visual
individuals with color vision deficiencies. By enhancing content to its fullest extent. The primary objective of the
color differentiation in videos, the system contributes to a project is to provide an adaptive and real-time solution
more inclusive and enjoyable viewing experience for color that tailors the color palette of videos to accommodate
blind individuals, ensuring them to engage with digital
the specific needs of individuals with color vision
content as effectively as those with normal color vision.
deficiencies. By employing sophisticated algorithms
Index Terms— Real-time color correction, Video and machine learning models, efforts are being made to
Enhancement, Computer Vision, Python programming, make videos more accessible and engaging for color
Image and Video processing, Digital video content, Color blind viewers. Joining this journey means leveraging
Vision Deficiency. technology to enhance the visual experience for color
blind individuals and taking a significant step toward a
I. INTRODUCTION more inclusive and accessible digital world. Together, a
shared and vibrant experience for everyone, regardless
In a world where visual content is an integral part of our of their perception of color, can be achieved.
daily lives, the significance of ensuring inclusivity in the
digital landscape cannot be overstated. For the millions II. LITERATURE SURVEY
of individuals living with color vision deficiencies,
commonly referred to as color blindness, experiencing 1. Introduction
the full spectrum of colors in images and videos can be Color blindness, also known as color vision deficiency,
a challenge. Addressing this challenge is the aim of the is a prevalent condition impacting a significant portion
of the population. The digital world must address 7. 2 Image Processing Techniques:
challenges faced by color blind individuals, particularly Review image processing techniques aimed at
when consuming visual content like videos. enhancing color blind accessibility.
This literature survey aims to explore existing research,
technologies, and methodologies related to the 7. 3 Real-Time Color Adjustment:
adjustment of video colors for enhancing the viewing Examine real-time color adjustment approaches for
experience of color blind individuals. videos.

2. Types of Color Vision Deficiencies 8. Conclusion


2. 1 Red-Green Color Blindness: 8. 1 Summary of Findings:
Examine the physiological and perceptual aspects of red- Summarize key findings from the literature survey.
green color blindness, including protanopia and
deuteranopia. 8. 2 Identified Gaps and Opportunities:
Highlight gaps in existing research and opportunities for
2. 2 Blue-Yellow Color Blindness: further exploration.
Explore tritanopia and its impact on color perception.
8. 3 Implications for Project Development
2. 3 Monochromacy: Connect the literature survey findings to the
Understand the challenges faced by individuals with development of the project, emphasizing the
complete color blindness. importance of user-centered design and the application
of advanced color correction techniques.
3. Prevalence and Impact of Color Blindness
3. 1 Statistics: III. SYSTEM ANALYSIS
Provide insights into the prevalence of color blindness
globally and regionally. Several software tools and applications aim to enhance
the video-watching experience for color blind
3. 2 Everyday Life Impact: individuals by adjusting video colors. These tools
Discuss the impact of color blindness on daily activities, employ various color correction algorithms to adapt
with a focus on challenges related to visual content colors and make them more distinguishable. Examples
consumption, especially videos. of existing software for color blind individuals include
Chrometric, Color Oracle, Vizlens, etc. It's important to
4. Accessibility Standards and Guidelines note that while these tools and applications can offer
Investigate existing international accessibility standards, assistance, limitations may exist regarding the types of
guidelines, and best practices addressing color videos that can be adjusted and the extent of adjustments
accessibility for individuals with color vision achievable. Moreover, the effectiveness of such tools
deficiencies. can vary depending on the specific needs and
preferences of the user. For a more comprehensive
5. Design Principles and Techniques approach, consider exploring alternatives.
5. 1 User Interface and Web Design:
Examine design principles and techniques employed in
user interface and web design to create color blind- dynamic solution, your project could focus on
friendly content. developing advanced video color correction software
that integrates machine learning and real-time
6. Traditional Methods for Color Adjustment adjustments to cater to a wide range.
6. 1 Color Filters:
Review the use of color filters in adapting visual content Disadvantages of Existing System:
for color blind individuals. Limited Compatibility: Many existing tools are limited
to specific platforms or applications, making it
6. 2 Overlays and Hatching Patterns: challenging to provide a consistent color-adjusted
Explore traditional methods involving overlays and experience across all video content and platforms.
hatching patterns. Lack of Real-Time Adjustment: Some tools may not
provide real-time color correction for videos.
7. Advanced Color Correction Approaches This can result in delays and inconvenience when
7. 1 Machine Learning Solutions: accessing online streaming content or live video streams.
Explore machine learning-based solutions for color Limited Customization: While some tools offer
adjustment in videos. customization options, may not provide a wide range of
settings to accommodate different types and degrees of later redesign. It should also provide a realistic basis for
color blindness. Users may have limited control over the estimating product costs, risks, and schedules. The
color adjustment parameters. software requirements specification document enlists
Adjusting colors in complex video scenes, such as those enough and necessary requirements that are required for
with intricate graphics or special effects, may be the project development.
challenging for existing tools. Satisfactory results may To derive the requirements, the clear and thorough
not be produced in such cases. understanding of the products to be developed or being
Some tools are designed exclusively for desktop or web developed. This is achieved and refined with detailed
use and may not have mobile applications, limiting and continuous communications with the project team
accessibility for users who primarily consume video and customer till the completion of the software.
content on mobile devices.
Existing tools may not always work seamlessly with all IV. SYSTEM DESIGN
video players, browsers, or streaming platforms, leading
to compatibility issues that can disrupt the viewing The purpose of our project is to use cutting-edge
experience. technology and innovative approaches to bridge the gap
between color blind individuals and visual content. By
Proposed System: enabling them to experience videos in a more
While there are not many dedicated video players or meaningful and immersive way, let us contribute to a
video-watching software explicitly designed for color more inclusive, equitable, and enriching digital world
blind users, color blind individuals often rely on existing where no one is left behind due to color vision
video players and tools with certain accessibility deficiencies. First, ensure to have OpenCV installed on
features. The disadvantages typically stem the system. To install it use a package manager or by
from limitations in making video content fully building it from source, on your platform and
accessible to color blind individuals. Here are some programming language. Use OpenCV to open the video
common challenges and disadvantages: depending on the source. For each frame in the video,
the color adjustment needs to be appliedt. OpenCV
Many existing video players do not offer advanced color provides extensive tools for frame manipulation, such as
customization features for adjusting video colors to cater changing color spaces, filtering, and pixel-wise
to different types and degrees of color blindness. This operations.
limitation can result in color blind viewers struggling to
discern specific elements in videos. Some video players Implement color correction algorithms that adapt colors
that claim to have color correction features may not in each frame to make them more distinguishable for
always produce satisfactory results. The target audience color blind viewers. Image processing techniques can be
may struggle to adapt video colors to the unique needs utilized to modify the color information in each frame.
of color blind individuals, leaving some content still
difficult to interpret. Methodology:
1. COLOR BLINDNESS TESTING :
Software Requirement Specification: Color blindness testing software is designed to assess an
A System Requirements Specification (abbreviated SRS individual's color vision and identify the type and
when need to be distinct from a Software Requirements severity of color vision deficiencies. Typically, such
Specification SRS) is a structured collection of software presents a series of images or patterns to the
information that embodies the user, each containing a range of colors. The user is
requirements of a system. A business analyst, instructed to respond to specific questions or tasks
sometimes titled system analyst, is responsible for related to the colors within these images. The software
then evaluates the user's responses and analyzes their
ability to perceive and differentiate between colors. It
analysing the business needs of their clients and may classify the type of color blindness, such as
stakeholders to help identify business problems and protanopia, deuteranopia, tritanopia, or other forms,
propose solutions. based on the responses and their accuracy. The software
Within the systems development life cycle domain, the
BA typically performs a liaison function between the
business side of an enterprise and the information may also indicate the severity of the condition, allowing
technology department or external service providers . users and healthcare professionals to better understand
Software requirements specification establishes the basis the extent of color vision deficiency. Additionally, some
for an agreement between customers and contractors or software may offer customization options to adapt the
suppliers. Software requirements test to the user's preferences, accommodating various
specification permits rigorous assessment levels of difficulty and specific color combinations.
of requirements before design can begin and reduces
These software tools provide an efficient and accessible YouTube video URL and a save directory or the path to
means for assessing color blindness, which can be a local video file. After obtaining the video source, the
particularly valuable for self- assessment, educational script initializes the video capture using OpenCV and the
purposes, and identifying potential accommodations for media player for audio playback. It also defines
color blind individuals. functions for simulating protanopia and tritanopia by
altering specific color ranges in each frame of the video.
2. IMPORTANT OF COLOR BLINDNESS TEST: The script enters a loop where it processes the video
Taking a color blindness test is important for several frame by frame. It reads each
reasons. First and foremost, it allows individuals to frame using OpenCV, applies the selected color
understand and recognize any deficiencies in their color blindness simulation function to the frame, and displays
vision. This knowledge is crucial because color vision the modified frame in a window. The loop continues
plays a significant role in our daily lives, from until the user presses 'q' or the video ends. Throughout
interpreting traffic signals and maps to enjoying art and the process, the script maintains the synchronization of
nature. By identifying video and audio, ensuring that both elements play
color blindness early, individuals can adapt and find simultaneously. It calculates the frame time based on the
practical solutions to navigate a world that often relies video's frames per second (FPS) to maintain real-time
on color-coded information. playback.
Additionally, color blindness testing is essential for To summarize, this code serves as a user-friendly
various professions where accurate color perception is application for playing and modifying video content to
critical, such as in healthcare (interpreting medical make it more accessible for color blind individuals. The
images and charts), aviation (understanding cockpit choice of color blindness simulation and the video
displays), and the military (distinguishing between source can be easily configured, and the script processes
signals and maps). Not knowing one's color blind status each frame in real-time, providing a practical tool for
can have safety implications in such fields. color vision testing and accessibility enhancement.
Moreover, color blindness tests can assist educational
institutions in accommodating color blind students by 4. ALGORITHM:
providing alternative materials and learning approaches. The algorithms and functionality used in the provided
It can also aid employers in making workplaces more Python script, which allows users to play and modify
inclusive by adjusting the colors of graphics, charts, and video content based on the selected type of color
user interfaces for color blind employees. blindness.
In a broader context, taking color blindness tests can The script begins by importing the necessary libraries,
raise awareness about color vision deficiencies and including OpenCV for video processing, ffpyplayer for
audio handling, and other libraries for user interaction
promote understanding and empathy among individuals and video downloading. It also defines constants and
and communities. It underscores the importance of user input options for display modes (YouTube or local
designing accessible and inclusive content, making the file) and types of color blindness (protanopia,
world more navigable and enjoyable for everyone,
regardless of their color vision abilities. deuteranopia, or tritanopia). User inputs are collected
using the questionary library to streamline the user
3. APPROACH: experience.
The provided code is a Python script designed to play The user is prompted to select the source of the video,
and modify video content based on the type of color either from YouTube or a local file. If the YouTube
blindness selected by the user. The script utilizes the option is chosen, the user provides a video URL and a
OpenCV library for video processing and the directory for saving the video. The script then calls a
`ffpyplayer` library for audio handling. It also function (download_video) to download the video and
incorporates user input for the choice of video source obtain the path to the downloaded file. If the local file
(YouTube or local file) and the type of color blindness option is selected, the user is prompted to input the path
(protanopia or tritanopia). to the local video file. The selected video source is
The script begins by importing necessary libraries and initialized using OpenCV's cv2. VideoCapture, and an
defining constants such as the aspect ratio for font audio player is set up using the MediaPlayer library to
scaling and available display modes (YouTube or local ensure synchronized video and audio playback.
file) and types of color blindness (protanopia, The script includes two key functions for simulating
deuteranopia, or tritanopia). It uses the color blindness:
`questionary` library to present user-friendly prompts 1. simulate_protanopia_to_normal_color: Function
for these choices. Depending on the selected display simulates protanopia and deuteranopia by modifying the
mode, the script either prompts the user to input a colors in each frame of the video. It first defines specific
color ranges for red and green colors and then creates
masks for these colors. Pixels falling within the red and
green color ranges are replaced with a color like purple, 2. simulate_tritanopia_to_normal`: For simulating
making the video more accessible to individuals with tritanopia, this function adjusts the colors in the frames.
these types of color blindness. It converts blue to red and redistributes yellow, a mix of
red and green, to green, addressing the unique
characteristics of tritanopia.
2. simulate_tritanopia_to_normal: This function
The code determines the frames per second (FPS) of the
simulates tritanopia by transforming the colors in the
video to achieve real-time playback and handles
video frames. It creates a copy of the input frame and
situations where FPS information is not available. It
changes blue to red by swapping the red and blue
maintains synchronization between audio and video
channels. Additionally, it converts yellow (a mix of red
frames.
and green) to green by distributing the color between the
The architecture culminates in a real-time video
red and green channels. This transformation addresses
processing loop that reads each frame, applies the
the unique color vision deficiencies associated with
appropriate color correction function according to the
tritanopia.
user's selected type of color blindness, and displays the
The script calculates the frames per second (FPS) of
modified frame using OpenCV's `cv2. imshow`. The
the video and uses this information to determine the
loop continues until the user decides to exit (by pressing
frame time, ensuring that the video is displayed in real-
'q') or the video playback concludes.
time. If the FPS is not available (0. 0), the script defaults
To summarize, this architecture delivers a
to a frame time of 0. 0333 seconds, equivalent to 30
comprehensive video processing solution that caters to
frames per second (1/30).
the needs of individuals with color vision deficiencies.
It offers an interactive and user-friendly approach,
V. ARCHITECTURE making video content more accessible and enhancing the
viewing experience by simulating specific color
The provided code represents an architecture for a
blindness types.
video processing application designed to enhance the
viewing experience for individuals with color vision VI. IMPLEMENTATION
deficiencies, including protanopia, deuteranopia, and
tritanopia. It incorporates several key components and Visual Studio Code, sometimes known as VS Code, is a
user interactions to achieve this goal. powerful and versatile code editor that has swept the
At its core, the code employs Python libraries such as development industry. It was created by Microsoft and
OpenCV, ffpyplayer, pytube, and questionary to handle is notable for its features that are extensive and cross-
video processing, audio playback, video downloading, platform compatibility and a wide range of language
and user interaction. Users are presented with a user- support making it a popular choice among developers
friendly interface to select the source of the video (either worldwide.
from YouTube or a local file) and specify their type of The VS Code Marketplace is a goldmine of resources.
color blindness. Extensions that expand its functionality. Developers
The architecture begins by collecting user input and have access to thousands of additions developed by the
making decisions based on their choices. If the user opts community to customize the editors should tailor their
for a YouTube video, the code prompts for a video URL work to their clients' precise requirements. Whether it is
and a directory to save downloaded video, then utilizes extra support for several languages, version control
the pytube library to download the video. integration, or there is most certainly an addon available
for custom themes.
Alternatively, if the user chooses a local file, and be VS Code is all about customization. Users can
prompted to input the path to the video. The video customize their editor with themes, keybindings, and
source is then loaded using OpenCV, and audio settings to create a coding environment that is tailored to
synchronization is achieved through the ffpyplayer their needs and process. This adaptability is a major
library, ensuring that the audio and video playback reason for the editor's appeal.
remain aligned.
The critical components are the two color correction Installing Node Js:
functions: Step 1: To download Node Js visit the website
1. simulate_protanopia_to_normal_color`: https://nodejs. org/en/download and click the
This function transforms colors in video frames to "DOWNLOAD" link under the Community Section.
simulate protanopia and deuteranopia. It defines specific Step 2: Install Node. js and NPM from Browser. Once
color ranges for red and green and replaces them with a the installer finishes downloading, launch it.
shade of purple, enhancing accessibility for users with
these specific color vision deficiencies. Step 3: Verify Installation.
Back end Development: VII. RESULTS & DISCUSSION
The project aimed at enhancing video accessibility for
color-blind viewers using Python, you'll need several First, let us have a look at the project's User Interface.
libraries and tools. Here's a list of the libraries and These are the screenshots of project outputs.
dependencies mentioned, along with some additional
ones that are useful:

1. OpenCV (Open-Source Computer Vision Library):

OpenCV is essential for working with images and


videos. Use it to process, modify, and analyze video
frames.
Installation: To install OpenCV use pip: pip install FIg.1 Home page for color blindness test (Image source:
opencv-python [Jostien/Pinterest], [2016])

2. Pytube (YouTube video download): The observation that the color of the Lamborghini
appears to change from red to pink in the context of
Pytube is a Python library for downloading videos from addressing color vision deficiencies, specifically red-
YouTube.
Installation: To install Pytube use pip: pip install pytube
green color blindness (protanopia), suggests several
3. NumPy (Numerical Python): important points. First and foremost, it underscores the
effectiveness of the color transformation algorithms
NumPy is a fundamental package for scientific employed in your project. These algorithms have
computing with Python. It's useful for array operations successfully altered the color, making it distinguishable
and numerical computations. for individuals with protanopia.
Installation: To install NumPy use pip: pip install numpy

4. Questionary (for user interaction):

Questionary is a Python library for building interactive


command-line interfaces with a Question/Answer
format.
Installation: To install Questionary use pip: pip install
questionary
Fig.2 Input Video screen shot (Image source:
[Carslegacy/YouTube], [2019])
5. DownloadVid (Custom tool for downloading
videos): This result also suggests that the color transformation
significantly positively influences viewers with
It appears that "DownloadVid" is a custom tool or script protanopia, alleviating challenges in accurately
you're using in your project. You'll need to provide the perceiving red and green colors. The shift from red to
details and installation instructions for this tool if it's not pink likely improves the visibility and distinction of the
a publicly available library. Lamborghini's color, creating a more inclusive and
Additionally, to consider using other libraries such as enjoyable viewing experience for individuals with this
scipy for advanced scientific computing, matplotlib for particular type of color vision deficiency.
data visualization, and scikit-learn to implement machine
learning algorithms. The choice of additional libraries Furthermore, it's crucial to emphasize that this
depends on the specific requirements of your project. transformation is just one example of how color
Make sure to create a virtual environment for your transformation can improve accessibility for those with
project to manage dependencies effectively. Use the protanopia. Your project's strength lies in its ability to
venv module or a tool like conda for this purpose. offer customization options, allowing users to fine-tune
color transformations to suit their preferences and
This ensures that your project remains isolated from your unique needs. This flexibility is essential, as individuals
system's global Python environment and helps avoid with color vision deficiencies may have varying degrees
conflicts between different projects with different of sensitivity and specific preferences when it comes to
dependencies. color adjustments.
First of all, deepest appreciation to Mr. SK Khaleelullah,
who served as the project’s mentor. Next, express
heartfelt gratitude to Vignan Institute of Technology and
Science, Hyderabad, and especially the Department of
Information Technology for providing the team with all
the tools and resources, help, and direction required to
finish the project.
Fig.3 Output Video screen shot (Image source:
[Carslegacy/YouTube], [2019])
REFERENCES
In conclusion, the project's success in transforming the
[1] Joel Eliza Jacob. “Video Enhancement and Low-
Lamborghini from red to pink is a tangible illustration of Resolution Facial Image Reconstruction for Crime
its potential to address red-green color blindness Investigation.” Lecture Notes on Data Engineering and
(protanopia). By making digital video content more Communications Technologies, vol 57. Springer,
accessible and perceivable, the project contributes to a Singapore (2021).
[2] Liu, B. “Real-Time Video Edge Enhancement IP Core
more inclusive and enjoyable viewing experience for Based on FPGA and Sobel Operator.” Advances in
individuals with color vision deficiencies. It Intelligent Systems and Computing, vol 928. Springer,
demonstrates the power of technology to mitigate the Cham (2019).
impact of color blindness and enable individuals to [3] Tomizawa, G., Ban, Y., Takahashi, K., Mieno, H. 1985.
"Color Blindness Tests by Color Graphic Display." In
engage with digital content effectively and comfortably. Computer Graphics, edited by T.L. Kunii, 103-118.
Springer, Tokyo.
VIII. CONCLUSION [4] Delgado-Cedeño, D., and M. Chacón-Rivas. 2021. "Image
Adaptation Based on Color Saturation and Linear Matrices
for People with Deuteranopia-Type Color Blindness." In
The provided software represents an innovative and user- Universal Access in Human-Computer Interaction. Design
friendly solution for individuals with color vision Methods and User Experience. HCII 2021, edited by M.
deficiencies. By seamlessly integrating technologies Antona and C. Stephanidis, Lecture Notes in Computer
Science, vol. 12768. Springer, Cham.
such as OpenCV, ffpyplayer, pytube, and questionary, it [5] Kanakhara, K., D. Bhattarai, and S. Sarcar. 2023. "Color
empowers users to choose between YouTube and local Blind: A Figma Plugin to Simulate Colour Blindness." In
video sources while catering to specific color blindness Human-Computer Interaction – INTERACT 2023, edited
types, including protanopia, deuteranopia, and by J. Abdelnour Nocera, M. Kristín Lárusdóttir, H. Petrie,
A. Piccinno, and M. Winckler, Lecture Notes in Computer
tritanopia. Science, vol. 14145. Springer, Cham.
The software's architecture enables real-time color
correction and simulation of color blindness, enhancing
the accessibility of video content. It does so by applying
dedicated color correction functions tailored to each type
of color deficiency. For instance, individuals with
protanopia or deuteranopia experience improved
visibility as red and green colors are transformed into a
distinctive shade of purple, while those with tritanopia
witness blue-to-red and yellow-to-green
transformations.
Additionally, the software ensures that audio and video
remain synchronized throughout the playback, offering a
seamless and immersive viewing experience. This
innovation extends its reach beyond conventional
accessibility solutions, making video content more
inclusive and enjoyable for individuals with color vision
deficiencies.
Overall, this software exemplifies a forward- thinking
approach to addressing the needs of diverse audiences.
It bridges the accessibility gap in video content and
paves the way for a more inclusive and equitable digital
environment where everyone can enjoy videos
regardless of their unique color perception challenge.

ACKNOWLEDGEMENT

You might also like