15 #ifndef WEBCAMVIDEOOPENCV_H
16 #define WEBCAMVIDEOOPENCV_H
18 #include "pandabase.h"
22 #include "webcamVideo.h"
24 class WebcamVideoCursorOpenCV;
35 WebcamVideoOpenCV(
int camera_index);
45 static void init_type() {
46 WebcamVideo::init_type();
47 register_type(_type_handle,
"WebcamVideoOpenCV",
48 WebcamVideo::get_class_type());
51 return get_class_type();
53 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
58 friend class WebcamVideoCursorOpenCV;
59 friend void find_all_webcams_opencv();
Allows you to open a webcam or other video capture device as a video stream.
A MovieVideo is actually any source that provides a sequence of video frames.
TypeHandle is the identifier used to differentiate C++ class types.