capture an image android

asked 2018-02-07 13:12:49 -0500

wandCoz gravatar image

updated 2018-02-07 13:28:26 -0500

Is there a tutorial anywhere that describes clearly the steps necessary to capture an image , using openCV4Android ? I have looked at this S/O post

https://stackoverflow.com/questions/4... which references this tutorial

https://docs.nvidia.com/gameworks/con... as an example. In this example it States :

On receiving a new frame, the activity class does not process it in any way, and simply returns it, displaying as:

 public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
      return inputFrame.rgba();
 }

I placed a breakpoint on this which never gets hit, however I imagine that inputFrame.rgba(); is what im looking for. Ie I think that is the image and i need to do processing on a single image not the feed.

I do not wish to write the image , I will do some processing on this image in memory to extract data , that data will be written to a database and the image discarded.

At present I have an application which displays the camera feed. To do this i simply implement CameraBridgeViewBase.CvCameraViewListener2

edit retag flag offensive close merge delete

Comments

All android samples are here

LBerger gravatar imageLBerger ( 2018-02-07 13:29:48 -0500 )edit

Hi , thank you for your response, I am looking at the tutorials and i do not not see where a photo is taken?

wandCoz gravatar imagewandCoz ( 2018-02-07 14:05:44 -0500 )edit