Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public class TabLive extends Fragment implements CameraBridgeViewBase.CvCameraViewListener2 {
...
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v =inflater.inflate(R.layout.tab_live,container,false);
mOpenCvCameraView = (CameraBridgeViewBase) v.findViewById(R.id.live_camera_frame);
mOpenCvCameraView.setCvCameraViewListener(this);
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment