Terminal device testing method and control device
By combining global and local light sources and adjusting the occlusion components, the problem of excessively narrow adjustment range of illumination and dynamic range values in terminal device testing was solved, achieving more comprehensive testing results and ensuring optimized shooting performance of terminal devices in diverse scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-05-31
- Publication Date
- 2026-05-22
Smart Images

Figure CN120768974B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of testing technology, and in particular to a terminal device testing method and control device. Background Technology
[0002] With the widespread adoption of mobile devices, they are gradually replacing professional cameras and being used by users to capture images of real-world environments for record-keeping. However, real-world environments present a wide variety of scenes, and mobile devices generally need to employ shooting parameters and algorithms that match the specific scene to achieve good results. For example, when shooting in a dark scene, using a night scene algorithm on a mobile device can significantly improve the shooting effect.
[0003] To ensure that terminal devices can achieve good shooting results in different scenarios, it is generally necessary to conduct shooting performance tests on the devices before they leave the factory. The accuracy of the pre-shipment performance tests largely determines the shooting performance of the terminal devices after they leave the factory.
[0004] Therefore, it is crucial to accurately test the shooting performance of terminal devices during the testing phase. Summary of the Invention
[0005] This application provides a terminal device testing method and control device to improve testing results, so that the terminal has better shooting performance after leaving the factory.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, this application provides a terminal device testing method, which is applied to a control device in a testing system. The testing system includes a first light source, a second light source, a terminal device with a camera (such as a mobile phone), and a blocking component. The blocking component is disposed between the terminal device and the second light source. The first light source is a global light source (such as a ceiling light), and the second light source is a local light source (such as a large light box).
[0008] The control device (such as a computer) determines the preset combination corresponding to the target illuminance value and the target dynamic range value based on a pre-calibrated correspondence, i.e., it finds the target combination. The pre-calibrated correspondence refers to the correspondence between the preset combination and the preset environmental parameters. Each preset combination includes a preset illuminance value for a first light source, a preset illuminance value for a second light source, and a preset relative position between the blocking component and the second light source. For example, a preset combination could be: an illuminance value of 1000 Lux for the ceiling light, an illuminance value of 10000 Lux for the large light box, and a relative position of 100 levels between the blocking component and the large light box, in which case the blocking component blocks 50% of the area of the large light box. Each corresponding preset environmental parameter includes a preset illuminance value and / or a preset dynamic range value. Therefore, the preset illuminance value of the first light source included in the target combination is denoted as the first target illuminance value, the preset illuminance value of the second light source in the target combination is denoted as the second target illuminance value, and the preset relative position between the blocking component and the second light source in the target combination is denoted as the target relative position.
[0009] The control device adjusts the first light source according to the first target illuminance value, adjusts the second light source according to the second target illuminance value, and adjusts the blocking component according to the relative position of the target. The adjustment will cause the overall illuminance value and / or dynamic range value in the test environment to change. Therefore, after the adjustment is completed, if the actual overall illuminance value is close to the target illuminance value and / or the actual dynamic range value is close to the target dynamic range, the camera shooting test of the terminal device can be triggered.
[0010] In the above scheme, by adjusting the illuminance values of the first and second light sources and the relative positions of the obstruction and the second light source according to the pre-calibrated correspondence, the test environment can be adjusted to the indicated illuminance and dynamic range values more quickly and accurately. Since the illuminance values of the top light, the large lightbox, and the relative positions of the obstruction and the large lightbox are all adjustable, the test system can be divided into more preset combinations, providing a wider range of illuminance and dynamic range values. This method can cover a sufficient number of scenarios with varying illuminance and dynamic range values to test the shooting performance of the terminal equipment, achieving the technical effect of improving the accuracy of terminal equipment testing.
[0011] In one possible implementation of the first aspect, when the actual total illuminance value and / or the actual dynamic range value are not close to the target illuminance value and / or the target dynamic range, the control device adjusts the test system in a direction closer to the target illuminance value and / or the target dynamic range value. For example, the illuminance value of the first light source, the illuminance value of the second light source, and / or the relative position of the blocking element and the second light source are adjusted step by step until the actual total illuminance value and / or the actual dynamic range value is close to the target illuminance value and / or the target dynamic range.
[0012] In the above solution, by adjusting the illuminance values of the top light, the illuminance value of the large lightbox, and the relative position of the shielding component and the large lightbox step by step, the test environment can be flexibly and finely adjusted to test the shooting performance of the terminal device under sufficiently diverse test environments, thereby achieving the technical effect of improving the accuracy of terminal device testing.
[0013] In another possible implementation of the first aspect, during the process of adjusting the test system towards a direction closer to the target illuminance value and / or target dynamic range value, the control device acquires the actual total illuminance value and / or actual dynamic range value of the test system in the test environment after each adjustment. If the control system confirms that the actual total illuminance value and / or actual dynamic range value is not close to the target illuminance value and / or target dynamic range, it continues to adjust to the next level until the actual total illuminance value and / or actual dynamic range value approaches the target illuminance value and / or target dynamic range.
[0014] The above scheme allows for fine-grained adjustment of the test environment and step-by-step adjustments based on the calibrated correspondence, which improves adjustment efficiency while ensuring accuracy.
[0015] In another possible implementation of the first aspect, after the control device adjusts the test system, the terminal device detects the actual total illuminance value and / or actual dynamic range value within the range that the camera can capture. The control device obtains the actual total illuminance value and / or actual dynamic range value in the test environment through the terminal device.
[0016] In the above scheme, the actual total illuminance value and / or actual dynamic range value of the environment are detected by the terminal device. After the actual total illuminance value and / or actual dynamic range value are adjusted to the target illuminance value and / or target dynamic range value, it can be sensed and sent to the control device in a timely manner, which helps the control device to stop the adjustment in time and avoid the consumption of system resources caused by unnecessary adjustment.
[0017] In another possible implementation of the first aspect, the testing system can test different models of terminal devices; the testing system also includes support equipment that supports multiple terminal devices. When the field of view of the cameras of different models of terminal devices is different, the control equipment controls the movement of the support equipment to keep the field of view of the cameras of different models of terminal devices consistent during testing.
[0018] The above solution can maintain the same field of view of cameras on various terminal devices, which helps to maintain the consistency of the size of the test image and the size of the object being photographed during the test process, and helps to maintain the consistency of the overall illuminance value and dynamic range value range that the test system can provide, thereby resulting in better test results.
[0019] In another possible implementation of the first aspect, the control device has a parameter monitoring program that, after being authorized, can detect some environmental parameters detected by the terminal device; the control device can obtain the actual total illuminance value and / or the actual dynamic range value detected by the terminal device through the parameter monitoring program.
[0020] In the above scheme, during the adjustment phase before testing, the control device can sense changes in environmental parameters in a timely manner through interaction with the terminal device, thereby enabling faster and more accurate adjustments.
[0021] In another possible implementation of the first aspect, the control device divides the illuminance adjustment range of the first light source, the illuminance adjustment range of the second light source, and the relative position adjustment range between the obstruction and the second light source, respectively. It then combines the resulting preset illuminance values for the first light source, the preset illuminance values for the second light source, and the preset relative positions to obtain multiple preset combinations. These multiple preset combinations can cover many test environments. Therefore, the control device adjusts the test system according to each preset combination and obtains the environmental parameters after adjustment under each preset combination. The correspondence between the preset combinations and the corresponding environmental parameters is the calibrated correspondence.
[0022] In the above-mentioned scheme, the terminal device testing method provided in this application helps to flexibly adjust the testing environment by calibrating the correspondence between multiple preset combinations and the overall illuminance value and low dynamic range value, so as to test the shooting performance of the terminal device in a sufficiently diverse shooting scenario.
[0023] In another possible implementation of the first aspect, the control device adjusts the first light source, the second light source, and the adjusting shield according to various preset combinations. After each adjustment according to a preset combination, the control device obtains the environmental parameters detected in the adjusted test environment from the terminal device.
[0024] In the above scheme, the control device can obtain the environmental parameters detected in the adjusted test environment from the terminal device. This helps the control device to promptly perceive changes in environmental parameters and calibrate the correspondence between preset combinations and environmental parameters. Furthermore, the control device does not need to perform additional detection processing or add extra devices to detect environmental parameters. Instead, it fully utilizes the detection results from the terminal device through interaction, saving system resources and improving resource utilization.
[0025] In another possible implementation of the first aspect, when the preset environmental parameters do not include the target illuminance value and / or the target dynamic range value, the control device finds a first illuminance value close to the target illuminance value from the preset illuminance values in the preset environmental parameters, and / or finds a first dynamic range value close to the target dynamic range value from the preset dynamic range values in the preset environmental parameters. Based on the correspondence, the control device finds a preset combination corresponding to the first illuminance value and / or the first dynamic range value.
[0026] In the above scheme, when the pre-calibrated correspondence does not include the target illuminance value and / or the target dynamic range value, the test system can be adjusted first according to a preset combination that is close to the target illuminance value and / or the target dynamic range value to speed up the adjustment.
[0027] In another possible implementation of the first aspect, when there are multiple second illuminance values or multiple second dynamic range values that are close to the target illuminance value or the target dynamic range value, the control device filters out the target illuminance value or the dynamic range value that is closest to the target illuminance value, and then searches for a preset combination from a preset correspondence based on the closest illuminance value or the closest dynamic range value.
[0028] The above scheme helps the control equipment find the target illuminance value or the dynamic range value that is closest to the target dynamic range value, and then adjusts the test system so that the actual illuminance value and the actual dynamic range value are closest to the target illuminance value and the target dynamic range value.
[0029] In another possible implementation of the first aspect, the blocking element includes a movable element and a blocking component, the blocking element and the movable element being movably connected, and the control device adjusting the movement of the movable element to change the blocking ratio of the blocking component to the second light source.
[0030] In the above scheme, by changing the occlusion ratio of the occlusion component on the second light source, it is helpful to change the overall illuminance value and dynamic range value in the test environment, thereby providing a wider range of overall illuminance value and dynamic range value and improving the accuracy of the test results.
[0031] In another possible implementation of the first aspect, the blocking component includes a first extension plate and a second extension plate on both sides of the blocking member; the first extension plate and the second extension plate extend toward the direction of the second light source, thereby blocking the side of the second light source.
[0032] The above scheme helps to block the side of the second light source, reducing the probability of light leakage from the side of the second light source, and thus helps to reduce the impact of the second light source on the global light source, i.e., the first light source.
[0033] Secondly, this application provides a testing system, including: a global light source, a local light source, a terminal device with a camera, a blocking component, and a control device; the illuminance values of both the global light source and the local light source are adjustable, the blocking component is located between the terminal device and the second light source, and the relative position of the blocking component and the local light source is adjustable; the camera's shooting object includes at least one of the local light source or the blocking component; the testing system is used to initiate a shooting test for the terminal device.
[0034] The testing system provided in this application offers a wider range of overall illuminance values because both the global and local light sources are adjustable. Furthermore, the adjustable occlusion area of the local light source by the blocking device further expands the dynamic range. Therefore, the illuminance and dynamic range values can be adjusted more flexibly and comprehensively during testing, covering a wider range of shooting scenarios and allowing for the application of more camera parameters and shooting algorithms. This comprehensive testing of the terminal device during the testing phase enhances the accuracy of the testing results.
[0035] The technical effects of any design method in the second aspect can be found in the technical effects of different design methods in the first aspect, and will not be repeated here.
[0036] Thirdly, this application provides a control device, which includes at least a memory and one or more processors. The memory stores computer instructions, and when the one or more processors execute the computer instructions, the control device performs the method described in any of the first aspects above.
[0037] Fourthly, this application provides a computer storage medium including computer instructions that, when executed on a control device and / or a terminal device, cause the control device and / or the terminal device to perform the method described in any of the first aspects above.
[0038] Fifthly, this application provides a computer program product that, when run on a control device and / or terminal device, causes the control device and / or terminal device to perform the method described in any of the first aspects above. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of a testing system in a related technology;
[0040] Figure 2 This is a schematic diagram of a preview interface of a terminal device in a related technology.
[0041] Figure 3Schematic diagram of the test system provided in the embodiments of this application Figure 1 ;
[0042] Figure 4 Schematic diagram of the test system provided in the embodiments of this application Figure 2 ;
[0043] Figure 5 A schematic diagram showing the positional relationship between the shielding component and the headlight box provided in an embodiment of this application;
[0044] Figure 6 A side view of the shielding member provided in an embodiment of this application;
[0045] Figure 7 A schematic diagram illustrating the influencing factors of the overall illuminance value and dynamic range value provided in the embodiments of this application;
[0046] Figure 8 A preview interface of the terminal device provided in the embodiments of this application. Figure 1 ;
[0047] Figure 9 A preview interface of the terminal device provided in the embodiments of this application. Figure 2 ;
[0048] Figure 10a A preview interface of the terminal device provided in the embodiments of this application. Figure 3 ;
[0049] Figure 10b A preview interface of the terminal device provided in the embodiments of this application. Figure 4 ;
[0050] Figure 11 Schematic diagram of the test system provided in the embodiments of this application Figure 3 ;
[0051] Figure 12 Schematic diagram of the test system provided in the embodiments of this application Figure 4 ;
[0052] Figure 13 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 1 ;
[0053] Figure 14 Schematic diagram of the test system provided in the embodiments of this application Figure 5 ;
[0054] Figure 15 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 2 ;
[0055] Figure 16A possible hardware structure diagram of the control device provided in the embodiments of this application;
[0056] Figure 17 This is a software structure block diagram of a terminal device provided in an embodiment of this application;
[0057] Figure 18 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 3 ;
[0058] Figure 19 A schematic diagram showing the total illuminance value and dynamic range value corresponding to the preset combination provided in the embodiments of this application. Detailed Implementation
[0059] In the description of embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0060] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0061] This application provides a terminal device testing method for more accurately testing the shooting performance of a terminal device. Specifically, this method allows for flexible adjustment of the testing environment to test the shooting performance of the terminal device in more diverse testing environments (i.e., covering more shooting scenarios), thereby accurately testing the shooting sensitivity of the terminal device. In this way, after leaving the factory, the terminal device can accurately and flexibly adjust shooting parameters and shooting algorithms according to actual shooting scenarios, thereby achieving better shooting results.
[0062] Generally, to meet users' shooting needs, during the shooting process using a terminal device equipped with a camera, it is necessary to automatically adjust the camera parameters and shooting algorithm according to the current shooting scene. Camera parameters may include at least one of exposure time, exposure, contrast, saturation, brightness, sharpness, highlights, shadows, color temperature, hue, or tone. Shooting algorithms may include night scene algorithms or HDR algorithms. This application does not limit the specific camera parameters and shooting algorithms. For example, when shooting in a low-light night scene, the terminal device will automatically increase the exposure time and use a night scene algorithm. As another example, when shooting in a backlit scene, the terminal device will use an HDR algorithm to increase the number of frames.
[0063] Night scene algorithms are image processing techniques designed for low-light environments. By enhancing the brightness and contrast of an image, they enable clear details to be presented even in low-light conditions. Night scene algorithms are commonly used for shooting night scenes, starry skies, and other similar subjects.
[0064] High Dynamic Range (HDR) algorithm: This is a high dynamic range image processing technique that combines multiple photos taken under different exposure conditions into a single image. HDR algorithms are commonly used to capture high-contrast scenes, such as indoor and outdoor scenes, sunrises, and sunsets. Photos taken using HDR algorithms can clearly display details in both bright and dark areas of the scene.
[0065] It should be understood that when using terminal devices to shoot real-world environments, in order for the terminal devices to automatically switch shooting parameters and algorithms to match various scenarios, multiple shooting scenarios with different environmental parameters need to be built before the terminal devices leave the factory for testing. For example, shooting scenarios with different environmental parameters can be built using light sources and test charts to test the shooting performance of the terminal devices under these scenarios.
[0066] Test charts are tools used to evaluate and calibrate the performance of image processing systems (such as cameras, scanners, and monitors). They typically contain a series of carefully designed patterns and color blocks to test key performance indicators of the device, such as color reproduction, resolution, contrast, and dynamic range.
[0067] Test charts can be divided into standard test charts and non-standard test charts. Standard test charts follow international or industry standards, such as ISO and SMPTE, to ensure the consistency and comparability of test results. Non-standard test charts are customized for specific applications or specific equipment needs and do not have a unified international or industry standard.
[0068] Some traditional testing methods have limited adjustment ranges for environmental parameters in the test environment, resulting in limited coverage of shooting scenarios during the testing phase. Consequently, they cannot conduct shooting tests for some shooting scenarios in real-world environments, affecting the test results. Therefore, when shooting in real-world environments using factory-installed terminal devices, it is impossible to accurately adjust shooting parameters and algorithms for shooting scenarios that have not been tested in real-world environments, resulting in poor shooting results.
[0069] In some embodiments, environmental parameters such as illumination and dynamic range in the shooting scene typically affect the exposure, color reproduction, detail rendering, and overall visual effect of the captured image. Therefore, under normal circumstances, the terminal device needs to automatically adjust and match the shooting parameters and algorithms based on environmental parameters such as illumination and dynamic range in the shooting scene to achieve better shooting results. Thus, during the pre-shipment testing phase, environmental parameters such as illumination and dynamic range in the test environment are typically adjusted so that the terminal device can use the camera to capture images under various environmental parameters for testing. If the adjustment of environmental parameters such as illumination and dynamic range in the test environment is limited, it will affect the test results.
[0070] Illuminance refers to the energy of visible light received per unit area, also known as illuminance intensity. The unit of illuminance is lux (lx), used to indicate the intensity of light or the degree of illumination on an object's surface. In this application, illuminance is used to describe the intensity of light from a light source or the degree of illumination on a test chart surface.
[0071] Dynamic range (DR) is the ratio of the maximum to the minimum value of a variable signal (such as sound or light). It can also be expressed as a logarithm to base 10 or a logarithm to base 2, and the unit is dB. In the embodiments of this application, the dynamic range in the test environment can be related to the ratio of the brightest part to the darkest part in the test system, or it can be related to the area ratio of the brightest part.
[0072] To facilitate understanding, the above-mentioned traditional testing scheme will be illustrated with the structure of the testing system in related technologies.
[0073] Figure 1 This is a schematic diagram of the structure of a test system in a related technology. For example... Figure 1 As shown, the test system 100 includes a top light 101, a fixed light source 102, a test background 103, and a terminal device 104. The top light 101 is a surface light source with adjustable illuminance, the fixed light source 102 is a surface light source with non-adjustable illuminance, the test background 103 can be blank or a test chart, and the terminal device 104 has a camera. The camera's subjects include the fixed light source 102 and the test background 103.
[0074] Figure 2 This is a schematic diagram of a preview interface of a terminal device in a related technology. For example... Figure 2 As shown, after the camera application is launched on the terminal device 104, the preview interface 201 of the camera application on the terminal device 104 includes a fixed light source 102 and a test background 103. During the test, the fixed light source 102 is turned on and the illuminance value is fixed, while the illuminance value of the top light 101 can be adjusted.
[0075] The test system 100 is designed to use a fixed light source 102 as the bright part of the test scene and a test background 103 as the dark part of the test scene.
[0076] Furthermore, during the test, both the fixed light source 102 and the overhead light 101 are turned on simultaneously. The illuminance value of the test background 103 is determined by the illuminance value of the overhead light 101. Testers can change the illuminance value of the test background 103 by manually adjusting the illuminance value of the overhead light 101. The overall illuminance value (i.e., the overall illuminance value in the test environment) that the test system 100 can provide can be the illuminance of the preview interface of the terminal device, including the illuminance of the test background 103 and the fixed light source 102. Since the illuminance value of the fixed light source 102 is fixed, the overall illuminance value only changes with the illuminance value of the overhead light 101.
[0077] In summary, the above-mentioned testing system 100 has the following drawbacks:
[0078] Because the illuminance value of the fixed light source 102 remains constant, and only the illuminance value of the overhead light 101 can be manually adjusted, the overall illuminance value provided by the test system 100 only changes with the illuminance value of the overhead light 101. This results in a small range of variation in the overall illuminance value provided by the test system 100, meaning the range of overall illuminance values that the test system 100 can provide is narrow. Similarly, since the illuminance value of the fixed light source 102, which is the bright part of the test scene, is fixed, the dynamic range value range that the test system 100 can provide depends only on the illuminance value of the overhead light 101 in the dark part, also resulting in a narrow dynamic range value range. In summary, the adjustable range of illuminance and dynamic range values during the test is too narrow, and the number of scenes that can be covered during the test phase is also limited. Therefore, it is impossible to conduct shooting tests for certain shooting scenarios, and the number of camera parameters and shooting algorithms traversed during the test process is also limited. The scene testing is too restrictive, which in turn affects the shooting effect after the product is shipped from the factory.
[0079] Compared to the traditional testing methods described above, the terminal device testing method provided in this application increases the adjustment range of both illuminance and dynamic range values, thereby increasing the combination of illuminance and dynamic range values to cover more shooting scenarios during the testing phase and improve the testing effect.
[0080] In some embodiments, the terminal device testing method provided in this application is implemented based on the testing system provided in this application. Specifically, the testing system provided in this application includes a top light, a large lightbox, a blocking component, a terminal device, and a control device. The illuminance value of the top light is adjustable, the illuminance value of the large lightbox is adjustable, and the blocking component is movable. By changing its relative position to the large lightbox, the large lightbox can be blocked, thereby changing the area ratio of the brightest part, and thus changing the dynamic range that the testing system can provide.
[0081] Because the illuminance values of both the overhead light and the large lightbox are adjustable, the testing system can provide a wider range of overall illuminance values. Furthermore, since the area ratio of the brightest part is adjustable, the testing system can also provide a wider range of dynamic range values. This allows for greater flexibility and range of adjustment of illuminance and dynamic range values during testing, enabling the system to cover more shooting scenarios and explore more camera parameters and shooting algorithms. More comprehensive testing of the terminal device during the testing phase improves the accuracy of the test results, which in turn helps improve the shooting performance after the device leaves the factory.
[0082] In some embodiments, based on the testing system described in this application, the testing system pre-calibrates the correspondence between each preset combination and at least one environmental parameter in the test environment, such as illuminance value or dynamic range value. The preset combination is a combination obtained by dividing the illuminance value of the overhead light, the illuminance value of the large lightbox, and the relative position of the obstruction component to the large lightbox. There can be multiple preset combinations, each including the illuminance value of the overhead light, the illuminance value of the large lightbox, and the relative position of the obstruction component to the large lightbox. For example, a preset combination may include an illuminance value of 100 Lux for the overhead light, an illuminance value of 1000 Lux for the large lightbox, and a relative position of 66 levels for the obstruction component to the large lightbox, in which case the obstruction component obstructs 30% of the area of the large lightbox.
[0083] The testing system adjusts the illuminance values of the top light, the main lightbox, and the relative positions of the obstruction and the main lightbox based on pre-calibrated correspondences. This allows the system to provide the corresponding illuminance and dynamic range values more quickly and accurately. Because the illuminance values of the top light, the main lightbox, and the relative positions of the obstruction and the main lightbox are all adjustable, the testing system can divide into more preset combinations and provide a wider range of illuminance and dynamic range values. This method allows for flexible and fine-grained adjustment of the testing environment, enabling the testing of the terminal device's shooting performance in more diverse testing environments (i.e., scenarios covering more illuminance and dynamic range values), thus improving the accuracy of terminal device testing.
[0084] In the embodiments of this application, the terminal device and control device can be a handheld device with a camera, an in-vehicle device, etc. For example, some terminal devices or control devices are: mobile phones, tablet computers, PDAs, laptops, desktop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, etc., and this application embodiment does not limit them.
[0085] The testing system of this application will be further described below with reference to the accompanying drawings and embodiments.
[0086] In this embodiment of the application, a test system 300 provided by the present application is shown, with the terminal device being a mobile phone and the control device being a laptop computer. Figure 3 Schematic diagram of the test system provided in the embodiments of this application Figure 1 .like Figure 3 As shown, the test system 300 includes: a top light 301, a large lightbox 302, a terminal device 304, a blocking component 305, and a control device 306. The top light 301 is a surface light source with adjustable illuminance, and the large lightbox 302 is also a surface light source with adjustable illuminance. The terminal device 304 has a camera, and the camera can capture images of at least one of the large lightbox 302 or the blocking component 305. The blocking component 305 can move relative to the large lightbox 302 to change the proportion of the large lightbox 302 it blocks, thereby changing the area of the large lightbox 302 within the field of view of the camera on the terminal device 304.
[0087] Understandably, the top light 301, also known as the first light source or global light source, is used to provide illumination for the entire test environment (i.e., the global area), while the large light box 302, also known as the second light source or local light source, is used to provide illumination for a local area of the test environment.
[0088] Figure 3 The connection relationships between the various components of the test system 300 are not shown in the diagram. It should be understood that the control device 306 establishes a communication connection with the ceiling light 301, the large light box 302, and the shielding component 305, and issues adjustment control commands to adjust the ceiling light 301, the large light box 302, and the shielding component 305. For example, a communication connection can also be established between the control device 306 and the terminal device 304.
[0089] The test system 300 provided in this application embodiment can be set up in an environment with low ambient light, so that the illuminance value and dynamic range value provided by the test system 300 are basically determined by the illuminance values of the overhead light 301 and the large light box 302, which helps to reduce the influence of ambient light on the illuminance value or dynamic range value provided by the test system 300. For example, when both the overhead light 301 and the large light box 302 are turned off, there are no other light sources in the test scene where the test system 300 is located, and the ambient illuminance is lower than a first threshold. The first threshold can be 1 Lux, 0.1 Lux, or 0.01 Lux. The value of the first threshold can be determined according to the test requirements, and this application embodiment does not limit it.
[0090] In one possible implementation, the test system 300 can be set up in a dark room where the ambient illuminance is below a first threshold. The area of the ceiling light 301 can be equal to or different from the area of the dark room.
[0091] In another possible implementation, the test system 300 can also be configured with light-blocking curtains or other light-blocking devices around it so that when both the top light 301 and the large light box 302 are turned off, the ambient illuminance of the test scene where the test system 300 is located is lower than the first threshold.
[0092] In one possible implementation, the test system 300 further includes: a test background 303; the camera's subject includes at least one of the large lightbox 302, the test background 303, or the obstruction 305.
[0093] The testing system 300 provides uniform illumination to the test background 303 and the blocking component 305 via the top light 301. After being illuminated by the top light, the test background 303 and the blocking component 305 have no specular reflection and no wrinkles on their surfaces, serving as the dark areas in the camera preview interface. The luminous surface of the large lightbox 302 faces the camera of the terminal device 304, serving as the bright areas in the camera preview interface.
[0094] In one possible implementation, the illuminance difference between any two points on the test background 303 and the blocking element 305 can be less than a preset difference threshold. For example, the preset difference threshold can be 5% or 10%, and this application does not limit it. The smaller the illuminance difference between any two points on the test background 303 and the blocking element 305, the more uniform the illumination of the test background 303 and the blocking element 305 by the top light 301.
[0095] The side of the test background 303 and the obstruction member 305 facing the camera of the terminal device 304 is the image display surface. The image display surface of the test background 303 and the obstruction member 305 can be a standard test chart, a non-standard test chart, or it can be blank. The image display surface of the test background 303 and the obstruction member 305 can display the same area or different areas of the same image. The test chart can also be called a large image chart. The test background 303 can be circular or rectangular, for example, 4m... The 5m rectangle is not limited to this embodiment in this application.
[0096] In one possible implementation, Figure 4 Schematic diagram of the test system provided in the embodiments of this application Figure 2 .like Figure 4 As shown, the image display surfaces of the test background 303 and the blocking element 305 can display a dead leaf image. Since the dead leaf image has a background reflectivity of 18%, the test background 303 and the blocking element 305 provide the terminal device 304 with shooting material with high uniformity and low contrast.
[0097] Specifically, the overhead light 301 and the large light box 302 can be equipped with communication modules, enabling them to communicate with the control device 306. The overhead light 301 and the large light box 302 can also be equipped with signal receivers, capable of receiving various control commands (such as on / off commands, illumination adjustment commands, etc.) sent by the control device 306. The overhead light 301 and the large light box 302 can also be equipped with signal processing modules, capable of processing the various control commands received from the control device 306 and executing corresponding operations according to the instructions.
[0098] In this way, the control device 306 can control the opening and closing of the top light 301 and the large light box 302, as well as adjust the illuminance values of the top light 301 and the large light box 302, which helps to improve the automation level and control accuracy of the test system 300.
[0099] An obstruction member 305 is disposed between the large lightbox 302 and the terminal device 304, and the obstruction member 305 is movable relative to the large lightbox 302. That is, the obstruction member 305 is closer to the terminal device 304 than the large lightbox 302, so by controlling the movement of the obstruction member 305, it can obstruct the large lightbox 302, causing the display ratio of the large lightbox 302 in the preview interface of the terminal device 304 to gradually adjust from 100% to 0% or from 0% to 100%. The length of the obstruction member 305 is greater than or equal to the length of the large lightbox 302, and the width of the obstruction member 305 is greater than or equal to the width of the large lightbox 302. Figure 4 The image display surface of the occluder is shown as a rectangle. The actual shape of the occluder can also be any shape such as a circle or a triangle. This application does not impose any restrictions on this comparison.
[0100] In some embodiments, the blocking component 305 may include a movable component and a blocking component, the blocking component being movably connected to the movable component. For example, when the movable component is a sliding component, the blocking component may be movably connected to the sliding component via a sliding buckle. The blocking component may be a curtain, a panel, or other components with blocking functions. The height of the center position of the blocking component may be the same as or different from the height of the center position of the large light box.
[0101] It should be noted that the shielding member 305 can move horizontally relative to the large light box 302 (i.e., move along the horizontal direction), the shielding member 305 can also move vertically relative to the large light box 302 (i.e., move along the vertical direction), and the shielding member 305 can also move along the diagonal of the large light box 302. This application embodiment does not limit this. Figures 3 to 12 Taking the horizontal movement of the shielding member 305 relative to the headlight box 302 as an example, the test system 300 provided in the embodiment of this application is shown.
[0102] Figure 5 This is a schematic diagram illustrating the positional relationship between the shielding component and the headlight box provided in an embodiment of this application. In one possible implementation, taking the shielding component 305 horizontally moving relative to the headlight box 302 and the image display surface of the shielding component 305 being a withered leaf image as an example, the positional relationship between the shielding component and the headlight box includes at least three cases. The first case is described in [reference]. Figure 5 In case (1), that is, the shielding component 305 does not obstruct the headlight box 302 at all. For case (2), see [reference needed]. Figure 5 (2) In this case, the shielding component 305 partially shields the headlight box 302. For the third case, see [reference needed]. Figure 5 In (3), that is, the shielding member 305 completely blocks the headlight box 302. It can be understood that since the headlight box 302 is completely blocked by the shielding member 305, therefore... Figure 5 (3) The large light box 302 in the middle is not visible.
[0103] Figure 6 This is a side view of the shielding component provided in an embodiment of this application. Figure 6 A side view of the shielding member 305 is shown, taking the example of the shielding member moving from left to right relative to the large lightbox 302. The upper and lower ends of the shielding member 305 include a first extension plate 3051 and a second extension plate 3052 extending towards the test background 303, respectively. The first extension plate 3051 and the second extension plate 3052 are used to shield the side of the large lightbox 302. Except for the image display surface 3053, the surface of the shielding member 305 is black, which is used to absorb the light emitted by the top light 301 and the large lightbox 302 and prevent light reflection.
[0104] In one possible implementation, the length of the first extension plate 3051 and the second extension plate 3052 is greater than or equal to the width of the large light box 302, and the width of the first extension plate 3051 and the second extension plate 3052 is greater than or equal to a second threshold, which is the sum of the width of the large light box 302 and the distance between the large light box 302 and the blocking member 305.
[0105] Figure 7 This diagram illustrates the influencing factors of the overall illuminance value and dynamic range value provided in this embodiment of the application. The adjustable controllable objects of the testing system include the illuminance value of the overhead light 301, the illuminance value of the large lightbox 302, and the relative position of the obstruction 305 and the large lightbox 302. The illuminance value of the large lightbox 302 determines the maximum illuminance value of the testing system 300. The relative position of the obstruction 305 and the large lightbox 302 determines the area percentage of the maximum illuminance value. The overall illuminance value provided by the testing system 300 is jointly determined by the illuminance values of the overhead light 301, the large lightbox 302, and the relative position of the obstruction 305 and the large lightbox 302. The range of illuminance values in the testing environment is the range of the overall illuminance value. The range of dynamic range values in the testing environment is jointly determined by the maximum illuminance value, the area percentage of the maximum illuminance value, and the overall illuminance value.
[0106] In this application embodiment, the possible subjects for shooting on the preview interface of the terminal device include at least the following three situations:
[0107] The first case, such as Figure 8 As shown, the subjects being photographed include a large lightbox 302, a test background 303, and a blocking element 305.
[0108] Please see Figure 8 , Figure 8 A preview interface of the terminal device provided in the embodiments of this application. Figure 1 The background area is indicated by diagonal lines. After the camera application is opened on the terminal device 304, the preview interface 801 of the camera application on the terminal device 304 includes a large lightbox 302, a test background 303, and a blocking element 305. The illuminance values of the test background 303 and the blocking element 305 are determined by the illuminance value of the top light 301. During the test, the test system 300 changes the overall illuminance value and dynamic range value provided by the test system 300 by adjusting the illuminance values of the large lightbox 302, the top light 301, and the relative position of the blocking element 305 and the large lightbox 302.
[0109] Thus, since the overall illuminance value of the test system 300 is jointly determined by the illuminance values of the overhead light 301, the large lightbox 302, and the relative position of the obstruction 305 and the large lightbox 302, the minimum illuminance value in the preview interface changes with the illuminance values of the test background 303 and the obstruction 305. The maximum illuminance value in the preview interface changes with the adjustment of the large lightbox 302, and the area percentage of the maximum illuminance value changes with the relative position of the obstruction 305 and the large lightbox 302. Therefore, compared with the test system 100 in the related art, the test system 300 provides a wider range of overall illuminance values and dynamic range values.
[0110] The second scenario, such as Figure 9 As shown, the subjects being photographed include the large lightbox 302 and the obstruction 305.
[0111] Please see Figure 9 , Figure 9 A preview interface of the terminal device provided in the embodiments of this application. Figure 2 After the camera application is launched on terminal device 304, the preview interface 901 of the camera application on terminal device 304 includes a large lightbox 302 and a blocking element 305. The illuminance value of the blocking element 305 is determined by the illuminance value of the top light 301. During the test, the test system 300 adjusts the illuminance values of the large lightbox 302, the top light 301, and the relative position of the blocking element 305 and the large lightbox 302, thereby changing the overall illuminance value and dynamic range value provided by the test system 300.
[0112] In this way, the minimum illuminance value in the preview interface changes with the illuminance value of the blocking element 305. Other than... Figure 8 Similarly, compared to test system 100 in related technologies, test system 300 provides a wider range of total illuminance values and dynamic range values.
[0113] The third scenario, such as Figure 10a As shown, the subject of the photograph includes the large lightbox 302.
[0114] Please see Figure 10a , Figure 10a A preview interface of the terminal device provided in the embodiments of this application. Figure 3 After the camera application is opened on the terminal device 304, the preview interface 1001 of the camera application on the terminal device 304 only includes the large lightbox 302. During the test, the test system 300 changes the overall illuminance value and dynamic range value provided by the test system 300 by adjusting one or more of the illuminance values of the large lightbox 302, the illuminance value of the top light 301, and the relative position of the obstruction 305 and the large lightbox 302.
[0115] In a third scenario, in this embodiment of the application, the control device can control the movement of the blocking member 305 to change the relative position of the blocking member 305 and the large light box 302, thereby changing the subject in the preview interface. For example, as Figure 10b As shown, as the blocking component 305 moves, the subject in the preview interface changes from... Figure 10a The large light box 302 in the middle has been changed to Figure 10b The large light box 302 and the shielding component 305 are included.
[0116] Please see Figure 10b , Figure 10b A preview interface of the terminal device provided in the embodiments of this application. Figure 4 When the relative positions of the obstruction 305 and the headlight box 302 change to a certain extent, the preview interface 1001 will display as shown. Figure 10b As shown, a shielding component 305 and a large light box 302 are displayed, wherein the illuminance value of the shielding component 305 is determined by the illuminance value of the overhead light 301.
[0117] Since the control device can adjust the illuminance value of the headlight box 302 and the illuminance value of the ceiling light 301, the illuminance value of the obstruction 305 after it appears on the preview interface changes with the illuminance value of the ceiling light. Therefore, compared with the test system 100 in the related art, the test system 300 provides a wider range of overall illuminance values and dynamic range values.
[0118] It should be noted that if the test system 100 in the related technology only displays a fixed, unadjustable light source in the preview interface, the overall illuminance value and dynamic range value cannot be adjusted. Therefore, the test system 100 must display a fixed light source and test background in the preview interface of the terminal device, which imposes too many restrictions on the placement of the terminal device. In the embodiment of this application, even if the placement of the terminal device can only display a large lightbox in the preview interface, the overall illuminance value and dynamic range value can be flexibly adjusted by controlling the movement of the obstruction component, which has fewer limitations and wider adaptability.
[0119] Thus, as the minimum illuminance value in the preview interface moves relative to the position of the obstruction 305 and the main light box 302, the illuminance value of the obstruction 305 after it appears in the preview interface changes with the illuminance value of the ceiling light. Other than... Figure 8 Similarly, compared to test system 100 in related technologies, test system 300 provides a wider range of total illuminance values and dynamic range values.
[0120] In this embodiment, the test system can provide the lowest overall illuminance value when both the top light and the large lightbox illuminance values are at their minimum. Conversely, it can provide the highest overall illuminance value when both the top light and the large lightbox illuminance values are at their maximum, and the obstruction does not obstruct the large lightbox at all. Therefore, the test system can provide a wider range of overall illuminance values compared to related technologies. Furthermore, the test system can provide the lowest dynamic range value when the obstruction completely obstructs the large lightbox, and the highest dynamic range value when both the top light and the large lightbox illuminance values are at their minimum, and the obstruction does not obstruct the large lightbox at all. Therefore, the test system can provide a larger range of dynamic range values compared to related technologies. This is beneficial for traversing more camera parameters and shooting algorithms during the testing process.
[0121] Please see Figure 11 , Figure 11 Schematic diagram of the test system provided in the embodiments of this application Figure 3 In one possible implementation, the test system 300 further includes a first support device 307, which supports the terminal device 304. The first support device 307 can be controlled to move in a preset track, thereby causing the terminal device 304 to move closer to or further away from the test background 303.
[0122] It is understandable that the field of view of the cameras in different models of terminal devices 304 may be inconsistent. Therefore, if different models of terminal devices 304 are all placed on the first support device 307 in a fixed position, the field of view of the different models of terminal devices 304 will be inconsistent. For example, if the first terminal device and the second terminal device are different types of terminal devices, and assuming that the field of view of the first terminal device is larger than that of the second terminal device, then the field of view of the first terminal device will also be larger than that of the second terminal device. That is, the preview interface of the first terminal device can present a larger range of image content in the test environment than the preview interface of the second terminal device.
[0123] Field of view (FOV): In optics, the field of view refers to the angle formed by the two edges of an optical instrument, with the lens as the vertex, representing the maximum range through which the image of the target object can pass through the lens. The size of the FOV determines the field of view of the optical instrument; the larger the FOV, the larger the field of view. In this embodiment, when the distance between the terminal device and the object being photographed is the same, the larger the FOV of the terminal device's camera, the larger the field of view.
[0124] Therefore, in this embodiment of the application, the control device 306 can control the first support device 307 to move and drive the terminal device 304 to move, thereby adjusting the distance between the terminal device 304 and the test background 303, so that the field of view of the cameras of different models of terminal devices 304 can be consistent.
[0125] Please continue reading. Figure 11 In some embodiments, the testing system 300 further includes a second support device 308 and a third support device 309. The second support device 308 supports the large light box 302, and the third support device 309 supports the shielding member 305. That is, the shielding member and the large light box can be separated. By controlling the movement of the third support device 309 supporting the shielding member 305, the shielding member 305 can be moved relative to the large light box to control the shielding ratio of the shielding member 305 to the large light box.
[0126] Please continue reading. Figure 12 In some embodiments, Figure 12 Schematic diagram of the test system provided in the embodiments of this application Figure 4 In another possible implementation, the test system 300 further includes a fourth support device 310 for supporting the large light box 302. The shielding member 305 can be connected to the large light box, and its position can move relative to the large light box 302. For example, a frame can be provided outside the large light box 302, and the shielding member 305 can be mounted on this frame. Based on this frame, a movable connection with the large light box 302 is achieved, allowing the shielding member 305 to move relative to the large light box 302 based on the frame, thereby controlling the shading ratio of the shielding member 305 on the large light box 302.
[0127] It is understandable that during the testing of the same terminal device 304, the position of the terminal device 304 relative to the large light box 302, the obstruction 305 and the test background 303 does not change.
[0128] In this way, since the distance between the large lightbox 302 and the test background 303 can remain unchanged, the area of the preview interface of the terminal device 304 can be made consistent through the first support device 307. This can keep the area ratio of the large lightbox 302 and the shielding member 305 consistent in the preview interface of different terminal devices 304, which helps to maintain the consistency of the size of the test image and the size of the object being photographed during the test process, and helps to maintain the consistency of the overall illuminance value and dynamic range value range that the test system 300 can provide.
[0129] The terminal device can detect the total illuminance value and dynamic range value in the test environment based on the preview interface. Then, the terminal device can actively send the total illuminance value and dynamic range value to the control device, or it can passively send the total illuminance value and dynamic range value to the control device in response to the request of the control device.
[0130] Figure 13 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 1 In one possible implementation, when environmental parameters include total illuminance and / or dynamic range values, the terminal device testing method provided in this application, such as... Figure 13 As shown, it includes the following steps:
[0131] S1301: The control device, according to the calibrated correspondence, finds the first target illuminance value of the ceiling light, the second target illuminance value of the large light box, and the target relative position corresponding to the target illuminance value and / or the target dynamic range value; wherein, the calibrated correspondence includes the correspondence between preset combinations and preset environmental parameters; each preset combination includes the preset illuminance value of the ceiling light, the preset illuminance value of the large light box, and the preset relative position of the shielding component and the large light box; the preset environmental parameters include the preset illuminance value and / or the preset dynamic range value.
[0132] The target illuminance value and / or target dynamic range value can be input based on the interface of the control device; that is, the control device can obtain the target illuminance value and / or target dynamic range value to be adjusted input by the user on the interface of the control device. Alternatively, the target illuminance value and / or target dynamic range value can be sent to the control device via a terminal device. For example, the terminal device can indicate the target illuminance value and / or target dynamic range value to be adjusted and send a test request. The control device receives the test request sent by the terminal device and obtains the indicated target illuminance value and / or target dynamic range value from the test request. Exemplarily, the terminal device can provide an interface...
[0133] The control equipment can determine the target top light illuminance value, the target headlight box illuminance value, and the target relative position according to at least one of the following methods:
[0134] Method 1: Given that the calibrated correspondence includes the correspondence between the preset combination and the target illuminance value and the target dynamic range value, search from the preset correspondence to obtain the preset combination corresponding to the target illuminance value and the target dynamic range value, and adjust the illuminance value of the top light, the illuminance value of the headlight box, and the relative position of the shielding component and the headlight box according to the preset combination.
[0135] Method 2: If the calibrated correspondence does not include the target illuminance value and / or the target dynamic range value, the control device determines a first illuminance value that satisfies a third preset proximity condition from the preset illuminance values in the preset environmental parameters, and / or determines a first dynamic range value that satisfies a fourth preset proximity condition from the preset dynamic range values in the preset environmental parameters; the control device searches for the first target illuminance value, the second target illuminance value, and the target relative position corresponding to the first illuminance value and / or the first dynamic range value from the correspondence.
[0136] In some embodiments, the third preset proximity condition may be that the difference between the target illuminance value and the target illuminance value is less than a first preset threshold. When the preset illuminance values include at least two second illuminance values, the control device selects the second illuminance value closest to the target illuminance value as the first illuminance value; wherein, the second illuminance value refers to a preset illuminance value whose difference from the target illuminance value is less than the first preset threshold. For example, if the preset illuminance values include 150 Lux and 160 Lux, the target illuminance value is 156 Lux, and the first preset threshold is 10, then 160 Lux is selected as the first illuminance value.
[0137] In some embodiments, the fourth preset proximity condition may be that the difference between the target dynamic range value and the target dynamic range value is less than a second preset threshold. When the preset dynamic range values include at least two second dynamic range values, the control device selects the second dynamic range value closest to the target dynamic range value as the first dynamic range value; wherein, the second dynamic range value refers to a preset dynamic range value whose difference from the target dynamic range value is less than the second preset threshold. For example, if the preset dynamic range values include 80 and 89, the target illuminance value is 82, and the second preset threshold is 10, then 80 is selected as the first dynamic range value.
[0138] S1302: After adjusting the top light according to the first target illuminance value, adjusting the headlight box according to the second target illuminance value, and adjusting the shielding component according to the target relative position, the control device obtains the actual total illuminance value and / or the actual dynamic range value in the test environment.
[0139] In one possible implementation, the control device can receive an illuminance adjustment command from the control device, and adjust the illuminance value to the target ceiling light illuminance value and the target headlight box illuminance value respectively in response to the illuminance adjustment command.
[0140] In another possible implementation, the control device can send a position adjustment command to the shield, and the shield responds to the position adjustment command by adjusting the relative position of the shield and the headlight box to the target relative position.
[0141] S1303: When the actual total illuminance value and the target illuminance value meet the first preset proximity condition, and / or the actual dynamic range value and the target dynamic range value meet the second preset proximity condition, the control device triggers the start of a shooting test for the camera of the terminal device.
[0142] In some embodiments, the control device may stop adjusting when the number of times it adjusts the illuminance value of the overhead light, the illuminance value of the main light box, and / or the relative position of the obstruction to the main light box is greater than or equal to a fourth threshold. The control device may also generate a prompt message indicating that the adjustment of the test system has failed.
[0143] In this way, if the overall illuminance value cannot be adjusted to meet the third preset proximity condition and / or the dynamic range value cannot meet the fourth preset proximity condition after multiple adjustments, the control device will stop adjusting and generate a prompt message to remind the tester that the system may be in an abnormal state. This also reduces the probability of the test system making multiple ineffective adjustments under abnormal conditions and avoids wasting too much time.
[0144] It should be understood that when it is necessary to perform shooting tests on the terminal device based on multiple target illuminance values and / or target dynamic range, multiple adjustments can be made based on the methods in the above embodiments of this application, which will not be elaborated here.
[0145] Thus, the terminal device testing method provided in this application increases the range of illuminance values and dynamic range values that the testing system can provide by adjusting the illuminance values of the top light, the illuminance values of the large lightbox, and the relative positions of the obstruction and the large lightbox. This facilitates the traversal of more camera parameters and shooting algorithms during the testing process, thereby improving the accuracy of the test.
[0146] Figure 14 Schematic diagram of the test system provided in the embodiments of this application Figure 5 When the overall illuminance value in the test environment meets the third preset proximity condition with the target illuminance value, and / or the dynamic range value meets the fourth preset proximity condition with the target dynamic range value, a shooting test for the terminal device is initiated. Figure 14 (a) in the diagram illustrates the initial state of the test system. Specifically, the illuminance of the overhead light is 0 Lux, the illuminance of the large light box is 0 Lux, and the relative position of the shield and the large light box is set to level 0. Following the method in the embodiments of this application, the test system can be adjusted to... Figure 14 After reaching the target state shown in (b) above, initiate a shooting test for the terminal device. For example... Figure 14 As shown in (b), the image display surfaces of the test background and the obstruction are both dead leaf images. The illuminance value of the top light is 666 Lux, the illuminance value of the large light box is 7777 Lux, and the relative position of the obstruction and the large light box is adjusted to level 88 (out of a total of 200 levels).
[0147] Figure 15 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 2 In one possible implementation, the terminal device testing method provided in this application embodiment is applied to the testing system 300, and may specifically include:
[0148] S1501: The control device finds the target ceiling light illuminance value, target headlight box illuminance value, and target relative position corresponding to the target illuminance value and target dynamic range value according to the calibrated correspondence relationship; wherein, the calibrated correspondence relationship includes the correspondence relationship between the preset combination and the overall illuminance value and dynamic range value; the preset combination is used to characterize the combination of ceiling light illuminance value, headlight box illuminance value, and the relative position of the shielding component and the headlight box.
[0149] S1502: The control device adjusts the illuminance of the ceiling light in stages, moving towards the direction of the target illuminance value.
[0150] S1503: The control device adjusts the headlight box illuminance value step by step in the direction that approaches the target dynamic range value.
[0151] During the step-by-step adjustment process, after each adjustment, the control device can execute step S1504.
[0152] S1504: The control device determines whether the difference between the total illuminance value and the target illuminance value in the test environment meets the first preset proximity condition. If yes, execute S1505; otherwise, return to execute S1502 and S1503, that is, continue to adjust to the next level.
[0153] S1505: The control device determines whether the difference between the dynamic range value in the test environment and the target dynamic range value meets the second preset proximity condition; if yes, execute S1506, otherwise execute S1507.
[0154] S1506: The control device records the total illuminance value and dynamic range value in the test environment and starts the shooting test for the terminal device.
[0155] S1507: The control device adjusts the relative position of the shield and the headlight box, and continues to execute S1503.
[0156] It should be noted that the steps of adjusting the illuminance value of the headlight box, the illuminance value of the top light, or the relative position of the obstruction to the headlight box by the control device described above are only an example of the terminal device testing method in this application embodiment. The adjustment objects and adjustment order of the above adjustment steps can be interchanged.
[0157] In this way, by adjusting the illuminance values of the top light, the illuminance value of the large lightbox, and the relative position of the obstruction and the large lightbox step by step, the terminal device testing method provided in this application embodiment can flexibly and finely adjust the testing environment, so as to test the shooting performance of the terminal device in a more diverse testing environment (i.e., covering more illuminance values and dynamic range values), thereby achieving the technical effect of improving the accuracy of terminal device testing.
[0158] Another possible implementation involves obtaining the actual total illuminance value and / or the actual dynamic range value in the test environment, including:
[0159] The control device acquires the actual total illuminance value and / or actual dynamic range value in the test environment sent by the terminal device;
[0160] The terminal device, after the control device adjusts the top light according to the first target illuminance value, adjusts the large light box according to the second target illuminance value, and adjusts the obstruction according to the relative position of the target, detects the actual overall illuminance value and / or actual dynamic range value of the test environment based on the image within the field of view of the camera.
[0161] In this way, by detecting the actual total illuminance value and / or actual dynamic range value of the environment through the terminal device, and after the actual total illuminance value and / or actual dynamic range value are adjusted to the target illuminance value and / or target dynamic range value, it can be promptly sensed and sent to the control device, which helps the control device to stop the adjustment in time.
[0162] Figure 16 This is a schematic diagram of a possible hardware structure of a control device provided in an embodiment of this application. The control device may include a processing unit 1601 and a storage unit 1602.
[0163] The processing unit 1601 is used to control and manage the actions of the control device, and the storage unit 1602 is used to store the program code and data of the terminal device. The processing unit 1601 calls the program code stored in the storage unit 1602 to execute the steps in the above embodiments.
[0164] It should be noted that the unit modules of the control device include, but are not limited to, the processing unit 1601 and the storage unit 1602, and may also include communication units, power supply units, etc., which will not be described in detail here.
[0165] The processing unit 1601 can be a processor or a controller, such as a central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The controller can be the nerve center and command center of the control device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0166] For example, the processing unit 1601 is a processor, the storage unit can be a memory, such as internal memory, and the display unit can be a display screen. The processor, memory, display screen, etc., can be connected together, for example, via a bus. The processor calls program code in the memory to execute the various steps in the above method embodiments.
[0167] It is understandable that the control device adjusts and controls the test environment primarily for the purpose of shooting tests on the terminal device. The software system of the terminal device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to illustrate the software structure of the terminal device.
[0168] Figure 17 A software structure block diagram of a terminal device provided in an embodiment of this application.
[0169] A layered architecture divides the system into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into five layers, from top to bottom: application layer, application framework layer, hardware abstraction layer, driver layer, and hardware layer.
[0170] The application layer may include a series of application packages. In this embodiment, the application package may include a camera, a gallery, etc.
[0171] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. In this embodiment, the application framework layer may include a camera access interface, which may include camera management and camera devices. The camera access interface is used to provide application programming interfaces and programming frameworks for camera applications.
[0172] The hardware abstraction layer is an interface layer located between the application framework layer and the driver layer, providing a virtual hardware platform for the operating system. In this embodiment, the hardware abstraction layer may include a camera hardware abstraction layer and a camera algorithm library.
[0173] The camera hardware abstraction layer can provide virtual hardware for the camera device, detecting the actual total illuminance and / or actual dynamic range of the test environment based on the image within the camera's field of view. The camera algorithm library may include the runtime code and data required for the terminal device involved in this application's embodiments to perform shooting, such as data needed to detect the actual total illuminance and / or actual dynamic range of the test environment.
[0174] The driver layer is the layer between hardware and software. It includes drivers for various hardware components, such as camera drivers, digital signal processor drivers, and image processor drivers.
[0175] The camera device driver is used to drive the camera sensor to acquire images and to drive the image signal processor to preprocess the images. The digital signal processor driver is used to drive the digital signal processor to process images. The image processor driver is used to drive the graphics processor to process images.
[0176] The terminal device testing method in this application embodiment is described in detail below, based on the above system structure:
[0177] When the control device adjusts the overhead light according to the first target illuminance value, adjusts the headlight box according to the second target illuminance value, and adjusts the shielding component according to the target relative position, the terminal device can detect the actual total illuminance value and / or the actual dynamic range value in the test environment and send it to the control device.
[0178] After the test system initiates a shooting test for the terminal device, in response to the user's action of opening the camera application, such as clicking the camera application icon, the camera application calls the camera access interface in the application framework layer to launch the camera application. This, in turn, sends a command to start the camera by calling the camera device in the camera hardware abstraction layer. The camera hardware abstraction layer then sends this command to the camera device driver in the kernel layer. This camera device driver can then start the corresponding camera sensor and acquire the light signal of the test image. One camera device in the camera hardware abstraction layer corresponds to one camera sensor in the hardware layer.
[0179] Then, the camera sensor can transmit the acquired image light signal to the image signal processor for preprocessing to obtain the image electrical signal (raw image), and transmit the raw image to the camera hardware abstraction layer through the camera device driver.
[0180] The camera hardware abstraction layer can send raw images to the camera algorithm library. The camera algorithm library stores the runtime code and data required for the terminal device involved in this application embodiment to perform shooting. Based on a digital signal processor and an image processor, the camera algorithm library executes the aforementioned code, enabling the ability described above to automatically adjust camera parameters and shooting algorithms according to the illumination value and dynamic range value of the shooting scene.
[0181] The camera algorithm library can identify and send the raw images captured by the camera to the camera hardware abstraction layer. The camera hardware abstraction layer can then display these images. Simultaneously, the camera algorithm library can also output test images from the identified image frames. In this way, the testing system can determine whether the terminal device has switched to the corresponding camera parameters and shooting algorithm in the test scenario based on the test images, thereby determining whether the terminal device's shooting performance is normal.
[0182] Figure 18 A flowchart illustrating the terminal device testing method provided in this application embodiment. Figure 3 The terminal device testing method provided in this application embodiment further includes a calibration step before receiving a test request. This calibration step may specifically include the following steps S1801 to S1804.
[0183] S1801: Obtain the illuminance value adjustment range of the ceiling light, divide the illuminance value adjustment range of the ceiling light into N parts, and obtain N+1 ceiling light illuminance values; N is a positive integer.
[0184] Specifically, the illuminance adjustment range of the ceiling light is divided into N parts, resulting in N sub-ranges. After removing duplicates from the endpoints of these N sub-ranges, there are a total of N+1 ceiling light illuminance values. These N+1 values are then sorted in ascending order and denoted as X0 to X... N .
[0185] In the first example, the illuminance value of the ceiling light can be adjusted from 0 Lux to 1000 Lux. When N is 5, the illuminance value adjustment range of the ceiling light is divided into 5 parts, resulting in 5 sub-ranges of illuminance value adjustment. After removing duplicate endpoints from the 5 sub-ranges of illuminance value adjustment, there are a total of 6 ceiling light illuminance values, namely 0 Lux, 200 Lux, 400 Lux, 600 Lux, 800 Lux, and 1000 Lux.
[0186] S1802: Obtain the illuminance value adjustment range of the large light box, divide the illuminance value adjustment range of the large light box into M parts, and obtain M+1 large light box illuminance values; M is a positive integer.
[0187] Referring to S1801 above, the illuminance values of the M+1 large light boxes are sorted from smallest to largest, and can be denoted as Y0 to Y10 respectively. M .
[0188] In the first example above, the illuminance value of the large light box can be adjusted from 0 Lux to 20000 Lux. Similarly, when M is 5, the illuminance values of the six ceiling lights are 0 Lux, 4000 Lux, 8000 Lux, 12000 Lux, 16000 Lux, and 20000 Lux, respectively.
[0189] S1803: Obtain the relative position adjustment range between the shield and the headlight box, divide the relative position adjustment range into L parts, and obtain L+1 relative positions; L is a positive integer.
[0190] Referring to S1801 above, sorting the L+1 relative positions from smallest to largest can be denoted as Z0 to Z1. L .
[0191] In the first example above, the relative position adjustment range between the shielding component and the large light box is 0 to 5A. The relative position adjustment range is adjusted from minimum to maximum. The display ratio of the large light box in the preview interface of the terminal device is adjusted from 0% to 100%. That is to say, the shielding component's occlusion ratio of the large light box is adjusted from 0% to 100%. When L is 5, the relative position adjustment range is divided into 5 parts, resulting in 6 relative positions: 0, A, 2A, 3A, 4A, and 5A.
[0192] S1804: The control device combines the preset illuminance values of multiple ceiling lights, the preset illuminance values of multiple large light boxes, and multiple preset relative positions to obtain various preset combinations; the control device adjusts the ceiling lights, large light boxes, and adjusting obstructions according to various preset combinations to obtain the total illuminance value and dynamic range value corresponding to each preset combination after adjustment; establishes the correspondence between the preset combinations and the obtained total illuminance value and dynamic range value to obtain the calibrated correspondence.
[0193] It should be noted that the illuminance values of the overhead lights are denoted as X0 to X... N The illuminance values of the large light boxes are denoted as Y0 to Y10. M The relative positions are denoted as Z0 to Z1. L The number of preset combinations, Q, is the product of (N+1), (M+1), and (L+1), i.e., Q = (N+1)(M+1)(L+1). Each preset combination is denoted as [X0, Y0, Z0], [X0, Y0, Z1], up to [X...]. N Y M Z L ].
[0194] It should be understood that the control equipment adjusts the illuminance values of the overhead light, the headlight box, and the relative positions of the obstruction and the headlight box to [X0, Y0, Z0], [X0, Y0, Z1], and so on, up to [X0, Y0, Z1]. N YM Z L This corresponds to each preset combination, thus traversing each preset combination. After the control device adjusts to any preset combination, the terminal device can collect the total illuminance value and dynamic range value corresponding to that preset combination. The control device can communicate with the terminal device to obtain the correspondence between the preset combinations and the total illuminance value and dynamic range value.
[0195] In the first example above, the preset number of combinations is 216, and each combination is denoted as [0, 0, 0], [0, 0, A] up to [1000, 20000, 5A].
[0196] Figure 19 This is a schematic diagram showing the total illuminance value and dynamic range value corresponding to the preset combination provided in the embodiments of this application. The x-axis represents the illuminance value, and the y-axis represents the dynamic range value. The illuminance value range and the dynamic range value range are shown below. Figure 19 As shown, this covers a variety of shooting scenarios, including combinations of illuminance and dynamic range values. These scenarios include at least low overall illuminance and low dynamic range (referred to as low illuminance low dynamic range), high overall illuminance and low dynamic range (referred to as high illuminance low dynamic range), low overall illuminance and high dynamic range (referred to as low illuminance high dynamic range), and high overall illuminance and high dynamic range (referred to as high illuminance high dynamic range).
[0197] Thus, the terminal device testing method provided in this application, by calibrating the correspondence between multiple preset combinations and the overall illuminance value and low dynamic range value, helps to flexibly adjust the testing environment so as to test the shooting performance of the terminal device in a more diverse range of shooting scenarios.
[0198] It is understandable that dividing the illuminance adjustment range of the overhead light into N parts can be done either evenly or unevenly. The first example uses an even distribution. Similarly, dividing the illuminance adjustment range of the large lightbox into M parts and the relative position adjustment range of the obstruction and the large lightbox into L parts can also be done evenly or unevenly, just like dividing the illuminance adjustment range of the overhead light into N parts.
[0199] Thus, the terminal device testing method provided in this application, by establishing a correspondence, can quickly obtain a preset combination corresponding to the target illuminance value and the target dynamic range value when a test request is received. Furthermore, by adjusting the illuminance values of the overhead light, the large lightbox, and the relative positions of the obstruction and the large lightbox, the overall illuminance value and dynamic range value in the test environment can be quickly adjusted to the target illuminance value and target dynamic range value. Therefore, this application embodiment achieves the technical effect of rapidly adjusting the overall illuminance value and dynamic range value in the test environment.
[0200] In the second example, the target illuminance value is 100±10 Lux, and the target dynamic range value is 200±10. Based on the correspondence, a near-close [X3, Y4, Z5] preset combination is selected. Assume this preset combination corresponds to an illuminance value of 85 Lux and a dynamic range value of 220. Since the target illuminance value is higher than 85 Lux, the control device can adjust one level to increase the illuminance value of the overhead light. Since the target dynamic range value is less than 220, it is adjusted one level at a time to decrease the illuminance value of the large light box. After adjusting one level, since the overall illuminance value is less than 90 Lux, it is adjusted one level further to increase the illuminance value of the overhead light. If the dynamic range value is greater than 210, the relative position of the baffle and the large light box is adjusted, and the illuminance value of the large light box is decreased by one level. With the overhead light illuminance adjusted to 666 Lux, the large lightbox illuminance to 7777 Lux, and the relative position of the obstruction and the large lightbox adjusted to level 88, the overall illuminance in the test environment was 95 Lux, and the dynamic range was 201, meeting the target illuminance and dynamic range values. The correspondence between the overall illuminance of 95 Lux, the dynamic range of 201, the overhead light illuminance of 666 Lux, the large lightbox illuminance of 7777 Lux, and the relative position of the obstruction and the large lightbox at level 88 was recorded, and a shooting test was initiated for this terminal device.
[0201] It should be understood that, Figure 18 The calibration process is illustrated by dividing the illuminance adjustment range of the ceiling light, the illuminance adjustment range of the large light box, and the relative position adjustment range of the obstruction component and the large light box into separate divisions. In some possible implementations, the embodiments of this application may further divide the illuminance adjustment range of the ceiling light, the illuminance adjustment range of the large light box, and the relative position adjustment range of the obstruction component and the large light box multiple times to obtain multiple sets of correspondences, thereby achieving the calibration process.
[0202] For example, the illuminance adjustment range of the ceiling light can be divided into two parts, the illuminance adjustment range of the large lightbox can be divided into two parts, and the adjustment range of the relative position of the obstruction and the large lightbox can be divided into two parts, resulting in nine preset combinations that correspond to the overall illuminance value and dynamic range value, forming the first set of correspondences. Then, the illuminance adjustment range of the ceiling light can be divided into four parts, the illuminance adjustment range of the large lightbox can be divided into four parts, and the adjustment range of the relative position of the obstruction and the large lightbox can be divided into four parts, resulting in 125 preset combinations that correspond to the overall illuminance value and dynamic range value, forming the second set of correspondences. When adjusting the test system to provide the target illuminance value and target dynamic range value, the test system is first adjusted according to the first set of correspondences to complete the coarse adjustment, and then adjusted according to the second set of correspondences to complete the fine adjustment.
[0203] In this way, by obtaining multiple sets of correspondences with different granularities, when adjusting the target illuminance value and target dynamic range value provided by the test system, the top light illuminance value, the large light box illuminance value, and the relative position of the shielding component and the large light box of the test system can be quickly and coarsely adjusted first, and then finely adjusted to the top light illuminance value, the large light box illuminance value, and the relative position of the shielding component and the large light box closer to the target illuminance value and target dynamic range value.
[0204] This application also provides a computer-readable storage medium including computer instructions that, when executed on the control device and / or terminal device, cause the control device and / or terminal device to perform the various functions or steps described in the method embodiments.
[0205] This application also provides a computer program product that, when run on a control device and / or terminal device, causes the control device and / or terminal device to perform the functions or steps described in the above method embodiments.
[0206] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0207] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0208] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0209] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0210] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0211] 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 of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for testing terminal devices, characterized in that, A control device applied in a testing system, the testing system further comprising a first light source, a second light source, a terminal device with a camera, and a blocking component, the blocking component being disposed between the terminal device and the second light source, the first light source being a global light source, and the second light source being a local light source, the method comprising: The control device, based on a calibrated correspondence, searches for the first target illuminance value of the first light source, the second target illuminance value of the second light source, and the target relative position corresponding to the target illuminance value and / or the target dynamic range value; wherein, the calibrated correspondence includes a correspondence between preset combinations and preset environmental parameters; each preset combination includes a preset illuminance value of the first light source, a preset illuminance value of the second light source, and a preset relative position of the blocking component and the second light source; the preset environmental parameters include preset illuminance values and / or preset dynamic range values; After adjusting the first light source according to the first target illuminance value, adjusting the second light source according to the second target illuminance value, and adjusting the blocking component according to the target relative position, the control device obtains the actual total illuminance value and / or the actual dynamic range value in the test environment. When the actual total illuminance value and the target illuminance value meet a first preset proximity condition, and / or the actual dynamic range value and the target dynamic range value meet a second preset proximity condition, the control device triggers the start of a shooting test for the camera of the terminal device.
2. The method according to claim 1, characterized in that, If the actual total illuminance value and the target illuminance value do not meet a first preset proximity condition, and / or the actual dynamic range value and the target dynamic range value do not meet a second preset proximity condition, the method further includes: The control device adjusts the illuminance value of the first light source, the illuminance value of the second light source, and / or the relative position of the blocking member and the second light source in stages toward the direction of approaching the target illuminance value and / or approaching the target dynamic range value, until the actual total illuminance value and the target illuminance value meet the first preset proximity condition, and / or the actual dynamic range value and the target dynamic range value meet the second preset proximity condition.
3. The method according to claim 2, characterized in that, The control device adjusts the illuminance value of the first light source, the illuminance value of the second light source, and / or the relative position of the blocking member and the second light source in stages towards the direction approaching the target illuminance value and / or the target dynamic range value, until the actual total illuminance value and the target illuminance value meet a first preset proximity condition, and / or the actual dynamic range value and the target dynamic range value meet a second preset proximity condition, including: The control device adjusts the illuminance value of the first light source, the illuminance value of the second light source, and / or the relative position of the blocking member and the second light source in stages in a direction that approaches the target illuminance value and / or approaches the target dynamic range value. During the step-by-step adjustment process, for each adjustment level, the actual total illuminance value and / or actual dynamic range value of the test system in the test environment after this adjustment are obtained. If the actual total illuminance value after this adjustment does not meet the first preset proximity condition with the target illuminance value, and / or if the actual dynamic range value after this adjustment does not meet the second preset proximity condition with the target dynamic range value, then the adjustment continues to the next level until the actual total illuminance value after adjustment meets the first preset proximity condition with the target illuminance value, and / or the actual dynamic range value meets the second preset proximity condition with the target dynamic range value.
4. The method according to claim 1, characterized in that, The acquisition of the actual total illuminance value and / or actual dynamic range value in the test environment includes: The control device acquires the actual total illuminance value and / or actual dynamic range value in the test environment sent by the terminal device; The terminal device detects the actual overall illuminance value and / or actual dynamic range value of the test environment based on the image within the field of view of the camera after the control device adjusts the first light source according to the first target illuminance value, adjusts the second light source according to the second target illuminance value, and adjusts the blocking component according to the target relative position.
5. The method according to claim 4, characterized in that, The testing system is used to support testing of various terminal devices; The testing system further includes: a support device, which is used to support any one of the various terminal devices; The method further includes: When the field of view of the cameras of the various terminal devices differs, the control device controls the movement of the support device to make the field of view of the cameras of the various terminal devices consistent.
6. The method according to claim 4 or 5, characterized in that, The control device is equipped with a parameter monitoring program; the parameter monitoring program is used to monitor at least some of the environmental parameters detected by the terminal device after authorization; The control device acquires the actual total illuminance value and / or actual dynamic range value in the test environment sent by the terminal device, including: The control device, based on the parameter monitoring program, obtains the actual total illuminance value and / or actual dynamic range value of the test environment detected by the terminal device.
7. The method according to any one of claims 1 to 5, characterized in that, Before the control device searches for the first target illuminance value of the first light source, the second target illuminance value of the second light source, and the target relative position corresponding to the target illuminance value and / or the target dynamic range value according to the calibrated correspondence, the method further includes: The control device divides the illuminance value adjustment range of the first light source to obtain multiple preset illuminance values for the first light source; The control device divides the illuminance value adjustment range of the second light source to obtain multiple preset illuminance values for the second light source; The control device divides the relative position adjustment range between the blocking component and the second light source to obtain multiple preset relative positions; The control device combines multiple preset illuminance values of the first light source, multiple preset illuminance values of the second light source, and multiple preset relative positions to obtain multiple preset combinations; The control device adjusts the first light source, the second light source, and the blocking component according to various preset combinations to obtain environmental parameters corresponding to the various preset combinations after adjustment. Establish the correspondence between the preset combination and the acquired environmental parameters to obtain the calibrated correspondence.
8. The method according to claim 7, characterized in that, The control device adjusts the first light source, the second light source, and the blocking component according to various preset combinations to obtain environmental parameters corresponding to the various preset combinations after adjustment, including: The control device adjusts the first light source, the second light source, and the blocking component according to various preset combinations. After each adjustment according to a preset combination, the control device obtains the environmental parameters detected in the adjusted test environment from the terminal device.
9. The method according to any one of claims 1 to 5, characterized in that, The control device, based on the calibrated correspondence, searches for the first target illuminance value of the first light source, the second target illuminance value of the second light source, and the target relative position corresponding to the target illuminance value and / or the target dynamic range value, including: If the preset environmental parameters do not include the target illuminance value and / or the target dynamic range value, the control device determines a first illuminance value that satisfies a third preset proximity condition with the target illuminance value from the preset illuminance values in the preset environmental parameters, and / or determines a first dynamic range value that satisfies a fourth preset proximity condition with the target dynamic range value from the preset dynamic range values in the preset environmental parameters. The control device searches the correspondence for the first target illuminance value, the second target illuminance value, and the target relative position corresponding to the first illuminance value and / or the first dynamic range value.
10. The method according to claim 9, characterized in that, The third preset proximity condition includes the difference between the target illuminance value and the target illuminance value being less than a first preset threshold, and / or, the fourth preset proximity condition includes the difference between the target dynamic range value and the target dynamic range value being less than a second preset threshold; wherein, the first preset threshold is a preset illuminance threshold, and the second preset threshold is a preset dynamic range threshold; The control device determines a first illuminance value that satisfies a third preset proximity condition to the target illuminance value from preset illuminance values in the preset environmental parameters, including: when the preset illuminance values include at least two second illuminance values, the control device selects the second illuminance value that is closest to the target illuminance value as the first illuminance value; wherein, the second illuminance value refers to a preset illuminance value whose difference from the target illuminance value is less than the first preset threshold; And / or, Determining a first dynamic range value from the preset dynamic range values in the preset environmental parameters that satisfies a fourth preset proximity condition to the target dynamic range value includes: when the preset dynamic range values include at least two second dynamic range values, the control device selects the second dynamic range value that is closest to the target dynamic range value as the first dynamic range value; wherein, the second dynamic range value refers to a preset dynamic range value whose difference from the target dynamic range value is less than the second preset threshold.
11. The method according to any one of claims 1 to 5, characterized in that, The shielding member includes a first extension plate and a second extension plate; the first extension plate and the second extension plate are respectively disposed on both sides of the shielding member and extend towards the direction of the second light source, so that the first extension plate and the second extension plate shield the side of the second light source.
12. A testing system, characterized in that, include: A first light source, a second light source, a terminal device with a camera, a blocking component, and a control device; The control device is communicatively connected to the first light source, the second light source, the shielding component, and the terminal device; Wherein, the illuminance value of the first light source is adjustable, the illuminance value of the second light source is adjustable, the blocking member is disposed between the terminal device and the second light source, and the relative position of the blocking member and the second light source is adjustable; the emitting surface of the second light source faces the camera of the terminal device; the camera's shooting object includes at least one of the second light source or the blocking member; the testing system is used to initiate a shooting test for the terminal device, and the control device is used to execute the method as described in any one of claims 1 to 11.
13. A control device, characterized in that, The control device includes at least a memory and one or more processors; the memory is used to store computer instructions, which, when executed by the one or more processors, cause the control device to perform the method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on a control device and / or a terminal device, cause the control device and / or the terminal device to perform the method as described in any one of claims 1 to 11.
15. A computer program product, characterized in that, When the computer program product is run on a control device and / or a terminal device, it causes the control device and / or the terminal device to perform the method as described in any one of claims 1 to 11.