I am busy implementing Abbyy OCR software within an Android app. All I have is the Sample app, which works fine, but it is quite a lot of work of isolating the functionality for business card only. Could somebody give a pointer towards a simplest possible piece of code to get a photo on an Android device of a business card scanned? Thanks in advance!
P.S. the trouble I have (for starters) is that my _imageUri differs slightly from the one from the Sample app. My path contains '2%F' symbols, where the one in the Sample app does not. So how do you correctly setup a Uri?
This is how I call the Sample code:
Builder builder = new Uri.Builder(); builder.scheme("content"); builder.authority("media"); builder.appendPath("/external/images/media/579"); Uri _imageUri = builder.build(); RecognitionActivity.start( this.getActivity(), _imageUri );
This is how my Uri looks in the debugger:
The difference with the Uri in the Sample app is for path only; there, both decoded & encoded say: /external/images/media/579
My app says: decoded="NOT CACHED" encoded="/%2Fmedia/%2Fexternal/%2Fimages/%2Fmedia/%2F579"
Not sure of course if this is the reason for the exception I get: nullpointer in Choreographer.doCallbacks (line 558)
Any help would be appreciated.