自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
Android 14 相机图像测试套件版本说明
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android 14 版包含对相机 ITS 的多项更改。
本页中总结了 Android 14 的相机 ITS 更改。这些更改分为五大类:
Python 和软件包版本
除了 Android 12 和 13 支持的 Python 版本和库之外,Android 14 还支持以下 Python 版本:
增加了 LIMITED 相机测试
在 Android 14 中,以下测试已重构,以支持使用现有测试对 LIMITED 相机进行测试。
场景 |
测试名称 |
说明 |
1_1 |
test_jpeg |
已重构,以消除 manual_capture() 方法。 |
1_2 |
test_yuv_jpeg_all |
已重构,以消除 manual_capture() 方法。 |
1_2 |
test_yuv_plus_jpeg |
已重构,以消除 manual_capture() 方法。 |
1_2 |
test_yuv_plus_raw |
已重构为 manual_capture() 方法。
RAW/RAW10/RAW12 测试合并成单个测试。 |
4 |
test_multi_camera_alignment |
已重构为 manual_capture() 方法。 |
在 Android 14 中,以下人脸检测测试已重构。
场景 |
测试名称 |
说明 |
2 |
test_num_faces |
增加了新面孔,提高了面孔多样性。已确认面孔位置。 |
其他测试变更
在 Android 14 中,以下测试已重构,以扩大测试覆盖范围。
场景 |
测试名称 |
说明 |
0 |
test_read_write |
已重构,以标记拍摄元数据值,从而确保 android.sensor.sensitivityRange 之外的灵敏度。 |
1_1 |
test_burst_sameness_manual |
已重构为进行两次 50 帧连拍,而不是进行五次 50 帧连拍。 |
1_2 |
test_yuv_jpeg_all |
已重构为使用 STILL_CAPTURE 用例(如果有)。 |
1_2 |
test_yuv_plus_jpeg |
已重构为使用 STILL_CAPTURE 用例(如果有)。 |
4 |
test_multi_camera_alignment |
已重构,以添加 YUV 拍摄并将 640x360 拍摄添加到现有的 640x480 拍摄。 |
新测试
Android 14 包含以下新测试。
场景 |
测试名称 |
说明 |
2_a |
test_autoframing |
验证无论设置何种缩放比例,自动取景功能都可以调整 FoV 以包含具有不同肤色的所有人脸。 |
2_a |
test_display_p3 |
验证 P3 JPEG 输出是否正确。 |
2_a |
test_preview_min_frame_rate |
验证在弱光环境下预览 FPS 是否达到相机属性定义的最小值。 |
3 |
test_landscape_to_portrait |
验证横向到纵向覆盖是否正确旋转图片。 |
4 |
test_preview_aspect_ratio_and_crop |
验证 Preview 流宽高比、剪裁和 FoV 是否适合受支持的格式。 |
6 |
test_in_sensor_zoom |
验证相机传感器内缩放行为。 |
6 |
test_low_latency_zoom |
验证如果设定了设置覆盖缩放,缩放比例是否会正确调整。 |
6 |
test_preview_video_zoom_match |
验证 Preview 和 Video 流中的缩放行为是否相同。 |
extensions |
test_hdr_extension |
验证 HDR 扩展程序在收到请求时是否正确激活。 |
extensions |
test_night_extension |
验证 Night 扩展程序在收到请求时是否正确激活。 |
sensor_fusion |
test_led_snapshot |
验证 LED 快照是否不对图片进行饱和度或色调调节。 |
并行 DUT 测试
Android 14 支持并行 DUT 测试,可让您使用多个装置并行测试 DUT,从而加快总体测试速度。例如,并行测试可让您同时测试一个装置中的相机 0 与另一个装置中的相机 1。
如需了解详情,请参阅并行 DUT 测试。
测试要求
图 1 显示的是 Android 14 ITS 密码解码器环。密码解码器环显示了各个测试受哪些测试设置限制。受 android.request.availableCapabilities
限制的测试设置采用大写字母。主要限制项有:
MANUAL_SENSOR
READ_3A
PER_FRAME_CONTROL
RAW
faceDetectModes
timestampSource
flash.info.available
图 1. Android 14 ITS 密码解码器环
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-05-08。
[null,null,["最后更新时间 (UTC):2025-05-08。"],[],[],null,["# Android 14 Camera Image Test Suite Release Notes\n\nThe Android 14 release includes a number of changes to\n[Camera ITS](/docs/compatibility/cts/camera-hal#its_tests).\n\nThis page summarizes the Camera ITS changes for Android\n14. The changes fall into five broad categories:\n\n- [Python and package versions](#package-versions)\n- [Increased LIMITED camera testing](#increased-limited-camera-testing)\n- [Increased face-related testing](#increased-face-related-testing)\n- [Other test changes](#other-test-changes)\n- [New tests](#new-tests)\n- [Parallel DUT testing](#parallel-dut-testing)\n\nPython and package versions\n---------------------------\n\nAndroid 14 supports the following Python versions in\naddition to the Python versions and libraries supported in Android\n12 and 13:\n\n- [Python 3.9.2](https://www.python.org/downloads/)\n- [OpenCV 4.2.0](https://opencv.org/)\n- [Numpy 1.20.3](https://numpy.org/)\n- [Matplotlib 3.4.1](https://matplotlib.org/)\n- [Scipy 1.6.2](https://docs.scipy.org/doc/)\n- [pySerial 3.5](https://pyserial.readthedocs.io/)\n- [Pillow 8.3.1](https://pypi.org/project/Pillow/)\n- [PyYAML 5.4.1](https://pypi.org/project/PyYAML/)\n- [Mobly 1.11](https://github.com/google/mobly)\n- [FFmpeg 4.4.1](https://ffmpeg.org/)\n- (For Display P3 tests only) [Colour-science 0.4.2](https://pypi.org/project/colour-science/)\n\nIncreased LIMITED camera testing\n--------------------------------\n\nIn Android 14, the following tests are refactored\nto enable testing of LIMITED cameras with existing tests.\n\n| **Scene** | **Test name** | **Description** |\n|-----------|-----------------------------|-----------------------------------------------------------------------------------------------|\n| 1_1 | test_jpeg | Refactored to eliminate the `manual_capture()` method. |\n| 1_2 | test_yuv_jpeg_all | Refactored to eliminate the `manual_capture()` method. |\n| 1_2 | test_yuv_plus_jpeg | Refactored to eliminate the `manual_capture()` method. |\n| 1_2 | test_yuv_plus_raw | Refactored to the `manual_capture()` method. RAW/RAW10/RAW12 testing merged to a single test. |\n| 4 | test_multi_camera_alignment | Refactored to the `manual_capture()` method. |\n\nIncreased face-related testing\n------------------------------\n\nIn Android 14, the following face detection\ntests are refactored.\n\n| **Scene** | **Test name** | **Description** |\n|-----------|----------------|-------------------------------------------------------------------|\n| 2 | test_num_faces | New faces for increased face diversity. Face locations confirmed. |\n\n\u003cbr /\u003e\n\nOther test changes\n------------------\n\nIn Android 14, the following tests are refactored to\nincrease test coverage.\n\n| **Scene** | **Test name** | **Description** |\n|-----------|-----------------------------|--------------------------------------------------------------------------------------------------------------------|\n| 0 | test_read_write | Refactored to flag capture metadata values for sensitivity that fall outside of `android.sensor.sensitivityRange`. |\n| 1_1 | test_burst_sameness_manual | Refactored to do two bursts of 50 frames rather than five bursts of 50 frames. |\n| 1_2 | test_yuv_jpeg_all | Refactored to use the `STILL_CAPTURE` use case if available. |\n| 1_2 | test_yuv_plus_jpeg | Refactored to use the `STILL_CAPTURE` use case if available. |\n| 4 | test_multi_camera_alignment | Refactored to add YUV captures and to add `640x360` captures to the existing `640x480` captures. |\n\n\u003cbr /\u003e\n\nNew tests\n---------\n\nAndroid 14 includes the following new tests.\n\n| **Scene** | **Test name** | **Description** |\n|---------------|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| 2_a | test_autoframing | Verifies that autoframing can adjust the FoV to include all faces with different skin tones regardless of the zoom ratio set. |\n| 2_a | test_display_p3 | Verifies `P3 JPEG` output is correct. |\n| 2_a | test_preview_min_frame_rate | Verifies that preview FPS reaches minimum defined by camera properties under low light conditions. |\n| 3 | test_landscape_to_portrait | Verifies landscape to portrait override rotates image properly. |\n| 4 | test_preview_aspect_ratio_and_crop | Verifies `Preview` stream aspect ratio, crop, and FoV are appropriate for supported formats. |\n| 6 | test_in_sensor_zoom | Verifies the camera in-sensor zoom behavior. |\n| 6 | test_low_latency_zoom | Verifies zoom ratio scales correctly if settings override zoom is set. |\n| 6 | test_preview_video_zoom_match | Verifies that zoom behaves the same in `Preview` and `Video` streams. |\n| extensions | test_hdr_extension | Verifies `HDR` extension activates correctly when requested. |\n| extensions | test_night_extension | Verifies `Night` extension activates correctly when requested. |\n| sensor_fusion | test_led_snapshot | Verifies LED snapshots don't saturate or tint image. |\n\nParallel DUT testing\n--------------------\n\nAndroid 14 supports parallel DUT testing, which lets\nyou test DUTs in parallel with multiple rigs to speed up overall testing. For\nexample, parallel testing lets you test camera 0 in one rig and camera 1 in\nanother rig at the same time.\n\nFor more details, see\n[Parallel DUT testing](/docs/compatibility/cts/camera-its#parallel-dut-testing).\n\nTest requirements\n-----------------\n\nFigure 1 shows the Android 14 ITS *secret\ndecoder ring* . The secret decoder ring shows what test settings individual\ntests are gated by. Test settings gated by\n`android.request.availableCapabilities` are in uppercase letters.\nThe main gating items are:\n\n- `MANUAL_SENSOR`\n- `READ_3A`\n- `PER_FRAME_CONTROL`\n- `RAW`\n- `faceDetectModes`\n- `timestampSource`\n- `flash.info.available`\n\n**Figure 1.** Android 14 ITS secret decoder ring"]]