本文主要介紹了在樹莓派平臺上的mipi-csi攝像頭的使用,以及mipidsi觸摸板的顯示屏翻轉和觸摸板的翻轉的方法
首先硬件上連接上mipi-csi攝像頭後,還需要在系統中enable攝像頭的驅動。
enter鍵進入,選擇yes,保存並結束然後重啓。
觀察設備節點:
設備節點中已經有了video0,但是使用vlc播放不了。
每次從新打開vlc後,都要過很長一段時間(大概7,8分鐘),vlc纔會有視頻圖像,並且視頻的有延時。並且CPU的佔用率達到了100%以上
在沒有圖像是,cpu的佔用率也達到了了接近70%
使用自己的裸屏顯示,比較正常:但是cpu佔用率達到100%:
並且亮度比較大的物體輪廓顯示紫色。
攝像頭的轉向:
https://blog.csdn.net/fhqlongteng/article/details/80433633
https://www.jianshu.com/p/657f6e113666
觸摸翻轉:
https://blog.csdn.net/u013491946/article/details/79895853
首先安裝xinput:sudo apt-get install xinput
當前筆者是用的ssh遠程操作,當遠程操作時,使用xinput指令需要加入DISPLAY=:0。如果本地操作去掉DISPLAY=:0即可。
1.列出所有的輸入設備
2.
90 degree rotation:Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
180 degree rotation:Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
270 degree rotation:Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"