当前位置: 首页 > news >正文

项目-摄像

 树莓派摄像头使用方法 Camera教程

https://www.raspi.cc/index.php?c=read&id=53&page=1

nanopc-t4

​https://www.raspi.cc/index.php?c=read&id=53&page=1

摄像头型号

Raspberry Pi Camera Rev 1.3

检测故障

dmesg | grep -i mipi

pi@NanoPC-T4:~$ dmesg | grep -i mipi
[    2.528023] rockchip-mipi-dphy-rx: No link between dphy and sensor
[    2.528584] rockchip-mipi-dphy-rx: No link between dphy and sensor
[    2.530501] rockchip-mipi-dphy-rx: No link between dphy and sensor
[    2.531073] rockchip-mipi-dphy-rx: No link between dphy and sensor
https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4/zh#gst-camera.sh_.E5.8F.82.E6.95.B0.E8.AF.B4.E6.98.8E

运行

gst-camera.sh --action preview

报错

gst-launch-1.0: no process found
/usr/bin/gst-camera.sh: line 178: [: =: unary operator expected
====================================================
=== GStreamer 1.1 command:
=== gst-launch-1.0 v4l2src device= io-mode=4 ! videoconvert ! video/x-raw,format=NV12, !
====================================================
/usr/bin/gst-camera.sh: line 194: [: too many arguments
su: must be run from a terminal

运行

sudo gst-camera.sh --action preview

报错

gst-launch-1.0: no process found
/usr/bin/gst-camera.sh: line 178: [: =: unary operator expected
====================================================
=== GStreamer 1.1 command:
=== gst-launch-1.0 v4l2src device= io-mode=4 ! videoconvert ! video/x-raw,format=NV12, !
====================================================
/usr/bin/gst-camera.sh: line 194: [: too many arguments
ERROR: pipeline could not be constructed: could not parse caps "video/x-raw,format=NV12,".
  • gst - launch - 1.0是 GStreamer 多媒体框架中的一个命令行工具。GStreamer 是一个用于构建流媒体应用程序的库,它允许开发者创建各种多媒体处理管道,包括音频和视频的播放、录制、编辑以及格式转换等功能。
sudo apt-get update
sudo apt-get install gstreamer1.0-tools
sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
sudo apt-get install gstreamer1.0-tools
gst-launch-1.0(注意,应替换为实际管道)。

查看gst-launch-1.0是否正常,以下命令会播放测试视频

gst-launch-1.0 videotestsrc ! autovideosink

输出没问题,证明gst-launch-1.0正常,接下来排除摄像头驱动的故障

https://cloud.tencent.com/developer/article/1421907

推流

教程:

https://zhuanlan.zhihu.com/p/668110375

http://www.lryc.cn/news/487992.html

相关文章:

  • 摄像机ISP和DSP的区别?
  • Ubuntu24安装配置NDK
  • 【Next】中间件
  • Vulnhub靶场案例渗透[11]- Momentum2
  • STM32设计防丢防摔智能行李箱-分享
  • Vue Mixin混入机制
  • 数据库类型建表
  • iOS 18 导航栏插入动画会导致背景短暂变白的解决
  • 深度学习之人脸检测
  • 解决前后端发版本时候,手动清除浏览器缓存
  • mysql8.4+mysql router读写分离
  • 鸿蒙NEXT开发-用户通知服务的封装和文件下载通知
  • RHCE——系统的延迟任务及定时任务
  • ForEach刷新UI机制
  • 机器学习(贝叶斯算法,决策树)
  • 实验十三 生态安全评价
  • 二级等保要求及设备有哪些?
  • 无人机的动力系统节能——CKESC电调小课堂12
  • 人机打怪小游戏(非常人机)
  • SpringBoot 集成 Sharding-JDBC(一):数据分片
  • django-ninja 实现cors跨域请求
  • 【论文阅读】InstructPix2Pix: Learning to Follow Image Editing Instructions
  • 常用在汽车PKE无钥匙进入系统的高度集成SOC芯片:CSM2433
  • 【第四课】rust声明式宏理解与实战
  • 渗透测试--Linux下的文件传输方法
  • 浅议Flink中的通讯工具: Akka
  • 基于YOLOv8深度学习的独居老人情感状态监护系统(PyQt5界面+数据集+训练代码)
  • Qt添加外部库:静态库和动态库,批量添加头文件
  • Unity类银河战士恶魔城学习总结(P132 Merge skill tree with skill Manager 把技能树和冲刺技能相组合)
  • Docker入门之Windows安装Docker初体验