Camera ITS測試

一、手機端設置:

將 CtsVerifier.apk 安裝到設備上, 連接上linux主機。

二、主機端設置:

基礎:CTS測試運行環境

然後,主機安裝python2.7,及numpy/scipy/matplotlib/opencv 棧和 python 成像庫。按照下面的命令依次安裝:

 

sudo apt­-get install python-­numpy

sudo apt-­get install python­-scipy

sudo apt-­get install python­-matplotlib

sudo apt-­get install python­-opencv

安裝完成後,檢查環境是否配置成功:. build/envsetup.sh

如下圖,環境配置成功

   

 

三、物理設置:

1、測試場景:

ITS測試共有以下6個場景:

●Scene 0: No requirements. The camera camera be pointing at anything (including being face down on the desk, or using the same setup as scene 1).

場景 0 : 無要求。相機攝像頭指向任何東西 (包括臉朝下, 或使用與場景1相同的設置)。

●Scene 1: The camera is on a tripod pointing at a static scene containing a grey card and white background, under a constant (stable) relatively bright illumination source. This is the scene that is described above for the CTS Verifier physical setup.

場景 1 : 相機位於三腳架上, 指向一個靜態場景, 其中包含灰色卡和白色背景, 在恆定 (穩定) 相對明亮的光照源下。這是 CTS 驗證程序物理設置上面描述的場景。

scene 1

鏡頭視野中,灰卡大致放在中間,周圍爲白色背景。

●Scene 2: This is the scene for testing face detection. The camera is on a tripod pointing at a static picture containing 3 human faces, under a constant (stable) relatively bright illumination source.

場景 2 : 這是測試人臉檢測的場景。相機位於三腳架上, 指向一張包含3人臉的靜態圖片, 在恆定 (穩定) 相對明亮的照明光源下。

        

 

scene 2

鏡頭視野中,照片放在中間,基本佔據所有視野(周圍可以有一點白色背景)。

●Scene 3: This is the scene for testing image sharpness. The camera is on a tripod pointing at a static picture containing some edges, such as a printed ISO 12233 chart. The scene should be under a constant (stable) relatively bright illumination source.

場景 3 : 這是測試圖像清晰度的場景。相機位於三腳架上, 指向包含某些邊緣的靜態圖片, 如打印的 ISO 12233 圖表。現場應在一個恆定 (穩定) 相對明亮的照明源。

scene 3

鏡頭視野中,ISO 12233圖表放在中間,基本佔據所有視野(周圍可以有一點白色背景)。

●Scene 4: This is the scene for testing aspect ratio. The camera is on a tripod pointing at a static test page containing a black circle and a square box. The scene should be under a constant (stable) relatively bright illumination source.

場景 4 : 這是測試縱橫比的場景。相機位於三腳架上, 指向一個靜態測試頁, 其中包含一個黑色圓圈和一個方塊。現場應在一個恆定 (穩定) 相對明亮的照明源。

scene 4

鏡頭視野中,圖紙放在中間,基本佔據所有視野(周圍可以有一點白色背景)。

●Scene 5: This is the scene for testing lens shading and color uniformity. A diffuser is placed in front of the camera. The camera is on a tripod pointing at a constant (stable) relatively bright illumination source

場景 5 : 這是測試鏡頭着色和顏色均勻性的場景。在攝像機前放置一個擴散器。相機位於三腳架上,指向恆定的 (穩定) 相對地明亮的照明源。

我們這邊就用的一張白色餐巾紙代替了擴散器,將鏡頭對着光源,用餐巾紙擋住鏡頭即可。下圖爲官方文檔,使用擴散器擋住鏡頭的示意圖。

scene 5

●Scene Infinity: This scene is to test infinite focus mode. The camera is on a tall tripod pointing at a large printed ISO 12233 chart. The chart should be printed at 126x80cm and mounted. The camera needs to be the hyperfocal distance away from the chart ~3­5m, depending upon the lens. The scene should be under a constant, relatively bright illumination source. The ISO12233.pdf file is included for printing.

場景無窮: 此場景是測試無限焦點模式。相機是在一個高大的三腳架指向一個大型印刷 ISO 12233 圖表。圖表的要打印在126x80cm 和安裝。照相機需要是 hyperfocal 距離從圖表 35 m, 取決於透鏡。現場應在一個恆定的, 相對明亮的照明源。ISO12233 文件包括用於打印。

該場景要求較高,目前我們這邊的項目還沒有測過,有的項目這個場景開始測試後,會自動跳過。

四、測試步驟:

進入CameraITS目錄:cd android-cts-verifier/CameraITS/

檢查環境:主機端 . build/envsetup.sh

手機端 打開CtsVerifier.apk,點開Camera測試中的CameraITS測試(每次運行測試命令是,手機選必須進入這個界面)

測試界面

測試Camera 0,Scene 0:環境無要求,運行命令測試      python tools/run_all_tests.py camera=0 scenes=0

等待測試結束,手機端Camera:0,scene0 這一項變成綠色,及通過,可以測試下面的測試項。

測試Camera 0,Scene 1:物理環境如上文要求,運行命令測試  python tools/run_all_tests.py camera=0 scenes=1

等待測試結束,手機端Camera:0,scene1 這一項變成綠色,及通過,可以測試下面的測試項。

以此類推,測試完所有相機的所有場景,測試界面的綠色圓形按鈕及高亮,可以點擊pass。

ps:Scene 1的測試時間會稍微久一點,大概十幾分鍾,請耐心等待,主機端可以看到測試進程。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章