wakeeys / PaddleOCR-Android

An android demo based on photo clipping and PaddleOCR for text recognition , and the deployment of PaddleOCR in Android as an independent module is explained in detail.
2 stars 0 forks source link

How to use English models ? #1

Open mohammedX6 opened 3 weeks ago

mohammedX6 commented 3 weeks ago

When I try to use the English models

Detection : https://paddleocr.bj.bcebos.com/PP-OCRv3/multilingual/Multilingual_PP-OCRv3_det_slim_infer.nb

Recongntion I am using :https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_rec_slim_infer.nb

the app crashed with this error : code -1 (SI_QUEUE), fault addr -------- Abort message: '[F 9/24 10: 5:33.741 ...0/lite/Paddle-Lite/lite/api/light_api.cc:66 Build] Unknown model type' x0 0000000000000000 x1 0000000000006e82 x2 0000000000000006 x3 0000007fe2b98330 x4 2e6473686b2e2f2d x5 2e6473686b2e2f2d x6 2e6473686b2e2f2d x7 7f7f7f7f7f7f7f7f x8 00000000000000f0 x9 00000070e1c92090 x10 0000000000000001 x11 00000070e1ce5058 x12 0000007fe2b96c90 x13 0000000000000060 x14 0000007fe2b96d40 x15 0000023817c08cf9 x16 00000070e1d52d08 x17 00000070e1d26e90 x18 00000000000003fd x19 0000000000006e82 x20 0000000000006e82 x21 00000000ffffffff x22 0000007fe2b985d8 x23 0000007fe2b984c0 x24 0000007fe2b98518 x25 0000007fe2b984b0 x26 0000000000000000 x27 0000007fe2b98c10 x28 0000007fe2b989b0 x29 0000007fe2b983b0 lr 00000070e1cd69b8 sp 0000007fe2b98310 pc 00000070e1cd69e4 pst 0000000000001000

wakeeys commented 1 week ago

The English recognition model has a different structure than the Chinese one, including inconsistent dimensions in the full connectivity layer. Therefore, it is recommended that you still use the Chinese recognition model, which includes both English and Chinese recognition.

mohammedX6 commented 6 days ago

Thank you for the replay , but when i run your code, the extracted text are in chineese , and it's only detect numbers