14#ifndef WEBCAMVIDEOOPENCV_H
15#define WEBCAMVIDEOOPENCV_H
23class WebcamVideoCursorOpenCV;
32 WebcamVideoOpenCV(
int camera_index);
33 virtual PT(MovieVideoCursor) open();
39 static TypeHandle get_class_type() {
42 static void init_type() {
43 WebcamVideo::init_type();
45 WebcamVideo::get_class_type());
47 virtual TypeHandle get_type()
const {
48 return get_class_type();
50 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
53 static TypeHandle _type_handle;
55 friend class WebcamVideoCursorOpenCV;
56 friend void find_all_webcams_opencv();
Allows you to open a webcam or other video capture device as a video stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.