capture an image android
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
Hi , thank you for your response, I am looking at the tutorials and i do not not see where a photo is taken?
hi WandCoz, I am also having this problem, I cannot take a picture with cameraviewbase and output the image to javacameraview for processing. Can you give me your code for reference. thanks
@Moeptuan please do not post answers here, if you have a question or a comment, thank you.
also, "Can you give me your code" never works here