Error in Recognize Text Using CRAFT Model And OCR Example

7 ビュー (過去 30 日間)
Syukri Yazed
Syukri Yazed 2022 年 3 月 21 日
コメント済み: Syukri Yazed 2022 年 3 月 24 日
Hi.
I would like to know how can I solve the error about the column. I want to detect the text.
I'm using the example in this link:
the error is as in the arttachment. I also give the example of the image.
Can anyone share how to solve the problem?
The error:

採用された回答

Anshika Chaurasia
Anshika Chaurasia 2022 年 3 月 23 日
Hi Syukri,
Try following code to avoid error:
disp(vertcat(output.Words))
The reason for error is that sometime output(i,1).Words contain more than one word. Let's say output(28,1).Words is 2x1 cell and output(27,1).Words is 1x1 cell then the error will be thrown on their horizontal concatenation.

その他の回答 (1 件)

yanqi liu
yanqi liu 2022 年 3 月 22 日
yes,sir,may be check
length(output)
to judge its number
  3 件のコメント
yanqi liu
yanqi liu 2022 年 3 月 22 日
yes,sir,may be just imresize the image and make it more bigger to test ocr
Syukri Yazed
Syukri Yazed 2022 年 3 月 24 日
Thnak you sir

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLanguage Support についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by