|
|
@ -12,6 +12,7 @@ import android.util.AttributeSet; |
|
|
|
import android.util.Log; |
|
|
|
import android.util.Log; |
|
|
|
import android.view.ViewGroup.LayoutParams; |
|
|
|
import android.view.ViewGroup.LayoutParams; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.opencv.BuildConfig; |
|
|
|
import org.opencv.core.CvType; |
|
|
|
import org.opencv.core.CvType; |
|
|
|
import org.opencv.core.Mat; |
|
|
|
import org.opencv.core.Mat; |
|
|
|
import org.opencv.core.Size; |
|
|
|
import org.opencv.core.Size; |
|
|
@ -283,7 +284,8 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onPreviewFrame(byte[] frame, Camera arg1) { |
|
|
|
public void onPreviewFrame(byte[] frame, Camera arg1) { |
|
|
|
Log.d(TAG, "Preview Frame received. Frame size: " + frame.length); |
|
|
|
if (BuildConfig.DEBUG) |
|
|
|
|
|
|
|
Log.d(TAG, "Preview Frame received. Frame size: " + frame.length); |
|
|
|
synchronized (this) { |
|
|
|
synchronized (this) { |
|
|
|
mFrameChain[mChainIdx].put(0, 0, frame); |
|
|
|
mFrameChain[mChainIdx].put(0, 0, frame); |
|
|
|
mCameraFrameReady = true; |
|
|
|
mCameraFrameReady = true; |
|
|
|