添加查看分辨率帧率脚本
This commit is contained in:
@@ -22,5 +22,9 @@
|
||||
说明固件下载失败,只需要重新执行 “sudo ./firmburn binfile” 命令,烧录即可。
|
||||
|
||||
## 更新日志:
|
||||
2020年3月31日:
|
||||
添加检查设备支持分辨率和帧率的脚本(frameTest.sh)。
|
||||
使用方法 “./frameTest.sh”
|
||||
|
||||
固件 Firmware_v1.1_5ms.bin :
|
||||
曝光时间5ms 分辨率2x640x400(25fps 50fps 100fps 200fps) 2x1280x800(25fps 50fps 100fps)
|
||||
|
||||
26
frameTest.sh
Executable file
26
frameTest.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
lsusb -d 0x05a9:0xf581 -v | while read line
|
||||
do
|
||||
tmpWidth=`echo $line |grep wWidth`
|
||||
if [[ -n $tmpWidth ]]
|
||||
then
|
||||
echo ""
|
||||
Width=`echo $tmpWidth|cut -d" " -f2`
|
||||
echo -e "$Width x \c"
|
||||
fi
|
||||
tmpHeight=`echo $line |grep wHeight`
|
||||
if [[ -n $tmpHeight ]]
|
||||
then
|
||||
Height=`echo $tmpHeight |cut -d" " -f2`
|
||||
echo -e "$Height"
|
||||
fi
|
||||
|
||||
Freq=`echo $line |grep dwFrameInterval\(`
|
||||
if [[ -n $Freq ]]
|
||||
then
|
||||
interval=`echo $Freq | cut -d" " -f3`
|
||||
echo -e "\t"`expr 10000000 / $interval` "\c"
|
||||
fi
|
||||
done
|
||||
echo -e "\n"
|
||||
Reference in New Issue
Block a user