opencv里面capture.open(0);求解释啊
答案:1 悬赏:30 手机版
解决时间 2021-11-18 02:26
- 提问者网友:龅牙恐龙妹
- 2021-11-17 13:02
opencv里面capture.open(0);求解释啊
最佳答案
- 五星知识达人网友:归鹤鸣
- 2021-11-17 14:42
Open video file or a capturing device for video capturing
C++: bool VideoCapture::open(const string& filename)
C++: bool VideoCapture::open(int device)
从open()函数的申明可以看出,这个函数有重载的哦。。。追问但int device是制定device吧,
capture.open(0)不就应该是第二个吗追答filename – name of the opened video file (eg. video.avi) or image sequence (eg.
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
device – id of the opened video capturing device (i.e. a camera index).
C++: bool VideoCapture::open(const string& filename)
C++: bool VideoCapture::open(int device)
从open()函数的申明可以看出,这个函数有重载的哦。。。追问但int device是制定device吧,
capture.open(0)不就应该是第二个吗追答filename – name of the opened video file (eg. video.avi) or image sequence (eg.
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
device – id of the opened video capturing device (i.e. a camera index).
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯