This repository contains text-recognition scripts. They are updates/revisions of the codes described in the following books:
- Nagata and Toyosawa: 実践OpenCV 4 for Python 画像映像情報処理と機械学習, Cutt System, Jan 2021.
- Nagata and Toyosawa: 実践OpenCV 3 for C++ 画像映像情報処理, Cutt System, Sep 2017.
- Kuwai, Toyosawa and Nagata: 実践OpenCV 2.4 for Pythonー映像処理&解析, Cutt System, Jul 2014.
- MNIST handwritten numbers recognition
- East text detector
- Image tilt adjustment using Hough transformation
You need Python (naturally) and the following libraries.
pip install tensorflow # Tensorflow/Keras.
pip install opencv-python # OpenCV for Python.
pip intall numpy # It usually comes with OpenCV.
pip install pillow # Used in MNIST.
pip instll imutils # Used in EAST.