14 lines
287 B
Markdown
14 lines
287 B
Markdown
|
## `摄像头打开异常问题`
|
|||
|
|
|||
|
部分情况下,`OpenCV`在打开摄像头的时候会出现`v412`的错误,错误内容类似如下:
|
|||
|
|
|||
|
![](./Image/V412-Error.png)
|
|||
|
|
|||
|
解决方案:
|
|||
|
|
|||
|
```c++
|
|||
|
/* 在OpenCV中加入以下特性:*/
|
|||
|
cv::VideoCapture cap(0, cv::CAP_V4L2);
|
|||
|
```
|
|||
|
|