(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.pyIf you want to specify the input image, put the image path after the --input option.
$ python3 ndlocr_text_recognition.py --input IMAGE_PATHIt 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 --vertPytorch
ONNX opset=11
