我正在嘗試使用tesseract和本教程http://gaut.am/making-an-ocr-android-app-using-tesseract/中的代碼讀取阿拉伯語的Android OCR,但每次修改代碼並將訓練數據更改爲阿拉伯語時,應用程序都會關閉而不會出現任何錯誤消息。我的logcat如下android tesseract ocr
06-25 13:14:02.341: I/DEBUG(31): bef6ceb4 66206e69
06-25 13:14:03.331: I/BootReceiver(61): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
06-25 13:14:03.361: D/Zygote(33): Process 335 terminated by signal (11)
06-25 13:14:03.371: I/ActivityManager(61): Process com.datumdroid.android.ocr.simple (pid 335) has died.
06-25 13:14:03.371: I/WindowManager(61): WIN DEATH: Window{4054f8f8 com.datumdroid.android.ocr.simple/com.datumdroid.android.ocr.simple.SimpleAndroidOCRActivity paused=false}
06-25 13:14:03.441: I/WindowManager(61): Setting rotation to 0, animFlags=1
06-25 13:14:03.641: I/ActivityManager(61): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=6}
06-25 13:14:04.511: W/IInputConnectionWrapper(344): showStatusIcon on inactive InputConnection
06-25 13:14:06.201: D/dalvikvm(61): GC_EXPLICIT freed 418K, 50% free 4160K/8263K, external 3125K/3903K, paused 77ms
06-25 13:18:06.902: D/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
您是否正在更改URL? –
不,我將字符串值從eng更改爲ara和培訓數據文件 – MohamedAli