(Insurance)
How to Generate Text
from Images with
Python
https://www.searchenginejournal.com
/generate-text-from-images-with-
python/324001/
In Memory of Hamlet Batista
WHY SHOULD
YOU CARE
#WTSFest @mira_inam
We have a duty to not just
promote inclusivity for all
races but inclusivity for
all abilities by eliminating
unnecessary barriers.
#WTSFest @mira_inam
ACCESSIBILITY STATS
There are14.1 million disabled people in
the UK (that’s 1 in 5 people).
Disability prevalence by age group, 2008/09 to 2018/19, United Kingdom
#WTSFest @mira_inam
An estimated 2 million people are
living with sight loss
Impairment types reported by disabled people
#WTSFest @mira_inam
Disabled people are over 50%
more likely to face barriers to
accessing digital and online
services than non-disabled people.
Big Hack
#WTSFest @mira_inam
The 2021 WebAIM analysis of 1
million homepages in the UK shows
that 97.4% of homepages had
detectable accessibility errors.
April 2021, WebAIM
#WTSFest @mira_inam
Most Common Web Content Accessibility
Guidelines (WCAG) Errors
o Low contrast text
o Missing alternative text
o Empty links
o Missing form input label
o Empty buttons
WebAIM
#WTSFest @mira_inam
Missing alternative text accounts for
61% of all homepage accessibility
errors
April 2021, WebAIM
#WTSFest @mira_inam
Halfof the images missing
alternative text were linked images,
resulting in links that were not
descriptive.
April 2021, WebAIM
#WTSFest @mira_inam
We can expect over one third
of the images on the web to have
missing, questionable, or repetitive
alternative text
April 2021, WebAIM
#WTSFest @mira_inam
It is getting better, but we can do more
Most common types of WCAG 2 failures
#WTSFest @mira_inam
The Click-Away Pound
£17.1 billion Potential
re-directed spending
because of inaccessible
websites
#WTSFest @mira_inam
HOW TO MAKE YOUR IMAGES
ACCESSIBLE
Image Type Purpose Alt Text Example
Functional Initiate Actions Describe the Action Printer Graphics
Decorative No Information Null (not empty) Text illustrations
Informational Conveys information Convey meaning Explanatory Images
#WTSFest @mira_inam
SPEEDING UP THE PROCESS WITH
PHYTON
An HTTP library written in
Python which allows you to
send HTTP requests using
Python
Requests 2.27.1
#WTSFest @mira_inam
Pillow (PIL Fork)
Library required for
image processing.
#WTSFest @mira_inam
Scikit-image
Using NumPy arrays for
retrieving the geometry of the
image and the number of pixel
and statistical information
about image intensity values.
#WTSFest @mira_inam
TORCHVISION
Provides functions to
reading and writing
video and images.
#WTSFest @mira_inam
Powerful data structures
for data analysis, time
series, and statistics
Pandas Library
#WTSFest @mira_inam
Image Source: Detection and Segmentation
Mask R-CNN for object detection and segmentation -
Classifies each pixel into pre-defined categories
#WTSFest @mira_inam
GENERATING YOUR ALT TEXT
https://colab.research.google.com/drive/16QaG8yGTXcinC9
DltvCJ0EsSmQ_K85U8
- Image Capiton MIA.ipynb
Please create your own copy
Upload image file here.
❑File name Captions.
❑Save as a csv file.
Click Run all
#WTSFest @mira_inam
#WTSFest @mira_inam
#WTSFest @mira_inam
#WTSFest @mira_inam
#WTSFest @mira_inam
❑Create your own copy
❑Takes time to run depending on file size.
❑Once is finishes running check download folder.
❑ (csv) File will be downloaded as image (file name).
#WTSFest @mira_inam
#WTSFest @mira_inam
More on Reading on Accessibility
• Make Your Content More Accessible - https://bighack.org/7-easy-ways-
to-make-your-content-more-accessible/
• Web Accessibility of the Top Research-Intensive Universities in the UK -
https://journals.sagepub.com/doi/full/10.1177/21582440211056614
• Introduction to Web Accessibility by Jessica James
https://erudite.agency/insights/introduction-web-accessibility/
• Google Image Best Practice -
https://developers.google.com/search/docs/advanced/guidelines/google-
images
Resource For Learning About Python
• Python For Beginners -
https://www.pythonforbeginners.com/requests/using-requests-in-
python
• FreeCode Camp (Learn Python - Full Course for Beginners) -
https://www.youtube.com/watch?v=rfscVS0vtbw
• Daniel Heredia’s Python for SEO Newsletter-
https://www.danielherediamejias.com/newsletter/?nm=confirmation
&nk=524-a2240a30d2544ab64a2b88ff74a481d7
THANK YOU Eniola Olaleye @galileoen
#WTSFest @mira_inam

Speed up alt text generation without coding skills

  • 1.
  • 2.
    How to GenerateText from Images with Python https://www.searchenginejournal.com /generate-text-from-images-with- python/324001/ In Memory of Hamlet Batista
  • 3.
  • 4.
    We have aduty to not just promote inclusivity for all races but inclusivity for all abilities by eliminating unnecessary barriers. #WTSFest @mira_inam
  • 5.
  • 6.
    There are14.1 milliondisabled people in the UK (that’s 1 in 5 people). Disability prevalence by age group, 2008/09 to 2018/19, United Kingdom #WTSFest @mira_inam
  • 7.
    An estimated 2million people are living with sight loss Impairment types reported by disabled people #WTSFest @mira_inam
  • 8.
    Disabled people areover 50% more likely to face barriers to accessing digital and online services than non-disabled people. Big Hack #WTSFest @mira_inam
  • 9.
    The 2021 WebAIManalysis of 1 million homepages in the UK shows that 97.4% of homepages had detectable accessibility errors. April 2021, WebAIM #WTSFest @mira_inam
  • 10.
    Most Common WebContent Accessibility Guidelines (WCAG) Errors o Low contrast text o Missing alternative text o Empty links o Missing form input label o Empty buttons WebAIM #WTSFest @mira_inam
  • 11.
    Missing alternative textaccounts for 61% of all homepage accessibility errors April 2021, WebAIM #WTSFest @mira_inam
  • 12.
    Halfof the imagesmissing alternative text were linked images, resulting in links that were not descriptive. April 2021, WebAIM #WTSFest @mira_inam
  • 13.
    We can expectover one third of the images on the web to have missing, questionable, or repetitive alternative text April 2021, WebAIM #WTSFest @mira_inam
  • 14.
    It is gettingbetter, but we can do more Most common types of WCAG 2 failures #WTSFest @mira_inam
  • 15.
    The Click-Away Pound £17.1billion Potential re-directed spending because of inaccessible websites #WTSFest @mira_inam
  • 16.
    HOW TO MAKEYOUR IMAGES ACCESSIBLE
  • 17.
    Image Type PurposeAlt Text Example Functional Initiate Actions Describe the Action Printer Graphics Decorative No Information Null (not empty) Text illustrations Informational Conveys information Convey meaning Explanatory Images #WTSFest @mira_inam
  • 18.
    SPEEDING UP THEPROCESS WITH PHYTON
  • 19.
    An HTTP librarywritten in Python which allows you to send HTTP requests using Python Requests 2.27.1 #WTSFest @mira_inam
  • 20.
    Pillow (PIL Fork) Libraryrequired for image processing. #WTSFest @mira_inam
  • 21.
    Scikit-image Using NumPy arraysfor retrieving the geometry of the image and the number of pixel and statistical information about image intensity values. #WTSFest @mira_inam
  • 22.
    TORCHVISION Provides functions to readingand writing video and images. #WTSFest @mira_inam
  • 23.
    Powerful data structures fordata analysis, time series, and statistics Pandas Library #WTSFest @mira_inam
  • 24.
    Image Source: Detectionand Segmentation Mask R-CNN for object detection and segmentation - Classifies each pixel into pre-defined categories #WTSFest @mira_inam
  • 25.
  • 26.
  • 27.
  • 28.
    Upload image filehere. ❑File name Captions. ❑Save as a csv file.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
    ❑Create your owncopy ❑Takes time to run depending on file size. ❑Once is finishes running check download folder. ❑ (csv) File will be downloaded as image (file name). #WTSFest @mira_inam
  • 36.
  • 37.
    More on Readingon Accessibility • Make Your Content More Accessible - https://bighack.org/7-easy-ways- to-make-your-content-more-accessible/ • Web Accessibility of the Top Research-Intensive Universities in the UK - https://journals.sagepub.com/doi/full/10.1177/21582440211056614 • Introduction to Web Accessibility by Jessica James https://erudite.agency/insights/introduction-web-accessibility/ • Google Image Best Practice - https://developers.google.com/search/docs/advanced/guidelines/google- images
  • 38.
    Resource For LearningAbout Python • Python For Beginners - https://www.pythonforbeginners.com/requests/using-requests-in- python • FreeCode Camp (Learn Python - Full Course for Beginners) - https://www.youtube.com/watch?v=rfscVS0vtbw • Daniel Heredia’s Python for SEO Newsletter- https://www.danielherediamejias.com/newsletter/?nm=confirmation &nk=524-a2240a30d2544ab64a2b88ff74a481d7
  • 39.
    THANK YOU EniolaOlaleye @galileoen #WTSFest @mira_inam