Camera Delay Testing System and Method
By working in concert with the camera system under test, the high-speed camera system, the image card, the lighting switching system, and the slider, the shooting position and lighting are automatically adjusted, solving the problem of low accuracy in camera delay testing caused by manual operation in existing technologies, and achieving higher testing accuracy and wider application scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
- Filing Date
- 2026-03-04
- Publication Date
- 2026-05-26
AI Technical Summary
Existing camera latency testing systems rely on manual operation, resulting in low testing accuracy, limited scenarios, and susceptibility to subjective human influence.
The system employs the coordinated operation of the camera system under test, high-speed camera system, image card, lighting switching system, and slider. It automatically adjusts the shooting position, background, and lighting through automated commands to automatically generate camera latency data.
It improves the accuracy of camera latency testing, reduces human intervention, expands application scenarios, and lowers labor costs.
Smart Images

Figure CN122093550A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of camera testing technology, and in particular to a camera delay testing system and method. Background Technology
[0002] In camera product usage, image latency performance is the most direct quantitative feedback on user experience. Longer latency during photo taking, switching, and video recording results in a worse user experience, directly impacting product competitiveness. Therefore, latency testing for cameras is particularly important.
[0003] In the existing technology, the traditional camera latency testing system mainly includes the camera under test and a high frame rate recording device. After the camera shutter is manually pressed, the high frame rate recording device records the video taken by the camera, and the camera latency data is determined by manually counting several frames of the video.
[0004] However, in the existing technology, the high frame rate recording device records the video taken by the camera after the camera shutter is manually pressed, and the camera delay data is determined by manually analyzing several frames of the video. This method is easily affected by human subjectivity, resulting in a low accuracy of camera delay testing. Summary of the Invention
[0005] This application provides a camera latency testing system and method to solve the problem that the method of manually pressing the camera shutter, recording the video with a high frame rate recording device, and determining the camera latency data by manually analyzing several frames of the video is not only limited in application scenarios, but also increases the subjective error of camera latency testing.
[0006] In a first aspect, this application provides a camera latency testing system, comprising: a camera system under test, a high-speed camera system, an image sensor and a lighting switching system, and a slide rail, wherein the camera system under test, the high-speed camera system, and the image sensor and the lighting switching system are mounted on the slide rail;
[0007] The device is connected to the camera system under test, the high-speed camera system, the image card and the lighting switching system.
[0008] The camera system under test is used to receive adjustment instructions sent by the device and adjust the shooting position according to the adjustment instructions;
[0009] The image card and light switching system is used to receive switching instructions and displacement instructions sent by the device, and after the camera system under test is adjusted, to set the shooting background, light and distance from the camera system under test according to the switching instructions and displacement instructions, wherein the distance setting from the camera system under test depends on the slide rail;
[0010] The device is used to generate a test command after the shooting background, lighting and distance to the camera system under test are set, and send the test command to the camera system under test.
[0011] The camera system under test is configured according to the test instructions, and after the configuration is completed, it starts shooting until the shooting is completed;
[0012] The high-speed camera system is configured to set an exposure value based on ambient brightness after initialization; start recording when the exposure value is set and the camera system under test begins shooting; stop recording when the camera system under test finishes shooting to generate a video file; and send the video file to the device.
[0013] The device is used to determine the camera latency data of the camera system under test based on the video file.
[0014] In one possible design, the camera-under-test system includes: a camera-under-test and a robotic arm support, wherein the camera-under-test is mounted on the upper end of the robotic arm support and the lower end is mounted to the slide rail; wherein the device is communicatively connected to both the camera-under-test and the robotic arm support; the robotic arm support is used to adjust the shooting position of the camera-under-test according to the adjustment command; the camera-under-test is used to be configured according to the test command, and after configuration is completed, to start shooting until shooting is completed.
[0015] In one possible design, the high-speed camera system includes: a high-speed industrial camera and a camera bracket, wherein the high-speed industrial camera is mounted on the upper end of the camera bracket and on the lower end of the bracket; wherein the device is communicatively connected to the high-speed industrial camera; the high-speed industrial camera is used to set an exposure value according to the ambient brightness after initialization; to start recording when the exposure value is set and the camera system under test starts shooting; to stop recording when the camera system under test finishes shooting, thereby generating a video file; and to send the video file to the device.
[0016] In one possible design, the image card and lighting switching system includes: a front image card and lighting switching system and a rear image card and lighting switching system; wherein the device is communicatively connected to the front image card and lighting switching system and the rear image card and lighting switching system respectively; the front image card and lighting switching system is used to set the shooting background, lighting, and distance from the camera system under test according to the switching command and the displacement command after the camera system under test has been adjusted, wherein the distance setting from the camera system under test depends on the slide rail; the rear image card and lighting switching system is used to set the shooting background and lighting according to the switching command after the camera system under test has been adjusted.
[0017] In one possible design, the front-facing camera card and lighting switching system includes: a slidable front-facing camera panel, a front-facing camera card switching device, and a front-facing camera lighting switching device; the front-facing camera card switching device and the front-facing camera lighting switching device are respectively fixed to the slidable front-facing camera panel; the lower end of the slidable front-facing camera panel is mounted to the slide rail; wherein, the device end is communicatively connected to the front-facing camera card switching device; the front-facing camera card switching device is communicatively connected to the front-facing camera lighting switching device; the slidable front-facing camera panel is used to set the distance to the camera system under test according to the displacement command after the camera system under test has been adjusted; the front-facing camera card switching device is used to set the front shooting background according to the switching command after the distance to the camera system under test has been set, and generate a first communication signal; the front-facing camera lighting switching device is used to receive the first communication signal sent by the front-facing camera card switching device, and set the front lighting according to the first communication signal.
[0018] In one possible design, the rear camera card and lighting switching system includes: a slidable rear camera panel, a rear camera card switching device, and a rear camera lighting switching device; the rear camera card switching device and the rear camera lighting switching device are respectively fixed to the slidable rear camera panel; the lower end of the slidable rear camera panel is mounted to the slide rail; wherein, the device end is communicatively connected to the rear camera card switching device; the rear camera card switching device is communicatively connected to the rear camera lighting switching device; the rear camera card switching device is used to set the rear shooting background according to the switching command and generate a second communication signal; the rear camera lighting switching device is used to receive the second communication signal sent by the rear camera card switching device and set the rear lighting according to the second communication signal.
[0019] In one possible design, a cloud is used; wherein the cloud is communicatively connected to the device; the cloud is used to send camera latency test tasks to the device; the device is used to generate test requirements based on the camera latency test tasks, wherein the test requirements include adjustment instructions, switching instructions, and displacement instructions; the adjustment instructions are sent to the camera system under test; and the switching instructions and the displacement instructions are sent to the image card and the lighting switching system.
[0020] Secondly, this application provides a camera latency testing method, applied to the camera latency testing system described in the first aspect, comprising:
[0021] The camera system under test is used to receive adjustment instructions sent by the device and adjust the shooting position according to the adjustment instructions;
[0022] The image card and light switching system is used to receive switching instructions and displacement instructions sent by the device, and after the camera system under test is adjusted, to set the shooting background, light and distance from the camera system under test according to the switching instructions and displacement instructions, wherein the distance setting from the camera system under test depends on the slide rail;
[0023] The device is used to generate a test command after the shooting background, lighting and distance to the camera system under test are set, and send the test command to the camera system under test.
[0024] The camera system under test is configured according to the test instructions, and after the configuration is completed, it starts shooting until the shooting is completed;
[0025] The high-speed camera system is configured to set an exposure value based on ambient brightness after initialization; start recording when the exposure value is set and the camera system under test begins shooting; stop recording when the camera system under test finishes shooting to generate a video file; and send the video file to the device.
[0026] The device is used to determine the camera latency data of the camera system under test based on the video file.
[0027] In one possible design, determining the camera latency data of the camera system under test based on the video file includes: performing frame segmentation on the video file according to a preset framing tool and a preset framing frequency to obtain multiple images; cropping each image using a preset region of interest to obtain cropped images; identifying one or more target images that have changed from each cropped image according to a preset image recognition algorithm and a preset image change threshold; determining a start frame and an end frame based on each target image; and determining the camera latency data of the camera system under test based on the start frame, the end frame, and the preset framing frequency.
[0028] In one possible design, after determining the camera latency data of the camera system under test based on the video file, the device is further configured to generate a test report based on the camera latency data of the camera system under test and send the test report to the cloud.
[0029] The camera latency testing system and method provided in this application include: a camera system under test (DUT) receiving adjustment commands from the device and adjusting the shooting position accordingly; a camera card and lighting switching system receiving switching and displacement commands from the device and setting the shooting background, lighting, and distance from the DUT based on these commands after the DUT has been adjusted; a device generating test commands and sending them to the DUT after setting the shooting background, lighting, and distance from the DUT; the DUT configuring itself according to the test commands and starting to shoot until shooting is complete; and a high-speed camera system that performs initialization... Then, the exposure value is set according to the ambient brightness; when the exposure value is set and the camera system under test starts shooting, recording is started; when the camera system under test finishes shooting, recording ends to generate a video file; the video file is sent to the device; the device is used to determine the camera latency data of the camera system under test based on the video file. Through the collaboration of the camera system under test, the high-speed camera system, the image card, the lighting switching system, and the slider, the shooting position is adjusted, the shooting background, lighting, and distance from the camera system under test are set, and the camera latency data is automatically generated based on the video file of the camera system under test. This not only avoids human subjective error, but also makes many detailed adjustments to the application scenario, thereby improving the accuracy of camera latency testing. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 A schematic diagram of the camera delay testing system provided in this application embodiment. Figure 1 ;
[0032] Figure 2 A schematic diagram of the camera delay testing system provided in this application embodiment. Figure 2 ;
[0033] Figure 3 This is a flowchart illustrating the camera latency testing method provided in an embodiment of this application. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0035] In camera product usage, image latency performance is the most direct quantitative feedback on user experience. Longer latency during photo taking, switching, and video recording results in a worse user experience, directly impacting product competitiveness. Therefore, camera latency testing is particularly important. Existing technology, traditional camera latency testing systems mainly include the camera under test and a high frame rate recording device. The camera shutter is manually pressed, and the high frame rate recording device records the video. The camera latency data is then determined by manually analyzing several frames. However, this method of manually pressing the shutter, recording the video, and then manually analyzing several frames is easily influenced by human subjectivity, resulting in low accuracy in camera latency testing.
[0036] To address the aforementioned technical problems, this application proposes the following technical concept: The inventors consider a camera latency testing system comprising a camera system under test, a high-speed camera system, an image sensor, a lighting switching system, and a sliding rail. Based on the camera system under test, the shooting position is adjusted according to adjustment commands sent from the device. Based on the image sensor and lighting switching system, the shooting background, lighting, and distance from the camera system under test are set according to switching and displacement commands sent from the device. From the device, test commands are sent to the camera system under test. The camera system under test is configured according to the test commands, and after configuration, it begins shooting until shooting is complete. Using the high-speed camera system, recording begins when the camera system under test starts shooting; recording ends when the camera system under test finishes shooting to generate a video file. The device uses the video file to determine the camera latency data of the camera system under test, thereby improving the accuracy of camera latency testing.
[0037] Figure 1 This is a schematic diagram of the camera delay testing system provided in the embodiments of this application. Figure 1 .
[0038] like Figure 1 As shown, the camera latency test system 10 includes: a camera system under test 101, a high-speed camera system 102, an image card and lighting switching system 103, and a slide rail 104. The camera system under test 101, the high-speed camera system 102, the image card and lighting switching system 103 are mounted on the slide rail 104.
[0039] Among them, the device end 20 is connected to the camera system under test 101, the high-speed camera system 102, the image card and the lighting switching system 103 for communication.
[0040] The camera system under test 101 is used to receive adjustment instructions sent by the device 20 and adjust the shooting position according to the adjustment instructions.
[0041] The image card and lighting switching system 103 is used to receive switching and displacement commands sent by the device 20, and after the camera system under test 101 is adjusted, it sets the shooting background, lighting and distance to the camera system under test 101 according to the switching and displacement commands.
[0042] The device 20 is used to generate test commands and send them to the camera system under test 101 after the shooting background, lighting and distance to the camera system under test 101 are set.
[0043] The camera system under test 101 is used to configure itself according to the test instructions, and after the configuration is completed, it starts shooting until the shooting is completed.
[0044] The high-speed camera system 102 is used to set the exposure value according to the ambient brightness after initialization; start recording when the exposure value is set and the camera system under test 101 starts shooting; stop recording when the camera system under test 101 finishes shooting to generate a video file; and send the video file to the device terminal 20.
[0045] Device 20 is used to determine the camera delay data of the camera system 101 under test based on the video recording file.
[0046] Continue to refer to Figure 1 It also includes: cloud 30; wherein the cloud 30 communicates with the device 20.
[0047] Cloud 30 is used to send camera latency test tasks to device 20.
[0048] The device 20 is used to generate test requirements based on the camera latency test task, including adjustment instructions, switching instructions and displacement instructions; the adjustment instructions are sent to the camera system under test 101; the switching instructions and displacement instructions are sent to the image card and light switching system 103.
[0049] In summary, the camera latency testing system provided in this embodiment uses the camera system under test (DUT) to receive adjustment commands sent by the device and adjust the shooting position accordingly. The image card and lighting switching system receives switching and displacement commands from the device and, after the DUT is adjusted, sets the shooting background, lighting, and distance to the DUT based on these commands. The device generates test commands after setting the shooting background, lighting, and distance to the DUT and sends them to the DUT. The DUT is configured according to the test commands and begins shooting after configuration, continuing until shooting is complete. The high-speed camera system is initialized... After completion, the exposure value is set according to the ambient brightness; recording begins when the exposure value is set and the camera system under test starts shooting; recording ends when the camera system under test finishes shooting to generate a video file; the video file is sent to the device; the device determines the camera latency data of the camera system under test based on the video file. Through the collaboration of the camera system under test, high-speed camera system, image card, lighting switching system, and slider, the shooting position is adjusted, the shooting background, lighting, and distance from the camera system under test are set, and the camera latency data is automatically generated based on the video file of the camera system under test. This not only avoids human subjective error but also makes many detailed adjustments to the application scenario, thereby improving the accuracy of camera latency testing.
[0050] In addition, the camera latency testing system provided in this embodiment uses the camera system under test to receive adjustment instructions sent by the device and adjust the shooting position according to the adjustment instructions; the image card and light switching system is used to receive switching instructions and displacement instructions sent by the device, and after the camera system under test is adjusted, it sets the shooting background, light and distance to the camera system under test according to the switching instructions and displacement instructions, so that the camera latency testing system can be applied to more usage scenarios of the camera under test, so as to comprehensively improve the product quality of the camera under test.
[0051] In addition, the camera latency testing system provided in this embodiment automatically generates camera latency data through the collaboration of the camera system under test, the high-speed camera system, the image card, the lighting switching system, and the slide rail, reducing manual intervention and thus lowering labor costs.
[0052] Figure 2 This is a schematic diagram of the camera delay testing system provided in the embodiments of this application. Figure 2 ,exist Figure 1 Based on the previous embodiment, the camera system under test 101 includes: a camera under test 1011 and a robotic arm support 1012, with the camera under test 1011 mounted on the upper end of the robotic arm support 1012 and the lower end mounted to the slide rail 104.
[0053] The device 20 is connected to the camera under test 1011 and the robotic arm support 1012 for communication.
[0054] Among them, the device end 20 is connected to the camera under test 1011 via ADB; the device end 20 is connected to the robotic arm support 1012 via USB.
[0055] The robotic arm support 1012 is used to adjust the shooting position of the camera 1011 under test according to the adjustment instructions.
[0056] In this embodiment, the robotic arm support 1012 is composed of a three-degree-of-freedom robotic arm, with its end connected to the support of the camera under test 1011, which is compatible with camera devices of different types and sizes.
[0057] In addition, the robotic arm support can not only move back and forth along the bottom slide rail to automatically set the shooting distance (accuracy up to 1cm), but also move up and down.
[0058] For example, the instructions are modified to Python instructions.
[0059] Specifically, the robotic arm support 1012 is used to adjust the shooting position of the camera 1011 under test by moving it up, down, forward, and backward according to Python instructions.
[0060] In addition, automatic edge detection can be performed: a preset reference image set is used, and a hash-related algorithm is used to compare the image captured by the camera under test 1011 with the reference image set. If the image does not match the reference image, the movement of the robotic arm support 1012 is continuously adjusted in a loop.
[0061] In addition, the above steps are executed by the control system of the robotic arm support 1012.
[0062] The camera under test, 1011, is used to configure itself according to the test instructions, and after the configuration is completed, it starts shooting until the shooting is finished.
[0063] For example, the test instructions are Python + UIA automation scripts.
[0064] Specifically, the camera system under test 101 is used to configure preset conditions for various user scenarios, such as camera cold and warm start, various mode switching, auto shooting, HDR shooting, night scene shooting, portrait shooting, flash shooting, video recording response, video recording and saving, slow recording and saving, scan to call, AE convergence, AF focusing, AWB convergence, etc., according to the Python+UIA automated script, and after the configuration is completed, it starts shooting until the shooting is completed.
[0065] In addition, the camera system under test 101 will return to its initial state after completing the shooting.
[0066] Furthermore, the above steps are performed by the automatic control system of the camera system under test 101.
[0067] Continue to refer to Figure 2 The high-speed camera system 102 includes a high-speed industrial camera 1021 and a camera bracket 1022. The high-speed industrial camera 1021 is mounted on the upper end of the camera bracket 1022 and the lower end is mounted to the slide rail 104.
[0068] Among them, the device end 20 is connected to the high-speed industrial camera 1021 for communication.
[0069] Among them, the device end 20 is connected to the high-speed industrial camera 1021 via USB.
[0070] The high-speed industrial camera 1021 is used to set the exposure value according to the ambient brightness after initialization; start recording when the exposure value is set and the camera system under test 101 starts shooting; stop recording when the camera system under test 102 finishes shooting to generate a video file; and send the video file to the device terminal 20.
[0071] In this embodiment, the exposure value is used to ensure clear video recording and a high frame rate.
[0072] In this embodiment, the video file is a recording of the changes in the camera system 101 under test in a high frame rate format. During this process, it is necessary to precisely control the start and end times of recording of the high-speed industrial camera 1021.
[0073] Furthermore, the above steps are executed by the control system of the high-speed industrial camera 1021.
[0074] Continue to refer to Figure 2 The camera card and lighting switching system 103 includes: a front camera card and lighting switching system 1031 and a rear camera card and lighting switching system 1032.
[0075] Among them, the device 20 is connected to the front camera card and lighting switching system 1031 and the rear camera card and lighting switching system 1032 for communication.
[0076] The front-facing camera card and lighting switching system 1031 are used to set the shooting background, lighting, and distance from the camera system 101 under test according to the switching command and displacement command after the camera system 101 under test has been adjusted.
[0077] The rear camera card and lighting switching system 1032 is used to set the shooting background and lighting according to the switching command after the camera system 101 under test has been adjusted.
[0078] Continue to refer to Figure 2The front camera card and lighting switching system 1031 includes: a slidable front camera panel 10311, a front camera card switching device 10312, and a front camera lighting switching device 10313; the front camera card switching device 10312 and the front camera lighting switching device 10313 are respectively fixed to the slidable front camera panel 10311; the lower end of the slidable front camera panel 10311 is mounted to a slide rail 104.
[0079] Among them, the device end 20 is connected to the front camera card switching device 10312; the front camera card switching device 10312 is connected to the front camera light switching device 10313.
[0080] Among them, the device 20 is connected to the front camera card switching device 10312 via ADB; the front camera card switching device 10312 is connected to the front camera light switching device 10313 via WiFi.
[0081] The sliding front camera panel 10311 is used to set the distance between itself and the camera system under test 101 according to the displacement command after the camera system under test 101 has been adjusted.
[0082] In this embodiment, the distance between the slidable front camera panel 10311 and the camera system under test 101 can be set manually or automatically by the electric pulley at the bottom of the slidable front camera panel 10311.
[0083] In addition, the sliding front camera panel 10311 can automatically set the shooting distance according to different cameras under test 1011, such as smartphones, tablets and wearable devices.
[0084] The front-facing image card switching device 10312 is used to set the front shooting background according to the switching command after the distance to the camera system 101 under test is set, and to generate a first communication signal.
[0085] For example, the front camera card switching device 10312 is a pad device.
[0086] For example, this step uses the front switching instruction in the switching instructions.
[0087] In this embodiment, the front shooting background covers a total of 133 shooting scenes, including multiple people, single person, no one, front lighting, backlighting, side lighting, night scene, and high dynamic range (HDR).
[0088] In this embodiment, the first communication signal is a WiFi signal.
[0089] The front camera light switching device 10313 is used to receive the first communication signal sent by the front camera card switching device 10312, and to set the front light according to the first communication signal.
[0090] In this embodiment, the lighting settings include light source switching, brightness and color temperature adjustment.
[0091] In addition, the background lighting for the lighting setup tests covered D65, TL84, and A light sources, with brightness ranging from 0 lux to 1200 lux, totaling 24 types of lighting.
[0092] Continue to refer to Figure 2 The rear camera card and lighting switching system 1032 includes: a sliding rear camera panel 10321, a rear camera card switching device 10322, and a rear camera lighting switching device 10323.
[0093] Among them, the rear camera card switching device 10322 and the rear camera light switching device 10323 are respectively fixed to the slidable rear camera panel 10321; the lower end of the slidable rear camera panel 10321 is installed on the slide rail 104.
[0094] Among them, device 20 is connected to the rear camera card switching device 10322; the rear camera card switching device 10322 is connected to the rear camera light switching device 10323.
[0095] Among them, device 20 is connected to the rear camera image card switching device 10322 via ADB; the rear camera image card switching device 10322 is connected to the rear camera light switching device 10323 via WiFi.
[0096] The rear camera switching device 10322 is used to set the rear shooting background according to the switching command and generate a second communication signal.
[0097] For example, the rear camera card switching device 10322 is a pad device.
[0098] For example, this step uses the later switching instruction in the switching instruction.
[0099] In this embodiment, the rear shooting background covers a total of 133 shooting scenes, including multiple people, single person, no one, front lighting, backlighting, side lighting, night scene, and high dynamic range (HDR).
[0100] In this embodiment, the second communication signal is a WiFi signal.
[0101] The rear camera lighting switching device 10323 is used to receive the second communication signal sent by the rear camera card switching device 10322, and to set the rear lighting according to the second communication signal.
[0102] In this embodiment, the lighting settings include light source switching, brightness and color temperature adjustment.
[0103] In addition, the sliding rear camera panel 10321 can also be slid as needed. When setting the distance between the sliding rear camera panel 10321 and the camera system under test 101, it can be done manually or automatically through the electric pulley at the bottom of the sliding rear camera panel 10321.
[0104] In addition, the sliding rear camera panel 10321 can automatically set the shooting distance according to different cameras under test 1011, such as smartphones, tablets and wearable devices.
[0105] In summary, the camera latency testing system provided in this embodiment, through the collaboration of the camera under test, robotic arm support, high-speed industrial camera, camera bracket, sliding front camera panel, front camera image card switching device, front camera light switching device, sliding rear camera panel, rear camera image card switching device, rear camera light switching device, and slide rail, achieves automatic generation of camera latency data, thereby avoiding human subjective error and improving the accuracy of camera latency testing.
[0106] Figure 3 This is a flowchart illustrating the camera latency testing method provided in this embodiment. The execution entity of this embodiment can be... Figure 1 The camera latency testing system in the illustrated embodiment is not particularly limited in this embodiment. Figure 3 As shown, the method includes:
[0107] S301: The camera system under test, used to receive adjustment instructions sent by the device and adjust the shooting position according to the adjustment instructions.
[0108] S302: Image card and lighting switching system, used to receive switching and displacement commands sent by the device, and after the camera system under test has been adjusted, to set the shooting background, lighting and distance to the camera system under test according to the switching and displacement commands.
[0109] S303: Device side, used to generate test commands after the shooting background, lighting and distance to the camera system under test are set, and send the test commands to the camera system under test.
[0110] S304: Camera system under test, used to configure according to test instructions, and after configuration is completed, to start shooting until shooting is completed.
[0111] S305: High-speed camera system, used to set the exposure value according to the ambient brightness after initialization; start recording when the exposure value is set and the camera system under test starts shooting; stop recording when the camera system under test finishes shooting to generate a video file; and send the video file to the device.
[0112] S306: Device side, used to determine the camera latency data of the camera system under test based on the video recording file.
[0113] Specifically, step S306 includes steps a to e:
[0114] Step a: Perform frame segmentation on the video file according to the preset frame segmentation tool and preset frame segmentation frequency to obtain multiple images.
[0115] In this embodiment, the preset frame segmentation tool can be the ffmpeg frame segmentation tool or other frame segmentation tools.
[0116] In this embodiment, the preset frame rate can be 120fps, 240fps, or 480fps, or other frame rates.
[0117] Step b: Crop each image using a preset region of interest to obtain cropped images.
[0118] In this embodiment, the preset region of interest is the ROI region.
[0119] Step c: Based on the preset image recognition algorithm and the preset image change threshold, identify one or more target images that have changed from each cropped image.
[0120] The preset image recognition algorithm is a recognition algorithm for different images determined according to different scenarios.
[0121] The preset image change threshold is an image change threshold set according to scene requirements.
[0122] Specifically, select any current frame and previous frame from each cropped image; identify the difference between the current frame and the previous frame according to a preset image recognition algorithm; if the difference is greater than a preset image change threshold, then the current frame is determined as the target image that has changed; if the difference is less than or equal to the preset image change threshold, then the current frame is determined not to have changed.
[0123] Step d: Determine the start frame and end frame based on each target image.
[0124] Specifically, the start and end frames are located and determined from each target image based on the three histograms and the SSIM method.
[0125] Step e: Determine the camera delay data of the camera system under test based on the start frame, end frame, and preset frame rate.
[0126] In addition, if the effect of determining the camera delay data in a single test is not good, the camera under test can be tested 10 times in a row. After removing the values with large differences, the average value is calculated, the comparison data is imported, and the pass / fail is determined.
[0127] In addition, after step 306, the process also includes: on the device side, which generates a test report based on the camera latency data of the camera system under test and sends the test report to the cloud.
[0128] In summary, the camera latency testing method provided in this embodiment uses the camera system under test (DUT) to receive adjustment commands sent by the device and adjust the shooting position accordingly. The image card and lighting switching system receive switching and displacement commands from the device and, after the DUT is adjusted, sets the shooting background, lighting, and distance to the DUT based on these commands. The device generates test commands after setting the shooting background, lighting, and distance to the DUT and sends them to the DUT. The DUT configures itself according to the test commands and, after configuration, begins shooting until shooting is complete. The high-speed camera system initializes... After completion, the exposure value is set according to the ambient brightness; recording begins when the exposure value is set and the camera system under test starts shooting; recording ends when the camera system under test finishes shooting to generate a video file; the video file is sent to the device; the device determines the camera latency data of the camera system under test based on the video file. Through the collaboration of the camera system under test, high-speed camera system, image card, lighting switching system, and slider, the shooting position is adjusted, the shooting background, lighting, and distance from the camera system under test are set, and the camera latency data is automatically generated based on the video file of the camera system under test. This not only avoids human subjective error but also makes many detailed adjustments to the application scenario, thereby improving the accuracy of camera latency testing.
[0129] It should be noted that the test scenarios in this application cover various shooting modes of the camera under test, including front and rear camera auto shooting, beauty mode, portrait mode, filter mode, ultra-high definition mode, night scene mode, flash mode, telephoto mode, and ultra-wide angle mode, as well as 1080P, 720P, and 480P video recording, totaling 146 performance scenarios.
[0130] Based on the performance latency data of 146 scenarios in the above two types, the overall performance competitiveness evaluation value of the camera under test can be calculated through the performance competitiveness model, so as to compare it with similar products on the market.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A camera latency test system, characterized by, The application relates to a camera system, a high-speed camera system, a camera card and light switching system and a slide rail, wherein the camera system, the high-speed camera system and the camera card and light switching system are installed on the slide rail. A device end is in communication connection with the camera system, the high-speed camera system and the camera card and light switching system. The camera system is used for receiving an adjustment instruction sent by the device end and adjusting a shooting position according to the adjustment instruction. The camera card and light switching system is used for receiving a switching instruction and a displacement instruction sent by the device end and setting a shooting background, light and distance from the camera system according to the switching instruction and the displacement instruction after the camera system is adjusted. The device end is used for generating a test instruction after the shooting background, light and distance from the camera system are set and sending the test instruction to the camera system. The camera system is used for configuring according to the test instruction and starting shooting until shooting is completed after the configuration is completed. The high-speed camera system is used for setting an exposure value according to ambient brightness after initialization is completed, starting recording when the exposure value is set and the camera system starts shooting, ending recording when the camera system finishes shooting to generate a recording file and sending the recording file to the device end. The device end is used for determining camera time delay data of the camera system according to the recording file. The camera system comprises a camera under test and a mechanical arm support, the upper end of the mechanical arm support is installed with the camera under test and the lower end is installed on the slide rail.
2. The camera latency test system of claim 1, wherein, The device end is in communication connection with the camera under test and the mechanical arm support. The mechanical arm support is used for adjusting a shooting position of the camera under test according to the adjustment instruction. The camera under test is used for configuring according to the test instruction and starting shooting until shooting is completed after the configuration is completed. The high-speed camera system comprises a high-speed industrial camera and a camera support, the upper end of the camera support is installed with the high-speed industrial camera and the lower end is installed on the slide rail.
3. The camera latency test system of claim 1, wherein, The device end is in communication connection with the high-speed industrial camera. The high-speed industrial camera is used for setting an exposure value according to ambient brightness after initialization is completed, starting recording when the exposure value is set and the camera system starts shooting, ending recording when the camera system finishes shooting to generate a recording file and sending the recording file to the device end. The camera card and light switching system comprises a front camera card and light switching system and a rear camera card and light switching system.
4. The camera latency test system of claim 1, wherein, The device end is in communication connection with the front camera card and light switching system and the rear camera card and light switching system. The front-facing camera card and lighting switching system are used to set the shooting background, lighting, and distance from the camera system under test according to the switching command and the displacement command after the camera system under test is adjusted, wherein the distance setting from the camera system under test depends on the slide rail. The rear camera card and lighting switching system are used to set the shooting background and lighting according to the switching command after the camera system under test has been adjusted.
5. The camera latency test system of claim 4, wherein, The front camera card and lighting switching system includes: a slidable front camera panel, a front camera card switching device, and a front camera lighting switching device; the front camera card switching device and the front camera lighting switching device are respectively fixed to the slidable front camera panel; the lower end of the slidable front camera panel is mounted to the slide rail; The device is communicatively connected to the front camera card switching device; the front camera card switching device is communicatively connected to the front camera light switching device. The slidable front camera panel is used to set the distance to the camera system under test according to the displacement command after the camera system under test has been adjusted. The front-facing image card switching device is used to set the front shooting background according to the switching command after the distance to the camera system under test is set, and to generate a first communication signal. The front camera lighting switching device is used to receive a first communication signal sent by the front camera card switching device, and to set the front lighting according to the first communication signal.
6. The camera latency test system of claim 4, wherein, The rear camera card and lighting switching system includes: a slidable rear camera panel, a rear camera card switching device, and a rear camera lighting switching device; the rear camera card switching device and the rear camera lighting switching device are respectively fixed to the slidable rear camera panel; the lower end of the slidable rear camera panel is mounted to the slide rail; The device is communicatively connected to the rear camera image card switching device; the rear camera image card switching device is communicatively connected to the rear camera lighting switching device. The rear camera switching device is used to set the rear shooting background according to the switching command and generate a second communication signal; The rear camera lighting switching device is used to receive a second communication signal sent by the rear camera card switching device, and to set the rear lighting according to the second communication signal.
7. The camera latency test system of claim 1, wherein, Also includes: Cloud; The cloud and the device are connected via a communication link. The cloud is used to send camera latency test tasks to the device. The device is configured to generate test requirements based on the camera latency test task, wherein the test requirements include adjustment instructions, switching instructions, and displacement instructions; send the adjustment instructions to the camera system under test; and send the switching instructions and the displacement instructions to the image card and the lighting switching system.
8. A camera latency test method, comprising: The system applied to the camera delay testing system as described in claim 1 includes: The camera system under test is used to receive adjustment instructions sent by the device and adjust the shooting position according to the adjustment instructions; The image card and light switching system is used to receive switching instructions and displacement instructions sent by the device, and after the camera system under test is adjusted, to set the shooting background, light and distance from the camera system under test according to the switching instructions and displacement instructions, wherein the distance setting from the camera system under test depends on the slide rail; The device is used to generate a test command after the shooting background, lighting and distance to the camera system under test are set, and send the test command to the camera system under test. The camera system under test is configured according to the test instructions, and after the configuration is completed, it starts shooting until the shooting is completed; The high-speed camera system is configured to set an exposure value based on ambient brightness after initialization; start recording when the exposure value is set and the camera system under test begins shooting; stop recording when the camera system under test finishes shooting to generate a video file; and send the video file to the device. The device is used to determine the camera latency data of the camera system under test based on the video file.
9. The camera time-lapse testing method of claim 8, wherein, Determining the camera delay data of the camera system under test based on the video file includes: The video file is divided into frames according to a preset frame-segmentation tool and a preset frame-segmentation frequency to obtain multiple images; By pre-setting the region of interest, each image is cropped to obtain the cropped image; Based on a preset image recognition algorithm and a preset image change threshold, identify one or more target images that have changed from each cropped image; Determine the start and end frames based on each target image; The camera delay data of the camera system under test is determined based on the start frame, the end frame, and the preset frame rate.
10. The camera time-lapse testing method of claim 8, wherein, After determining the camera delay data of the camera system under test based on the video file, the method further includes: The device is used to generate a test report based on the camera latency data of the camera system under test, and send the test report to the cloud.