필터 지우기
필터 지우기

can I use plus-minus sign in CharacterSet while reading text with ocr function?

조회 수: 1 (최근 30일)
제파 양
제파 양 2024년 4월 18일
댓글: 제파 양 2024년 4월 19일
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
Angelo Yeo 2024년 4월 18일
Here is my reproduction:
img = imread("image.png");
imshow(img)
txt = ocr(img, "CharacterSet", "123456±+-");
txt.Text
ans =
'123+456 '
제파 양
제파 양 2024년 4월 19일
that is what I've done exactly same. captured from PPT, input into image and resulting it.
thanks for the great reproduction.

댓글을 달려면 로그인하십시오.

답변 (1개)

Angelo Yeo
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.
  댓글 수: 1
제파 양
제파 양 2024년 4월 19일
oh. Thanks for the workaround.
it will take a bunch of time for the training, however the result can be fruity. i will try.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by