Skip to content

Instantly share code, notes, and snippets.

@yaronv
Last active February 3, 2016 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaronv/9bae2bc5b5b2a5a4c4c7 to your computer and use it in GitHub Desktop.
Save yaronv/9bae2bc5b5b2a5a4c4c7 to your computer and use it in GitHub Desktop.
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