Code Monkey home page Code Monkey logo

comparison-of-ocr-adas's Introduction

Comparison-of-OCR-ADAS

This repository contains a utility for analyzing the EasyOCR and Tesseract OCR-engines on video streams with road signs with navigation information using the YOLO object recognition model. Before using OCR, images undergo preprocessing, and after that, postprocessing.

Before using this utility, you need to make a .txt file with ground truth data (gtd): each line should have text from only one object and the text from each object should be on one line.

Run it on Linux:

  • git clone https://github.com/Parzival-05/Comparison-of-OCR-ADAS
  • pip install -r requirements.txt
  • apt install tesseract-ocr-rus
  • python3 main.py -v /path/to/video -m /path/to/yolo-model -gtd /path/to/gtd -r /path/to/results

The result of the utility is a .csv file in which its recognition results (if any) are known about each object:

  • Engine ID (0 for EasyOCR and 1 for Tesseract)
  • Text on the object
  • Recognized words
  • The distance at which the text was recognized
  • Recognition time
  • The sum of the Levenshtein distances for each recognized word
  • The number of unrecognized words
  • The number of words on the object
  • The number of recognized words on the object

The results of the analysis

The results showed that although EasyOCR requires large computational resources to extract text, it can provide significantly higher text recognition accuracy than Tesseract, providing good recognition results even in bad weather conditions.


The following video was used for the analysis: https://youtu.be/j_CAOYYs4d0.
Download pretrained model here: https://www.kaggle.com/datasets/notparzival/road-signs-detection-yolov8/.

comparison-of-ocr-adas's People

Contributors

parzival-05 avatar

Watchers

Yurii Litvinov avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.