can I use plus-minus sign in CharacterSet while reading text with ocr function?
조회 수: 3 (최근 30일)
이전 댓글 표시
i'm trying to use the the values from screen-captured image with using ocr function.
in that text, there is almost numerical values, plus, minus, commas, and plus-minus sign. (which is ±)
i've added the sign into the function like
res = ocr(img, 'CharacterSet','Test1234567890+-,±');
but no luck.
am I allowed to use that character? if there's any method for that, please let me know.
thanks in advance!
댓글 수: 2
Angelo Yeo
2024년 4월 18일
Here is my reproduction:
img = imread("image.png");
imshow(img)
txt = ocr(img, "CharacterSet", "123456±+-");
txt.Text
답변 (1개)
Angelo Yeo
2024년 4월 18일
That's a very good observation! It's unfortunate that the shipped ocr function doesn't work as you expected.
In some cases, to get accurate recognition results, you must train a custom OCR model. For example, when the text in your images use a proprietary font that is significantly different from any of the available fonts, or when OCR results are not what you expect even after trying the troubleshooting steps. For more details on how to train a custom OCR model, see Train Custom OCR Model.
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!