Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Ghi chú phát hành của Bộ kiểm thử hình ảnh máy ảnh Android 14
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bản phát hành Android 14 bao gồm một số thay đổi đối với Camera ITS.
Trang này tóm tắt các thay đổi về ITS của Camera cho Android 14. Những thay đổi này thuộc 5 danh mục lớn:
Phiên bản Python và gói
Android 14 hỗ trợ các phiên bản Python sau đây ngoài các phiên bản Python và thư viện được hỗ trợ trong Android 12 và 13:
Tăng cường kiểm thử máy ảnh LIMITED
Trong Android 14, các kiểm thử sau đây được tái cấu trúc để cho phép kiểm thử máy ảnh CÓ GIỚI HẠN bằng các kiểm thử hiện có.
Scene |
Tên kiểm thử |
Nội dung mô tả |
1_1 |
test_jpeg |
Tái cấu trúc để loại bỏ phương thức manual_capture() . |
1_2 |
test_yuv_jpeg_all |
Tái cấu trúc để loại bỏ phương thức manual_capture() . |
1_2 |
test_yuv_plus_jpeg |
Tái cấu trúc để loại bỏ phương thức manual_capture() . |
1_2 |
test_yuv_plus_raw |
Tái cấu trúc thành phương thức manual_capture() .
Hoạt động kiểm thử RAW/RAW10/RAW12 được hợp nhất thành một hoạt động kiểm thử duy nhất. |
4 |
test_multi_camera_alignment |
Tái cấu trúc thành phương thức manual_capture() . |
Trong Android 14, các bài kiểm thử phát hiện khuôn mặt sau đây được tái cấu trúc.
Scene |
Tên kiểm thử |
Nội dung mô tả |
2 |
test_num_faces |
Khuôn mặt mới để tăng tính đa dạng của khuôn mặt. Xác nhận vị trí khuôn mặt. |
Các thay đổi khác về kiểm thử
Trong Android 14, các bài kiểm thử sau đây được tái cấu trúc để tăng mức độ sử dụng kiểm thử.
Scene |
Tên kiểm thử |
Nội dung mô tả |
0 |
test_read_write |
Tái cấu trúc để gắn cờ các giá trị siêu dữ liệu chụp cho độ nhạy nằm ngoài android.sensor.sensitivityRange . |
1_1 |
test_burst_sameness_manual |
Tái cấu trúc để thực hiện hai loạt 50 khung hình thay vì 5 loạt 50 khung hình. |
1_2 |
test_yuv_jpeg_all |
Tái cấu trúc để sử dụng trường hợp sử dụng STILL_CAPTURE nếu có. |
1_2 |
test_yuv_plus_jpeg |
Tái cấu trúc để sử dụng trường hợp sử dụng STILL_CAPTURE nếu có. |
4 |
test_multi_camera_alignment |
Tái cấu trúc để thêm các bản ghi YUV và thêm các bản ghi 640x360 vào các bản ghi 640x480 hiện có. |
Kiểm thử mới
Android 14 bao gồm các kiểm thử mới sau.
Scene |
Tên kiểm thử |
Nội dung mô tả |
2_a |
test_autoframing |
Xác minh rằng tính năng tự động tạo khung hình có thể điều chỉnh FoV để bao gồm tất cả khuôn mặt có nhiều tông màu da bất kể tỷ lệ thu phóng được đặt. |
2_a |
test_display_p3 |
Xác minh kết quả P3 JPEG là chính xác. |
2_a |
test_preview_min_frame_rate |
Xác minh rằng FPS của bản xem trước đạt đến mức tối thiểu do các thuộc tính máy ảnh xác định trong điều kiện ánh sáng yếu. |
3 |
test_landscape_to_portrait |
Xác minh chế độ ghi đè ngang sang dọc xoay hình ảnh đúng cách. |
4 |
test_preview_aspect_ratio_and_crop |
Xác minh tỷ lệ khung hình, vùng cắt và FoV của luồng Preview phù hợp với các định dạng được hỗ trợ. |
6 |
test_in_sensor_zoom |
Xác minh hành vi thu phóng trong cảm biến của máy ảnh. |
6 |
test_low_latency_zoom |
Xác minh tỷ lệ thu phóng chính xác nếu bạn đặt chế độ cài đặt ghi đè chế độ thu phóng. |
6 |
test_preview_video_zoom_match |
Xác minh rằng tính năng thu phóng hoạt động giống nhau trong luồng Preview và Video . |
tiện ích |
test_hdr_extension |
Xác minh rằng tiện ích HDR kích hoạt chính xác khi được yêu cầu. |
tiện ích |
test_night_extension |
Xác minh rằng tiện ích Night kích hoạt chính xác khi được yêu cầu. |
cảm_biến_hợp_nhất |
test_led_snapshot |
Xác minh ảnh chụp nhanh bằng đèn LED không làm bão hoà hoặc phủ màu hình ảnh. |
Kiểm thử DUT song song
Android 14 hỗ trợ kiểm thử DUT song song, cho phép bạn kiểm thử DUT song song với nhiều thiết bị thử nghiệm để tăng tốc quá trình kiểm thử tổng thể. Ví dụ: tính năng kiểm thử song song cho phép bạn kiểm thử camera 0 trong một thiết bị và camera 1 trong một thiết bị khác cùng một lúc.
Để biết thêm thông tin chi tiết, hãy xem phần Kiểm thử DUT song song.
Yêu cầu kiểm thử
Hình 1 cho thấy vòng giải mã bí mật của ITS trên Android 14. Vòng giải mã bí mật cho biết chế độ cài đặt kiểm thử mà từng bài kiểm thử được kiểm soát. Các chế độ cài đặt kiểm thử do android.request.availableCapabilities
kiểm soát được viết hoa.
Các mục chính trong quy trình kiểm soát truy cập là:
MANUAL_SENSOR
READ_3A
PER_FRAME_CONTROL
RAW
faceDetectModes
timestampSource
flash.info.available
Hình 1. Vòng đeo giải mã bí mật ITS của Android 14
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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"]]