forked from logzhan/RobotKernal-UESTC
增加摄像头打开异常情况下的解决方案
parent
386dc24b2d
commit
ea2aba3c20
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
|
@ -0,0 +1,13 @@
|
|||
## `摄像头打开异常问题`
|
||||
|
||||
部分情况下,`OpenCV`在打开摄像头的时候会出现`v412`的错误,错误内容类似如下:
|
||||
|
||||
![](./Image/V412-Error.png)
|
||||
|
||||
解决方案:
|
||||
|
||||
```c++
|
||||
/* 在OpenCV中加入以下特性:*/
|
||||
cv::VideoCapture cap(0, cv::CAP_V4L2);
|
||||
```
|
||||
|
Loading…
Reference in New Issue