微信网站备案,windows优化大师的优点,电脑课做网站所需的软件,青岛城乡建设局网站码字不易#xff0c;多谢支持
1、名词解释 ITS是一个对Android摄像头生成的图像进行测试的框架。每个测试的一般目标是按照所需的方式配置相机并捕获一个或 更多的照片#xff0c;然后检查这些照片#xff0c;看看它们是否包含预期的图像数据。许多在这些测试中#xff0c…
码字不易多谢支持
1、名词解释 ITS是一个对Android摄像头生成的图像进行测试的框架。每个测试的一般目标是按照所需的方式配置相机并捕获一个或 更多的照片然后检查这些照片看看它们是否包含预期的图像数据。许多在这些测试中将要求照相机对着一个特定的目标图或被照亮特定的强度。它的框架位于KitKat的Android源代码的pdk/apps/区域版本但是转移到CTS验证器测试装具中(在源代码的CTS /区域下)。
2、环境准备
从http://source.android.com/compatibility/downloads.html 中下载CTS Verifier的测试包并解压
android-cts-verifier\android-cts-verifier\CameraITS\CameraITS.pdf 1、安装adb sudo apt-get install adb 2、下载android-cts-verifier 从谷歌官网上下载解压 sudo apt-get install python-numpy sudo apt-get install python-scipy sudo apt-get install python-matplotlib sudo apt-get install python-opencv sudo apt install openjdk-11-jdk 运行完上面步骤后 需要 source build/envsetup.sh 检查环境。可能会遇到下面的问题 参考链接https://blog.csdn.net/zwl1584671413/article/details/80305920
可能遇到的问题
问题E: Package python-scipy has no installation candidate 等
testtest-HP-ProDesk-680-G4-MT:/usr/local$ sudo apt-get install python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-scipy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceE: Package python-scipy has no installation candidate
vivotestvivotest-HP-ProDesk-680-G4-MT:/usr/local$ sudo apt-get install python-matplotlib
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-matplotlib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceE: Package python-matplotlib has no installation candidate
vivotestvivotest-HP-ProDesk-680-G4-MT:/usr/local$ sudo apt-get install python-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-opencv分析大概率你用的是python3而不是python2。 命令输入python3 OR python2 去查看
解决方法sudo apt-get install python3-scipy 等命令
https://askubuntu.com/questions/1276852/e-package-python-scipy-has-no-installation-candidate-ubuntu-20-04 3、 安装Android SDK platform tools android-sdk下载地址http://tools.android-studio.org/index.php/sdk/ 配置/etc/profile export ANDROID_HOME/usr/local/android-sdk/android-sdk-linux export PATH${PATH}:${ANDROID_HOME}/tools export PATH${PATH}:${ANDROID_HOME}/platform-tools 生效 环境变量配置命令行输入source /etc/profile 检查sdk安装成功android -h 4、手机上安装CtsVerifier.apk cd cts/apps/CtsVerifier mma -j32 adb install -r -g OUTPUT_PATH/CtsVerifier.apk 5、检查环境 source build/envsetup.sh
3、测试步骤 1、六个场景 scene 0任意场景 scene 1灰卡 scene 2人像白人黑人黄种人 scene 3解析力卡 scene 4原点 scene 5镜头不透光盖住毛玻璃对准光源 2、测试准备 1、把USB链接电脑端的手机固定到三脚架放置于打开光源的测试台 2、测试前相机预览测试场景已达到文档要求。然后切换到手机测试界面然后开始测试 3、全测ITS cd ~/CameraITS/tools python run_all_tests.py 全测中会有变换scene和camera的需要根据控制台操作
4、view失败项 1、 全测完之后会在控制台上显示pass、fail、skip项。需要吧fail继续测试保存所有fail项的结果到txt文档 2、进入android-cts-verifier/CameraITS/tests/ 测试剩余的fail项。比如 python test_ev_compensation_basic camera0 3、统计最后的失败项开始分析解bug。并把所有测试项整理出来