public VideoCapture(int device)
VideoCapture constructors.
Note: In C API, when you finished working with video, release CvCapture structure with cvReleaseCapture(), or use Ptr that calls cvReleaseCapture() automatically in the destructor.
Parameters:
device - id of the opened video capturing device (i.e. a camera index). If there is a single camera connected, just pass 0.
我应该通过什么参数代替设备来获取相机输入。
提前致谢。