提交 7dda8e2c 编写于 作者: P poiuytrez

Link to bug tracker replaced by bug description

上级 bef6de90
...@@ -57,7 +57,8 @@ public class Tutorial3View extends JavaCameraView implements PictureCallback { ...@@ -57,7 +57,8 @@ public class Tutorial3View extends JavaCameraView implements PictureCallback {
public void takePicture(final String fileName) { public void takePicture(final String fileName) {
Log.i(TAG, "Taking picture"); Log.i(TAG, "Taking picture");
this.mPictureFileName = fileName; this.mPictureFileName = fileName;
// Clear up buffers to avoid bug http://code.opencv.org/issues/2961 // Postview and jpeg are sent in the same buffers if the queue is not empty when performing a capture.
// Clear up buffers to avoid mCamera.takePicture to be stuck because of a memory issue
mCamera.setPreviewCallback(null); mCamera.setPreviewCallback(null);
// PictureCallback is implemented by the current class // PictureCallback is implemented by the current class
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册