Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cameraBridgeViewBase Pausing Callback/Green Screen during Resume

Hi There!

I am using cameraBridgeViewBase to capture a frame, processing the frame, and drawing it onto the canvas of cameraBridgeViewBase for display for 5 seconds before repeating the process again. All the processing is done in my main activity. I noticed that the onCameraFrame() function kept interrupting the drawing onto the canvas so I had to use disableView() and enableView() to disable and enable the callBacks of the cameraBridgeViewBase after I've drawn the canvas. The problem is that everytime enableView() is a called, for a split second an annoying green frame pops into the preview on screen the smartphone (I'm assuming it's part of the initialization).

Is there a way to get rid of the green screen during enableVIew()? Is there a better way to pause the callBacks of cameraBridgeViewBase so I can peacefully draw my picture onto the canvas?

Thanks, Kevin

cameraBridgeViewBase Pausing Callback/Green Screen during Resume

Hi There!

I am using cameraBridgeViewBase to capture a frame, processing the frame, and drawing it onto the canvas of cameraBridgeViewBase for display for 5 seconds before repeating the process again. All the processing is done in my main activity. I noticed that the onCameraFrame() function kept interrupting the drawing onto the canvas so I had to use disableView() cameraBridgeViewBase.disableView() and enableView() cameraBridgeViewBase.enableView() to disable and enable the callBacks of the cameraBridgeViewBase after I've drawn the canvas. The problem is that everytime enableView() is a called, for a split second an annoying green frame pops into the preview on screen the smartphone (I'm assuming it's part of the initialization).

Is there a way to get rid of the green screen during enableVIew()? Is there a better way to pause the callBacks of cameraBridgeViewBase so I can peacefully draw my picture onto the canvas?

Thanks, Kevin

click to hide/show revision 3
retagged

updated 2015-08-07 03:54:44 -0600

berak gravatar image

cameraBridgeViewBase Pausing Callback/Green Screen during Resume

Hi There!

I am using cameraBridgeViewBase to capture a frame, processing the frame, and drawing it onto the canvas of cameraBridgeViewBase for display for 5 seconds before repeating the process again. All the processing is done in my main activity. I noticed that the onCameraFrame() function kept interrupting the drawing onto the canvas so I had to use cameraBridgeViewBase.disableView() and cameraBridgeViewBase.enableView() to disable and enable the callBacks of the cameraBridgeViewBase after I've drawn the canvas. The problem is that everytime enableView() is a called, for a split second an annoying green frame pops into the preview on screen the smartphone (I'm assuming it's part of the initialization).

Is there a way to get rid of the green screen during enableVIew()? Is there a better way to pause the callBacks of cameraBridgeViewBase so I can peacefully draw my picture onto the canvas?

Thanks, Kevin