Project 6a - Object detection II, OCR
- James Canova
- Sep 5, 2021
- 1 min read
Project start: 4 January 2022
Project finish: 10 January 2022
Objective: to use optical character recognition (OCR) software to read a vehicle licence plate from an image that has been cropped so it is the only object in the image
The software employed is called pytesseract.
installation:
outside VEnv:
cd $HOME
sudo apt-get install libleptonica-dev
sudo apt-get install tesseract-ocr
sudo apt-get install libtesseract-dev
edit the .bashrc file which is a hidden file in the HOME directory:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/home/james/Public/Projects/myPython36VEnv/bin"
inside VEnv:
(myPython36VEnv) james@myB01:~/Public/Projects$ pip3 install -U pytesseract
The following .zip file contains a Jupyter Notebook program and a test image (to run Jupyter Notebook, type jupyter-notebook):
james@myB01:~/Public/Projects/project_6a$ tree -L 2
├── project_6a_V1.ipynb
└── test_images
└── bc_licence_plate_V0.jpg
If you have any problems or need clarification please contact me: jscanova@gmail.com
Comments