Skip to content

tammarut/running-plates-ocr

Repository files navigation

The Running Bib(Machine learning)

Read bunch numbers from the runner bibBIB OCR

Getting Started

First of all, we need some prerequisites before we can run these project.

Prerequisites

Tesseract OCR here

  • Tesseract 4.x (my local is "tesseract 4.1.1")
  • eng.traineddata (model for tesseract)
$ tesseract --version
tesseract 4.1.1
 leptonica-1.75.3
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0

 Found AVX2
 Found AVX
 Found FMA
 Found SSE

Python Packages

  • pytesseract
  • opencv(cv2)
  • PIL or Pillow
  • numpy

Run

Take your test-images to directory images

images/your-test-images-directory

Take your answer to direcotory

images/answer.json

Set path in main.py

path = 'images/your-test-image-directory'

Set answer path to check correct/wrong in answer.py

path_answer = 'images/answer.json'

and Run only main.py

python main.py

About

Read number(OCR) on runner's bib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages