Test method, electronic device, and storage medium

By controlling the camera's shooting operation through automated testing tools, and extending the time intervals at fixed intervals until the number of photos reaches a preset value, the problem of poor accuracy in camera response time testing in existing technologies is solved, and efficient and accurate response time measurement is achieved.

CN115767075BActive Publication Date: 2026-06-05YIBIN TINNO COMM CO LT +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
YIBIN TINNO COMM CO LT
Filing Date
2022-10-31
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing methods for testing camera response time rely on manual operation, resulting in poor accuracy of test results due to variations in the operator's finger clicking speed.

Method used

An automated testing tool sends a preset number of shooting commands to the camera at fixed intervals to obtain the number of photos. The fixed interval is then extended until the number of photos equals the preset number of times, and the fixed interval is determined as the response time.

Benefits of technology

It improves the accuracy and standardization of camera response time testing, reduces interference from human factors, and achieves automated operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767075B_ABST
    Figure CN115767075B_ABST
Patent Text Reader

Abstract

The application discloses a test method, an electronic device and a storage medium, wherein the test method comprises the following steps: issuing a preset number of shooting instructions to a to-be-tested camera of the electronic device at intervals of a fixed time length, and acquiring a number of photos shot by the to-be-tested camera; in response to the number of photos shot by the to-be-tested camera being less than the preset number, extending the fixed time length, and issuing the preset number of shooting instructions to the to-be-tested camera again; and in response to the number of photos shot by the to-be-tested camera being equal to the preset number, determining the corresponding fixed time length as a response time of the to-be-tested camera. Through the above method, the application can improve the accuracy of the response time of the to-be-tested camera of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention applies to the technical field of camera testing, particularly testing methods, electronic devices, and storage media. Background Technology

[0002] With the rapid development of cameras, consumers have an increasingly strong desire for cameras that can quickly capture images. Determining when a camera can take another picture after taking one, i.e., its response time, is also quite time-consuming in testing.

[0003] A common solution on the market is to take pictures of the stopwatch, quickly and repeatedly trigger the camera's shutter button multiple times, then take two stopwatch images of the photos, read the stopwatch data from the photos with the human eye, and then calculate the difference, which is approximately equal to the time difference between two consecutive successful photos. After testing several times, the average value is taken, which is the time it takes to take a successful photo again after taking one photo in this mode.

[0004] This approach has the following drawbacks: because everyone's finger clicking speed is different, if the camera performance is very good, the test results will vary greatly. Summary of the Invention

[0005] This invention provides a testing method, electronic device, and storage medium to solve the problem of low testing accuracy of cameras.

[0006] To address the aforementioned technical problems, this invention provides a testing method, comprising: issuing a preset number of shooting commands to a camera under test of an electronic device at fixed intervals, and obtaining the number of photos taken by the camera under test; extending the fixed interval in response to the number of photos taken by the camera under test being less than the preset number; issuing the preset number of shooting commands to the camera under test again; and determining the corresponding fixed interval as the response time of the camera under test in response to the number of photos taken by the camera under test being equal to the preset number.

[0007] The steps of sending a preset number of shooting commands to the camera under test of the electronic device at fixed intervals and obtaining the number of photos taken by the camera under test include: calling an automated testing tool to connect to the camera under test; calling the automated testing tool to simulate the shooting operation of the camera under test, and sending a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals; and detecting the photos in the image library of the camera under test to determine the number of photos taken by the camera under test.

[0008] The step of issuing a preset number of shooting commands to the camera under test of the electronic device at fixed intervals includes, before the step of: clearing the photos in the gallery of the camera under test.

[0009] The steps of connecting the camera under test by calling the automated testing tool include: acquiring the camera under test and determining the location of the function buttons on the camera under test, including a shooting button; connecting the camera under test by calling the automated testing tool; and calling the automated testing tool to simulate the shooting operation of the camera under test, and issuing a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals.

[0010] The function buttons also include multiple scene buttons; the steps of calling an automated testing tool to simulate the shooting operation of the camera under test, and issuing a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals, include: using the location of a scene button to call the automated testing tool to trigger the current scene mode of the camera under test; in the current scene mode, using the location of the shooting button to call the automated testing tool to simulate the shooting operation of the camera under test, and issuing a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals; the step of determining the corresponding fixed interval as the response time of the camera under test includes: determining the corresponding fixed interval as the response time of the camera under test in the current scene mode.

[0011] The step of determining the corresponding fixed duration as the response time of the camera under test in the current scene mode also includes: using the location of other scene buttons to call the automated testing tool to change the current scene mode of the camera under test, and then issuing a preset number of shooting commands to the camera under test at fixed intervals to determine the response time of the camera under test in the changed current scene mode, until the response time of the camera under test in all scene modes is determined.

[0012] The cameras to be tested include those from smart terminals.

[0013] Among them, the single extension duration of the fixed duration is equal, and the range of the single extension duration is 40-60 milliseconds.

[0014] To address the aforementioned technical problems, the present invention provides an electronic device comprising: a memory and a processor coupled to each other, wherein the processor is configured to execute program instructions stored in the memory to implement the testing method as described above.

[0015] To address the aforementioned technical problems, the present invention provides a computer-readable storage medium storing program data that can be executed to implement the test method described above.

[0016] The beneficial effects of this invention are as follows: Unlike the prior art, this invention pre-sets a fixed duration, issues a preset number of shooting commands to the camera under test based on the fixed duration, and extends the fixed duration when the number of photos taken by the camera under test is less than the preset number, and then issues the preset number of shooting commands to the camera under test again until the number of photos taken by the camera under test equals the preset number. The corresponding fixed duration is determined as the response time of the camera under test, thereby improving the standardization of the test and the accuracy of testing the response time of the camera under test. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating an embodiment of the testing method provided by the present invention;

[0018] Figure 2 This is a flowchart illustrating another embodiment of the testing method provided by the present invention;

[0019] Figure 3 This is a schematic diagram of the structure of an embodiment of the electronic device provided by the present invention;

[0020] Figure 4 This is a schematic diagram of an embodiment of the computer-readable storage medium provided by the present invention. Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] It should be noted that if the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.

[0023] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0024] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the testing method provided by the present invention.

[0025] Step S11: Send a preset number of shooting commands to the camera under test of the electronic device at fixed intervals, and obtain the number of photos taken by the camera under test.

[0026] The camera to be tested is obtained from an electronic device. This electronic device includes smart terminals, SLR cameras, monitoring cameras, digital cameras, etc., and is not limited to any particular type.

[0027] The system sends a preset number of shooting commands to the camera under test of the electronic device at fixed intervals. That is, when the preset number of shooting commands are sent to the camera under test, the interval between each two adjacent shooting commands is a fixed duration.

[0028] The specific duration of the fixed test can be set based on actual conditions and is not limited here. For example, it can be set based on a duration lower than the estimated response time of the camera under test to avoid the fixed duration exceeding the response time of the camera under test, which could affect the accuracy of the test. The estimated response time can be determined based on the performance of the camera under test.

[0029] The preset number of tests can be set based on actual conditions, such as 10 or 15 times, and there is no limit here. The more preset tests, the more accurate the final response time of the camera under test will be.

[0030] After issuing a preset number of shooting commands to the camera under test at fixed intervals, the number of photos taken by the camera under test is obtained. The number of photos taken by the camera under test indicates the number of photos successfully taken by the camera under test after the preset number of shooting commands.

[0031] Step S12: In response to the fact that the number of photos taken by the camera under test is less than the preset number, extend the fixed time; and send the shooting command to the camera under test for the preset number of times again.

[0032] After obtaining the number of photos taken by the camera under test, determine the relationship between the number of photos taken by the camera under test and the preset number of times.

[0033] If the number of photos taken by the camera under test is less than the preset number, it means that the fixed duration is lower than the response time of the camera under test. In this case, the fixed duration is extended, and the camera under test is given the preset number of shooting commands again for retesting.

[0034] Step S13: In response to the number of photos taken by the camera under test being equal to the preset number of times, the corresponding fixed duration is determined as the response time of the camera under test.

[0035] If the number of photos taken by the camera under test equals the preset number of times, it means that the fixed duration setting is equal to the response time of the camera under test. The corresponding fixed duration, i.e. the extended fixed duration, is determined as the response time of the camera under test.

[0036] Through the above steps, the testing method of this embodiment sets a fixed duration in advance, issues a preset number of shooting commands to the camera under test based on the fixed duration, and when the number of photos taken by the camera under test is less than the preset number, extends the fixed duration and issues the preset number of shooting commands to the camera under test again, until the number of photos taken by the camera under test equals the preset number. The corresponding fixed duration is determined as the response time of the camera under test, thereby improving the standardization of the test and the accuracy of testing the response time of the camera under test.

[0037] In other embodiments, if the fixed duration is not set based on a time lower than the estimated response time of the camera under test, then in response to the number of photos taken by the camera under test being equal to the preset number of times, it indicates that the fixed duration is equal to or greater than the response time of the camera under test. In this case, the fixed duration can be reduced, and the preset number of shooting instructions can be issued to the camera under test again until the number of photos taken by the camera under test is less than the preset number of times. The fixed duration corresponding to the previous preset number of shooting instructions is then determined as the response time of the camera under test.

[0038] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the testing method provided by the present invention.

[0039] Step S21: Connect the camera to be tested using the automated testing tool.

[0040] The camera to be tested of the electronic device is obtained. The camera to be tested may include the camera of a smart terminal, such as the camera on a mobile phone.

[0041] The location of the function buttons on the camera under test is determined. These buttons may include a shutter button and multiple scene buttons, each corresponding to a shooting mode of the camera under test. These scene shooting modes may include HDR (High Dynamic Range Imaging) mode, night mode, and portrait mode, among others. In a specific application scenario, when the camera under test is a mobile phone camera, the camera application information on the phone can be obtained first, and the function buttons on the camera page can be located through element positioning. In other application scenarios, when the camera under test is a different type of camera, other methods can be used to determine the location of the function buttons.

[0042] Connect the camera to be tested using an automated testing tool. This tool can include Appium, Automator2, etc., and is not limited to any particular tool.

[0043] Before each preset number of shots, clear the photos in the image library of the camera under test to avoid the influence of historical photos on the photos taken by the camera under test, which could reduce the reliability of the test and improve the accuracy of the final response time of the camera under test.

[0044] Step S22: Call the automated testing tool to simulate the shooting operation of the camera under test, and issue a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals; detect the photos in the image library of the camera under test to determine the number of photos taken by the camera under test.

[0045] After connecting the camera to be tested to the automated testing tool, the automated testing tool is used to simulate the shooting operation of the camera to issue shooting commands.

[0046] In a specific application scenario, when the camera under test is a camera on a mobile phone, an automated testing tool can be invoked. The click() function can be used to call the camera button on the mobile phone and simulate the shooting operation of the camera under test to issue a shooting command.

[0047] In a specific application scenario, the location of the shutter button can be used to call an automated testing tool to simulate the shooting operation of the camera under test, and at fixed intervals, the camera under test will be given a preset number of shooting commands through the shooting operation.

[0048] In a specific application scenario, the location of a scene button can be used to call the automated testing tool to trigger the current scene mode of the camera under test. In the current scene mode, the location of the shooting button can be used to call the automated testing tool to simulate the shooting operation of the camera under test, and at fixed intervals, a preset number of shooting commands can be issued to the camera under test based on the shooting operation.

[0049] By using automated testing tools to control the shooting of the camera under test, it can be adapted to all types of electronic devices. The entire testing process is automated, requiring no human intervention, reducing human interference, and thus improving the accuracy and reliability of the entire testing process.

[0050] In a specific application scenario, when the camera under test is a mobile phone camera, the fixed duration in this step can be set to 200ms. The response time of a typical mobile phone will not be less than this duration. Therefore, setting the fixed duration to 200ms can avoid the situation where the fixed duration is higher than the response time of the camera under test, which would affect the accuracy of the test.

[0051] That is, at fixed intervals, the position of the shutter button is used by an automated testing tool to simulate the shooting operation of the camera under test, repeating this process a preset number of times to issue the preset number of shooting commands. The preset number of times can include 10 times, 15 times, etc., and the specific number is not limited here.

[0052] After issuing the preset number of shooting instructions, the system checks the photos in the image library of the camera under test to determine the number of photos taken by the camera under test.

[0053] Step S23: In response to the fact that the number of photos taken by the camera under test is less than the preset number, extend the fixed time; and send the shooting command to the camera under test for the preset number of times again.

[0054] After obtaining the number of photos taken by the camera under test, determine the relationship between the number of photos taken by the camera under test and the preset number of times.

[0055] In a specific application scenario, in response to the fact that the number of photos taken by the camera under test is less than the preset number, the time is extended by a fixed period, the photos in the image library of the camera under test are cleared, and the shooting command is issued to the camera under test again for the preset number of times.

[0056] In this embodiment, the single extension duration of the fixed duration is equal, and the range of the single extension duration is 40-60 milliseconds. Specifically, it can be 40 milliseconds, 42 milliseconds, 43 milliseconds, 45 milliseconds, 48 ​​milliseconds, 50 milliseconds, 51 milliseconds, 53 milliseconds, 55 milliseconds, 58 milliseconds, or 60 milliseconds, etc. However, the single extension duration of the fixed duration is the same throughout the testing process of the same camera under test. That is, each time the fixed duration is extended, it is extended by a fixed duration within the range of 40-60 milliseconds. By setting the single extension range of 40-60 milliseconds, the testing accuracy of this embodiment can be achieved within the range of 40-60 milliseconds, thereby improving the testing accuracy of the camera's response time in this embodiment.

[0057] Step S24: In response to the number of photos taken by the camera under test being equal to the preset number of times, the corresponding fixed duration is determined as the response time of the camera under test.

[0058] In response to the number of photos taken by the camera under test being equal to the preset number of times, the corresponding fixed duration is determined as the response time of the camera under test in the current scene mode.

[0059] This embodiment gradually extends a fixed duration to approximate the response time of the camera under test through a controllable step value, thereby obtaining an accurate test value for the response time.

[0060] In a specific application scenario, when the fixed duration is 200 milliseconds and the single extension time of the fixed duration is 50 milliseconds, if the number of photos taken by the camera under test determined in step S22 is less than the preset number, the fixed duration is increased by 50 milliseconds to 250 milliseconds. After clearing the photos in the image library of the camera under test, a shooting command for the preset number is issued to the camera under test again based on the fixed duration of 250 milliseconds. The difference between the number of photos taken by the camera under test and the preset number is then compared. If the number of photos taken by the camera under test determined the second time is still less than the preset number, the fixed duration is increased by 50 milliseconds to 300 milliseconds. After clearing the photos in the image library of the camera under test, a shooting command for the preset number is issued to the camera under test again based on the fixed duration of 300 milliseconds. This process continues until the number of photos taken by the camera under test equals the preset number. The corresponding fixed duration is then determined as the response time of the camera under test in the current scene mode. If the number of photos taken by the camera under test determined the second time equals the preset number, 300 milliseconds is determined as the response time of the camera under test in the current scene mode.

[0061] After obtaining the response time of the camera under test in the current scene mode, the current scene mode of the camera under test is changed using an automated testing tool by utilizing the positions of other scene buttons. Then, a preset number of shooting commands are issued to the camera under test at fixed intervals to determine the response time of the camera under test in the changed current scene mode. This process is repeated until the response time of the camera under test in all scene modes is determined. In other words, steps S22-S23 are repeated to determine the response time of the camera under test in all scene modes.

[0062] By utilizing the location of other scene buttons and using automated testing tools to change the current scene mode of the camera under test, it is possible to automatically switch between each scene mode, reduce the overall testing time, and improve the accuracy of scene mode switching.

[0063] Through the above steps, the testing method of this embodiment pre-sets a fixed duration, issues a preset number of shooting commands to the camera under test based on this fixed duration, and extends the fixed duration if the number of photos taken by the camera under test is less than the preset number, then issues the preset number of shooting commands again, until the number of photos taken by the camera under test equals the preset number. The corresponding fixed duration is determined as the response time of the camera under test, thereby improving the standardization of the test and the accuracy of testing the response time of the camera under test. Furthermore, by controlling the shooting of the camera under test through automated testing tools, it is suitable for all types of mobile terminals. The entire testing process is automated, requiring no human intervention, reducing human interference, and thus improving the accuracy and reliability of the entire testing process. This embodiment also gradually extends the fixed duration to gradually approach the response time of the camera under test through controllable step values, thereby obtaining an accurate test value for the response time. Moreover, this embodiment utilizes the positions of other scene buttons to change the current scene mode of the camera under test through automated testing tools, enabling automatic switching of each scene mode, reducing the overall testing time, and improving the accuracy of scene mode switching.

[0064] In other embodiments, if the fixed duration is not set based on a time lower than the estimated response time of the camera under test, after step S22, if the number of photos taken by the camera under test is equal to the preset number, it means that the fixed duration is equal to or greater than the response time of the camera under test. In this case, the fixed duration can be reduced, and the preset number of shooting instructions can be issued to the camera under test again until the number of photos taken by the camera under test is less than the preset number. The fixed duration corresponding to the previous preset number of shooting instructions is then determined as the response time of the camera under test.

[0065] Based on the same inventive concept, the present invention also proposes an electronic device capable of executing the test methods of any of the above embodiments. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic diagram of an embodiment of the electronic device provided by the present invention. The electronic device includes a processor 31 and a memory 32.

[0066] The processor 31 is used to execute the program instructions stored in the memory 32 to implement the steps of any of the above-described test methods. In a specific implementation scenario, the electronic device may include, but is not limited to, a microcomputer or a server. In addition, the electronic device may also include mobile devices such as laptops and tablets, which are not limited here.

[0067] Specifically, processor 31 controls itself and memory 32 to implement the steps of any of the above embodiments. Processor 31 may also be referred to as a CPU (Central Processing Unit). Processor 31 may be an integrated circuit chip with signal processing capabilities. Processor 31 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor. Furthermore, processor 31 may be implemented using integrated circuit chips.

[0068] The above solution can improve the accuracy of testing the response time of the camera under test.

[0069] Based on the same inventive concept, the present invention also proposes a computer-readable storage medium, please refer to [link to relevant documentation]. Figure 4 , Figure 4 This is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. The computer-readable storage medium 40 stores at least one program data 41, which is used to implement any of the methods described above. In one embodiment, the computer-readable storage medium 40 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0070] In the several embodiments provided by this invention, it should be understood that the disclosed methods and apparatus 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 system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0071] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0072] Furthermore, the functional units in the various embodiments of the present invention 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.

[0073] 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 computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium.

[0074] The above are merely embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

[0075] The above are merely embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A testing method, characterized in that, The testing method includes: At fixed intervals, a preset number of shooting commands are sent to the camera under test of the electronic device, and the number of photos taken by the camera under test is obtained; wherein, the fixed interval is set based on a time lower than the estimated response time of the camera under test; In response to the fact that the number of photos taken by the camera under test is less than the preset number, the fixed time is extended; and the shooting command is issued to the camera under test again for the preset number of times. In response to the number of photos taken by the camera under test being equal to the preset number of times, the fixed duration is determined as the response time of the camera under test.

2. The test method according to claim 1, characterized in that, The step of issuing a preset number of shooting commands to the camera under test of the electronic device at fixed intervals and obtaining the number of photos taken by the camera under test includes: The automated testing tool is invoked to connect to the camera under test. The automated testing tool is invoked to simulate the shooting operation of the camera under test, and shooting instructions are issued to the camera under test a preset number of times based on the shooting operation at fixed intervals. The number of photos taken by the camera under test is determined by examining the photos in the camera's image library.

3. The test method according to claim 2, characterized in that, Before the step of issuing a preset number of shooting commands to the camera under test at the fixed interval based on the shooting operation, the following are included: Clear the photos from the gallery of the camera to be tested.

4. The test method according to claim 2, characterized in that, The step of calling the automated testing tool to connect to the camera under test includes: The camera to be tested is acquired, and the location of the function buttons of the camera to be tested is determined, including the shooting button; Connect the camera to be tested by calling the automated testing tool; The step of calling the automated testing tool to simulate the shooting operation of the camera under test, and issuing a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals includes: The location of the shooting button is used to invoke the automated testing tool to simulate the shooting operation of the camera under test, and the shooting command is issued to the camera under test a preset number of times based on the shooting operation at fixed intervals.

5. The test method according to claim 4, characterized in that, The function buttons also include multiple scene buttons; The step of calling the automated testing tool to simulate the shooting operation of the camera under test, and issuing a preset number of shooting commands to the camera under test based on the shooting operation at fixed intervals includes: The current scene mode of the camera under test is triggered by invoking the automated testing tool using the location of one of the scene buttons. In the current scene mode, the location of the shooting button is used to call the automated testing tool to simulate the shooting operation of the camera under test, and the shooting command is issued to the camera under test a preset number of times based on the shooting operation at fixed intervals; The step of determining the corresponding fixed duration as the response time of the camera under test includes: The corresponding fixed duration is determined as the response time of the camera under test in the current scene mode.

6. The test method according to claim 5, characterized in that, The step of determining the corresponding fixed duration as the response time of the camera under test in the current scene mode further includes: Using the location of other scene buttons, the automated testing tool is invoked to change the current scene mode of the camera under test. Then, shooting commands are issued to the camera under test a preset number of times at fixed intervals to determine the response time of the camera under test in the changed current scene mode, until the response time of the camera under test in all scene modes is determined.

7. The test method according to claim 1, characterized in that, The camera to be tested includes the camera of a smart terminal.

8. The test method according to claim 1, characterized in that, The duration of each fixed extension is equal, and the duration of each extension ranges from 40 to 60 milliseconds.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the test method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program data that can be executed to implement the test method as described in any one of claims 1 to 8.