Camera focus testing device and method
By designing a camera focus testing device including clamping, occlusion and reference mechanism, the problem of difficulty in comprehensively detecting the focus performance of electronic devices in the prior art is solved, and automatic, comprehensive and efficient testing of all cameras is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411136955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2044-08-19
AI Technical Summary
The prior art is difficult to fully detect the focus performance of electronic devices with cameras, resulting in too slow focus speed and affecting the user experience.
A camera focus testing device is provided, including a clamping mechanism, a shading mechanism and a reference mechanism, which can clamp and move electronic devices, realize automatic and touch-sensitive focus testing of the camera, covering all camera tests.
It realizes comprehensive, automatic and efficient testing of the focus performance of all cameras in electronic devices, meeting the testing needs of autofocus and touch focus, and improving user experience.
Smart Images

Figure CN118748713B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera testing technology, and in particular to a camera focus testing device and method. Background Art
[0002] With the development of electronic technology, electronic devices such as mobile phones and tablet computers have become one of the common items in users' lives, studies and work. At present, electronic devices with cameras are becoming more and more common. Cameras enable electronic devices to take photos and videos, which greatly enriches and expands the use functions of electronic devices and adds a lot of fun to people's lives.
[0003] The speed of camera focusing is one of the issues that affect the experience of taking photos and videos. If the focusing speed is too slow, it may cause problems such as unsmooth shooting and easy missing of wonderful moments, which will cause a bad user experience. Therefore, there is an urgent need for a device that can comprehensively test the focusing performance of electronic devices with cameras. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a camera focus testing device and method, which can comprehensively test the focus performance of an electronic device with a camera.
[0005] In a first aspect, an embodiment of the present application provides a camera focus test device, which includes: a clamping mechanism, a shielding mechanism and a reference mechanism, wherein the shielding mechanism and the reference mechanism are located between the clamping mechanism and a distant object, and the distance between the shielding mechanism and the clamping mechanism is smaller than that between the reference mechanism and the clamping mechanism; the clamping mechanism is used to clamp an electronic device and drive the electronic device to move and / or rotate, wherein the electronic device includes a plurality of cameras to be tested; the shielding mechanism and the reference mechanism are movable.
[0006] The camera focus test device provided by the present application can not only test the automatic focus of the camera, but also test the touch focus of the camera, meeting the test scene requirements of automatic focus and touch focus. The shielding mechanism and the distant object can realize the automatic switching of the camera from the close-range focus state to the distant distant object, and / or realize the automatic switching of the camera from the long-range focus state to the close object (i.e., the shielding mechanism). The shielding mechanism, the reference mechanism and the distant object can realize the close-range focus of the camera, and the switching of the focus from the close-range focus state to the medium-range object (i.e., the reference mechanism), and the switching of the camera from the medium-range focus state to the long-range object. That is, the camera can switch the focus of objects at three distances (close, medium and long) to each other. In addition, the clamping mechanism for clamping the electronic device can move and / or rotate, so that not only the rear camera in the electronic device can be tested for focus, but also the front camera in the electronic device can be tested for focus, covering the focus test of all cameras in the electronic device.
[0007] According to the first aspect, the camera focus test device also includes a long-distance object to be photographed. This arrangement is convenient for use and does not require the long-distance object to be photographed.
[0008] According to the first aspect, or any implementation of the first aspect above, the remote object to be photographed includes a picture card, and at least one marking point is provided on the picture card.
[0009] The position of each camera can be adjusted through the marking points to ensure that each camera is always in the center of the shooting, and the focusing effect will not be affected by the difference in the position of the camera in the electronic device.
[0010] According to the first aspect, or any implementation of the first aspect, the shape of the chart is a rectangle, the number of marking points is four, and the four marking points are respectively arranged at four corners of the chart.
[0011] This setting can better ensure that each camera is always in the center of the shooting.
[0012] According to the first aspect, or any implementation of the first aspect above, the camera focus testing device further includes a bracket, and the clamping mechanism, the shielding mechanism and the reference mechanism are all arranged on the bracket.
[0013] The setting of the bracket facilitates the setting of various mechanisms. The bracket is a movable bracket to facilitate the movement of the camera focus test device, thereby facilitating the testing of various electronic devices.
[0014] According to the first aspect, or any implementation of the first aspect above, the clamping mechanism includes a first moving member, a second moving member, a third moving member, a first rotating member and a clamping base; the clamping base is used to clamp the electronic device; the first moving member is used to drive the clamping base to move along the first direction; the second moving member is used to drive the clamping base to move along the second direction; the third moving member is used to drive the clamping base to move along the third direction; the first rotating member is used to drive the clamping base to rotate with the third direction as the rotation axis; the first direction, the second direction and the third direction intersect with each other.
[0015] The first moving member, the second moving member and the third moving member drive the cameras in the electronic device to move in the first direction, the second direction and the third direction respectively, ensuring that each camera is always in the exact center of the shooting, and the focusing effect will not be affected by the difference in the position of the camera in the electronic device, thereby ensuring the comprehensiveness, accuracy and efficiency of the test. In addition, the setting of the first rotating member can also drive the camera in the electronic device to rotate, so that the camera focus test device can not only perform a focus test on the rear camera, but also on the front camera.
[0016] Exemplarily, the first direction, the second direction and the third direction are perpendicular to each other. The first direction may be an X-axis direction, the second direction may be a Y-axis direction, and the third direction may be a Z-axis direction.
[0017] According to the first aspect, or any implementation of the first aspect above, the shielding mechanism includes a fourth movable member, a fifth movable member and a shielding member; the fourth movable member is used to drive the shielding member to move along the first direction; the fifth movable member is used to drive the shielding member to move along the second direction; the first direction and the second direction intersect.
[0018] The fourth moving member is provided so that the shielding member can be quickly moved into and out of the shooting range of the camera, thereby realizing the scene switching of the automatic focus. The fifth moving member drives the shielding member to move along the second direction, so that the position of the shielding member can be adjusted for different cameras to be tested, so as to meet the testing requirements of different cameras, and thus make the application range of the camera focus test device wider.
[0019] Exemplarily, the first direction is perpendicular to the second direction. The first direction may be an X-axis direction, and the second direction may be a Y-axis direction.
[0020] According to the first aspect, or any implementation of the first aspect above, the shielding mechanism also includes a second rotating member, the shielding member includes a first baffle and a second baffle, the area of the first baffle is smaller than the area of the second baffle; the second rotating member is used to drive the first baffle and / or the second baffle to rotate with the second direction as the rotation axis.
[0021] When conducting a close-range focus test, the distance between each camera to be tested and the shielding member is different. The setting of the first baffle and the second baffle can be adaptively selected according to the distance between the shielding member and the camera to be tested, thereby avoiding the problem of interference between the shielding member and other mechanisms of the camera focus test device when the distance between the electronic device and the shielding member is small, thereby ensuring the safety of the test; and it can also avoid that the shielding member that is far away from the camera to be tested cannot completely block the camera to be tested.
[0022] According to the first aspect, or any implementation of the first aspect above, the reference mechanism includes a sixth moving member, a seventh moving member and a reference object; the sixth moving member is used to drive the reference object to move along a first direction; the seventh moving member is used to drive the reference object to move along a second direction; the first direction and the second direction intersect.
[0023] The sixth moving member can drive the reference object to move along the first axis direction, and when mid-range focusing is required, the reference object can be driven into the shooting range of the camera to be tested, and when mid-range focusing is not required, the reference object can be driven out of the shooting range of the camera to be tested. The seventh moving member can drive the reference object to move along the second direction to adjust the position of the mid-range focusing.
[0024] Exemplarily, the first direction is perpendicular to the second direction. The first direction may be an X-axis direction, and the second direction may be a Y-axis direction.
[0025] According to the first aspect, or any implementation of the first aspect above, the reference mechanism further includes an eighth moving member, and the eighth moving member is used to drive the reference object to move along a third direction; the first direction, the second direction and the third direction intersect each other.
[0026] Exemplarily, the first direction, the second direction and the third direction are perpendicular to each other. The first direction may be an X-axis direction, the second direction may be a Y-axis direction, and the third direction may be a Z-axis direction.
[0027] According to the first aspect, or any implementation of the first aspect above, when different cameras to be tested are tested, the distances between the shielding mechanism and the clamping mechanism are different, thereby ensuring the accuracy of the focus test of each camera.
[0028] In a second aspect, an embodiment of the present application provides a camera focus test method, which is applied to a camera focus test device as described in the first aspect and any one of the first aspects; the camera focus test method includes: controlling the movement of a moving mechanism so that the moving mechanism moves into and / or out of a shooting range of a camera to be tested, wherein the moving mechanism includes a blocking mechanism, or the moving mechanism includes a blocking mechanism and a reference mechanism; determining a focus time based on an acquired preview image of the camera to be tested; wherein the focus time includes an automatic focus time and / or a touch focus time.
[0029] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.
[0030] When an automatic focus test is required, the shielding mechanism can be controlled to move; when a touch focus test is required, the shielding mechanism and the reference mechanism can be controlled to move.
[0031] It is understandable that the time when the moving mechanism moves into and out of the shooting range of the camera to be tested is different. For example, the moving mechanism first moves into the shooting range of the camera to be tested and then moves out of the shooting range of the camera to be tested.
[0032] According to the second aspect, before controlling the shielding mechanism or the shielding mechanism and the reference mechanism to move, the method further includes: controlling the clamping mechanism to move according to the acquired preview image of the camera to be tested, so that the camera to be tested remains in the exact center of the shooting.
[0033] Adjust the position of each camera to ensure that each camera is always in the center of the shooting, and the focusing effect will not be affected by the difference in the position of the camera in the electronic device.
[0034] According to the second aspect, or any implementation method of the second aspect above, after determining the focus time according to the preview picture of the camera to be tested, it also includes: if the camera to be tested changes, continue to execute the steps of controlling the movement of the moving mechanism and determining the focus time according to the preview picture of the camera to be tested, until the multiple cameras to be tested of the electronic device are tested.
[0035] According to the second aspect, or any implementation method of the second aspect above, the moving mechanism includes the blocking mechanism; when the blocking mechanism moves into the shooting range of the camera to be tested, the focus time is the close-range automatic focus time; when the blocking mechanism moves out of the shooting range of the camera to be tested, the focus time is the long-range automatic focus time; after determining the focus time according to the obtained preview picture of the camera to be tested, it also includes: controlling the movement of the blocking mechanism and the reference mechanism so that the blocking mechanism and the reference mechanism move into the shooting range of the camera to be tested; determining the touch focus time according to the obtained preview picture of the camera to be tested.
[0036] According to the second aspect, or any implementation method of the second aspect above, the moving mechanism includes a blocking mechanism and a reference mechanism; when the blocking mechanism and the reference mechanism move into the shooting range of the camera to be tested, the focus time is the touch focus time; the focus time is determined according to the obtained preview picture of the camera to be tested, including: determining the touch focus time according to the obtained preview picture of the camera to be tested; after determining the focus time according to the obtained preview picture of the camera to be tested, it also includes: controlling the movement of the blocking mechanism to move the blocking mechanism into and / or out of the shooting range of the camera to be tested; determining the automatic focus time according to the obtained preview picture of the camera to be tested.
[0037] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. The computer-readable storage medium is arranged in a device for testing camera autofocus, the device comprising at least a clamping mechanism, a shielding mechanism and a reference mechanism. When the device is operated in the device, the device executes the camera focus test method of the second aspect and any one of the second aspects.
[0038] The third aspect and any implementation of the third aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A scene of focusing when a camera takes a photo is shown;
[0040] Figure 2 Another scenario of focusing when taking a photo with a camera is shown;
[0041] Figure 3 Another scenario of focusing when taking a photo with a camera is shown;
[0042] Figure 4 Another scenario of focusing when taking a photo with a camera is shown;
[0043] Figure 5 A schematic diagram of the structure of a camera focus test device provided in an embodiment of the present application;
[0044] Figure 6 A position relationship diagram of the second rotating member, the first baffle and the second baffle provided in an embodiment of the present application;
[0045] Figure 7 A schematic structural diagram of another camera focus test device provided in an embodiment of the present application;
[0046] Figure 8A top view of a sixth moving member and a seventh moving member provided in an embodiment of the present application;
[0047] Fig. 9 A side view of a sixth moving member and a seventh moving member provided in an embodiment of the present application;
[0048] Fig.10 A schematic structural diagram of another camera focus test device provided in an embodiment of the present application;
[0049] Fig.11 A schematic diagram of the structure of a remotely photographed object provided in an embodiment of the present application;
[0050] Fig.12 A flowchart of a camera focus test method provided in an embodiment of the present application;
[0051] Fig.13 A flowchart of another camera focus test method provided in an embodiment of the present application;
[0052] Fig.14 A flowchart of another camera focus testing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0055] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
[0056] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0057] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
[0058] For example, Figure 1 Figure 1 shows a scene of camera focusing when taking pictures. Figure 1 As shown, when a user uses a mobile phone camera to take a photo of an object, he clicks on the object in the picture to focus, but the picture keeps shrinking and focusing is not completed. Figure 2 FIG. 4 shows another scenario of focusing when the camera takes a photo. Figure 2 As shown in FIG. 1 , when a user uses a mobile phone camera to take a photo of an object, the camera takes a long time to load before a clear picture is produced. In other words, in these scenes, the focusing speed is too slow, which affects the user experience.
[0059] Focusing too slowly may result in problems such as choppy shooting and easy missing of wonderful moments, giving users a bad user experience.
[0060] The embodiments of the present application provide a camera focus test device and method, which can automatically test the focus performance of a camera in an electronic device without human intervention; and can also meet the test scenario requirements of auto focus (AF) and touch focus, and can cover the focus test of all cameras in the electronic device, so as to achieve the purpose of comprehensively testing the focus performance of the electronic device with a camera.
[0061] Among them, autofocus means that when using a camera to shoot an object, light is reflected from the surface of the object being photographed. After the light reflected from the surface of the object enters the camera lens, it can be received by the image sensor located behind the camera lens. After that, the object distance of the object being photographed can be obtained through processing and calculation by the processor. Then, the camera can automatically move the lens according to the object distance to complete the focus and shoot the object.
[0062] Touch focus means that when using a camera to shoot an object, light is reflected from the surface of the object. After the light reflected from the surface of the object enters the camera lens, the focus is completed by clicking on the object in the picture to move the lens and shoot the object.
[0063] For example, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or other electronic devices including a camera. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device. The following content is described using the mobile phone as an example of the electronic device.
[0064] In an embodiment of the present application, the electronic device may include a front camera and multiple rear cameras, the multiple rear cameras include at least a first camera (e.g., a main camera), a second camera (e.g., a wide-angle camera), and a third camera (e.g., a telephoto camera), and different cameras may capture preview images at different magnifications. For example, the first camera may capture preview images at a first magnification (e.g., 1x), such as Figure 2 As shown; the second camera can capture a preview image at a second magnification (eg, less than 1x, such as 0.5x), such as Figure 3 As shown; the third camera can capture a preview image at a third magnification (eg, greater than 1x, such as 2x), such as Figure 4 shown.
[0065] That is, when the user clicks the magnification icon on the shooting interface displayed on the mobile phone to switch the magnification, the mobile phone can switch from one camera to another, and the preview image captured by the switched camera is displayed on the display. For example, the magnification of the current camera is 1x, and the user clicks the 2x magnification icon to switch the magnification. At this time, the mobile phone can switch from the first camera to the third camera, and the preview image of the third camera at the third magnification is displayed on the display.
[0066] The following describes the camera focus test device provided in the embodiment of the present application in combination with the above-mentioned electronic device and the steps of how to implement the auto focus and touch focus test of all cameras (front camera and first camera, second camera and third camera) in the electronic device based on the device.
[0067] It should be noted that the camera focus testing device and method provided in the embodiments of the present application are not limited to testing all cameras in the electronic devices mentioned in the aforementioned content, but can also be used to test some cameras in the electronic devices mentioned in the aforementioned content, and can also be used to test cameras in other electronic devices (the number of cameras can be more than the number of cameras in the electronic devices mentioned in the aforementioned content, or can be less than the number of cameras in the electronic devices mentioned in the aforementioned content).
[0068] First, the specific structure of the camera focus testing device provided in the embodiment of the present application is introduced.
[0069] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a camera focus test device provided in an embodiment of the present application. Figure 5 As shown, the camera focus test device includes a clamping mechanism 10, a shielding mechanism 20 and a reference mechanism 30. In order to facilitate the description of the positional relationship of each mechanism, an XYZ coordinate system is established, in which the X axis, the Y axis and the Z axis are perpendicular to each other.
[0070] Along the Y-axis direction, the shielding mechanism 20 and the reference mechanism 30 are located between the long-distance object 40 and the clamping mechanism 10, and the distance from the reference mechanism 30 to the clamping mechanism 10 is greater than the distance from the shielding mechanism 20 to the clamping mechanism 10. In other words, along the Y-axis direction, the clamping mechanism 10, the shielding mechanism 20, the reference mechanism 30 and the long-distance object 40 are arranged in sequence, and the distance from the shielding mechanism 20 to the clamping mechanism 10, the distance from the reference mechanism 30 to the clamping mechanism 10, and the distance from the long-distance object 40 to the clamping mechanism 10 increase in sequence.
[0071] Exemplarily, the distance between the shielding mechanism 20 and the clamping mechanism 10 is a first preset distance H1, which may be greater than 0 cm and less than 2000 cm. The distance between the reference mechanism 30 and the clamping mechanism 10 is a second preset distance H2, which is greater than H1. For example, H2 may be greater than or equal to 2000 cm and less than or equal to 5000 cm, such as H2 is 2000 cm, 3000 cm, 4000 cm or 5000 cm, etc. Of course, H2 may also be less than 2000 cm, as long as H2 is greater than H1, such as H1 is 1000 cm and H2 is 1500 cm. The distance from the long-distance photographed object 40 to the clamping mechanism 10 is a third preset distance H3, H3 is greater than H2, for example, H3 can be greater than 5000 cm, and less than or equal to 10000 cm, such as H3 is 5500 cm, 6000 cm, 7000 cm, 8000 cm, 9000 cm or 10000 cm, etc. Of course, H3 can also be less than 5000 cm, or less than 2000 cm, as long as H3 is greater than H2. For example, H1 is 1000 cm, H2 is 1500 cm, and H3 is 2500 cm. For another example, H1 is 500 cm, H2 is 1000 cm, and H3 is 1500 cm.
[0072] The shielding mechanism 20 and the distant object 40 can realize the automatic switching of the camera from a close-range focusing state to a distant distant object 40 focusing, and / or realize the automatic switching of the camera from a long-range focusing state to a close-range object (i.e., the shielding mechanism 20) focusing.
[0073] The shielding mechanism 20, the reference mechanism 30 and the long-distance photographed object 40 can realize the camera's close-range focusing, and the switching of the camera's focus from the close-range focusing state to the medium-distance photographed object (i.e., the reference mechanism 30), and the switching of the camera's focus from the medium-distance focusing state to the long-distance photographed object 40. That is, the camera can realize the switching of focusing on objects at three distances (close-range, medium-range and long-range).
[0074] Specifically, the clamping mechanism 10 is used to clamp an electronic device (such as a mobile phone), and can drive the electronic device to move along the X-axis, the Y-axis and the Z-axis respectively, and can also drive the electronic device to rotate.
[0075] It can be understood that the distance to the clamping mechanism 10 mentioned in the foregoing content may be the distance to a camera in the electronic device (eg, a mobile phone) being tested.
[0076] In some possible implementations, the clamping mechanism 10 includes a first moving member 11, a second moving member 12, a third moving member 13, a first rotating member 14 and a clamping base 15. The clamping base 15 is used to clamp the electronic device. The first moving member 11 can drive the clamping base 15 to move along the X-axis direction, thereby driving the electronic device to move along the X-axis direction. The second moving member 12 can drive the clamping base 15 to move along the Y-axis direction, thereby driving the electronic device to move along the Y-axis direction. The third moving member 13 can drive the clamping base 15 to move along the Z-axis direction, thereby driving the electronic device to move along the Z-axis direction. The first rotating member 14 can drive the clamping base 15 to rotate with the Z-axis as the rotation axis, thereby driving the electronic device to rotate with the Z-axis as the rotation axis, so as to realize the conversion of the front camera and the rear camera in the electronic device.
[0077] With this arrangement, the camera focus test device provided in the embodiment of the present application can take into account each camera in the electronic device (such as the front camera, the first camera, the second camera and the third camera in the above-mentioned electronic device). Even if the positions of the cameras in the electronic device are different, the clamping mechanism 10 can be used to move the cameras in the X-axis direction, the Y-axis direction and the Z-axis direction to ensure that each camera is always in the center of the shooting, and the focusing effect will not be affected by the differences in the positions of the cameras in the electronic device, thereby ensuring the comprehensiveness, accuracy and efficiency of the test.
[0078] The above-mentioned moving parts (ie, the first moving part 11 , the second moving part 12 and / or the third moving part 13 ) may include structures that can realize movement, such as a drag chain, a gear or a guide rail.
[0079] The first rotating member 14 may include a rotatable turntable or other structure that can realize the rotation requirement of the electronic device.
[0080] When the camera on the mobile phone is performing a focus time test, the shielding mechanism 20 is used to shield the mobile phone camera to achieve close-range focusing of the mobile phone camera, and can be moved quickly to leave the shooting range of the mobile phone camera, so that the mobile phone camera can focus on a distant object 40.
[0081] In some possible implementations, the shielding mechanism 20 includes a fourth moving member 21, a fifth moving member 22 and a shielding member 23. The shielding member 23 is used to shield the mobile phone camera to achieve close-range focusing of the mobile phone camera. The fourth moving member 21 can drive the shielding member 23 to move along the X-axis direction, and the fifth moving member 22 can drive the shielding member 23 to move along the Y-axis direction.
[0082] The fourth moving member 21 and the fifth moving member 22 can be arranged so that the shielding member 23 is moved to different positions for testing according to the different mobile phone cameras, that is, when different cameras are tested, the shielding member 23 is moved by the fourth moving member 21 and the fifth moving member 22 to ensure that the shielding member 23 can completely shield different cameras (different cameras are located at different positions in the electronic device, so the shielding position also needs to be changed accordingly). In addition, by driving the shielding member 23 to move in the Y-axis direction through the fifth moving member 22, different close-range focusing test positions can be set for each camera (because the shortest working distance of each camera is different, its close-range focusing test position is different). For example, when the first camera is tested, the shielding member 23 is driven to move in the Y-axis direction by the fifth movable member 22, so that the distance between the shielding member 23 and the first camera in the Y-axis direction is a fourth preset distance H4, wherein H4 is greater than 500 cm and less than or equal to 1500 cm; when the second camera is tested, the shielding member 23 is driven to move in the Y-axis direction by the fifth movable member 22, so that the distance between the shielding member 23 and the second camera in the Y-axis direction is a fifth preset distance H5, wherein H5 is greater than 1 cm and less than 1000 cm; when When the third camera is tested, the shielding member 23 is driven to move in the Y-axis direction by the fifth movable member 22, so that the distance between the shielding member 23 and the third camera in the Y-axis direction is a sixth preset distance H6, wherein H6 is greater than 1500 centimeters and less than or equal to 2000 centimeters; when the front camera is tested, the shielding member 23 is driven to move in the Y-axis direction by the fifth movable member 22, so that the distance between the shielding member 23 and the front camera in the Y-axis direction is a seventh preset distance H7, wherein H7 is greater than 500 centimeters and less than or equal to 1000 centimeters.
[0083] By adding a shielding mechanism 20 between the long-distance photographed object 40 and the electronic device, when the mobile phone camera is in a close-range focusing state, the mobile phone camera can automatically switch to focus on the long-distance photographed object 40 in the distance, or when the mobile phone camera is in a long-range focusing state, the mobile phone camera can automatically switch to focus on the nearby photographed object (i.e., the shielding member 23), thereby realizing automatic switching of the focus scene. Moreover, the shielding mechanism 20 can shield different cameras to realize close-range focusing of each camera of the mobile phone, thereby ensuring the comprehensiveness of the test.
[0084] The above-mentioned moving parts (ie, the fourth moving part 21 and / or the fifth moving part 22 ) may include structures such as drag chains, gears or guide rails to achieve movement.
[0085] In some embodiments, in combination Figure 6 , Figure 6 The position relationship diagram of the second rotating member, the first baffle plate and the second baffle plate provided in the embodiment of the present application. The shielding mechanism 20 also includes a second rotating member 24. The shielding member 23 includes a first baffle plate 231 and a second baffle plate 232. The first baffle plate 231 and the second baffle plate 232 are both arranged on the second rotating member 24. The second rotating member 24 can drive the first baffle plate 231 to rotate 360 degrees with the first center point O1 as the rotation center, and the second rotating member 24 can drive the second baffle plate 232 to rotate 360 degrees with the second center point O2 as the rotation center.
[0086] The embodiment of the present application does not limit the rotation speed of the first baffle 231 and the second baffle 232, and the rotation speed of the first baffle 231 and the second baffle 232 can be adjusted automatically. In some possible implementations, the first baffle 231 and the second baffle 232 can rotate 90 degrees within a preset time, wherein the preset time is 0 to 300 milliseconds, for example, 50 milliseconds, 100 milliseconds, 150 milliseconds, 200 milliseconds, 250 milliseconds or 300 milliseconds.
[0087] In some embodiments, the angle between the first baffle 231 and the second baffle 232 is 180 degrees, and the area of the first baffle 231 is smaller than the area of the second baffle 232. The first baffle 231 is used to block the second camera of the mobile phone to achieve close-range focusing of the second camera, and the second baffle 232 is used to block the first camera, the third camera and the front camera of the mobile phone to achieve close-range focusing of the first camera, the third camera and the front camera.
[0088] The arrangement of the first baffle 231 and the second baffle 232 enables the camera focus test device provided in the embodiment of the present application to take into account each camera in the electronic device (such as the front camera, the first camera, the second camera and the third camera in the above-mentioned electronic device). In this way, when the focus test is performed on the second camera, even if the distance between the electronic device and the first baffle 231 is small (the shortest working distance of the second camera is small), the first baffle 231 will not interfere with other mechanisms of the camera focus test device, thereby avoiding the problem that the shielding member 23 interferes with other mechanisms of the camera focus test device when the distance between the electronic device and the shielding member 23 is small, thereby ensuring the safety of the test; and when the focus test is performed on the first camera, the third camera and the front camera, even if the distance between the electronic device and the second baffle 232 is large (the shortest working distance of the first camera, the third camera and the front camera is large), the second baffle 232 will completely block the first camera, the third camera and the front camera.
[0089] Along the Y-axis direction, the reference mechanism 30 is located between the shielding mechanism 20 and the object to be photographed, and is used to achieve mid-range focusing of the mobile phone camera, and can be moved quickly to leave the shooting range of the mobile phone camera.
[0090] In some possible implementations, the reference mechanism 30 includes a sixth moving member 31, a seventh moving member 32, and a reference object 33. The sixth moving member 31 can drive the reference object 33 to move along the X-axis direction, and when mid-range focusing is required, the reference object 33 can be driven into the shooting range of the mobile phone camera, and when mid-range focusing is not required, the reference object 33 can be driven out of the shooting range of the mobile phone camera. The seventh moving member 32 can drive the reference object 33 to move along the Y-axis direction to adjust the position of mid-range focusing.
[0091] The height of the reference mechanism 30 in the Z-axis direction is generally unchanged, and the reference mechanism 30 can be used as a reference object. In this way, even if the positions of the cameras in the electronic device are different or the positions of the cameras of the electronic devices are different, the positions of the cameras can be adjusted according to the height of the reference mechanism 30 through the clamping mechanism 10 to ensure that each camera is always in the center of the shooting (that is, the center of the lens of each camera coincides with the center of the reference object 33).
[0092] Of course, this does not constitute a limitation of the present application. The height of the reference mechanism 30 in the Z-axis direction may also be changed. For example, see Figure 7 , Figure 7 A schematic diagram of the structure of another camera focus test device provided in an embodiment of the present application is shown in FIG. Figure 7As shown, the reference mechanism 30 further includes an eighth moving member 34, which can drive the reference object 33 to move along the Z-axis direction to adjust the height of the reference object 33. Exemplarily, the eighth moving member 34 can include an adjustment hand wheel and the like.
[0093] The setting of the reference mechanism 30 can realize the focus switching of the camera to objects at three distances (close distance, medium distance and long distance), further ensuring the comprehensiveness of the test.
[0094] The above-mentioned moving parts (ie, the sixth moving part 31 and / or the seventh moving part 32 ) may include structures such as a drag chain, a gear or a guide rail to achieve movement.
[0095] When the sixth moving member 31 and the seventh moving member 32 are guide rails, see Figure 8 and Fig. 9 , Figure 8 A top view of a sixth moving member and a seventh moving member provided in an embodiment of the present application, Fig. 9 A side view of a sixth moving member and a seventh moving member provided in an embodiment of the present application. Figure 8 and Fig. 9 As shown, the sixth moving member 31 includes a first guide rail, and the seventh moving member 32 includes a second guide rail, the first guide rail includes a first slide groove 311 and a slider 312, the first slide groove 311 extends along the X-axis direction, and the reference object 33 can slide along the X-axis direction in the first slide groove 311 to achieve a sliding connection between the reference object 33 and the first guide rail. The second guide rail includes a second slide groove 321, and the second slide groove 321 extends along the Y-axis direction. The slider 312 can slide along the Y-axis direction in the second slide groove 321 to achieve a sliding connection between the first guide rail and the second guide rail.
[0096] In this way, the reference object 33 remains in the first slide groove 311, while the slider 312 slides in the second slide groove 321 along the Y-axis direction, so that the reference object 33 can be moved in the Y-axis direction; the slider 312 remains in the second slide groove 321, while the reference object 33 slides in the first slide groove 311 along the X-axis direction, so that the reference object 33 can be moved in the X-axis direction.
[0097] Specifically, when the camera of the electronic device needs to perform an automatic focus time test, the shielding mechanism 20 moves between the electronic device and the distant object 40, and when the shielding mechanism 20 moves into the shooting range of the camera of the electronic device, the close-range focusing of the camera of the electronic device is achieved through the shielding mechanism 20, and when the shielding mechanism 20 moves out of the shooting range of the camera of the electronic device, the camera of the electronic device can focus on the distant object 40; or, the long-range focusing of the camera of the electronic device is achieved through the distant object 40 in the distance, and when the shielding mechanism 20 moves between the electronic device and the photographed object, and the shielding mechanism 20 moves into the shooting range of the camera of the electronic device, the close-range focusing of the camera of the electronic device is achieved through the shielding mechanism 20.
[0098] When the camera of an electronic device needs to perform a touch focus time test, and there are a close-up object (i.e., the blocking mechanism 20), a medium-distance object (i.e., the reference mechanism 30), and a long-distance object (i.e., the long-distance object 40) in the mobile phone lens at the same time, close-up focus is achieved by clicking on the close-up object in the lens; when the camera is in a close-up object focus state, medium-distance focus is achieved by clicking on the medium-distance object in the lens; when the camera is in a medium-distance object focus state, long-distance focus is achieved by clicking on the long-distance object 40 in the lens.
[0099] In some embodiments, see Fig.10 , Fig.10 A schematic diagram of the structure of another camera focus test device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the camera focus test device includes the above-mentioned long-distance photographed object 40. In addition, the camera focus test device also includes a fixing mechanism 50, and the fixing mechanism 50 is used to fix the above-mentioned long-distance photographed object 40. The embodiment of the present application does not limit the specific structure of the fixing mechanism 50, as long as the structure can play a fixing role, it is within the protection scope of the present application.
[0100] In some embodiments, the long-distance photographed object 40 may include a picture card, wherein the picture card is used to provide a focus test image for the camera, and the picture card may be a standard measurement pattern made on cardboard (or other board materials).
[0101] See also Fig.11 , Fig.11 A schematic diagram of a structure of a remotely photographed object provided in an embodiment of the present application. Fig.11 The distant object in the image is the picture card. Fig.11 As shown, the chart is provided with at least one marking point 41. Exemplarily, the chart may be rectangular, and the number of the marking points 41 may be four, and the four marking points 41 are respectively provided at the four corners of the rectangular chart.
[0102] The position of each camera can be adjusted based on the position of the four marking points, so as to ensure that each camera is always in the center of the shooting, and the focusing effect will not be affected by the difference in the position of the camera in the electronic device. Exemplarily, when the camera to be tested is the first camera, the position of the electronic device is adjusted by the clamping mechanism 10 so that the four corners of the preview image captured by the first camera are substantially the same distance from the four marking points 41 at the four corners of the chart card. When the camera to be tested is switched from the first camera to the third camera, the position of the electronic device is adjusted by the clamping mechanism 10 so that the four corners of the preview image captured by the third camera are substantially the same distance from the four marking points 41 at the four corners of the chart card. In this way, it is ensured that each camera is always in the center of the shooting.
[0103] When actually setting up the chart, the height of the chart can be the same as the height of the laboratory to achieve good testing results.
[0104] In some embodiments, see Fig.10 The camera focus test device further includes a bracket 60, and the clamping mechanism 10, the shielding mechanism 20, and the reference mechanism 30 are arranged on the bracket 60. When the camera focus test device further includes a long-distance object 40 and a fixing mechanism 50, the long-distance object 40 and the fixing mechanism 50 can also be arranged on the bracket 60. The bracket 60 supports and fixes the above-mentioned mechanisms.
[0105] On this basis, the bracket 60 is a movable bracket to facilitate the movement of the camera focus test device, thereby facilitating the testing of various electronic devices.
[0106] The above describes the specific structure of the camera focus test device. The following describes the camera focus test method in conjunction with the camera focus test device. For details not described in detail in the camera focus test method, please refer to the contents of the camera focus test device described above.
[0107] See also Fig.12 , Fig.12 A flow chart of a camera focus test method provided in an embodiment of the present application. Fig.12 As shown, the camera focus test method can be implemented by the following steps:
[0108] S101: Obtain a preview image of the camera to be tested.
[0109] Optionally, in the embodiment of the present application, at least one high-speed camera (not shown in the figure) is also provided on the bracket 60 for capturing the preview image of the camera. The high-speed camera can capture the preview image at a preset speed, wherein the preset speed can be one hundred frames per second, two hundred frames per second, three hundred frames per second, four hundred frames per second, five hundred frames per second, six hundred frames per second, seven hundred frames per second, eight hundred frames per second or nine hundred frames per second, etc.
[0110] The high-speed camera sends the collected preview image to the back-end control module, and the control module analyzes the acquired image to determine whether the camera to be tested is in the exact center of the shooting.
[0111] The exact center of the shooting of the camera to be tested can be that the center of the preview screen of the camera coincides with the center of the reference object 33; or the center of the preview screen of the camera coincides with the intersection of two diagonals determined by four marking points 41 on the chart; or the four corners of the preview screen of the camera are at the same distance from the four marking points 41 at the four corners of the chart.
[0112] S102 , controlling the clamping mechanism 10 to move based on the preview image, so that the camera to be tested is kept in the exact center of the shooting.
[0113] Since the positions of the cameras on the electronic device are different, when different cameras are tested, the exact center of the shooting corresponding to the camera to be tested will also change accordingly.
[0114] If the camera to be tested is not in the exact center of the shooting, the offset of the camera to be tested is determined, and the clamping mechanism 10 is controlled to move based on the offset so that the camera to be tested remains in the exact center of the shooting.
[0115] For example, an xyz coordinate system can be established based on the intersection of two diagonals determined by four marking points 41 on the chart. If the center of the preview image of the camera to be tested is offset by 5 mm on the x-axis and 5 mm on the y-axis compared to the intersection of two diagonals determined by four marking points 41 on the chart, the control module can control the first moving member 11 of the clamping mechanism 10 to move 5 mm toward the -x axis and control the second moving member 12 of the clamping mechanism 10 to move 5 mm toward the -y axis, so that the center of the preview image of the camera coincides with the intersection of the two diagonals determined by the four marking points 41 on the chart.
[0116] For example, an xyz coordinate system can be established based on the center of the reference object 33. If the offset of the center of the preview image of the camera to be tested from the center of the reference object 33 is 5 mm on the x-axis and 5 mm on the y-axis, the control module can control the first moving member 11 of the clamping mechanism 10 to move 5 mm along the -x-axis and control the second moving member 12 of the clamping mechanism 10 to move 5 mm along the -y-axis, so that the center of the preview image of the camera coincides with the center of the reference object 33.
[0117] S103 , controlling the shielding mechanism 20 to move to a preset position based on the type of the camera to be tested, so that the camera to be tested can focus on the shielding mechanism 20 at a close distance.
[0118] The control module controls the fourth moving member 21 to move along the X-axis direction, and the fourth moving member 21 drives the shielding member 23 to enter the shooting range of the camera to be tested, and can completely shield the camera to be tested.
[0119] When the camera to be tested is the first camera, the control module controls the fifth movable member 22 to move in the Y-axis direction so that the distance between the shielding member 23 and the first camera in the Y-axis direction is a fourth preset distance H4, wherein H4 is greater than 500 cm and less than or equal to 1500 cm. At this time, the position of the shielding mechanism is the preset position; when the camera to be tested is the second camera, the control module controls the fifth movable member 22 to move in the Y-axis direction so that the distance between the shielding member 23 and the second camera in the Y-axis direction is a fifth preset distance H5, wherein H5 is greater than 1 cm and less than 1000 cm. At this time, the position of the shielding mechanism is the preset position; When the camera to be tested is the third camera, the control module controls the fifth movable member 22 to move in the Y-axis direction so that the distance between the shielding member 23 and the third camera in the Y-axis direction is a sixth preset distance H6, wherein H6 is greater than 1500 cm and less than or equal to 2000 cm. At this time, the position of the shielding mechanism is the preset position; when the camera to be tested is the front camera, the fifth movable member 22 is moved in the Y-axis direction so that the distance between the shielding member 23 and the front camera in the Y-axis direction is a seventh preset distance H7, wherein H7 is greater than 500 cm and less than or equal to 1000 cm. At this time, the position of the shielding mechanism is the preset position.
[0120] S104: Perform clarity analysis on the acquired preview image to determine the close-range focusing time.
[0121] Exemplarily, the control module compares the clarity of each image captured by the high-speed camera with a preset clarity threshold. When the clarity of the acquired image is the same as the preset clarity threshold, close-range focusing is completed, and the time when the focusing is completed is obtained. For example, the time period from the moment when the shielding mechanism 20 moves to the preset position to the moment when the clarity (clarity of the shielding mechanism 20) of the acquired image is the same as the preset clarity threshold is the close-range focusing time.
[0122] S105 , controlling the shielding mechanism 20 to move out of the shooting range of the camera to be tested, so that the camera to be tested can focus on the long-distance object 40 at a long distance.
[0123] The control module controls the fourth moving member 21 to move along the X-axis direction, and the fourth moving member 21 drives the shielding member 23 to move out of the shooting range of the camera to be tested.
[0124] S106: Perform clarity analysis on the acquired preview image to determine the long-distance focusing time.
[0125] Exemplarily, the control module compares the clarity of each image captured by the high-speed camera with a preset clarity threshold. When the clarity of the acquired image is the same as the preset clarity threshold, the long-distance focusing is completed, and the time when the focusing is completed is obtained. For example, the time period from the moment when the shielding mechanism 20 moves out of the shooting range of the camera to be tested to the moment when the clarity (clarity of the long-distance photographed object 40) of the acquired image is the same as the preset clarity threshold is the long-distance focusing time.
[0126] The above steps S103 to S106 are a test process of the auto focus.
[0127] S107 , controlling the shielding mechanism 20 and the reference mechanism 30 to move to the shooting range of the camera to be tested.
[0128] The touch focus test includes close-up objects, medium-distance objects and long-distance objects, so it is necessary to move the close-up objects (i.e., the blocking mechanism 20), the medium-distance objects (i.e., the reference mechanism 30) and the long-distance objects (i.e., the long-distance objects 40) to the shooting range of the camera to be tested.
[0129] S108 . When the shielding mechanism 20 in the preview image is clicked, a clarity analysis is performed on the acquired preview image to determine a close-range focusing time.
[0130] It should be noted that the click operation can be implemented by a click mechanism. Exemplarily, the camera focus test device also includes the click mechanism (not shown in the figure). The click mechanism can simulate a finger clicking on the blocking mechanism 20 in the click preview screen based on the control of the control module. Of course, this does not constitute a limitation of the present application. In other optional embodiments of the present application, the click operation also includes implementation by software. Exemplarily, the electronic device can run corresponding instructions based on the control signal sent by the control module, such as Android Debug Bridge (adb), to achieve the effect of clicking the blocking mechanism 20 in the preview screen. The meaning of click in the following content is the same as this, and the following content will not be repeated.
[0131] For example, after the camera is turned on, it will generally automatically focus on an object (i.e., the default focus state of the camera). After clicking the shielding mechanism 20 in the preview screen, the control module compares the clarity of each image captured by the high-speed camera with the preset clarity threshold. When the clarity of the acquired image is the same as the preset clarity threshold, the close-range focus is completed, and the time when the focus is completed is obtained. For example, the time period from the default focus state to the moment when the clarity (clarity of the shielding mechanism 20) of the acquired image is the same as the preset clarity threshold is the close-range focus time.
[0132] S109 , when the reference mechanism 30 in the preview image is clicked, a clarity analysis is performed on the acquired preview image to determine the focus time at the middle distance.
[0133] After the user clicks the reference mechanism 30 in the preview screen, the control module compares the clarity of each image captured by the high-speed camera with the preset clarity threshold. When the clarity of the acquired image is the same as the preset clarity threshold, the mid-range focusing is completed, and the time of completing the focusing is obtained. For example, the time period from the close-range focusing state to the moment when the clarity (clarity of the reference mechanism 30) of the acquired image is the same as the preset clarity threshold is the mid-range focusing time.
[0134] S110: When a long-distance object in the preview image is clicked, a clarity analysis is performed on the obtained preview image to determine a long-distance focusing time.
[0135] After the user clicks on the long-distance photographed object 40 in the preview screen, the control module compares the clarity of each image captured by the high-speed camera with the preset clarity threshold. When the clarity of the acquired image is the same as the preset clarity threshold, the long-distance focus is completed, and the time when the focus is completed is obtained. For example, the time period from the medium-distance focus state to the moment when the clarity (clarity of the long-distance photographed object 40) of the acquired image is the same as the preset clarity threshold is the long-distance focus time.
[0136] The above steps S107 to S110 are a test process of touch focus.
[0137] S111, determine whether the camera to be tested has changed, if not, the test is completed; if so, take the current camera as the camera to be tested and continue to execute steps S101 to S110 until all cameras in the electronic device have completed the test.
[0138] The camera focus testing device and method provided in the embodiments of the present application can test multiple cameras in an electronic device (including auto focus and touch focus tests) until all cameras have completed the test.
[0139] It should be noted that the preset clarity thresholds in the embodiments of the present application may be the same or different. For example, the preset clarity threshold corresponding to close-range focusing is the first preset clarity threshold, the preset clarity threshold corresponding to medium-range focusing is the second preset clarity threshold, and the preset clarity threshold corresponding to long-range focusing is the third preset clarity threshold. The first preset clarity threshold, the second preset clarity threshold, and the third preset clarity threshold are all different. The specific values of each preset clarity threshold are set according to actual conditions, and the present application does not limit this.
[0140] It should also be noted that the above example only shows a process of a camera focus test method for performing two tests, auto focus and touch focus, on a camera to be tested, but does not constitute a limitation of the present application. For example, the touch focus test process may be performed first, and then the auto focus test process may be performed, that is, steps S107 to S110 may be performed first, and then steps S103 to S106 may be performed. For another example, in the process of performing the auto focus test, the long-distance focus time is first determined, and then the shielding mechanism 20 is moved to a preset position so that the camera to be tested can focus on the shielding mechanism 20 at a close distance, that is, steps S105 and S106 may be performed first, and then steps S103 to S104 may be performed. For example, during the touch focus test, you can first click on the distant object 40 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a long distance; then, click on the reference mechanism 30 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a medium distance; then, click on the shielding mechanism 20 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a close distance.
[0141] It should also be noted that the above camera focus test method is described by taking the auto focus and touch focus tests of the camera to be tested as an example, but this does not constitute a limitation of the present application. In other optional embodiments of the present application, the camera focus test method can also be used for the auto focus test of the camera to be tested or the touch focus test of the camera to be tested.
[0142] For example, see Fig.13 , Fig.13 A flowchart of another camera focus test method provided in an embodiment of the present application. Fig.13 As shown, the camera focus test method can be implemented by the following steps:
[0143] S201: Obtain a preview image of the camera to be tested.
[0144] S202 , controlling the movement of the clamping mechanism 10 based on the preview image to keep the camera to be tested at the exact center of the shooting.
[0145] S203 , controlling the shielding mechanism 20 to move to a preset position based on the type of the camera to be tested, so that the camera to be tested can focus on the shielding mechanism 20 at a close distance.
[0146] S204: Perform clarity analysis on the acquired preview image to determine the close-range focusing time.
[0147] S205 , controlling the shielding mechanism 20 to move out of the shooting range of the camera to be tested, so that the camera to be tested can focus on the long-distance object 40 at a long distance.
[0148] The control module controls the fourth moving member 21 to move along the X-axis direction, and the fourth moving member 21 drives the shielding member 23 to move out of the shooting range of the camera to be tested.
[0149] S206: Perform clarity analysis on the acquired preview image to determine the long-distance focusing time.
[0150] S207, determine whether the camera to be tested has changed, if not, the test is completed; if so, take the current camera as the camera to be tested and continue to execute steps S201 to S206 until all cameras in the electronic device have completed the test.
[0151] It should be noted that the explanations and Fig.12 The explanations of the corresponding steps are the same and will not be repeated here. For details, please refer to Fig.12 The corresponding explanation of each step.
[0152] It should also be noted that the above example only shows a process of a camera focus test method for performing an auto focus test on a camera to be tested, but does not constitute a limitation of the present application. For example, in the process of performing an auto focus test, the long-distance focus time is first determined, and then the shielding mechanism 20 is moved to a preset position so that the camera to be tested can focus on the shielding mechanism 20 at a close distance, that is, steps S205 and S206 are performed first, and then steps S203 to S204 are performed.
[0153] For example, see Fig.14 , Fig.14 A flowchart of another camera focus test method provided in an embodiment of the present application. Fig.14 As shown, the camera focus test method can be implemented by the following steps:
[0154] S301: Obtain a preview image of the camera to be tested.
[0155] S302 , controlling the movement of the clamping mechanism 10 based on the preview image to keep the camera to be tested at the exact center of the shooting.
[0156] S303 , based on the type of the camera to be tested, control the shielding mechanism 20 and the reference mechanism 30 to move to the shooting range of the camera to be tested.
[0157] S304: When the shielding mechanism 20 in the preview image is clicked, a clarity analysis is performed on the acquired preview image to determine a close-range focusing time.
[0158] S305 , when the reference mechanism 30 in the preview image is clicked, a clarity analysis is performed on the acquired preview image to determine the focus time at the middle distance.
[0159] S306: When a long-distance photographed object in the preview image is clicked, a clarity analysis is performed on the obtained preview image to determine a long-distance focusing time.
[0160] S307, determine whether the camera to be tested has changed, if not, the test is completed; if so, take the current camera as the camera to be tested and continue to execute steps S301 to S306 until all cameras in the electronic device have completed the test.
[0161] It should be noted that the explanations and Fig.12 The explanations of the corresponding steps are the same and will not be repeated here. For details, please refer to Fig.12 The corresponding explanation of each step.
[0162] It should also be noted that the above example only shows a process of a camera focus test method for performing a touch focus test on a camera to be tested, but does not constitute a limitation of the present application. For example, in the process of performing a touch focus test, you can first click on a distant object 40 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a long distance; then, click on the reference mechanism 30 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a medium distance; then, click on the shielding mechanism 20 in the preview screen, and perform a clarity analysis on the preview screen obtained at this time to determine the focus time at a close distance.
[0163] In summary, the camera focus test device and method provided in the embodiments of the present application can cover three types of tests: automatic focus of the camera under test, touch focus of the camera under test, and automatic focus and touch focus of the camera under test, so that the application scope of the device and method is more extensive.
[0164] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the focus test method of the shooting device in the above-mentioned embodiment. The storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0165] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the camera focus test method in the above-mentioned embodiment.
[0166] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0167] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A camera focus test device, characterized in that: Used to test the focusing time required from completing focusing at the first distance to completing focusing at the second distance; The camera focus test device comprises: a clamping mechanism, a shielding mechanism and a reference mechanism, wherein the shielding mechanism and the reference mechanism are located between the clamping mechanism and a long-distance object, and the distance between the shielding mechanism and the clamping mechanism is smaller than the distance between the reference mechanism and the clamping mechanism, wherein the first distance is different from the second distance, the first distance comprises the distance between the shielding mechanism, the reference mechanism or the long-distance object and the clamping mechanism, and the second distance comprises the distance between the shielding mechanism, the reference mechanism or the long-distance object and the clamping mechanism; The clamping mechanism is used to clamp the electronic device and drive the electronic device to move and / or rotate, wherein the electronic device includes a plurality of cameras to be tested, and the clamping mechanism drives the electronic device to move and / or rotate so that each camera to be tested is in the exact center of the shooting, so as to determine the focusing time required for each camera to be tested to complete focusing from the first distance to the second distance; The shielding mechanism and the reference mechanism are movable; the shielding mechanism includes a shielding member and a second rotating member, the shielding member includes a second baffle, the second baffle is arranged on the second rotating member, and the second rotating member drives the second baffle to rotate; the second baffle can rotate 90 degrees within a preset time, wherein the preset time is greater than 0 milliseconds and less than or equal to 300 milliseconds; When testing different cameras to be tested, the positions of the clamping mechanisms are different, and the distances between the shielding mechanisms and the clamping mechanisms are different.
2. The camera focus test device according to claim 1, characterized in that: Also included is the remote object being photographed.
3. The camera focus test device according to claim 2, characterized in that: The remote photographed object comprises a picture card, and at least one marking point is arranged on the picture card.
4. The camera focus test device according to claim 3, characterized in that: The shape of the chart card is a rectangle, the number of the marking points is four, and the four marking points are respectively arranged at the four corners of the chart card.
5. The camera focus test device according to claim 1, characterized in that: The camera focus testing device also includes a bracket, and the clamping mechanism, the shielding mechanism and the reference mechanism are all arranged on the bracket.
6. The camera focus test device according to any one of claims 1 to 5, characterized in that: The clamping mechanism comprises a first moving member, a second moving member, a third moving member, a first rotating member and a clamping base; The clamping base is used to clamp the electronic device; The first moving member is used to drive the clamping base to move along a first direction; The second moving member is used to drive the clamping base to move along the second direction; The third moving member is used to drive the clamping base to move along the third direction; The first rotating member is used to drive the clamping base to rotate with the third direction as the rotation axis; The first direction, the second direction and the third direction intersect each other.
7. The camera focus test device according to any one of claims 1 to 5, characterized in that: The shielding mechanism includes a fourth moving member and a fifth moving member; The fourth moving member is used to drive the shielding member to move along the first direction; The fifth moving member is used to drive the shielding member to move along the second direction; The first direction and the second direction intersect.
8. The camera focus test device according to claim 7, characterized in that: The shielding member further includes a first baffle, wherein the area of the first baffle is smaller than the area of the second baffle; The second rotating member also drives the first baffle to rotate with the second direction as the rotation axis.
9. The camera focus test device according to any one of claims 1 to 5, characterized in that: The reference mechanism comprises a sixth moving member, a seventh moving member and a reference object; The sixth moving member is used to drive the reference object to move along the first direction; The seventh moving member is used to drive the reference object to move along the second direction; The first direction and the second direction intersect.
10. The camera focus test device according to claim 9, characterized in that: The reference mechanism further includes an eighth moving member, which is used to drive the reference object to move along a third direction; The first direction, the second direction and the third direction intersect each other.
11. A camera focus test method, characterized in that: Applicable to the camera focus test device as described in any one of claims 1 to 10; The camera focus test device comprises: a clamping mechanism, a shielding mechanism and a reference mechanism; The camera focus test method comprises: Controlling the movement of the moving mechanism so that the moving mechanism moves into and / or out of the shooting range of the camera to be tested, wherein the moving mechanism is the shielding mechanism, or the moving mechanism is the shielding mechanism and the reference mechanism; Determine the focus time according to the obtained preview image of the camera to be tested; The focus time includes automatic focus time and / or touch focus time.
12. The camera focus test method according to claim 11, characterized in that: Before the controlling movement mechanism moves, the method further comprises: The clamping mechanism is controlled to move according to the obtained preview image of the camera to be tested, so that the camera to be tested is kept in the exact center of the shooting.
13. The camera focus test method according to claim 11, characterized in that: After determining the focus time according to the preview image of the camera to be tested, the following steps are also included: If the camera to be tested changes, the steps of controlling the movement of the moving mechanism and determining the focus time according to the obtained preview image of the camera to be tested are continued until the multiple cameras to be tested of the electronic device are tested.
14. The camera focus test method according to any one of claims 11 to 13, characterized in that: The moving mechanism is the shielding mechanism; Determine the focus time according to the preview image of the camera to be tested, including: Determine the autofocus time according to the preview picture of the camera to be tested; wherein the autofocus time includes the close-range autofocus time and the long-range autofocus time; the time required for the camera to be tested to complete focusing on the long-range object to the time when the shielding mechanism moves into the shooting range of the camera to be tested and the focusing on the shielding mechanism is completed is the close-range autofocus time; the time required for the camera to be tested to complete focusing on the shielding mechanism to the time when the shielding mechanism moves out of the shooting range of the camera to be tested and the focusing on the long-range object is the long-range autofocus time; After determining the auto focus time according to the preview image of the camera to be tested, the method further includes: Controlling the movement of the shielding mechanism and the reference mechanism so that the shielding mechanism and the reference mechanism are moved into the shooting range of the camera to be tested; The touch focus time is determined according to the obtained preview image of the camera to be tested.
15. The camera focus test method according to any one of claims 11 to 13, characterized in that: The moving mechanism is the shielding mechanism and the reference mechanism; Determine the focus time according to the preview image of the camera to be tested, including: Determine the touch focus time according to the preview image of the camera to be tested; wherein the touch focus time includes a close-distance touch focus time, a medium-distance touch focus time, and a long-distance touch focus time; The shielding mechanism and the reference mechanism are located within the shooting range of the camera to be tested, and the focusing time required from the default focus state or the completion of the focus of the reference mechanism to the electronic device responding to the first operation to enable the camera to be tested to complete the focus on the shielding mechanism is the close-range touch focus time, wherein the first operation is the operation of clicking the shielding mechanism in the preview screen; The focusing time required from the time when the camera to be tested completes focusing on the long-distance photographed object or the shielding mechanism to the time when the electronic device responds to the second operation to enable the camera to be tested to complete focusing is the medium-distance touch focusing time, wherein the second operation is the operation of clicking the reference mechanism in the preview screen; The focusing time required from the default focusing state or the completion of the focusing of the reference mechanism to the completion of the focusing of the camera under test by the electronic device in response to the third operation is the long-distance touch focusing time, wherein the third operation is clicking the long-distance object in the preview screen; After determining the touch focus time according to the preview image of the camera to be tested, the method further includes: Controlling the movement of the shielding mechanism to move the shielding mechanism into and / or out of the shooting range of the camera to be tested; The auto focus time is determined according to the obtained preview image of the camera to be tested.
Citation Information
Patent Citations
Focusing test method and system for shooting equipment
CN115567700A
Close-shot shielding device, test system and method for analyzing automatic focusing time of camera
CN115589478A
Camera module PDAF automated inspection equipment
CN207924369U
A camera focus test platform
CN220985743U