ros web_video_server的使用及Python获取实时画面
生活随笔
收集整理的這篇文章主要介紹了
ros web_video_server的使用及Python获取实时画面
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
網絡上看有人使用的是 uvc_camera 來提供視頻源,但根據 http://wiki.ros.org/Sensors/Cameras 的列表可知,uvc_camera已不再維護,當然也可以直接參考 http://wiki.ros.org/uvc_camera, 其維護狀態為: unmaintained
所以我改為cv_camera,當然要先安裝
sudo apt install ros-melodic-cv-camera
使用也很簡單,先起roscore
然后參考 http://wiki.ros.org/cv_camera,執行如下命令
rosparam set cv_camera/device_id 0
rosrun cv_camera cv_camera_node
0就是指/dev/video0,然后啟動web_video_server
rosrun web_video_server web_video_server
通過瀏覽器打開 http://127.0.0.1:8080/,點擊 image_raw,即可看到實時畫面
python 獲取實時畫面代碼:
總結
以上是生活随笔為你收集整理的ros web_video_server的使用及Python获取实时画面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu virtualbox
- 下一篇: xubuntu18.04安装Google