cameraBridgeViewBase Pausing Callback/Green Screen during Resume

asked 2015-08-07 03:51:28 -0500

Tingke gravatar image

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

berak gravatar image

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

edit retag flag offensive close merge delete