rmtheis / android-ocr

Experimental optical character recognition app
Apache License 2.0
2.23k stars 894 forks source link

Where to write the code for opening new activity when we get result after ocr #45

Closed manpreetsinghsodhi closed 8 years ago

manpreetsinghsodhi commented 8 years ago

Hi rmtheis, I have successfully used OCR demo in my app and in this demo , the result is displayed on camera screen itself. My motive is i need to show the result ocr text on another activity. So where in CaptureActivity.java (or any other class) i should write the code of intent fire since i tried to use two lines of code to open activity many places in the demo but crashed. Kindly help

agnamc9 commented 8 years ago

Hi ! The result ocr text is shown in boolean handleOcrDecode(OcrResult ocrResult) method with ocrResult.getText()

rmtheis commented 8 years ago

It's up to you. agnaramonboris' suggestion is good.