Ask Your Question

Revision history [back]

This is not Opencv way to do it ?!

bool = Highgui.imwrite(filename, Mat);

This is not Opencv way to do it ?!

bool = Highgui.imwrite(filename, Mat);
checkFrame);

This is not Opencv way to do it ?!

bool Mat onCameraFrame(CvCameraViewFrame inputFrame) {
Rgba = Highgui.imwrite(filename, checkFrame);
inputFrame.rgba();
.
. Do your work
.
return Rgba;
}

And

<org.opencv.android.JavaCameraView
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:adjustViewBounds="true"
        android:gravity="center_vertical"
        android:id="@+id/java_surface_view" />

in your layout