String paths = new String else if (lang.equals(MainActivity. It should be noted that when writing Android programs, you need to copy the trained classification files to Android storage: Step 3: Go to, download the training data in the corresponding language you need (As for whether this data is a template, a neural network, or a classification (I do n’t know), and then put the training data into the asset file directory of the Android project, so files provided by the tess-two project. Part 2: Create your own OCR project, and then reference the tess-two project, so that you can use the API and. The first step: go to download the latest tess-two project and import the envy through eclipse Find the OCRDemo folder Is the corresponding project. Note that this is a collection of projects. If you do n’t want to see the wordy word below, just download my Demo project and just look at the code. The bottom API of tesseract is packaged as a java API that can be directly used by the Android platform, so that direct reference to this project can be directly used for OCR development. In order to facilitate the use of tesseract, there is a project called tess-two on github. Interested friends can refer to: įor most friends, there is no need to directly operate the underlying C language, after all, it is very difficult to debug through JNI calls. If you want to use the Android platform, you need to use the JNI calling mechanism of the Android platform. Without further ado, look at OCR on Android.įor OCR, you need to use some existing sdk, such as tesseract, this is an open source project of Google, it seems that domestic access to this is more strenuous. There are also many processing engineers. I used to think that image processing is difficult to find a suitable job. I always thought about reorganizing the code and optimizing the effect.Īt present, with the domestic Internet fire, it seems that it has also promoted the development and citation of image processing. At that time, the selected topic was OCR related, but the effect was not very good. (Seeing that there are many comments and comments, I can't reply one by one ~)īefore the New Year, Oracle organized an internal programming marathon. Recently, because of work, I haven't written a blog for a long time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |