In this tutorial we will learn how details are identified from images by reading the characters present on it. This is called Optical Character Recognition (OCR).
이 튜토리얼에서, we will learn 얼마나 details가 identified되는지 from 이미지들로부터
by 읽음으로써 the 글자들을 나타나는 on it.
This opens door for many applications like to automatically read the information from a business card, recognize a shop from its name board or recognize sign boards on road and much more.
Some of us might have already experienced these features through Google Lens,
so today we will build something similar using an Optical Character Recognition (OCR) Tool from Google Tesseract-OCR Engine along with python and OpenCV to identity characters from pictures with a Raspberry Pi.
오늘날 우린 will 구축할것이다. something 유사한 using an OCR 툴을 from Google Tesseract-OCR 앤진으로부터 along with 파이선 and 오픈CV to identify 글자들을 from 사진으로부터 with RPi로
Pre-requisites
As told earlier we will be using the OpenCV Library to detect and recognize faces. So make sure to install OpenCV Library on Raspberry Pi before proceeding with this tutorial.
일찍이 말했듯이 우린 will be using the OpenCV Library
so make sure to install OpenCV Library on it
before proceeding진행하기전에 with this tutorial.
This tutorial will not explain how exactly OpenCV works, if you are interested in learning Image processing then check out this OpenCV basics and advanced Image processing tutorials.
Installing Tesseract on Raspberry Pi
to수행하기위해 OCR을 on RPi에서
우린 have to install the Tesseract OCR앤진을 on Pi.
To do this, we have to first 구성해야한다. the Debian Package를 (=dpkg)
which will help us to install the Tesseract OCR.
사용해라 the below 명령어를 on the terminal window to 구축하기위해 Debian패키지.
Then we can proceed with installing the Tesseract OCR (Optical Character Recognition) using the apt-get option. The command for the same is given below.
Your terminal window will look something like below, it will take around 5-10 minutes for the installation to complete.
Simple Character Recognition Program on Pi
Since we have already installed the Tesseract OCR and Pytesseract packages in our PI.
We can quickly write a small program to check how the character recognition is working with a test image.
The test image I used, the program and the result can be found in the below image.
댓글 없음:
댓글 쓰기