RobotKernal-UESTC/Docs/Linux开发板遇到问题和解决方案/摄像头打开异常问题.md

14 lines
287 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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