Focus stability testing method, system, electronic device and storage medium

By testing the image definition change information of the image card and the target object, the focus stability of the shooting device is evaluated, and the clarity fluctuation caused by the focus point offset during automatic focus is solved, and the imaging quality of the shooting device is improved.

CN117714664BActive Publication Date: 2025-01-17HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310734805.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2025-01-17
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

When the shooting device is automatically focused, due to factors such as light, angle, position, texture characteristics and motion state of the target, the focus point may be offset, causing fluctuations in the image clarity of the target in the shooting screen, affecting the imaging quality.

Method used

Using a focus stability testing method and system, by obtaining the data of the shooting device in different shooting modes, using the test image card and the target to shoot, automatically identify and focus, obtain image clarity change information, and calculate focus stability index , such as standard deviation and mean, evaluate the focus stability of the device.

Benefits of technology

It realizes accurate testing of the autofocus stability of the shooting equipment, provides objective and accurate evaluation, helps to improve the autofocus function and improve imaging quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714664B_ABST
    Figure CN117714664B_ABST
Patent Text Reader

Abstract

The present application provides a test method, system, electronic device and storage medium for focus stability, and relates to the field of image quality evaluation technology. In the method, a shooting device takes a focus target and a reference object as shooting objects for shooting. During the shooting process, when the focus of the shooting device shifts, the image clarity of the reference object will change accordingly. Therefore, the change in the image clarity of the reference object can reflect the focus stability of the shooting device. The method obtains the focus stability information of the focus target object by obtaining the image clarity change information of the reference object, and can realize the focus stability test of the shooting device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image quality evaluation, and in particular to a method, system, electronic device and storage medium for testing focus stability. Background Art

[0002] Nowadays, mobile phones, cameras, tablet computers and other shooting devices all have autofocus functions. When users use these shooting devices to shoot, they can automatically identify the target objects in the picture (such as portraits, animals, flowers, plants and trees, etc.) and focus, which can reduce user operations and improve the user's shooting experience.

[0003] However, due to factors such as light, angle, position, texture characteristics of the target, and motion state, the focus point of the camera may move from the target to other positions when the camera automatically focuses, causing fluctuations in the image clarity of the target in the captured image, thereby affecting the imaging quality of the camera.

[0004] In order to ensure that the shooting device can obtain a clear and stable picture when shooting, it is necessary to test the stability of the autofocus of the shooting device, and to improve the autofocus function based on the test results, thereby improving the stability of the autofocus of the shooting device. Summary of the invention

[0005] Some embodiments of the present application provide a method, system, electronic device and storage medium for testing focus stability. The present application is introduced from multiple aspects below, and the implementation methods and beneficial effects of the following aspects can be referenced to each other.

[0006] In a first aspect, the present application provides a focus test method, a test system for focus stability, the test system including a shooting device, and the method including: obtaining shooting data within a first preset time period of the shooting device in a first shooting mode, with a focus target and a first reference object as shooting objects; obtaining first image clarity change information of the first reference object based on the shooting data; and obtaining first focus stability information of the shooting device for the focus target in the first shooting mode based on the first image clarity change information.

[0007] The first reference object may be a test chart, for example, a dead leaves chart, a high-definition electronic universal test chart, or a resolution comprehensive test chart.

[0008] According to an embodiment of the present application, a photographing device can shoot with a test chart and a target object (i.e., a focus target object), and during the shooting process, it can automatically identify and focus on the target object. When the focus of the photographing device is offset, the image clarity of the test chart in the shooting picture will fluctuate. In other words, the focus position of the photographing device will affect the image clarity of the test chart. The test chart is a chart used to objectively evaluate image quality, and compared with the target object, it can more objectively and accurately reflect the change in clarity. Therefore, the test device can obtain the image clarity change information of the test chart, and then obtain the focus stability information of the photographing device for the focus target object based on the image clarity change information of the test chart, thereby testing the focus stability of the photographing device.

[0009] In some embodiments, the first shooting mode includes a video shooting mode and a continuous shooting mode, wherein the shooting data corresponding to the video shooting mode is a video, and the shooting data corresponding to the continuous shooting mode is a picture.

[0010] According to an embodiment of the present application, the focus stability of a photographing device in different photographing modes may be tested.

[0011] In some embodiments, obtaining first image clarity change information of a first reference object based on shooting data includes: based on the shooting data being a video, obtaining first image clarity parameters of the first reference object in an image with a set frame interval in the video; based on the first image clarity parameters, obtaining first image clarity change information of the first reference object within a second preset time length, the second preset time length being less than or equal to the first preset time length.

[0012] According to the implementation manner of the present application, any time period in the video can be selected to analyze the focus stability of the shooting device, thereby determining the focus stability of the shooting device in each time period during the shooting process.

[0013] In some embodiments, based on the first image clarity parameter, first image clarity change information of the first reference object within a second preset time length is obtained, including: based on the first image clarity parameter, calculating the first standard deviation of the first image clarity parameter of the first reference object within the second preset time length as the first image clarity change information.

[0014] According to an embodiment of the present application, the first standard deviation of the first image clarity parameter can accurately reflect the change in image clarity of the first reference object.

[0015] In some embodiments, based on the first image clarity parameter, first image clarity change information of the first reference object within a second preset time length is obtained, including: based on the first image clarity parameter, calculating a first average value of the first image clarity parameter of the first reference object within the second preset time length; comparing the first image clarity parameters of the first reference object within the second preset time length to determine the maximum first image clarity parameter and the minimum first image clarity parameter; based on the maximum first image clarity parameter, the minimum first image clarity parameter and the first average value, obtaining the first image clarity change information.

[0016] According to an embodiment of the present application, the ratio of the difference between the maximum first image definition parameter and the minimum first image definition parameter to the first average value may be used as the first image definition change information.

[0017] In some embodiments, obtaining first image clarity change information of a first reference object based on shooting data includes: based on the shooting data being pictures, obtaining second image clarity parameters of the first reference object in each picture; based on the second image clarity parameters, obtaining first image clarity change information of the first reference object in pictures shot within a third preset time length, the third preset time length being less than or equal to the first preset time length.

[0018] In some embodiments, based on the second image clarity parameter, first image clarity change information of a first reference object in a picture taken within a third preset time length is obtained, including: based on the second image clarity parameter, calculating the second standard deviation of the second image clarity parameter of the first reference object within the third preset time length as the first image clarity change information.

[0019] In some embodiments, based on the second image clarity parameter, first image clarity change information of a first reference object in a picture taken within a third preset time length is obtained, including: based on the second image clarity parameter, calculating a second average value of the second image clarity parameter of the first reference object within the third preset time length; comparing the second image clarity parameters of the first reference object within the third preset time length to determine a maximum second image clarity parameter and a minimum second image clarity parameter; based on the maximum second image clarity parameter, the minimum second image clarity parameter and the second average value, obtaining the first image clarity change information.

[0020] In some embodiments, taking the focus target and the first reference object as the photographing objects includes: taking the focus target and the first reference object at a set angle and / or position as the photographing objects.

[0021] According to the implementation of the present application, during the shooting process, the focus target can be rotated, or the shooting device can be rotated around the focus target to shoot different angles of the focus target. In this way, the focus stability of the shooting device at different shooting angles can be tested. The position of the focus target can also be moved to test the focus stability of the shooting device at different positions.

[0022] In some embodiments, the first reference object and the photographing device are in the same plane.

[0023] According to an embodiment of the present application, the first reference object and the photographing device are in the same plane, and the focusing stability of the photographing device on the plane can be tested, for example, the focusing stability in the up, down, left, and right directions.

[0024] In some embodiments, the photographed object also includes a second reference object, and the second reference object is not in the same plane as the first reference object. The method also includes: obtaining second image clarity change information of the second reference object based on the shooting data; and obtaining second focus stability information of the shooting device for the focus target object in the first shooting mode based on the second image clarity change information.

[0025] According to an embodiment of the present application, the second reference object and the first reference object are not in the same plane, and the focus stability of the photographing device in space, for example, the focus stability in the front-to-back direction, can be tested.

[0026] In the second aspect, the embodiment of the present application provides a focus stability test system, including a shooting device, a focus target, a first reference object and a test device; the shooting device is used to take the focus target and the first reference object as shooting objects in a first shooting mode, shoot shooting data within a first preset time length, and send the shooting data to the test device; the test device is used to obtain first image clarity change information of the first reference object based on the shooting data, and obtain first focus stability information of the shooting device for the focus target object in the first shooting mode according to the first image clarity change information. The beneficial effects that can be achieved in the second aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.

[0027] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory for storing instructions executed by one or more processors of the electronic device; a processor, when the processor executes the instructions in the memory, the electronic device can execute the method described in any embodiment of the third aspect of the present application. The beneficial effects that can be achieved in the third aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.

[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer can execute the method described in any embodiment of the first aspect. The beneficial effects that can be achieved in the fourth aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The application scenario of the focus stability test provided in the embodiment of the present application;

[0030] Figure 2A The structure of the focus stability test system provided in the embodiment of the present application Figure 1 ;

[0031] Figure 2B Figure 2 is a structural diagram of a focus stability testing system provided in an embodiment of the present application;

[0032] Figure 3 An example of a process for testing the focus stability provided in an embodiment of the present application Figure 1 ;

[0033] Figure 4 An example diagram of the rotation of a portrait mold provided in an embodiment of the present application;

[0034] Figure 5 The image clarity curve 1 of the dead leaves chart 01 is shown;

[0035] Figure 6 The second image clarity curve of the dead leaves chart 01 is shown;

[0036] Figure 7 The image clarity curve of the dead leaves chart 02 is shown;

[0037] Figure 8 Example diagram of test scenarios provided for some embodiments;

[0038] Fig. 9 FIG2 is an example of a flow chart of a method for testing focus stability provided in an embodiment of the present application;

[0039] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;

[0040] Fig.11 A software architecture diagram of an electronic device provided in an embodiment of the present application is shown;

[0041] Fig.12 A block diagram of an electronic device provided by an embodiment of the present application is shown;

[0042] Fig.13A schematic diagram of the structure of a system on chip (SoC) provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] The embodiment of the present application is used to provide a focus stability test system. Through the system provided by the present application, the stability of the automatic focus of the shooting device can be tested to obtain accurate test results.

[0044] The present application does not limit the specific form of the shooting device, and the shooting device can be any electronic device that supports the shooting function. For example, the shooting device can be a mobile phone, a camera, a tablet computer, a phone watch with a shooting function, smart glasses, a drone, etc.

[0045] Figure 1 An exemplary application scenario of the present application is shown. Figure 1 , a user uses a camera (such as a mobile phone) to record a person 15, and wants to obtain a video of the person 15. However, during the recording process, when the person 15 moves, the focus may shift, resulting in fluctuations in the clarity of the image of the person 15 in the video.

[0046] For example, when recording begins, since the face of person 15 is facing the camera of the shooting device, the shooting device can automatically identify and focus on person 15 by autofocus, and the image of person 15 is relatively clear. However, when person 15 rotates to 180°, since the back of person 15 is facing the camera of the shooting device, the focus of the shooting device shifts to animal 16, causing the image of person 15 to become relatively blurred. When person 15 rotates to 360° and faces the camera of the shooting device again, the focus of the shooting device returns to person 15, making the image of person 15 clear again.

[0047] In this scenario, the focus of the shooting device moves back and forth, causing the image clarity of the person 15 in the video to fluctuate and fail to maintain clarity all the time, resulting in poor video quality and failure to obtain the video the user wants.

[0048] In order to ensure that the shooting device can obtain high-quality images with stable clarity during shooting, it is necessary to test the stability of the autofocus of the shooting device to obtain the test results. Then, the autofocus function of the shooting device is improved according to the test results.

[0049] Based on this, the present application proposes a test system for focus stability. The system includes at least one test chart, a target, a test device and a shooting device. The shooting device can shoot the test chart and the target, and then send the shooting data to the test device, and the test device tests the focus stability of the shooting device based on the shooting data, and obtains the corresponding test results. During the shooting process, the shooting device can automatically identify and focus on the target. However, when the focus of the shooting device is offset, the image clarity of the target and the test chart in the shooting picture will fluctuate. In other words, the focus position of the shooting device will affect the image clarity of the target and the test chart. The test chart is a chart used to objectively evaluate the image quality, and compared with the target, it can more objectively and accurately reflect the change in clarity. Therefore, the test device can obtain the image clarity of the test chart, and then accurately test the stability of the automatic focus of the shooting device according to the fluctuation of the image clarity of the test chart.

[0050] The following is a detailed introduction to the embodiments of the application.

[0051] Figure 2A A focus stability testing system 100A is provided for implementing the present application.

[0052] refer to Figure 2A The focus stability testing system 100A includes at least one test chart (eg, a dead leaves chart 01 and a dead leaves chart 02 ), a target 10 , a shooting device 20 and a testing device 30 .

[0053] The test chart can be a grayscale chart, a dead leaves chart (as Figure 1 For example, there are many types of charts, such as high-definition electronic universal test chart, resolution comprehensive test chart, Sineimage comprehensive test chart, color restoration test chart, etc. Take the dead leaf chart as an example. The dead leaf chart consists of circles of random size, grayscale, and position. It is mainly used to detect the image clarity (texture details in the image) corresponding to the image of the dead leaf chart collected by the shooting device, and then obtain the parameters for evaluating the imaging quality of the camera of the shooting device.

[0054] The target object 10 may be a human body mold (as Figure 1 Examples include animal molds, plant molds and other simulations, and may also be real entities such as people, animals, plants, etc., or may be photographs including images such as human portraits, animal images, and plant images.

[0055] The photographing device 20 may be a mobile phone (as Figure 1), cameras, tablet computers, drones, phone watches and other electronic devices that support shooting functions are used to shoot the test chart in the system and the shooting area where the target object 10 is located in a set shooting mode, and can automatically identify and focus on the target object 10 during the shooting process. After the shooting is completed, the shooting data is sent to the test device 30.

[0056] For example, the shooting device 20 can shoot the shooting area where the test chart and the target object 10 are located in the video recording mode, and then send the shot video to the test device 30.

[0057] For another example, the photographing device 20 may photograph the test chart and the photographing area where the target object 10 is located in the continuous photographing mode to obtain a plurality of pictures, and then send the photographed pictures to the test device 30 .

[0058] The test device 30 may be a computer (as Figure 1 ), a server or other electronic device, which is used to obtain the clarity of the image (i.e., the first image) of each test chart from the shooting data after receiving the shooting data sent by the shooting device 20, and based on the clarity, test the stability of the shooting device 20 focusing on the target object 10 to obtain a test result.

[0059] For example, when the shooting data received by the test device 30 is a video, the test device 30 performs image frame extraction processing on the video to obtain multiple video frame images, and then obtains the image clarity of each test picture card in each video frame image, and based on the clarity, tests the stability of the shooting device to obtain a test result.

[0060] For another example, when the shooting data received by the test device 30 is a plurality of pictures, the test device 30 obtains the image clarity of each test chart in each picture, and then tests the stability of the shooting device based on the clarity to obtain a test result.

[0061] In some embodiments, the dead leaves chart 01 may be placed on the left rear side of the target 20. The dead leaves chart 02 may be placed on the left side of the target 10.

[0062] The present application does not limit the specific positions of the dead leaf card 01 and the dead leaf card 02. In other embodiments, the dead leaf card 01 and the dead leaf card 02 can also be placed in other positions. For example, the dead leaf card 01 can also be placed on the left front side, right front side, right rear side, etc. of the target object 20, and the dead leaf card 02 can also be placed on the right side of the target object 10.

[0063] The dead leaves picture card 01, the dead leaves picture card 02 and the target object 10 are all in the shooting area of ​​the shooting device 20. When the shooting device 20 shoots the dead leaves picture card 01, the dead leaves picture card 02 and the target object 10 in the shooting area, the target object 10 can be automatically identified and focused on.

[0064] The photographing device 20 is connected to the testing device 30. The present application does not limit the specific connection method thereof, for example, the connection may be carried out by using Bluetooth, wireless local area network (WLAN), optical fiber, network cable, etc.

[0065] In order to improve the accuracy of the test results, a background board can be set behind the dead leaf chart 01, the dead leaf chart 02 and the target 10 to avoid the influence of the background environment. The present application does not limit the material, pattern, color, etc. of the background board. For example, a pure white wooden background board can be used.

[0066] In order to test the stability of the autofocus of the shooting device 20 under different lighting conditions, refer to Figure 2B Another embodiment of the present application further provides a focus stability test system 100B. Based on the focus stability test system 100A, the focus stability test system 100B adds at least one light source device 40 to provide different lighting conditions for the shooting device 20, thereby simulating various lighting environments in real scenes.

[0067] Below is Figure 2B Based on the focus stability test system 100B shown, the test process is introduced by taking the shooting device 20 as a mobile phone, the test device 30 as a computer, the test chart as a dead leaf chart, and the target object 10 as a portrait mold as an example.

[0068] Figure 3 An example of a process for testing the focus stability provided in the embodiment of the present application Figure 1 .

[0069] refer to Figure 3 , including the following steps:

[0070] S101, the mobile phone adopts a video recording mode to shoot the shooting area where the dead leaves picture card 01, the dead leaves picture card 02 and the portrait mold are located to obtain the shot video.

[0071] When testing the focus stability of the mobile phone, the test can be performed under the lighting conditions provided by natural light, or under the lighting conditions provided by the light source device 40. In order to simulate the stability of the mobile phone's auto focus under different lighting environments, this embodiment performs the test under the lighting conditions provided by the light source device 40.

[0072] Before each test, the lighting parameters of the light source device 40 can be adjusted to provide different light sources, for example, a D65 light source (a light source that simulates daylight and has a color temperature of 6500K) with a light intensity of 1000 lux (lux is a unit of illumination used to evaluate light intensity), a TL84 light source (a narrow-band fluorescent light source and has a color temperature of 4000K) with a light intensity of 100 lux, an A light source (a light source that simulates daylight and has a color temperature of 2850K) with a light intensity of 20 lux, etc.

[0073] After the illumination parameters of the light source device 40 are adjusted, the mobile phone is adjusted to the video recording mode, and the angle of the mobile phone is adjusted so that the dead leaves card 01, the dead leaves card 02 and the portrait mold are all displayed in the viewfinder of the mobile phone. Then, the dead leaves card 01 and the dead leaves card 02 are photographed under the light provided by the light source device 40.

[0074] In some embodiments, the portrait mold may be fixed on a rotatable platform so that the portrait mold can be driven to rotate by the rotatable platform.

[0075] During the mobile phone shooting process, the portrait mold can be rotated to a set angle at a set time interval, so that the mobile phone can shoot the portrait mold at different angles, simulating scenes of human faces under front light, side light, back light and other lighting angles.

[0076] For example, refer to Figure 4 Before shooting with a mobile phone, the initial state of the portrait mold can be adjusted to face the camera of the mobile phone. At this time, the angle of the portrait mold is 0°. Then, during the shooting process, the portrait mold can be rotated 30° counterclockwise every 10 seconds, and the recording is stopped after the portrait mold rotates 360°. In this way, after the recording is completed, a video with a total length of 120 seconds can be obtained.

[0077] In other embodiments, the portrait mold may also be fixed. During the shooting process, the mobile phone is controlled to rotate around the portrait mold to shoot the portrait mold at different angles to obtain the recorded video.

[0078] S102, the mobile phone sends the video to the computer.

[0079] After the mobile phone has finished shooting the dead leaves picture card 01, the dead leaves picture card 02 and the portrait mold, the shot videos can be sent to the computer.

[0080] S103, the computer performs image frame extraction processing on the video to obtain multiple frames of images.

[0081] After the computer receives the video sent by the mobile phone, it can call the frame capture software (for example, potplayer, ffmpeg, etc.) to capture (extract) the image in the video according to the set frame interval, for example, capture one frame every 7 frames. After the computer calls the frame capture software to process the video, multiple frames of images can be obtained.

[0082] S104, the computer obtains the image clarity of each dead leaf image card in each frame of image.

[0083] After the computer completes the process of extracting the image frames of the video, the mark points of the dead leaves card in each frame can be identified, and then the positions of the dead leaves card 01 and the dead leaves card 02 are determined according to the mark points. After the positions of the dead leaves card 01 and the dead leaves card 02 are determined, the images of the dead leaves card 01 and the dead leaves card 02 are framed. Then, the image clarity (texture details) of the dead leaves card 01 and the dead leaves card 02 can be obtained by using methods such as gradient-based methods, frequency analysis-based methods, local contrast-based methods, and multi-scale analysis-based methods.

[0084] S105, the computer tests the focus stability of the mobile phone based on the image clarity of the dead leaves picture card to obtain a test result.

[0085] It can be understood that when the focus of the mobile phone changes during shooting, the image clarity of the dead leaves picture card 01 and the dead leaves picture card 02 will also change. Therefore, the focus stability of the mobile phone can be analyzed through the fluctuation of the image clarity of the dead leaves picture card 01 and the dead leaves picture card 02.

[0086] After the computer obtains the image clarity of the dead leaves chart, a coordinate system can be established with the frame sequence of the image as the horizontal coordinate and the image clarity of the dead leaves chart as the vertical coordinate. Then, the coordinate points corresponding to the dead leaves chart 01 and the dead leaves chart 02 are mapped to the coordinate system respectively, and each coordinate point is connected to obtain the corresponding clarity curve. Then, the focus stability of the mobile phone can be analyzed according to the fluctuation of the clarity curve.

[0087] Since the dead leaves chart 01 and the portrait mold are on the same plane, the fluctuation of the image clarity can reflect the movement of the focus in various directions on the plane (for example, up, down, left, right, etc.).

[0088] For example, Figure 5 The image clarity curve 1 of the dead leaves chart 01 is shown.

[0089] according to Figure 5It can be seen that the image clarity of the dead leaves picture card 01 fluctuates slightly between the 170th frame and the 620th frame, which can reflect that in the first time period corresponding to the 170th frame to the 620th frame, the focus stability of the mobile phone on the plane is good.

[0090] In order to more accurately reflect the focus stability of the mobile phone on a flat surface, some quantitative processing can be performed to reflect the focus stability of the mobile phone on a flat surface with specific quantitative data.

[0091] For example, the standard deviation of the clarity of the dead leaves chart 01 in the first time period (the specific result is std1=0.0059) can be calculated as the first test indicator for the focus stability of the mobile phone.

[0092] It can be understood that the smaller the value of the first test indicator (i.e., the standard deviation of clarity), the smaller the fluctuation of the image clarity of the dead leaves picture card 01 in the first time, and the better the focus stability of the mobile phone on the plane.

[0093] For another example, the average clarity in the first time period and the difference between the maximum clarity and the minimum clarity can be calculated, and then the ratio between the difference and the average clarity can be calculated (the specific result is k=0.028) as the second test indicator for the focus stability of the mobile phone.

[0094] It can be understood that the smaller the data of the second test indicator is, the smaller the fluctuation of the image clarity of the dead leaves picture card 01 in the first time period is, and the better the focus stability of the mobile phone on the plane is. Figure 5 In the example shown, the values ​​of the first test standard and the second test indicator are both small, and the focus stability of the mobile phone on the plane in the first time period is good.

[0095] Figure 6 The image clarity curve 2 of the dead leaves chart 01 is shown.

[0096] according to Figure 6 It can be seen that the image clarity of the dead leaves picture card 01 fluctuates greatly between the 2800th frame and the 3400th frame, which can reflect that the focus stability of the mobile phone is poor in the second time period corresponding to the 2800th frame to the 3400th frame, and the focus bellows phenomenon occurs.

[0097] according to Figure 6 It can be calculated that the value of the first test index is 0.16, and the value of the second test index is 0.78. Since the values ​​of the first test index and the second test index are large, the focus stability of the mobile phone on the plane is poor in the second time period.

[0098] The dead leaves picture card 02 and the portrait mold are respectively in two planes, and the change in the clarity of the image can reflect the movement of the focus point of the mobile phone in space, for example, moving forward and backward.

[0099] Figure 7 The image clarity curve of the dead leaves chart 02 is shown.

[0100] according to Figure 7 It can be seen that the image clarity of the dead leaves picture card 01 fluctuates slightly between the 170th frame and the 620th frame, which can reflect that in the first time period corresponding to the 170th frame to the 620th frame, the mobile phone has good spatial focus stability.

[0101] according to Figure 7 It can be calculated that the value of the first test index is 0.0050, and the value of the second test index is 0.038. Since the values ​​of the first test index and the second test index are small, the spatial focus stability of the mobile phone is good in the first time period.

[0102] In summary, in the focus stability test method provided in this embodiment, the mobile phone can automatically identify and focus on the portrait mold during the process of shooting the dead leaves picture card 01, the dead leaves picture card 02 and the portrait mold. When the focus point of the mobile phone changes, the image clarity of the dead leaves picture card 01 and the dead leaves picture card 02 in the shooting picture will also change accordingly. In this way, the stability of the mobile phone's automatic focus can be evaluated based on the fluctuation of the image clarity of the dead leaves picture card 01 and the dead leaves picture card 02, thereby accurately testing the stability of the mobile phone's automatic focus.

[0103] The above embodiments shoot dynamic videos and simulate the auto-focusing situation in dynamic scenes. In other embodiments, static portrait molds can also be shot to simulate the stability of the mobile phone's continuous focusing in static scenes. That is, during the mobile phone shooting process, the portrait mold and the mobile phone are kept fixed to test the stability of the mobile phone's auto-focusing in static scenes.

[0104] For example, refer to Figure 8 The mobile phone 10 can shoot the face of the portrait mold in a static scene, and then send the shot video to the computer, which performs image frame extraction processing on the video to obtain multiple frames of images, and then obtains the image clarity of the dead leaf picture card in each frame of the image, and tests the focus stability of the mobile phone according to the image clarity to obtain corresponding test results.

[0105] In addition, the position change of the portrait mold will also affect the stability of the mobile phone's automatic focus. In other embodiments, during the mobile phone shooting process, the position of the portrait mold can also be moved to test the influence of the position change of the portrait mold on the stability of the mobile phone's automatic focus.

[0106] In addition to using the video recording mode to test the stability of the mobile phone's auto focus, the continuous shooting mode can also be used for testing. In other embodiments, the mobile phone 10 can be controlled to continuously shoot multiple photos of the rotating portrait mold in the continuous shooting mode, and then the stability of the mobile phone's auto focus can be tested based on the changes in the image clarity of the dead leaf picture card in the multiple photos.

[0107] The following is an introduction to the process of testing the stability of a mobile phone's autofocus using the continuous photo mode.

[0108] Figure 8 Figure 2 is an example of the process of the focus stability testing method provided in this application.

[0109] refer to Figure 8 , the method comprises the following steps:

[0110] S201, the mobile phone adopts a continuous shooting mode to shoot the shooting area where the dead leaves picture card 01, the dead leaves picture card 02 and the portrait mold are located to obtain multiple photos.

[0111] Before each test, the illumination parameters of the light source device 40 are adjusted to perform the test under the illumination conditions corresponding to each parameter. For example, the parameters of the light source device 40 can be set to D65 1000lux, TL84 light source (4000K) 100lux, A light source (2850K) 20lux, etc.

[0112] After the illumination parameters of the light source device 40 are adjusted, the mobile phone can be adjusted to a continuous shooting mode, and the shooting frequency of the mobile phone can be set in this mode, for example, 10 photos per second.

[0113] During the mobile phone shooting process, the portrait mold can be rotated, for example, the portrait mold can be rotated 30° counterclockwise every 10 seconds to take photos at different angles. After the portrait mold is rotated 360° from the initial state (its face facing the mobile phone), the shooting is stopped.

[0114] S201, the mobile phone sends the taken photos to the computer.

[0115] After the mobile phone is finished shooting, the multiple photos taken are sent to the computer.

[0116] S203, the computer obtains the image clarity of each dead leaf picture card in each photo.

[0117] After receiving the photos sent by the mobile phone, the computer identifies the mark points of the dead leaf card in each photo, and the farmer determines the positions of the dead leaf card 01 and the dead leaf card 02 according to the mark points. After determining the positions of the dead leaf card 01 and the dead leaf card 02, the images of the dead leaf card 01 and the dead leaf card 02 are framed. Then, the image clarity of the dead leaf card 01 and the dead leaf card 02 can be obtained by using methods such as gradient-based methods, frequency analysis-based methods, local contrast-based methods, and multi-scale analysis-based methods.

[0118] S204, the computer tests the focus stability of the mobile phone based on the image clarity of the dead leaves picture card to obtain a test result.

[0119] Step S204 is substantially the same as step S105 and will not be described again here.

[0120] This embodiment can accurately test the stability of the auto focus of the mobile phone in the continuous shooting mode, so as to improve the focus stability in the continuous shooting mode, thereby providing the stability of the auto focus of the mobile phone in the continuous shooting mode.

[0121] This application is applicable to the test of autofocus, which is an important function of imaging of shooting equipment, and is used to automatically adjust the position of the focus during the shooting process to ensure that the target in the shooting picture is clear enough. Autofocus includes active focus and passive focus. Active focus uses a distance detection method to measure the distance between the target and the lens, and then adjusts the focus position according to the distance. Passive focus analyzes the light penetrating the lens and the image information captured by the shooting equipment, and then adjusts the focus position according to the analysis results.

[0122] Passive focus includes phase focus and contrast detection focus. The principle of phase detection focus is to use paired pixels on the sensor, semi-mask them, and form phase detection points. Then the correlation between the phase detection points on both sides is used to reflect the current defocus degree of the shooting device, so that according to the current defocus degree of the shooting device, the motor of the shooting device is driven to move to the corresponding accurate position for focusing. The principle of contrast detection focus is to perform contrast detection on the picture captured by the shooting device, and then use the point with the largest contrast as the focus point. Among them, the advantage of phase focus is faster focusing speed, and the advantage of contrast detection focus is more accurate focusing.

[0123] The imaging system of a shooting device usually combines the advantages of phase detection focus and contrast detection focus to perform hybrid focus. However, due to factors such as the relative aperture and depth of field of the lens of the focus imaging system, the speed and damping characteristics of the focus motor, the texture characteristics of the target object, and the focus algorithm, there are still many scenarios in which the focus stability of the shooting device is poor, resulting in the shooting device having difficulty in obtaining high-quality images with relatively stable clarity when shooting. The method of the embodiment of the present application can be used to test the stability of the automatic focus of the shooting device and obtain accurate test results. Afterwards, the automatic focus function of the shooting device can be improved based on the test results. For example, the automatic focus algorithm of the shooting device can be adjusted based on the test results to improve the stability of the automatic focus of the shooting device.

[0124] Fig.10 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0125] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0126] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0127] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0128] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0129] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and a subscriber identity module (SIM) interface.

[0130] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0131] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple groups of I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 to the wireless communication module 160. For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to achieve Bluetooth function. The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via a DSI interface to implement the display function of the electronic device 100.

[0132] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0133] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0134] The USB connector 130 is a connector that complies with USB standard specifications and can be used to connect the electronic device 100 and peripheral devices. Specifically, it can be a standard USB connector (such as a Type C connector), a Mini USB connector, a Micro USB connector, etc.

[0135] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB connector 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0136] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0137] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0138] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0139] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0140] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0141] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0142] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0143] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0144] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0145] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0146] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0147] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0148] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0149] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in multiple coding formats.

[0150] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0151] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0152] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0153] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0154] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0155] The speaker 170A, also called a "speaker", is used to convert an audio signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A. The receiver 170B, also called a "earpiece", is used to convert an audio signal into a sound signal. When the electronic device 100 receives a call or a voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0156] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting his mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. The headphone jack 170D is used to connect wired headphones.

[0157] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. TMTaking the system as an example, the software structure of the electronic device 100 is exemplified.

[0158] Fig.11 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

[0159] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0160] The application layer can include a series of application packages.

[0161] like Fig.11 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0162] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0163] like Fig.11 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0164] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0165] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0166] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0167] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0168] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0169] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0170] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0171] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0172] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0173] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0174] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0175] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0176] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0177] A 2D graphics engine is a drawing engine for 2D drawings.

[0178] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0179] Reference now Fig.12 , shown is a block diagram of an electronic device 400 according to an embodiment of the present application. The electronic device 400 may include one or more processors 401 coupled to a controller hub 403. For at least one embodiment, the controller hub 403 communicates with the processor 401 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or a similar connection 406. The processor 401 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 403 includes, but is not limited to, a graphics & memory controller hub (Graphics & Memory Controller Hub, GMCH) (not shown) and an input / output hub (Input Output Hub, IOH) (which can be on a separate chip) (not shown), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.

[0180] The electronic device 400 may also include a coprocessor 402 and a memory 404 coupled to a controller hub 403. Alternatively, one or both of the memory and the GMCH may be integrated within the processor (as described in this application), with the memory 404 and the coprocessor 402 directly coupled to the processor 401 and the controller hub 403, with the controller hub 403 and the IOH being in a single chip.

[0181] The memory 404 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two. The memory 404 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, specifically, temporary and permanent copies of the instructions.

[0182] like Fig.12 The electronic device 400 shown can be implemented as a photographing device and a testing device. When the electronic device 400 is implemented as the photographing device 20, the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the photographing device to implement the following Figure 3 , Fig. 9 Instructions for the steps performed by the camera 20 in the method shown.

[0183] When the electronic device 400 is implemented as a test device, the instructions stored in the memory 404 may include: when executed by at least one of the processors, causing the test device to implement the following Figure 3 , Fig. 9 Instructions for the steps of the method shown to be performed by the test equipment.

[0184] In one embodiment, the coprocessor 402 is a special-purpose processor, such as, for example, a high-throughput Many Integrated Core (MIC) processor, a network or communication processor, a compression engine, a graphics processor, a general-purpose computing on graphics processing units (GPGPU), or an embedded processor. The optional nature of the coprocessor 402 is indicated by a dashed line in Fig.12 middle.

[0185] In one embodiment, the electronic device 400 may further include a network interface (Network Interface Controller, NIC) 406. The network interface 406 may include a transceiver for providing a radio interface for the electronic device 400, thereby communicating with any other suitable device (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 406 may be integrated with other components of the electronic device 400. The network interface 406 may implement the functions of the communication unit in the above-mentioned embodiments.

[0186] The electronic device 400 may further include an input / output (I / O) device 405. The I / O 405 may include: a user interface designed to enable a user to interact with the electronic device 400; a peripheral component interface designed to enable peripheral components to interact with the electronic device 400; and / or a sensor designed to determine environmental conditions and / or location information related to the electronic device 400.

[0187] It is worth noting that Fig.12 This is for illustrative purposes only. Fig.12 It is shown that the electronic device 400 includes multiple devices such as a processor 401, a controller hub 403, a memory 404, etc.; however, in actual applications, the device using the methods of the present application may include only a portion of the devices in the electronic device 400, for example, it may include only the processor 401 and the network interface 406. Fig.12 The properties of optional devices are shown with dashed lines.

[0188] Reference now Fig.13, which is a block diagram of a system on chip (SoC) 500 according to an embodiment of the present application. Fig.13 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Fig.13 In the embodiment, SoC 500 includes: an interconnect unit 550, which is coupled to a processor 510; a system agent unit 580; a bus controller unit 590; an integrated memory controller unit 540; a group or one or more coprocessors 520, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 530; and a direct memory access (DMA) unit 560. In one embodiment, the coprocessor 520 includes a special-purpose processor, such as, for example, a network or communication processor, a compression engine, a general-purpose computing on graphics processing units (GPGPU), a high-throughput MIC processor, or an embedded processor.

[0189] Static random access memory (SRAM) unit 530 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. The computer-readable storage medium stores instructions, and more specifically, stores temporary and permanent copies of the instructions. The instructions may include: when executed by at least one of the processors, causing the SoC to implement the following: Figure 3 or Fig. 9 When the instructions are executed on a computer, the computer executes the application display method disclosed in the embodiment of the present application.

[0190] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in this embodiment, the value of each data range includes the end value. For example, A=10~50 means that A can be 10 or 50.

[0191] Each method implementation mode of the present application can be implemented in the form of software, magnetic components, firmware, etc.

[0192] Program code can be applied to input instructions to perform each function described herein and generate output information. Output information can be applied to one or more output devices in a known manner. For purposes of this application, processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0193] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described herein is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0194] One or more aspects of at least one embodiment may be implemented by representative instructions stored on a computer-readable storage medium, which represent various logics in a processor, and when the instructions are read by a machine, the machine makes logic for performing the techniques described herein. These representations, known as "Intellectual Property (IP) cores," may be stored on tangible computer-readable storage media and provided to multiple customers or production facilities to be loaded into a manufacturing machine that actually manufactures the logic or processor.

[0195] In some cases, the instruction converter can be used to convert instructions from a source instruction set to a target instruction set. For example, the instruction converter can transform (e.g., using static binary transformation, dynamic binary transformation including dynamic compilation), deform, simulate, or otherwise convert instructions into one or more other instructions to be processed by the core. The instruction converter can be implemented in software, hardware, firmware, or a combination thereof. The instruction converter can be on the processor, outside the processor, or partly on the processor and partly outside the processor.

Claims

1. A focus stability testing method, applied to a focus stability testing system, characterized in that: The test system includes a photographing device, and the method includes: Acquire shooting data of a shooting device in a first shooting mode, with a focus target and a first reference object as shooting objects, shot within a first preset time period, wherein the shooting data includes images of the focus target at a plurality of different lighting angles or a plurality of different positions under a set light intensity, wherein the lighting angles include front light, side light, and back light; Acquire first image clarity change information of the first reference object based on the shooting data, wherein the first image clarity change information includes an image clarity curve of the first reference object, and fluctuations of the image clarity curve reflect movement of the focus of the shooting device in various directions on a plane; Acquire, according to the first image definition change information, first focus stability information of the shooting device for the focus target in the first shooting mode; The first reference object and the focus target object are at the same distance from the shooting device along the same direction.

2. The method according to claim 1, characterized in that The first shooting mode includes a video shooting mode or a continuous shooting mode, wherein the shooting data corresponding to the video shooting mode is a video, and the shooting data corresponding to the continuous shooting mode is a picture.

3. The method according to claim 2, characterized in that The acquiring the first image definition change information of the first reference object based on the shooting data includes: Based on the shooting data being the video, obtaining a first image clarity parameter of the first reference object in an image at a set frame interval in the video; Based on the first image definition parameter, first image definition change information of the first reference object within a second preset time length is obtained, where the second preset time length is less than or equal to the first preset time length.

4. The method according to claim 3, characterized in that The acquiring, based on the first image definition parameter, first image definition change information of the first reference object within a second preset time period includes: Based on the first image definition parameter, a first standard deviation of the first image definition parameter of the first reference object within the second preset time length is calculated as the first image definition change information.

5. The method according to claim 3, characterized in that: The acquiring, based on the first image definition parameter, first image definition change information of the first reference object within a second preset time period includes: Calculating a first average value of the first image clarity parameter of the first reference object within the second preset time period based on the first image clarity parameter; comparing the first image definition parameters of the first reference object within the second preset time period to determine a maximum first image definition parameter and a minimum first image definition parameter; The first image definition change information is acquired based on the maximum first image definition parameter, the minimum first image definition parameter and the first average value.

6. The method according to claim 2, characterized in that The acquiring the first image definition change information of the first reference object based on the shooting data includes: Based on the photographing data for the pictures, obtaining a second image clarity parameter of the first reference object in each picture; Based on the second image definition parameter, first image definition change information of the first reference object in a picture taken within a third preset time length is obtained, and the third preset time length is less than or equal to the first preset time length.

7. The method according to claim 6, characterized in that The acquiring, based on the second image definition parameter, first image definition change information of the first reference object in the picture taken within a third preset time period includes: Based on the second image definition parameter, a second standard deviation of the second image definition parameter of the first reference object within the third preset time length is calculated as the first image definition change information.

8. The method according to claim 6, characterized in that The acquiring, based on the second image definition parameter, first image definition change information of the first reference object in the picture taken within a third preset time period includes: Calculating a second average value of the second image clarity parameter of the first reference object within the third preset time period based on the second image clarity parameter; comparing the second image clarity parameters of the first reference object within the third preset time period to determine a maximum second image clarity parameter and a minimum second image clarity parameter; The first image definition change information is acquired based on the maximum second image definition parameter, the minimum second image definition parameter and the second average value.

9. The method according to claim 1, characterized in that: The method of taking the focus target object and the first reference object as the photographing objects includes: The focus target object and the first reference object at a set angle and / or position are used as the photographing objects.

10. The method according to claim 1, characterized in that The photographed object further includes a second reference object, and the second reference object and the first reference object are at different distances from the photographing device along the same direction, and the method further includes: Acquire second image clarity change information of the second reference object based on the shooting data; According to the second image clarity change information, second focus stability information of the shooting device for the focus target in the first shooting mode is obtained.

11. A focus stability testing system, characterized in that: It includes a shooting device, a focus target, a first reference object and a testing device; The photographing device is used to, in a first photographing mode, take a focus target and a first reference object as photographing objects, photograph data within a first preset time period, and send the photographing data to the test device, wherein the photographing data includes images of the focus target at multiple different illumination angles or multiple different positions under a set illumination intensity, and the illumination angles include front light, side light, and back light; The testing device is used to obtain first image clarity change information of the first reference object based on the shooting data, and obtain first focus stability information of the shooting device for the focus target object in the first shooting mode according to the first image clarity change information, wherein the first image clarity change information includes an image clarity curve of the first reference object, and fluctuations of the image clarity curve reflect movement of the focus of the shooting device in various directions on a plane; The first reference object and the focus target object are at the same distance from the shooting device along the same direction.

12. An electronic device, characterized in that: include: A memory for storing instructions; A processor, when the processor executes the instructions in the memory, can enable the electronic device to execute the method described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer can execute any one of the methods of claims 1 to 10.

Citation Information

Patent Citations

  • Auto-focusing test device

    CN106406020A

  • Method and system for testing camera lens out of focus

    CN107911694A