After spending some time, i managed to capture a specific part of the target from the camera screen. I am achieving that by calculating four corners of the target on renderFrame() and then sending those pixels ,width and height to android part.
Everything is working as i want till then. But then when i want to do somethings with the pixels i get from JNI, things started going down...
When i want to create a bitmap and put the captured target image to the screen (bitmap sizes are like 320x240, not big at all) , or when i want to send that btimap to OCR for text recognition(tess-two), the camera frame rate is slowing increadibly down. It is literally like becoming frame by frame, and i tried it even with Samsung galaxy s4 and still the result is the same.
I tried to use AsyncTask for bitmap creation, or OCR but still didnt do an change. The actions are hapening in the GL thread since i call the java method from renderFrame(). EVen i tried the main thread , but expectedly it doesnt do anything good for me too.
Can someone help me about it?