Ask Your Question
0

Android OpenCV "CvCameraViewListener"

asked 2014-05-30 10:12:13 -0600

MrRed gravatar image

updated 2014-05-30 10:17:07 -0600

Hi!

I am trying to make an Android app that makes use of the smartphone camera. So far I have been successful running the Sample Codes provided with the OpenCV Library. However, I noticed that every single one of these codes make the following declaration:

 implements CvCameraViewListener2{...}

The methods implemented are:

public void OnCameraViewStarted(int width, int height)
public void onCameraViewStopped()
public Mat onCameraFrame(CvCameraViewFrame inputFrame)

The problem I have is that the onCameraFrame(CvCameraViewFrame inputFrame) method returns a "Mat" object to be displayed in the screen, and I don't want that. I want to be able to retrieve the frame from the camera and manipulate it without the need of displaying anything on the screen. I thought I could maybe modify the CameraViewBase class, but I a afraid I will mess things up when there might be a simpler and more straightforward solution.

All help and suggestions are welcome. Thanks folks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-30 10:50:56 -0600

MrRed gravatar image

I found a post on StackOverFlow that might b the answer... (http://stackoverflow.com/questions/23...)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-30 10:12:13 -0600

Seen: 344 times

Last updated: May 30 '14