增加摄像头打开异常情况下的解决方案

詹力 2024-09-10 20:04:47 +08:00
parent 386dc24b2d
commit ea2aba3c20
2 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

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