Camera focus testing method, device, system and control terminal
Through automatic rotation of the test box and lighting adjustment, efficient automation of camera focus testing is achieved, which solves the problem of low testing efficiency in the existing technology and improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202210133384.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-14
AI Technical Summary
The existing camera focus test method is inefficient and requires frequent manual operation of the chart, resulting in long test times.
A camera focus test method is designed. The test box is composed of multiple test spaces. Each space is equipped with a lighting component to adjust the ambient lighting and a test chart. The test box is driven to rotate through the shaft, so that the chart automatically rotates to Under the camera lens, the camera automatically shoots the picture card, uses the control terminal to adjust the lighting and rotation control, and automatically calculates the focus success rate.
It improves test efficiency, reduces manual operations, shortens test time, and achieves fast and accurate focus success rate detection.
Smart Images

Figure CN114449259B_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 method, device, system and control terminal. Background Art
[0002] Camera focus refers to the process of adjusting the focal distance when using the camera to make the image of the object clear. The camera parameters are usually set before leaving the factory. By testing the camera focus and obtaining the focus success rate, it can be determined whether the parameters are set correctly.
[0003] In the prior art, before the camera is tested for focus, the lighting brightness and color temperature environment are set in a separate test space. Then, the position of the camera is fixed in the test space, and a large number of picture cards are stacked together and placed at a certain distance from the camera. During the test, the tester takes out a picture card each time and controls the camera to shoot once, thereby obtaining a number of images. Finally, the human eye determines whether each image is in focus successfully, and obtains the focus success rate.
[0004] However, in the existing focus test method, the tester needs to manually remove the picture card frequently during the test process, which causes the entire test process to take a long time and has low test efficiency. Summary of the invention
[0005] The present application provides a camera focus test method, device, system and control terminal, which are used to solve the problem of low efficiency of existing camera focus tests.
[0006] In a first aspect, an embodiment of the present application provides a camera focus test method, which is applied to a test system, wherein the test system includes a camera to be tested and a test box, wherein the test box is composed of more than two test spaces, each of which has at least one surface of the test box, each surface of which is provided with a test chart, and each test space is provided with a lighting component for adjusting ambient light, and a rotating shaft is provided at the horizontal center line of the test box, and the rotating shaft is driven by a driving device to drive the test box to rotate.
[0007] The method includes: obtaining test data submitted by a user, controlling a lighting component of each test space, and adjusting ambient lighting inside each test space;
[0008] Controlling the test box to rotate, and rotating the surface of each test space provided with the test chart to be under the lens of the camera to be tested;
[0009] Controlling the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture;
[0010] The focusing success rate of the camera to be tested is determined according to the test picture.
[0011] In a possible design of the first aspect, controlling the test box to rotate so that the surface of each test space provided with the test chart is rotated to under the lens of the camera to be tested includes:
[0012] Extracting the target shooting times of the camera to be tested from the test data;
[0013] Determining the total number of rotations of the test box according to the number of target shots;
[0014] According to the total number of rotations of the test box, the test box is controlled to rotate according to a preset rotation angle and a preset rotation direction. Each time the test box completes a rotation, a surface of a test chart provided in a test space of the test box will rotate under the lens of the camera to be tested.
[0015] In another possible design of the first aspect, controlling the test box to rotate according to a preset rotation angle and a preset rotation direction includes:
[0016] After the test box completes one rotation and the surface of the test chart disposed in the first test space of the test box rotates to under the lens of the camera to be tested, controlling the test box to stop rotating;
[0017] Obtaining the duration of the test box stopping rotation;
[0018] If the duration reaches a preset duration, the test box is continuously controlled to rotate, and the surface of the test chart disposed in the second test space of the test box is rotated to be under the lens of the camera to be tested.
[0019] In another possible design of the first aspect, after continuing to control the test box to rotate and rotating the surface of the test chart in the second test space of the test box to under the lens of the camera to be tested, the method further includes:
[0020] Obtaining the cumulative number of rotations of the test box;
[0021] If the accumulated number of times reaches the total number of rotations, the test box is controlled to stop rotating.
[0022] In another possible design of the first aspect, adjusting the ambient lighting inside each test space includes:
[0023] Obtaining a brightness adjustment value and a color temperature adjustment value corresponding to each test space from the test data;
[0024] The ambient lighting inside each test space is adjusted according to the brightness adjustment value and the color temperature adjustment value.
[0025] In another possible design of the first aspect, determining the focus success rate of the camera to be tested according to the test picture includes:
[0026] Acquire the contrast of the test picture, and determine the focusing success rate of the camera to be tested according to the contrast of the test picture and a preset contrast; or
[0027] Recognize the font and font size of the sample text in the test image to obtain a recognition result of the test image, wherein the test image contains at least two sample texts of different font sizes and fonts;
[0028] The focusing success rate of the camera to be tested is determined according to the recognition result.
[0029] In another possible design of the first aspect, before controlling the camera to be tested to photograph a test chart disposed on a surface of each test space to obtain the test picture, the method further includes:
[0030] Obtaining the relative distance between the lens of the camera to be tested and the surface on which the test chart is disposed under the lens;
[0031] According to the preset distance and the relative distance, the first telescopic device is controlled to be telescopic, and the first telescopic device is used to adjust the relative distance between the camera to be tested and the test chart.
[0032] In another possible design of the first aspect, before controlling the camera to be tested to photograph a test chart disposed on a surface of each test space to obtain the test picture, the method further includes:
[0033] Obtaining the center point of a surface on which a test chart is arranged under the lens of the camera to be tested, and determining whether the camera to be tested is aligned with the center point;
[0034] If the camera to be tested is not aligned with the center point, the second telescopic device is controlled to be telescopic, and the second telescopic device is used to adjust the camera to be tested to be aligned with the center point.
[0035] In a second aspect, an embodiment of the present application provides a camera focus testing device, comprising:
[0036] A lighting adjustment module is used to obtain the test data submitted by the user and control the lighting components of each test space to adjust the ambient light inside each test space;
[0037] A rotation control module is used to control the rotation of the test box to rotate the surface of each test space provided with the test chart to the lens of the camera to be tested;
[0038] A shooting control module, used to control the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture;
[0039] A focus determination module is used to determine the focus success rate of the camera to be tested according to the test image.
[0040] In a third aspect, an embodiment of the present application provides a camera focus test system, comprising: a control terminal, a camera to be tested, a test box, and a rotating shaft arranged on the test box, wherein the rotating shaft is driven by a driving device to drive the test box to rotate, the test box is composed of more than two test spaces, each of which has at least one surface of the test box, each surface is provided with a test chart, and each test space is provided with a lighting component for adjusting ambient light, the control terminal is connected to the driving device, and the control terminal is connected to the camera to be tested;
[0041] The driving device is used to drive the test box to rotate according to the driving instruction of the control terminal;
[0042] The camera to be tested is used to shoot the test picture card set on the surface of each test space according to the shooting instruction of the control terminal to obtain at least two test pictures, and the at least two test pictures are used by the control terminal to determine the focus success rate of the camera to be tested.
[0043] In a possible design of the third aspect, it also includes: a telescopic device, and the camera to be tested is arranged on the telescopic device.
[0044] In yet another possible design of the third aspect, the lighting assembly is used to adjust the ambient lighting of each test space according to an adjustment instruction of the control terminal, and the ambient lighting of each test space is different.
[0045] In yet another possible design of the third aspect, the surface of the test space on which the test chart is arranged is frosted translucent glass.
[0046] In a fourth aspect, an embodiment of the present application provides a control terminal, comprising a memory and at least one processor;
[0047] The memory stores computer-executable instructions;
[0048] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described above.
[0049] In a fifth aspect, an embodiment of the present application provides a readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the method as described above.
[0050] In a sixth aspect, an embodiment of the present application provides a program product, including computer instructions, which implement the method described above when executed by a processor.
[0051] The camera focus test method, device, system and control terminal provided in the embodiments of the present application adjust the ambient lighting of each test space so that each test space can provide a different test environment, and rotate the test box so that the surfaces of the test cards provided in each test space of the test box can be rotated under the lens of the camera to be tested respectively, and the camera to be tested can shoot the test cards on the surface of each test space, thereby eliminating the process step of the tester drawing cards, shortening the test time and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application;
[0053] Figure 1 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application;
[0054] Figure 2 A cross-sectional view of a camera focus test system provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of the structure of the test box provided in the embodiment of the present application;
[0056] Figure 4 A schematic diagram of the structure of the test space provided in the embodiment of the present application;
[0057] Figure 5 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application;
[0059] Figure 7 A schematic diagram of a flow chart of a first embodiment of a method for camera focus testing provided in an embodiment of the present application;
[0060] Figure 8 A schematic diagram of a flow chart of a second embodiment of a camera focus testing method provided in an embodiment of the present application;
[0061] Fig. 9A schematic diagram of the structure of a camera focus test device provided in an embodiment of the present application;
[0062] Fig.10 A schematic diagram of a camera focus test system framework provided in an embodiment of the present application;
[0063] Fig.11 A schematic diagram of the structure of a control terminal provided in an embodiment of the present application.
[0064] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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.
[0066] Figure 1 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the test system can be arranged on a base 10, which includes a shell, and a picture card display area 11 is arranged on the surface of the shell for displaying the picture card. A test box is arranged inside the shell. A telescopic device is also arranged on the base 10, specifically including a first telescopic device 12 and a second telescopic device 13. Among them, a telescopic rod 121 is also arranged on the first telescopic device 12, and a camera fixing component 1211 (such as a mobile phone clamp or a tablet clamp) is arranged on the telescopic rod 121 to fix the camera. Exemplarily, the first telescopic device 12 includes a vertical guide rail, and the telescopic rod 121 can slide up and down in the first telescopic device 12 to adjust the vertical distance between the camera and the picture card display area 11. In addition, the telescopic rod 121 can be telescoped to adjust the position of the camera. The first telescopic device 12 is arranged on the second telescopic device 13, and can slide on the second telescopic device 13 to adjust the position of the first telescopic device 12.
[0067] Exemplarily, a touch panel 14 is further provided on the shell, wherein the tester can control the rotation of the test box in the shell through the touch panel 14 .
[0068] Figure 2This is a cross-sectional view of a camera focus test system provided in an embodiment of the present application. The test box 30 includes a plurality of test spaces, such as Figure 2 As shown, the test box includes four test spaces, namely test space a, test space b, test space c and test space d, and the test box 30 can rotate in the housing 15. Exemplarily, when the test box 30 rotates 90 degrees, the surface of a test space will be under the lens of the camera set on the camera fixing assembly of the telescopic rod 121. Figure 2 , at this time, the surface of the test space a is under the camera lens.
[0069] Figure 3 The schematic diagram of the structure of the test box provided in the embodiment of the present application is as follows: Figure 3 As shown, the test box 30 includes a rotating shaft 31, a lighting assembly 32 and a chart card 33. The rotating shaft can be driven by a driving device to drive the entire test box 30 to rotate. During the rotation process, the position of each test space will change. For example, every time the test box rotates 90 degrees, a chart card 33 of a box will face upward (i.e., it is just at the Figure 1 The middle picture card display area 11 is used to allow the camera to capture the picture card 33 on the test space).
[0070] Each test space can be provided with a different picture card 33, and each test space is provided with a different lighting assembly 32. Figure 1 The touch panel 14 is used to control the lighting assembly 32 to adjust the ambient light inside each test space.
[0071] Figure 4 A schematic diagram of the structure of the test space provided in the embodiment of the present application, such as Figure 4 As shown, the rotating shaft 31 of the test box is exposed from the test box 30 to be driven by the driving device. Figure 5 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, a chart display area 11 and a touch panel 14 are provided on the housing 15, and the housing 15 is provided on the base 10. The chart display area 11 is equivalent to an opening on the housing 15, which is used to expose the chart on the test space in the test box inside the housing. Figure 6 A schematic diagram of the structure of a camera focus test system provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, a driving device 61 may be further provided inside the housing 15 . Exemplarily, the driving device 61 may be a motor.
[0072] In this embodiment, the test box can be in the shape of a cuboid, and the upper surface, the lower surface, the front surface and the rear surface are all rectangular. Figure 2The test box is composed of four independent test spaces a, b, c and d (ie, the rectangular test box is divided into four triangular prisms a, b, c and d, each of which has at least one surface of the test box).
[0073] A test chart is arranged on a surface of the test space a (the surface can be rotated so that the chart arranged on the surface is in the chart display area 11 so that the camera can capture the chart). An independent lighting assembly 32 is arranged in each test space, and the control terminal can adjust each lighting assembly to adjust the ambient light inside each test control.
[0074] During the rotation of the test box, the test chart on the surface of each test space has the opportunity to be displayed in the chart display area 11, that is, under the camera lens, and the camera takes a picture of the chart to obtain a test picture, wherein the camera is set at the camera fixing component 1211.
[0075] In the prior art, when testing the focus of a camera, manual testing is usually used. The tester sets the external light brightness and color temperature environment, fixes the camera position, and then stacks multiple (for example, 20) identical charts together and places them at a certain distance from the camera. During the test, each time the camera takes a test picture, a chart is manually removed. This method of the prior art has a single light brightness and color temperature environment, consumes manpower and time, and has low test efficiency.
[0076] In response to the above problems, the embodiments of the present application provide a camera focus test method, device, system and control terminal. The control terminal sets the number of tests and the ambient light brightness and color temperature of each test space, and controls the rotation of the test box, so that the camera can shoot the charts on the surface of each test space, quickly obtain multiple test pictures, and quickly and accurately test the focus success rate of the camera, saving manpower. At the same time, four different small boxes can set different test environments, simulate more complex environment switching, and perform camera success rate tests under more test environments.
[0077] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0078] Figure 7 The present invention provides a flow chart of a method for testing camera focus in an embodiment of the present invention. The method for testing camera focus can be applied to a control terminal in a test system. For example, the control terminal can be a computer device.
[0079] The test system includes a camera to be tested and a test box. The test box consists of two or more test spaces. Each test space has at least one surface of the test box. Each surface is provided with a test chart. Each test space is provided with a lighting assembly for adjusting the ambient light. A rotating shaft is provided at the horizontal center line of the test box. The rotating shaft is driven by a driving device to drive the test box to rotate. Figure 7 As shown, the camera focus testing method may include the following steps:
[0080] S701. Acquire test data submitted by a user, and control the lighting components of each test space to adjust the ambient light inside each test space.
[0081] The ambient lighting of each test space of the test box is different. Exemplarily, the test charts arranged on the surface of each test box can be the same.
[0082] In this embodiment, at least one lighting component is disposed in each test space, and the control terminal can adjust the ambient lighting of each test space by controlling the lighting component in each test space. Exemplarily, the ambient lighting may specifically include light brightness and color temperature.
[0083] For example, the test data may include the target shooting times of the camera under test and the ambient lighting inside each test space. The target shooting times are used to represent the number of shooting times that the camera under test needs to perform during the test process.
[0084] Exemplarily, the control terminal may include a human-computer interaction interface (e.g. Figure 1 The tester can input the test data through the touch panel 14 in the human-computer interaction interface.
[0085] In this embodiment, the test box can have multiple fronts during the rotation process, and each test space can occupy a front of the test box, and a test chart is set on the front. Exemplarily, the test box can be a cuboid or a prism. Taking the cuboid as an example, the front, back, left and right surfaces can all be used as fronts during the rotation process, and the test box can include four test spaces, each of which occupies a front.
[0086] S702, controlling the test box to rotate, and rotating the surface of each test space provided with the test chart to be under the lens of the camera to be tested.
[0087] In this embodiment, a rotating shaft can be set at the horizontal center line of the test box, and the rotating shaft can be driven to rotate by a driving device to drive the test box to rotate. During the rotation process, every time the test box rotates to a preset angle (for example, 90 degrees), a surface with a test chart in the test space will be opposite to the camera to be tested, that is, rotated under the lens of the camera to be tested. At this time, the camera to be tested can capture the test chart set on the surface of the test space to obtain a test picture corresponding to the test space.
[0088] For example, if the test box includes four test spaces, the test box can be rotated 90 degrees each time so that the surface of one of the test spaces is opposite to the camera to be tested. The total number of rotations of the test box can be set by the tester, for example, the tester sets the total number of rotations of the test box to 20 times.
[0089] S703: Control the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture.
[0090] In this embodiment, during the rotation of the test box, the test space opposite to the camera to be tested can be changed. For example, taking the test box including four test spaces as an example, when the test box rotates 90 degrees, the first test space is opposite to the camera to be tested, that is, the surface of the first test space with the test chart is rotated to under the camera lens to be tested, when the test box rotates another 90 degrees, the second test space is opposite to the camera to be tested, and after the test box completes a 360-degree rotation, the first test space is opposite to the camera to be tested again.
[0091] The camera under test will take a picture of the test chart set on the surface of each test space opposite to it, and obtain a number of test pictures. For example, the total number of rotations of the test box is the total number of test pictures, that is, each time the test box rotates by a preset angle so that a test space is opposite to the camera under test, the camera under test will take a picture of the test chart of the test space, and obtain a test picture.
[0092] S704: Determine the focus success rate of the camera to be tested according to the test image.
[0093] In this embodiment, the focus success rate = the number of clear pictures / the total number of test pictures. Exemplarily, after the test picture is taken by the camera to be tested, it can be imported into the control terminal, and the image processing software in the control terminal can identify the test picture, for example, determine the contrast or font size of each test picture, and when the contrast meets the preset threshold, determine that the test picture is a clear picture. Or when the font size in the test picture is identified, determine that the test picture is a clear picture.
[0094] The embodiment of the present application controls the rotation of the test box so that the camera can shoot the test charts set on the surface of each test box, quickly obtain multiple test pictures, and quickly and accurately test the focus success rate of the camera, saving manpower. At the same time, four different test spaces can set different test environments, simulate more complex environment switching, and perform camera success rate tests under more test environments.
[0095] Based on the above embodiments, Figure 8 This is a flow chart of a second embodiment of a camera focus test method provided in an embodiment of the present application, such as Figure 8 As shown, the above step S702 can be specifically implemented by the following steps:
[0096] S801, extracting the target shooting times of the camera to be tested from the test data;
[0097] S802, determining the total number of rotations of the test box according to the target shooting number;
[0098] S803 . According to the total number of rotations of the test box, control the test box to rotate according to a preset rotation angle and a preset rotation direction.
[0099] Wherein, each time the test box completes one rotation, a surface of a test chart arranged in a test space of the test box will rotate to under the lens of the camera to be tested.
[0100] In this embodiment, the target shooting number of the camera to be tested can be set by the tester, and the target shooting number is equal to the total rotation number. Exemplarily, the preset rotation angle can be 90 degrees, and the preset rotation direction can be clockwise. The preset rotation angle is used to indicate the angle of each rotation of the test box when it is rotating.
[0101] The embodiment of the present application controls the rotation of the test box by determining the total number of rotations of the test box, the preset rotation angle and the preset rotation direction of the test box, so that the camera to be tested can shoot the test chart set on the surface of each test space, obtain multiple test pictures, and improve the accuracy of focus detection.
[0102] Further, based on the above embodiment, in some embodiments, in the above step S803, “controlling the test box to rotate according to a preset rotation angle and a preset rotation direction” can be specifically implemented by the following steps:
[0103] After the test box completes one rotation and the surface of the test chart disposed in the first test space of the test box rotates to under the lens of the camera to be tested, the test box is controlled to stop rotating;
[0104] Get the duration of the test box stopping rotation;
[0105] If the duration reaches the preset duration, the test box is continuously controlled to rotate, and the surface of the test chart disposed in the second test space of the test box is rotated to under the lens of the camera to be tested.
[0106] In this embodiment, the preset time length may be 10 seconds to 20 seconds. The first test space may be any one of the test boxes, such as test space a, and the second test space is determined according to the preset rotation direction of the test box, such as test space b or test space d.
[0107] When the first test space in the test box is opposite to the camera to be tested, the test box can stop rotating so that the camera to be tested can take a picture of the test chart set on the surface of the current test space to obtain a test picture. When the duration of the rotation stop reaches a preset duration, the test box continues to rotate so that the second test space is opposite to the camera to be tested.
[0108] Exemplarily, when the second test space is opposite to the camera to be tested, the test box stops rotating and restarts timing. After reaching a preset time, it continues rotating, and this process is repeated.
[0109] The embodiment of the present application controls the rotation and stopping of the test box by setting a preset time length, so that the camera to be tested can shoot the test card set on the surface of each test space to obtain multiple test pictures, and the whole process does not require the tester to manually remove the card, thereby reducing the test process and improving the test efficiency.
[0110] Furthermore, based on the above embodiment, the camera focus test method further includes the following steps:
[0111] Get the cumulative number of rotations of the test box;
[0112] If the accumulated times reach the total number of rotations, the test box is controlled to stop rotating.
[0113] In this embodiment, the number of times the test box stops rotating can be accumulated as the accumulated number of times the test box rotates. Exemplarily, when the first test space in the test box rotates to face the camera to be tested, the test box stops rotating, and the number of times the test box stops rotating can be accumulated.
[0114] The embodiment of the present application determines the cumulative number of rotations of the test box, and when the total number of rotations is reached, the test box can be controlled to stop rotating, thereby achieving full automation control of the entire process and reducing labor costs.
[0115] In some embodiments, the above step S701 can be implemented by the following steps:
[0116] Obtaining brightness adjustment values and color temperature adjustment values corresponding to each test space from the test data;
[0117] The ambient light inside each test space is adjusted according to the brightness adjustment value and the color temperature adjustment value.
[0118] In this embodiment, the test data may include the brightness adjustment value and color temperature adjustment value of the lighting components of each test space, and the control terminal adjusts the lighting components of each test space according to the brightness adjustment value and color temperature adjustment value of the lighting components of each test space.
[0119] The embodiment of the present application can set up different test environments in different test boxes by adjusting the ambient lighting of each test space, simulate more complex environmental switching, and perform camera focus yield tests in more environments.
[0120] In some embodiments, the camera focus test method may further include the following steps:
[0121] Obtaining the sharpness of the test image, and determining whether the test image is a target image according to the sharpness of the test image and a preset sharpness threshold;
[0122] The focus success rate of the camera under test is determined based on the number of target images and the total number of test images.
[0123] In this embodiment, each test image can be input into the sharpness analysis software of the control terminal to determine whether the sharpness of the test image reaches a preset sharpness threshold. If so, the test image is determined to be a target image.
[0124] Among them, sharpness, also known as clarity, is an indicator that reflects the clarity of the image plane and the sharpness of the image edge. If the sharpness is increased, the detail contrast on the image plane is also higher and looks clearer.
[0125] Exemplarily, focus success rate=number of target images / total number of test images.
[0126] The embodiment of the present application determines the number of target images by comparing the sharpness of the test image with a preset sharpness threshold, and determines the focus success rate of the camera to be tested based on the total number of test images. There is no need for the tester to detect the clarity of the test image with the human eye, thus avoiding manual detection errors and improving test accuracy.
[0127] In some embodiments, the above step S704 can also be implemented by the following steps:
[0128] Obtaining the contrast of the test image, and determining the focus success rate of the camera to be tested according to the contrast of the test image and a preset contrast; or
[0129] Identify the font size of the sample text in the test image to obtain the recognition result of the test image;
[0130] According to the recognition result, the focusing success rate of the camera to be tested is determined.
[0131] The test image contains at least two sample texts in different sizes and fonts.
[0132] Specifically, each test image may include ten characters of different sizes and fonts, such as 10 characters of "positive" in different fonts and sizes, or 5 characters of "positive" in different fonts and sizes and 5 characters of "negative" in different fonts and sizes. The characters may be sorted in order according to the size of each character. The control terminal performs recognition. For example, if the font size of 5-7 sample characters can be recognized, it means that the clarity of this test image meets the requirements and it is a successfully focused image.
[0133] Among them, the focus success rate = the number of images with successful focus / the total number of test images
[0134] In some embodiments, the camera focus testing method further includes:
[0135] Obtaining the relative distance between the lens of the camera to be tested and the surface on which the test chart is disposed under the lens;
[0136] According to the preset distance and the relative distance, the first telescopic device is controlled to telescope, and the first telescopic device is used to adjust the relative distance between the camera to be tested and the test chart.
[0137] In this embodiment, the relative distance refers to the vertical distance between the camera to be tested and the test chart. The camera to be tested is arranged on the first telescopic device, and the first telescopic device can adjust the height of the camera to be tested when telescoping, thereby adjusting the relative distance between the camera to be tested and the test chart.
[0138] Based on the above embodiments, in some embodiments, the camera focus test method further includes:
[0139] Obtaining the center point of the surface on which the test chart is set under the lens of the camera to be tested, and determining whether the camera to be tested is aligned with the center point;
[0140] If the camera to be tested is not aligned with the center point, the second telescopic device is controlled to be telescopic, and the second telescopic device is used to adjust the camera to be tested to be aligned with the center point.
[0141] In this embodiment, the surface of the test chart in the test space is provided with a fixed center point. When the test chart is provided on the surface of the test space, the center point of the surface can be used as the center point of the test chart. A straight line passing through the center point and perpendicular to the test chart is determined by the center point of the test chart. If the camera to be tested is on the straight line, it means that the camera to be tested is aligned with the center point. If the camera to be tested is not on the straight line, it means that the camera to be tested is not aligned with the center point.
[0142] The second telescopic device may be an extension of the first telescopic device, the first telescopic device is used to adjust the height of the camera to be tested, and the second telescopic device is used to adjust the position of the camera to be tested in the horizontal plane to achieve alignment with the center point.
[0143] In some embodiments, the control terminal includes a human-computer interaction interface, as shown in Table 1 below:
[0144]
[0145] Table 1
[0146] In Table 1 above, the telescopic height of the first telescopic rod and the telescopic length of the second telescopic rod can be set. At the same time, the ambient lighting inside the test controls a, b, c, d, such as color temperature and brightness, can also be set. The rotation angle and number of rotations of the test box can also be set. Finally, different methods can be set to determine the focus success rate of the camera to be tested, which can specifically include normal mode and font mode.
[0147] Among them, the normal mode refers to comparing the contrast of each test image with the threshold. If it is greater than the threshold, it is determined that the test image is focused successfully. The focus success rate = the test images with successful focus / the total number of test images. The font mode refers to determining the font size that the control terminal can recognize to obtain the focus success rate.
[0148] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0149] Fig. 9 This is a schematic diagram of the structure of the camera focus test device provided in the embodiment of the present application. The test device can be integrated into the control terminal, or it can cooperate with the control terminal to complete the technical solution of the present application. Fig. 9 As shown, the testing device 90 includes: an illumination adjustment module 91 , a rotation control module 92 , a shooting control module 93 and a focus determination module 94 .
[0150] Among them, the light adjustment module 91 is used to obtain the test data submitted by the user, and control the lighting components of each test space to adjust the ambient light inside each test space. The rotation control module 92 is used to control the rotation of the test box, and rotate the surface of each test space with the test chart to the lens of the camera to be tested. The shooting control module 93 is used to control the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture. The focus determination module 94 is used to determine the focus success rate of the camera to be tested based on the test picture.
[0151] In some embodiments, the rotation control module 92 may be specifically used to:
[0152] Extract the target shooting times of the camera to be tested from the test data;
[0153] According to the number of target shots, determine the total number of rotations of the test box;
[0154] According to the total number of rotations of the test box, the test box is controlled to rotate according to a preset rotation angle and a preset rotation direction.
[0155] Wherein, each time the test box completes one rotation, a surface of a test chart arranged in a test space of the test box will rotate to under the lens of the camera to be tested.
[0156] In some embodiments, the rotation control module 92 may be specifically used to:
[0157] After the test box completes one rotation and the surface of the test chart disposed in the first test space of the test box rotates to under the lens of the camera to be tested, the test box is controlled to stop rotating;
[0158] Get the duration of the test box stopping rotation;
[0159] If the duration reaches the preset duration, the test box is continuously controlled to rotate, and the surface of the test chart disposed in the second test space of the test box is rotated to under the lens of the camera to be tested.
[0160] In some embodiments, the testing device 90 may further include a counting module for:
[0161] Get the cumulative number of rotations of the test box;
[0162] If the accumulated times reach the total number of rotations, the test box is controlled to stop rotating.
[0163] In some embodiments, the light adjustment module 91 may be specifically used for:
[0164] Obtaining brightness adjustment values and color temperature adjustment values corresponding to each test space from the test data;
[0165] The ambient light inside each test space is adjusted according to the brightness adjustment value and the color temperature adjustment value.
[0166] In some embodiments, the focus determination module 94 may be specifically used to:
[0167] Obtaining the contrast of the test image, and determining the focus success rate of the camera to be tested according to the contrast of the test image and a preset contrast; or
[0168] Identify the font size of the sample text in the test image to obtain the recognition result of the test image;
[0169] According to the recognition result, the focusing success rate of the camera to be tested is determined.
[0170] The test image contains at least two sample texts in different sizes and fonts.
[0171] In some embodiments, the testing device 90 further includes a distance adjustment module for:
[0172] Obtaining the relative distance between the lens of the camera to be tested and the surface on which the test chart is disposed under the lens;
[0173] According to the preset distance and the relative distance, the first telescopic device is controlled to telescope, and the first telescopic device is used to adjust the relative distance between the camera to be tested and the test chart.
[0174] In some embodiments, the testing device 90 further includes an alignment module for:
[0175] Obtaining the center point of the surface on which the test chart is set under the lens of the camera to be tested, and determining whether the camera to be tested is aligned with the center point;
[0176] If the camera to be tested is not aligned with the center point, the second telescopic device is controlled to be telescopic, and the second telescopic device is used to adjust the camera to be tested to be aligned with the center point.
[0177] The device provided in the embodiment of the present application can be used to execute the method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0178] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the rotation control module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0179] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0180] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard disk (SSD)), etc.
[0181] Fig.10 A schematic diagram of a camera focus test system framework provided in an embodiment of the present application, such as Fig.10 As shown, the test system 1000 includes a control terminal, a camera to be tested, a test box, and a rotating shaft arranged in the test box. The rotating shaft is driven by a driving device to drive the test box to rotate.
[0182] The test box is composed of more than two test spaces, each of which has at least one surface of the test box, each of which is provided with a test chart, and each of which is provided with a lighting assembly for adjusting ambient light. The control terminal is connected to the driving device, and the control terminal is connected to the camera to be tested.
[0183] The driving device is used to drive the test box to rotate according to the driving instruction of the control terminal;
[0184] The camera to be tested is used to shoot the test chart set on the surface of each test space according to the shooting instruction of the control terminal to obtain at least two test pictures, and the test pictures are used by the control terminal to determine the focus success rate of the camera to be tested.
[0185] Optionally, in some embodiments, the test system may further include a telescopic device, and the camera to be tested may be arranged on the telescopic device, wherein the height and horizontal position of the camera to be tested may be adjusted by the telescopic device.
[0186] Exemplarily, the telescopic device may be a telescopic rod. The camera to be tested may be a camera in a mobile phone or a video camera. A detachable fixing device may be provided at the end of the telescopic device to fix the camera to be tested.
[0187] Exemplarily, the detachable fixing device may be a mobile phone fixing clamp or a tablet clamp.
[0188] In some embodiments, the lighting assembly is used to adjust the ambient lighting of each test space according to the adjustment instruction of the control terminal, and the ambient lighting of each test space is different.
[0189] In some embodiments, a test chart is disposed on the surface of the test space, and the surface on which the test chart is disposed in the test space may be frosted translucent glass to fix the test chart.
[0190] Fig.11 This is a schematic diagram of the structure of the control terminal provided in the embodiment of the present application. Fig.11 As shown, the control terminal 1110 includes: at least one processor 1111, a memory 1112, a bus 1113 and a communication interface 1114.
[0191] The processor 1111 , the communication interface 1114 and the memory 1112 communicate with each other via the bus 1113 .
[0192] The communication interface 1114 is used to communicate with other devices. The communication interface 1114 includes a communication interface for data transmission and a display interface or operation interface for human-computer interaction.
[0193] The processor 1111 is used to execute the computer-executable instructions stored in the memory 1112, and can specifically execute the relevant steps in the method described in the above embodiment.
[0194] The processor 1111 may be a central processing unit, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the control terminal 1110 may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0195] The memory 1112 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0196] This embodiment further provides a readable storage medium, in which computer instructions are stored. When at least one processor of a control device executes the computer instructions, the control device executes the camera focus test methods provided by the various embodiments described above.
[0197] This embodiment also provides a program product, which includes computer instructions stored in a readable storage medium. At least one processor of the control device can read the computer instructions from the readable storage medium, and at least one processor executes the computer instructions so that the control device implements the camera focus test method provided by the various embodiments described above.
[0198] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes 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, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0199] It is to be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not intended to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A camera focus testing method, characterized in that: The invention is applied to a test system, wherein the test system comprises a camera to be tested and a test box, wherein the test box is composed of two or more test spaces, each of which has at least one surface of the test box, each of which is provided with a test chart, and each of which is provided with a lighting assembly for adjusting ambient light, wherein the lighting assembly inside each test space is different, and a rotating shaft is provided at the horizontal center line of the test box, wherein the rotating shaft is driven by a driving device to drive the test box to rotate. The method comprises: Acquire test data submitted by the user through the touch panel, and control the lighting components of each test space to adjust the ambient light inside each test space; Controlling the test box to rotate, and rotating the surface of each test space provided with the test chart to below the lens of the camera to be tested; Controlling the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture; The focusing success rate of the camera to be tested is determined according to the test picture.
2. The method according to claim 1, characterized in that The controlling the test box to rotate so that the surface of each test space provided with the test chart is respectively rotated to under the lens of the camera to be tested includes: Extracting the target shooting times of the camera to be tested from the test data; Determining the total number of rotations of the test box according to the number of target shots; According to the total number of rotations of the test box, the test box is controlled to rotate according to a preset rotation angle and a preset rotation direction. Each time the test box completes a rotation, a surface of a test chart provided in a test space of the test box will rotate under the lens of the camera to be tested.
3. The method according to claim 2, characterized in that The controlling the test box to rotate according to a preset rotation angle and a preset rotation direction includes: After the test box completes one rotation and the surface of the test chart disposed in the first test space of the test box rotates to under the lens of the camera to be tested, controlling the test box to stop rotating; Obtaining the duration of the test box stopping rotation; If the duration reaches a preset duration, the test box is continuously controlled to rotate, and the surface of the test chart disposed in the second test space of the test box is rotated to be under the lens of the camera to be tested.
4. The method according to claim 3, characterized in that: After continuing to control the test box to rotate and rotating the surface of the test chart in the second test space of the test box to under the lens of the camera to be tested, the method further includes: Obtaining the cumulative number of rotations of the test box; If the accumulated number of times reaches the total number of rotations, the test box is controlled to stop rotating.
5. The method according to claim 1, characterized in that The step of controlling the lighting assembly of each test space to adjust the ambient light inside each test space includes: Obtaining a brightness adjustment value and a color temperature adjustment value corresponding to each test space from the test data; The ambient lighting inside each test space is adjusted according to the brightness adjustment value and the color temperature adjustment value.
6. The method according to claim 1, characterized in that Determining the focusing success rate of the camera to be tested according to the test picture includes: Acquire the contrast of the test picture, and determine the focus success rate of the camera to be tested according to the contrast of the test picture and a preset contrast; or Recognize the font and font size of the sample text in the test image to obtain a recognition result of the test image, wherein the test image contains at least two sample texts of different font sizes and fonts; The focusing success rate of the camera to be tested is determined according to the recognition result.
7. The method according to claim 1, characterized in that Before the step of controlling the camera to be tested to shoot the test chart set on the surface of each test space to obtain the test picture, the step further includes: Obtaining the relative distance between the lens of the camera to be tested and the surface on which the test chart is disposed under the lens; According to the preset distance and the relative distance, the first telescopic device is controlled to be telescopic, and the first telescopic device is used to adjust the relative distance between the camera to be tested and the test chart.
8. The method according to claim 1, characterized in that Before the step of controlling the camera to be tested to shoot the test chart set on the surface of each test space to obtain the test picture, the step further includes: Obtaining the center point of a surface on which a test chart is arranged under the lens of the camera to be tested, and determining whether the camera to be tested is aligned with the center point; If the camera to be tested is not aligned with the center point, the second telescopic device is controlled to be telescopic, and the second telescopic device is used to adjust the camera to be tested to be aligned with the center point.
9. A camera focus testing device, characterized in that: The test device is integrated inside the control terminal, and the control terminal is arranged in the test system. The test system also includes a camera to be tested and a test box. The test box consists of more than two test spaces, each of which has at least one surface of the test box, and each surface is provided with a test chart. A lighting component for adjusting ambient light is arranged inside each test space, and the lighting components inside each test space are different. A rotating shaft is arranged at the horizontal center line of the test box, and the rotating shaft is driven by a driving device to drive the test box to rotate; The testing device comprises: A lighting adjustment module is used to obtain the test data submitted by the user through the touch panel and control the lighting components of each test space to adjust the ambient light inside each test space; A rotation control module is used to control the rotation of the test box to rotate the surface of each test space provided with the test chart to below the lens of the camera to be tested; A shooting control module, used to control the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture; A focus determination module is used to determine the focus success rate of the camera to be tested according to the test image.
10. A camera focus test system, characterized in that: The device comprises: a control terminal, a camera to be tested, a test box and a rotating shaft arranged on the test box, wherein the rotating shaft is driven by a driving device to drive the test box to rotate, the test box is composed of more than two test spaces, each of which has at least one surface of the test box, each of which is provided with a test chart, each of which is provided with a lighting component for adjusting ambient light, and each of which has a different lighting component inside. The control terminal is connected to the driving device, and the control terminal is connected to the camera to be tested; A rotating shaft is arranged at the horizontal center line of the test box, and the driving device is used to drive the test box to rotate according to the driving instruction of the control terminal; The camera to be tested is used to shoot a test chart set on the surface of each test space according to the shooting instruction of the control terminal to obtain at least two test pictures, and the at least two test pictures are used by the control terminal to determine the focus success rate of the camera to be tested; The control terminal is used to obtain test data submitted by the user through the touch panel, control the lighting components of each test space to adjust the ambient light inside each test space; control the rotation of the test box to rotate the surface of each test space with the test chart set to below the lens of the camera to be tested; control the camera to be tested to shoot the test chart set on the surface of each test space to obtain a test picture; and determine the focus success rate of the camera to be tested based on the test picture.
11. The test system according to claim 10, characterized in that: Also includes: A telescopic device, wherein the camera to be tested is arranged on the telescopic device.
12. The test system according to claim 10, characterized in that: The lighting assembly is used to adjust the ambient lighting of each test space according to the adjustment instruction of the control terminal, and the ambient lighting of each test space is different.
13. The test system according to claim 10, characterized in that: The surface of the test chart in the test space is frosted translucent glass.
14. A control terminal, characterized in that: comprising a memory and at least one processor; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 8.
15. A readable storage medium, characterized in that: The readable storage medium stores computer instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
16. A program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
High definition camera overall characteristic detecting device and method
CN104301716A
Camera focusing detection method and device
CN106101561A
Focusing testing device of camera and focusing testing method thereof
CN107271144A
Definition testing method and device, storage medium and electronic equipment
CN108225741A
Device and method for focusing test of intelligent terminal
CN109451301A
