Intel Realsense 如何获取输入图像的分辨率参数?傻办法 asanyarray() shape() get_data()
生活随笔
收集整理的這篇文章主要介紹了
Intel Realsense 如何获取输入图像的分辨率参数?傻办法 asanyarray() shape() get_data()
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
很傻的辦法:
將輸入的深度幀和彩色幀分別轉換成numpy數組后,再分別獲取數組的shape參數:
【注意,get_data()函數返回的是buf_data類型的東東,不能缺少這一步,否則無法得出最后結果】
191218 找到正常的辦法了
width = frame.get_width() height = frame.get_height()總結
以上是生活随笔為你收集整理的Intel Realsense 如何获取输入图像的分辨率参数?傻办法 asanyarray() shape() get_data()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python numpy创建数组方法汇总
- 下一篇: Intel Realsense 如何获取