# Can you Read This? (Or: how I Improved Text Readability on the Web...)

- Speaker: [Asya Frumkin](/wiki/speakers/asya-frumkin.md)
- Event: [Reversim Summit 2021](/wiki/years/2021.md)
- Video: https://www.youtube.com/watch?v=uKJ1O5iRyRc
- Transcript: [/transcripts/2021/49-uKJ1O5iRyRc.md](/transcripts/2021/49-uKJ1O5iRyRc.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [UX Design](/wiki/topics/ux-design.md), [Python](/wiki/topics/python.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares a personal journey with visual impairment and how it inspired the development of a solution to detect unreadable text on complex web backgrounds. Initially trying out-of-the-box OCR tools like Tesseract and EasyOCR, the speaker encountered accuracy issues and a lack of debuggability. By shifting perspective, breaking down the problem into smaller parts, using only the Craft model for text detection, and carefully balancing subjective and objective datasets, the speaker built a custom binary classifier for character readability. This approach was successfully integrated into an automated site scanner tool to improve web accessibility for millions of users with visual impairments.

## Key points

- [0:00](https://www.youtube.com/watch?v=uKJ1O5iRyRc) The speaker introduces themselves and shares personal experiences with visual impairment due to albinism.
- [4:01](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=241s) Millions of people worldwide suffer from visual impairments, making web accessibility a crucial issue.
- [6:44](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=404s) The initial prototype used Tesseract OCR to extract text from images and compare it against original text for classification.
- [9:44](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=584s) Tesseract works well for documents with black text on white backgrounds, but struggles with low-resolution web data and small text.
- [12:13](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=733s) Testing alternative tools like EasyOCR showed better performance in natural scenes, but still struggled with special characters and specific contrasts.
- [18:24](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=1104s) Instead of relying on monolithic OCR black boxes, the speaker changed perspective to design a custom modular solution.
- [21:32](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=1292s) The final solution breaks the problem down, uses the Craft model for character bounding boxes, and applies a custom binary classifier trained on balanced datasets.
- [23:13](https://www.youtube.com/watch?v=uKJ1O5iRyRc&t=1393s) The technology was integrated into a site scanner tool, revealing that unreadable text is common in visual-heavy websites and affects all users.

## Takeaways

- Break complex computer vision and machine learning problems down into smaller, manageable sub-components instead of relying entirely on black-box models.
- Carefully curate and balance datasets when dealing with subjective classifications like text readability.
- Consider web accessibility from the design and development phases to make digital content inclusive for users with visual impairments.

## Questions this talk answers

- How can you evaluate text readability on complex or gradient web backgrounds automatically?
- What are the limitations of using standard OCR libraries like Tesseract for web image analysis?
- How do you train a custom binary classifier for character readability using subjective and objective labels?

## Technologies

Python, PyTorch, Tesseract, EasyOCR

## Tags

accessibility, computer vision, image processing, machine learning, ocr, python
