OpenCV 无法找到摄像头
-
按照官方教程 进行测试,到 Gstreamer 应用范例 部分都还测试正常工作。然后测试到 用 opencv 获取图像 时,三个示例都报错,未找到摄像头设备,报错情况如下:

请问一下,这是什么原因呢?
-
@123 请提供一下主板型号,模组型号。
-
@veye_xumm 板子是树莓派 4B,系统是 64bit的 PiOS,摄像头是 IMX327
-
@123 不好意思,公司同事在搭建你这个环境中。但是天津突发疫情,我们这边被迫中断上班几天。请见谅。
-
@veye_xumm 好的好的,谢谢您
-
@veye_xumm 请问您这边测试的怎么样了呢?
-
@123 终于解封了,他们已经在搞了。
-
@veye_xumm 好的好的,感谢
-
@123
你好,我这边重现了你的问题。
有两种方法安装opencv到树莓派。- 方法1
pip install opencv-python此方法安装,会存在你的这个问题。
- 方法2
sudo apt install python3-opencv此方法安装是可以的。
建议你尝试如下
pip uninstall opencv-python sudo apt install python3-opencv然后再试一下。
实际上,在网络上建议的opencv安装方法,都是从源码编译的。
建议你参考这个:
https://qengineering.eu/install-opencv-4.5-on-raspberry-64-os.html -
@veye_xumm 好的好的,感谢,我去试一下
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login