摄像头识别问题

poiuy214642 2020-05-1239 次点击

用raspistill -v,连接都是好的,也能检测到连接的摄像头,
Camera Name ov5647
Width 2592, Height 1944, filename (null)
Using camera 0, sensor mode 0

用raspistill -o报错,ctrl c也关闭不掉它,设备死机,只能直接拔电源重启

收藏 ♥ 感谢
Spoony 小组长 2020-05-12 
请按照这个教程前面部分的步骤操作一下
https://shumeipai.nxez.com/2017/11/01/build-rtmp-stream-live-server-with-raspberry-pi.html

看看 vcgencmd get_camera 命令的结果是不是下面这样


如果有报错,请将错误信息和所运行的完整命令(带参数)贴上来帮你看看。

另外还有一个免配置的方案,直接装这个系统:
https://shumeipai.nxez.com/2019/04/17/raspberry-pi-zero-w-cctv-camera-with-motioneyeos.html
poiuy214642 2020-05-12 
pi@raspberrypi:~ $ vcgencmd get_camera
supported=1 detected=1
pi@raspberrypi:~ $ raspistill -t 1000 -o 111.jpg
Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board
Spoony 小组长 2020-05-12 
看错误提示应该是软排线没有充分接触好。

查了一下可能的因素:
https://blog.csdn.net/qq_38880380/article/details/78728509

「原因有很多,比如摄像头的sunny部分是否连接牢靠,摄像头是否插紧。但最可能的原因是,你在树莓派带电的时候插拔摄像头,导致管脚烧坏了。这个时候就需要找到是哪个管脚烧坏了,然后补焊一下,加点阻焊剂;」

「This error usually appears because of a faulty connection with the camera. I had the exact same problem in different camera+Pi configurations. The following case is what I encountered:

The connector is not correctly inserted either in the camera or in the Pi.
The Sunny connector (the small yellow one on the camera) is not connected well. (now it gets interesting)
If you often remove and reinsert the camera in the Pi please be sure to remove all power from the Pi. The sensor is very sensitive and a spark on the wrong pin could burn it. (I did this already unfortunately) This could also trigger a problem with the Pi connector pins. It was somewhat confirmed that for Pi2 the connector may have some bad soldering which could lead to cold contact soldering. You can fix this by using some flux on the pins and then pass the soldering iron hot end over the pins to remake the connection.
I used a longer cable that had both connectors on the same side of the cable. If you connect it like it is you can burn your sensor and the Pi will not start because of the power surge (also the camera gets very hot in this case). DO NOT REMOVE IT from the Pi without removing power before. To a cable like this you have to remove the blue plastic from one end and bend the connector with the contacts on the other side. Insert this end in the camera since this will not be removed/inserted as often as the Pi end.」

「绝对不可以带着电源的情况下插入摄像头,如果带电操作,十之八九你的摄像头会GG,博主血泪教训。而且摄像头GG了之后每次调用还是会亮灯,只是你接受不到数据,这个问题我已经Google了很长时间,老外们也是一脸懵逼,大家普遍认为应该是被烧坏了。」

https://www.raspberrypi.org/forums/viewtopic.php?t=105100

建议检查一下排线接触情况,再就是确认一下操作方面是否有失误,比如热插拔过摄像头之类的。

另外有个相关性不高的建议,来自:
https://github.com/raspberrypi/linux/issues/435

确认一下系统开启了 1-wire 和 I2C。

登录注册 后可回复。

这里由以下店铺的技术人员在此免费提供能力范围内的技术支持。

NXEZ 创客商店(淘宝)

排障问题发帖注意事项:
1、请尽可能将故障说明清晰,列明例如使用环境和做了哪些操作和配置等。
2、排障中已经做了哪些尝试,如果能在问题中进行描述将极大提高解决问题的效率。
3、对于需要自身完成知识积累才能解决的问题,请自行通过搜索引擎寻找资料学习。

MCC 数据采集产品目录和技术支持