Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Android OpenCV "CvCameraViewLis

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!

click to hide/show revision 2
retagged

updated 2014-05-30 10:14:09 -0600

berak gravatar image

Android OpenCV "CvCameraViewLis

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!

Android OpenCV "CvCameraViewLis"CvCameraViewListener"

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!