(Image from 東洋学芸雑誌 第1号)
- Recognized text
recognized: 號壹第誌雜勢學洋東
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample image,
$ python3 ndlocr_text_recognition.py
If you want to specify the input image, put the image path after the --input
option.
$ python3 ndlocr_text_recognition.py --input IMAGE_PATH
It automatically recognizes whether the text is written vertically or horizontally, but you can also specify that it is written vertically with the --vert
option.
$ python3 ndlocr_text_recognition.py --vert
Pytorch
ONNX opset=11