Camera definition test method and device, test graphic card and test system

By obtaining the image to be parsed by the test image card taken by the camera, and analyzing it using positioning marks and focus marks, the problem of low camera clarity testing efficiency in the prior art is solved, and more efficient and accurate test results are achieved.

CN119728952APending Publication Date: 2025-03-28GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311282783.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the camera clarity testing efficiency is low, mainly because the ISO12233 image card structure is complex, and all test icons in the captured image need to be parsed.

Method used

By obtaining the image to be parsed by the camera, using positioning marks and focus marks to analyze the equipment fixed position and focus state, avoiding the analysis of all test icons.

Benefits of technology

Improves the accuracy and testing efficiency of test results, and enables the camera that fails to focus without parsing all test icons in the test image card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728952A_ABST
    Figure CN119728952A_ABST
Patent Text Reader

Abstract

The invention discloses a camera definition test method and device, a test graphic card and a test system. The invention belongs to the technical field of camera detection. The method comprises the steps that a to-be-analyzed image obtained by shooting a test graphic card through a camera is acquired, and the test graphic card comprises a positioning mark and a focusing mark; determining whether the fixed position of the to-be-detected equipment is correct or not according to the positioning mark in the to-be-analyzed image; if the to-be-analyzed image is correct, analyzing a focusing mark in the to-be-analyzed image; and if the focusing mark in the to-be-analyzed image is fuzzy, determining that the focusing of the camera fails, and ending the process. By adopting the technical scheme, the existing test graphic card can be simplified, the focusing capability of the camera is detected based on the focusing mark in the test graphic card, and the definition test process is exited under the condition that the focusing failure is detected, so that the efficiency and the reliability of testing the camera can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of camera detection technology, and specifically relates to a camera clarity testing method, device, test chart and testing system. Background Art

[0002] With the development of society, more and more fields such as driving, monitoring and camera need to use cameras to collect images, and the requirements for camera clarity in various fields are also increasing. In order to ensure user experience, manufacturers need to test the clarity of cameras before they leave the factory.

[0003] In the related art, the method of testing the camera to be tested is mainly to use the ISO12233 chart to perform clarity test. The tester needs to fix the ISO12233 chart, manually move the position of the camera to be tested, aim the shooting screen of the camera to be tested at the chart, and observe the maximum clarity position of multiple groups of test lines of the chart in the captured image, and determine the clarity of the camera to be tested based on the correspondence between the different clarity positions of the test lines and the clarity scale.

[0004] Since the ISO12233 chart used in the prior art contains a large number of test icons and has a complex structure, all test icons in the captured ISO12233 chart image need to be parsed when determining the clarity of the camera. Therefore, when using the prior art to test the clarity of the camera, there is a problem of low test efficiency. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a camera clarity test method, device, test chart and test system, which can solve the problem of low efficiency of camera clarity test in related technologies. By obtaining the image to be analyzed obtained by taking a test chart with a camera, and determining whether the fixed position of the device to be tested is correct based on the positioning mark in the image to be analyzed, the accuracy of the test result can be improved. By analyzing the focus mark in the image to be analyzed and ending the test process when the focus mark is blurred, the camera that fails to focus can be determined without analyzing all the test icons in the test chart, thereby improving the test efficiency.

[0006] In a first aspect, an embodiment of the present application provides a camera clarity testing method, wherein the camera is configured on a device to be tested, and the method comprises:

[0007] Acquire an image to be analyzed obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focus mark;

[0008] Determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed;

[0009] If it is correct, then the focus mark in the image to be analyzed is analyzed;

[0010] If the focus mark in the image to be analyzed is blurred, it is determined that the camera has failed to focus, and the process ends.

[0011] Furthermore, the test chart also includes a clarity standard card;

[0012] After identifying whether the focus mark in the image to be analyzed is clear, the method further includes:

[0013] If the focus mark in the image to be analyzed is clear, receiving a reading value of a clarity mark card in the image to be analyzed;

[0014] The clarity of the camera is determined according to the reading value of the clarity mark.

[0015] Furthermore, the test image card also includes a test image block label card;

[0016] After identifying whether the focus mark in the image to be analyzed is clear, the method further includes:

[0017] If the focus mark in the image to be analyzed is clear, then analyze the test block mark in the image to be analyzed;

[0018] The definition of the camera is determined according to the analysis result of the test block label.

[0019] Furthermore, the method further comprises:

[0020] Dividing the test chart into a central area and an edge area;

[0021] A first number of clarity labels are set for the central area, and a second number of clarity labels are set for the edge area.

[0022] Furthermore, the card reading of the clarity mark card in the central area is greater than the card reading of the clarity mark card in the edge area.

[0023] Furthermore, the method further comprises:

[0024] Dividing the test chart into a central area and an edge area;

[0025] A third number of test block labels are set for the central area, and a second number of test block labels are set for the edge area.

[0026] In a second aspect, an embodiment of the present application provides a camera clarity testing device, wherein the camera is configured on a device to be tested, and the device comprises:

[0027] The to-be-analyzed image acquisition module is used to acquire the to-be-analyzed image obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focusing mark;

[0028] A position recognition module, used to determine whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed;

[0029] A parsing module, configured to parse the focus mark in the image to be parsed if the position recognition module recognizes that the fixed position is correct;

[0030] The focus judgment module is used to determine that the camera fails to focus if the focus mark in the image to be analyzed is blurred, and end the process.

[0031] In a third aspect, an embodiment of the present application provides a test chart, wherein the test chart comprises:

[0032] Positioning and focus marks;

[0033] The positioning mark is used to determine whether the fixed position of the device to be detected is correct in the image to be analyzed taken by the camera of the device to be detected;

[0034] The focus mark is used to determine that the camera fails to focus and end the process when the focus mark in the image to be analyzed is blurred.

[0035] Furthermore, the test chart also includes a clarity standard card;

[0036] The definition card is used to receive a reading value of the definition card in the image to be analyzed, so as to determine the definition of the camera according to the reading value of the definition card;

[0037] The test image card also includes a test image block label card;

[0038] The test block card is used to analyze the image to be analyzed to determine the clarity of the camera.

[0039] In a fourth aspect, an embodiment of the present application provides a test system, the test system comprising:

[0040] Test chart;

[0041] Equipment to be tested;

[0042] The device to be tested is equipped with a camera; the camera is used to photograph the test image card to obtain an image to be analyzed;

[0043] The analysis device is used to implement the camera clarity test method as described in the first aspect when executed.

[0044] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0045] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0046] In a seventh aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0047] In an embodiment of the present application, an image to be analyzed obtained by photographing a test card with a camera is obtained, wherein the test card includes a positioning mark and a focus mark; according to the positioning mark in the image to be analyzed, whether the fixed position of the device to be detected is correct is determined; if correct, the focus mark in the image to be analyzed is analyzed; if the focus mark in the image to be analyzed is blurred, it is determined that the camera has failed to focus, and the process is terminated. The above-mentioned camera clarity test method can solve the problem of low efficiency of camera clarity testing in related technologies. By obtaining the image to be analyzed obtained by photographing a test card with a camera, and determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed, the accuracy of the test results can be improved; by parsing the focus mark in the image to be analyzed, and terminating the test process when the focus mark is blurred, the camera that has failed to focus can be determined without parsing all the test icons in the test card, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a flowchart of a camera clarity testing method provided in an embodiment of the present application;

[0049] Figure 2 It is a schematic diagram of the test chart provided in this application;

[0050] Figure 3 It is a flowchart of a camera clarity testing method provided in an embodiment of the present application;

[0051] Figure 4 It is a schematic diagram of the clarity label provided in this application;

[0052] Figure 5 It is a flowchart of a camera clarity testing method provided in an embodiment of the present application;

[0053] Figure 6 It is a structural schematic diagram of a camera clarity testing device provided in an embodiment of the present application;

[0054] Figure 7 It is a structural schematic diagram of a camera clarity test chart provided in an embodiment of the present application;

[0055] Figure 8 This is a schematic diagram of the camera clarity test chart provided by this application;

[0056] Fig. 9 It is a structural schematic diagram of a camera clarity testing system provided in an embodiment of the present application;

[0057] Fig.10 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0060] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0061] The camera clarity testing method, device, test chart and test system provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings through specific embodiments and their application scenarios.

[0062] Figure 1 1 is a flow chart of a camera clarity test method provided in an embodiment of the present application. The camera is configured on a device to be tested. Figure 1 As shown, the specific steps include:

[0063] S101, obtaining an image to be analyzed obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focus mark;

[0064] First, the use scenario of this solution can be a scenario where a picture card is used to perform a clarity test on a camera.

[0065] Based on the above usage scenarios, it can be understood that the executor of this application can be an intelligent terminal with image recognition, image processing and data processing capabilities, such as: mobile phones, tablet computers and desktop computers, etc., without too much limitation here.

[0066] The device to be tested may be a device to which the camera to be tested belongs. For example, a smart watch, a smart phone, and a camera. The image card may be a card structure having a layer of a certain shape and a base layer used as a foil for the layer. The image card may be obtained by subjecting a multi-layer photo-painted black film (usually a silver salt film or photosensitive film) to exposure imaging, development, fixing, washing, air drying, and inspection die-cutting processes, or may be obtained by coating, pasting, or printing a layer of a certain shape on a base layer.

[0067] The picture card in this solution can be a layer with a positioning function icon, a focusing function icon, and a clarity test function icon, which can be stored in the memory of the smart terminal in the form of an electronic picture and printed out when needed. The test picture card can be a picture card for testing the clarity of the camera. The image to be analyzed can be an image obtained by shooting the test picture card with the camera to be tested.

[0068] The positioning mark can be a mark used to mark the aspect ratio of the test chart image, such as a positioning triangle and a positioning scale, etc.; it can also be a mark used to mark the maximum range of the test chart image captured by the camera, such as a marking column outside the test chart. The focus mark can be a mark used to quickly test the focusing ability of the camera, such as a wheel chart, etc.

[0069] Figure 2 This is a schematic diagram of the test chart provided by this application. Figure 2As shown in the figure, the black frame around the test chart is a marking column, which is used to frame the image range of the test chart. The white triangle and the black triangle are positioning triangles. When shooting the test chart with the camera to be tested, the edge position of the image should be ensured to be at the junction of the white triangle and the black triangle, and no black frame should appear in the image. The short black line with a ratio around the black triangle (i.e., the short line indicated by the arrow numbered 1 in the figure) is the image aspect ratio positioning line. According to the image aspect ratio positioning line, the shooting image range of the camera to be tested can be determined. The selection of the shooting image aspect ratio is related to the frame ratio of the camera to be tested. When shooting the test chart, the effective height of the test mark in the test chart should be exactly full of the shooting screen, and according to the frame ratio of the camera to be tested, the width of the screen (for example: 1:1, 4:3, 3:2 or 16:9) should be selected, and then the height of the inner side of the thick frame of the horizontal long side, that is, the height of the junction line of the white triangle and the black triangle in the edge area of ​​the pattern. The positioning mark in the test chart includes: a marking column, a positioning triangle, and an image aspect ratio positioning line. The circular wheel indicated by the arrow numbered 4 in the figure is a focus mark. The focus mark is used to quickly test the focusing ability of the camera to be tested. When testing the focusing ability of the camera, the tester can use the camera to take a picture of the test chart, and by adjusting the focal length of the camera, observe the clarity of the captured picture to obtain a clearer test chart picture, and determine the focusing ability of the current camera according to the clarity of the wheel in the test chart picture. As shown in the figure, there are four focus marks, and they are set at the boundary of the area where the aspect ratio of the test chart image is 1:1, which can improve the reliability of the camera focusing ability test. The icon of the combination of short lines and numbers indicated by the arrow numbered 2 in the figure is a clarity mark. The clarity mark includes horizontal short lines, vertical short lines, and clarity levels corresponding to each group of short lines. The clarity scale of the current camera can be determined according to the clarity between the black short line boundary and the white background of the chart in the captured clear test chart image. The black square icon pointed by the arrow numbered 3 in the figure is a test block card. The test block card is used for testing the clarity of a camera so that the test software can automatically calculate the clarity data of the camera based on the clear image taken by the camera to be tested.

[0070] In one embodiment, when performing a clarity test on a camera, a clear image of a test card can be first captured by the camera, and then the clarity of the camera can be determined based on the image. A control instruction can be issued to the camera to be tested to control the camera to capture the test card, and after the camera capture is completed, the camera can be controlled to upload the captured image to obtain the image to be analyzed. A tester can also use the camera to be tested to capture the test card, and receive the image uploaded by the tester as the image to be analyzed. The test card includes a positioning mark and a focus mark.

[0071] In one embodiment, before parsing the image to be parsed, the image to be parsed may be preprocessed to obtain the marking information in the image to be parsed. The preprocessing may include: converting the image format, performing noise reduction on the image, scaling the image to a preset size, increasing the contrast and brightness of the image, and performing binarization on the image.

[0072] S102, determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed;

[0073] The fixed position of the device to be detected may be the relative position between the device to be detected and the test chart. Since the camera to be detected is arranged on the device to be detected, the fixed position of the device to be detected may also be the shooting position where the camera shoots the test chart.

[0074] In one embodiment, it is possible to determine whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed. According to whether the image to be analyzed includes a positioning column, it is possible to determine whether the image range of the camera to be detected is correct. If the image to be analyzed does not include a positioning column frame and the image frame is the junction of a black and white triangle, it is determined that the image range of the camera to be detected is correct, and then according to the positional relationship between the camera and the device to be detected, it is determined whether the distance between the device to be detected and the test chart is correct; according to the image aspect ratio positioning line and aspect ratio data in the image to be analyzed, it is possible to determine whether the shooting angle of the camera to be detected is correct and whether the center of the field of view of the camera to be detected is at the center of the test chart. If the boundary of the image to be analyzed is aligned with the boundary of the positioning column and the image aspect ratio positioning line, and the aspect ratio data corresponding to the image aspect ratio positioning lines on the left and right sides of the image are the same, it is determined that the shooting angle of the camera to be detected is correct and the center of the field of view of the camera to be detected is at the center of the test chart, and then according to the positional relationship between the camera and the device to be detected, it is determined whether the relative position of the device to be detected and the test chart is correct. The positioning mark information in the image to be analyzed can be obtained through image recognition technology or by receiving information uploaded by the tester. The positioning mark information includes: whether the image to be analyzed contains positioning columns, whether the image boundary is aligned with the image aspect ratio positioning line, and the aspect ratio data corresponding to the image aspect ratio positioning line.

[0075] S103, if correct, analyzing the focus mark in the image to be analyzed;

[0076] In one embodiment, if the fixed position of the device to be detected is correct, the focus mark in the image to be analyzed can be determined by image recognition technology, and the focus mark in the image to be analyzed can be analyzed using an image processing algorithm to determine whether the focus mark in the image to be analyzed is clear.

[0077] S104: If the focus mark in the image to be analyzed is blurred, it is determined that the camera has failed to focus, and the process ends.

[0078] The blurring of the focus mark may be a phenomenon in which a black circle in the focus mark and the white background of the test chart cannot be distinguished.

[0079] In one embodiment, if the focus mark in the image to be analyzed is blurred, that is, the focus mark in the test image card captured by the camera to be detected after adjusting the focal length is still unclear, it means that the clarity of the camera to be detected is extremely poor, then it is determined that the camera has failed to focus, the process is terminated, and the camera to be detected is no longer detected.

[0080] The technical solution provided by the embodiment of the present application is to obtain the image to be analyzed obtained by the camera shooting the test card, wherein the test card includes a positioning mark and a focus mark; according to the positioning mark in the image to be analyzed, determine whether the fixed position of the device to be detected is correct; if correct, analyze the focus mark in the image to be analyzed; if the focus mark in the image to be analyzed is blurred, determine that the camera has failed to focus, and end the process. The above-mentioned camera clarity test method can solve the problem of low efficiency of camera clarity testing in related technologies. By obtaining the image to be analyzed obtained by the camera shooting the test card, and determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed, the accuracy of the test results can be improved; by analyzing the focus mark in the image to be analyzed and ending the test process when the focus mark is blurred, the camera that has failed to focus can be determined without analyzing all the test icons in the test card, thereby improving the test efficiency.

[0081] Figure 3 is a flow chart of the camera definition test method provided in the embodiment of the present application. The test chart also includes a definition standard card. Figure 3 As shown, the specific steps include:

[0082] S301, if the focus mark in the image to be analyzed is clear, receiving a reading value of a clarity mark card in the image to be analyzed;

[0083] The clarity mark card may be a mark having short line combinations for identifying different clarity levels and clarity level data corresponding to each group of short line combinations. The reading value of the clarity mark card may be the clarity level data manually read by the tester according to the resolution degree of the short line combination of the clarity mark card after acquiring the image to be analyzed.

[0084] Figure 4 This is a schematic diagram of the clarity label provided by this application. Figure 4 As shown, the clarity card has 22 groups of short line combinations, 3 to 24 in total. Each group of short line combinations is a combination of three horizontal lines and three vertical lines, and short line combinations of different clarity levels have different short line spacings and short line widths. The selection of the short line combination in the clarity card can be determined according to the clarity requirement of the camera to be tested or the resolution requirement of a certain point in the image to be analyzed. For example: when the clarity requirement of the camera to be tested is low, the clarity card may only have 14 groups of short line combinations, 3 to 16 in total. The number corresponding to each group of short line combinations in the clarity card is the clarity level data of the camera to be tested. The larger the clarity level data, the higher the clarity of the camera to be tested.

[0085] In one embodiment, if the focus mark in the image to be analyzed is clear, a request for obtaining the reading of the clarity mark card can be sent to the device terminal of the tester, and the reading value of the clarity mark card in the image to be analyzed by the tester can be received. The tester can determine the corresponding clarity by observing whether there are gaps between multiple short lines in each group of short line combinations in the image to be analyzed.

[0086] S302, determining the clarity of the camera according to the reading value of the clarity label.

[0087] In one embodiment, the clarity level of the camera can be determined according to the reading value of the clarity mark, and the clarity of the camera can be determined according to the corresponding relationship between the clarity level and the clarity value. The corresponding relationship between the clarity level and the clarity value can be the specific clarity value corresponding to each clarity level; it can also be the conversion relationship between the clarity level and the clarity value, for example: if the conversion relationship is 100 times, then when the clarity level of the camera is 12, its clarity value is 1200.

[0088] In a feasible embodiment, optionally, the method further includes:

[0089] Dividing the test chart into a central area and an edge area;

[0090] A first number of clarity labels are set for the central area, and a second number of clarity labels are set for the edge area.

[0091] The central area may be an area of ​​the test chart image where the aspect ratio is 1:1. The edge area may be an area of ​​the test chart image other than the central area.

[0092] In one embodiment, the test chart can be divided into a central area and an edge area according to the image range and image aspect ratio of the test chart, and a first number of clarity markers are set for the central area, and a second number of clarity markers are set for the edge area. In order to improve the reliability of the clarity detection of the center of the camera field of view, the first number can be greater than the second number.

[0093] In the embodiment of the present application, by dividing the test chart into a central area and an edge area and setting different numbers of clarity markers for different areas, the test chart can be simplified while ensuring the reliability of clarity detection results, thereby improving the efficiency of camera clarity testing.

[0094] In a feasible embodiment, optionally, the card reading of the clarity card in the central area is greater than the card reading of the clarity card in the edge area.

[0095] The card reading of the clarity card may be the maximum clarity level number corresponding to the short line combination set in the clarity card. The larger the maximum clarity level number, the more short line combinations there are in the clarity card.

[0096] In one embodiment, since the clarity requirements for different viewing areas of the camera are different, and the clarity requirement for the center of the viewing area is higher than the clarity requirement for the edge of the viewing area, the card reading of the clarity card set for the center area can be greater than the card reading of the clarity card set for the edge area, that is, the number of short line combinations of the clarity card set in the center area can be less than the number of short line combinations set for the edge area. For example: the short line combination of the clarity card in the center area is set to 3 to 24, totaling 22 groups, and the short line combination of the clarity card at the four corners of the edge area is set to 3 to 16, totaling 14 groups. The specific setting method can be determined according to the clarity requirements of the camera to be tested, and no excessive restrictions are made here.

[0097] In the embodiment of the present application, by setting the card reading of the clarity card in the central area to be greater than the card reading of the clarity card in the edge area, the reliability of the camera clarity detection can be improved.

[0098] The technical solution provided in the embodiment of the present application can improve the reliability of the camera clarity test by receiving the reading value of the clarity mark card in the image to be analyzed and determining the clarity of the camera based on the reading value of the clarity mark card, and can improve the efficiency of the camera test by setting the clarity mark card to the form of a short line combination.

[0099] Figure 5 is a flow chart of the camera definition test method provided in the embodiment of the present application. The test chart also includes a test chart block label card. Figure 5 As shown, the specific steps include:

[0100] S501, if the focus mark in the image to be analyzed is clear, then analyze the test block mark in the image to be analyzed;

[0101] The test block label may be a label that can directly obtain clarity through software.

[0102] In one embodiment, if the focus mark in the image to be analyzed is clear, the image to be analyzed can be transmitted to the image analysis software, and the image analysis software can be used to analyze the test block mark in the image to be analyzed. The image analysis software can directly calculate the clarity of the image to be analyzed using the SFR algorithm. The SFR (Spatial Frequency Response) refers to the amplitude response output by a system relative to the input spatial frequency. For the camera system, SFR is similar to the MTF (modulation transfer function) of the traditional optical system, which can intuitively determine the resolution capability of the system.

[0103] S502: Determine the definition of the camera according to the analysis result of the test image block label.

[0104] In one embodiment, the clarity of the image to be analyzed can be determined according to the analysis result of the test image block label, and then the clarity of the camera can be determined according to the clarity of the image to be analyzed.

[0105] In a feasible embodiment, optionally, the method further includes:

[0106] Dividing the test chart into a central area and an edge area;

[0107] A third number of test block labels are set for the central area, and a second number of test block labels are set for the edge area.

[0108] In one embodiment, the test chart can be divided into a central area and an edge area according to the image range and image aspect ratio of the test chart, and a third number of test block markers are set for the central area, and a second number of test block markers are set for the edge area. Figure 2 As shown, since a test block mark card in this solution is set at the center of the test card, the clarity reflected by the image to be detected has high reliability. Therefore, in order to simplify the test card, the third number can be smaller than the first number.

[0109] The technical solution provided in the embodiment of the present application analyzes the test block label in the image to be analyzed and determines the clarity of the camera based on the analysis result of the test block label. This can improve the reliability and efficiency of the camera test while simplifying the test block label.

[0110] Figure 6 Schematic diagram of the structure of the camera clarity test device provided in the embodiment of the present application. The camera is configured on the device to be tested. Figure 6 As shown, specifically including the following:

[0111] The to-be-analyzed image acquisition module 601 is used to acquire the to-be-analyzed image obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focusing mark;

[0112] A position identification module 602 is used to determine whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed;

[0113] The parsing module 603 is used to parse the focus mark in the image to be parsed if the position recognition module recognizes that the fixed position is correct;

[0114] The focus judgment module 604 is used to determine that the camera fails to focus if the focus mark in the image to be analyzed is blurred, and end the process.

[0115] Furthermore, the test chart also includes a clarity standard card;

[0116] The device also includes:

[0117] A clarity mark card reading receiving module is used to receive a reading value of a clarity mark card in the image to be analyzed when the focus mark in the image to be analyzed is clear;

[0118] The first definition determination module is used to determine the definition of the camera according to the reading value of the definition label.

[0119] Furthermore, the test image card also includes a test image block label card;

[0120] The device also includes:

[0121] A test block card parsing module is used to parse the test block card in the image to be parsed when the focus mark in the image to be parsed is clear;

[0122] The second definition determination module is used to determine the definition of the camera according to the analysis result of the test block label card.

[0123] Furthermore, the device also includes:

[0124] A chart area division module, used for dividing the test chart into a central area and an edge area;

[0125] The definition label setting module is used to set a first number of definition labels for the central area and a second number of definition labels for the edge area.

[0126] Furthermore, the card reading of the clarity mark card in the central area is greater than the card reading of the clarity mark card in the edge area.

[0127] Furthermore, the device also includes:

[0128] A chart area division module, used for dividing the test chart into a central area and an edge area;

[0129] The test tile label setting module is used to set a third number of test tile labels for the central area and a second number of test tile labels for the edge area.

[0130] In an embodiment of the present application, the image acquisition module to be analyzed is used to obtain the image to be analyzed obtained by the camera shooting the test chart, wherein the test chart includes a positioning mark and a focusing mark; the position recognition module is used to determine whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed; the analysis module is used to analyze the focusing mark in the image to be analyzed if the position recognition module identifies that the fixed position is correct; the focus judgment module is used to determine that the camera fails to focus and end the process if the focusing mark in the image to be analyzed is blurred. The above-mentioned camera clarity test device can solve the problem of low efficiency of camera clarity test in the related technology. By obtaining the image to be analyzed obtained by the camera shooting the test chart, and determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed, the accuracy of the test result can be improved; by analyzing the focusing mark in the image to be analyzed and ending the test process when the focusing mark is blurred, the camera that fails to focus can be determined without analyzing all the test icons in the test chart, thereby improving the test efficiency.

[0131] The camera clarity test device in the embodiment of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0132] The camera clarity test device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0133] The camera clarity testing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0134] Figure 7701 is a schematic diagram of the structure of a camera definition test chart provided in an embodiment of the present application. The test chart includes a positioning mark 701, a focus mark 702, a definition mark card 703, and a test block mark card 704. Figure 7 As shown, specifically including the following:

[0135] The positioning mark 701 is used to determine whether the fixed position of the device to be detected is correct in the image to be analyzed taken by the camera of the device to be detected;

[0136] The focus mark 702 is used to determine that the camera fails to focus and end the process when the focus mark in the image to be analyzed is blurred;

[0137] The definition card 703 is used to receive a reading value of the definition card 703 in the image to be analyzed, so as to determine the definition of the camera according to the reading value of the definition card;

[0138] The test image block label 704 is used to analyze the image to be analyzed to determine the clarity of the camera.

[0139] In one embodiment, the test chart may include a positioning mark 701 and a focusing mark 702. The positioning mark 701 is used to determine whether the fixed position of the device to be tested is correct in the image to be analyzed taken by the camera of the device to be tested, and the focusing mark 702 is used to determine that the camera fails to focus when the focusing mark in the image to be analyzed is blurred, and end the process.

[0140] In one embodiment, the test chart further includes a clarity mark card 703 and a test block mark card 704. The clarity mark card 703 is used to receive a reading value of the clarity mark card in the image to be analyzed, so as to determine the clarity of the camera according to the reading value of the clarity mark card. The test block mark card 704 is used to analyze the image to be analyzed, so as to determine the clarity of the camera.

[0141] Figure 8 This is a schematic diagram of the camera clarity test chart provided by this application. Figure 8As shown in the figure, the black frame around the test chart is a marking column, which is used to frame the image range of the test chart. The white triangle and the black triangle are positioning triangles. When shooting the test chart with the camera to be tested, the edge position of the image should be ensured to be at the junction of the white triangle and the black triangle, and no black frame should appear in the image. The short black line with a ratio around the black triangle (i.e., the short line indicated by the arrow numbered 1 in the figure) is the image aspect ratio positioning line. According to the image aspect ratio positioning line, the shooting image range of the camera to be tested can be determined. The selection of the shooting image aspect ratio is related to the frame ratio of the camera to be tested. When shooting the test chart, the effective height of the test mark in the test chart should be exactly full of the shooting screen, and according to the frame ratio of the camera to be tested, the width of the screen (for example: 1:1, 4:3, 3:2 or 16:9) should be selected, and then the height of the inner side of the thick frame of the horizontal long side, that is, the height of the junction line of the white triangle and the black triangle in the edge area of ​​the pattern. The positioning mark in the test chart includes: a marking column, a positioning triangle, and an image aspect ratio positioning line. The circular wheel indicated by the arrow numbered 4 in the figure is a focus mark. The focus mark is used to quickly test the focusing ability of the camera to be tested. When testing the focusing ability of the camera, the tester can use the camera to take a picture of the test chart, and by adjusting the focal length of the camera, observe the clarity of the captured picture to obtain a clearer test chart picture, and determine the focusing ability of the current camera according to the clarity of the wheel in the test chart picture. As shown in the figure, there are four focus marks, and they are set at the boundary of the area where the aspect ratio of the test chart image is 1:1, which can improve the reliability of the camera focusing ability test. The icon of the combination of short lines and numbers indicated by the arrow numbered 2 in the figure is a clarity mark. The clarity mark includes horizontal short lines, vertical short lines, and clarity levels corresponding to each group of short lines. The clarity scale of the current camera can be determined according to the clarity between the black short line boundary and the white background of the chart in the captured clear test chart image. The black square icon pointed by the arrow numbered 3 in the figure is a test block card. The test block card is used for testing the clarity of a camera so that the test software can automatically calculate the clarity data of the camera based on the clear image taken by the camera to be tested.

[0142] The technical solution provided in the embodiment of the present application can determine whether the fixed position of the device to be tested is correct by setting a positioning mark in the test card, and then determine whether the relative position of the camera and the test card is correct, thereby improving the accuracy of the camera test results; by setting a focus mark in the test card and ending the test process when the focus mark is blurred, the camera that fails to focus can be identified in time, thereby improving the test efficiency.

[0143] Fig. 9 Schematic diagram of the structure of the camera clarity test system provided in the embodiment of the present application. Fig. 9 As shown, specifically including the following:

[0144] Test chart 901;

[0145] Device to be tested 902;

[0146] The device to be tested 902 is equipped with a camera 903; the camera 903 is used to photograph the test chart 901 to obtain an image to be analyzed;

[0147] The analysis device 904 is used to implement the method of camera clarity testing during execution.

[0148] In one embodiment, the test card 901 is used to provide a shooting card and an icon for clarity detection for the camera 903. The device to be detected 902 may be a device equipped with a camera 903, and an image is acquired through the camera 903. The device to be detected 902 is connected to the camera 903, and the movement of the camera 903 can be driven by the movement of the device. The camera 903 is used to shoot the test card 901 to obtain an image to be analyzed. The analysis device 904 is used to perform a method for camera clarity testing according to the image to be analyzed.

[0149] The technical solution provided in the embodiment of the present application uses a camera to shoot a test image card to obtain an image to be analyzed, and uses a analyzing device to perform a camera clarity test based on the image to be analyzed, thereby improving the efficiency and reliability of camera clarity detection.

[0150] Fig.10 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of the above-mentioned camera clarity test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0151] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0152] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned camera clarity test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0153] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0154] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned camera clarity test method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0155] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0156] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0158] 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.

[0159] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A camera clarity testing method, characterized in that: The camera is configured on the device to be detected, and the method includes: Acquire an image to be analyzed obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focus mark; Determining whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed; If it is correct, then the focus mark in the image to be analyzed is analyzed; If the focus mark in the image to be analyzed is blurred, it is determined that the camera has failed to focus, and the process ends.

2. The method according to claim 1, characterized in that The test chart also includes a clarity standard card; After identifying whether the focus mark in the image to be analyzed is clear, the method further includes: If the focus mark in the image to be analyzed is clear, receiving a reading value of a clarity mark card in the image to be analyzed; The clarity of the camera is determined according to the reading value of the clarity mark.

3. The method according to claim 1, characterized in that The test image card also includes a test image block label card; After identifying whether the focus mark in the image to be analyzed is clear, the method further includes: If the focus mark in the image to be analyzed is clear, then analyzing the test block mark in the image to be analyzed; The definition of the camera is determined according to the analysis result of the test block label.

4. The method according to claim 2, characterized in that: The method further comprises: Dividing the test chart into a central area and an edge area; A first number of clarity labels are set for the central area, and a second number of clarity labels are set for the edge area.

5. The method according to claim 4, characterized in that The card reading of the clarity mark card in the central area is greater than the card reading of the clarity mark card in the edge area.

6. The method according to claim 3, characterized in that: The method further comprises: Dividing the test chart into a central area and an edge area; A third number of test block labels are set for the central area, and a second number of test block labels are set for the edge area.

7. A camera clarity testing device, characterized in that: The camera is configured on the device to be detected, and the device comprises: The to-be-analyzed image acquisition module is used to acquire the to-be-analyzed image obtained by photographing a test chart with a camera, wherein the test chart includes a positioning mark and a focusing mark; A position recognition module, used to determine whether the fixed position of the device to be detected is correct according to the positioning mark in the image to be analyzed; A parsing module, configured to parse the focus mark in the image to be parsed if the position recognition module recognizes that the fixed position is correct; The focus judgment module is used to determine that the camera fails to focus if the focus mark in the image to be analyzed is blurred, and end the process.

8. A test chart, characterized in that: The test chart includes a positioning mark and a focus mark; The positioning mark is used to determine whether the fixed position of the device to be detected is correct in the image to be analyzed taken by the camera of the device to be detected; The focus mark is used to determine that the camera fails to focus and end the process when the focus mark in the image to be analyzed is blurred.

9. The test chart according to claim 8, characterized in that: The test chart also includes a clarity standard card; The definition card is used to receive a reading value of the definition card in the image to be analyzed, so as to determine the definition of the camera according to the reading value of the definition card; The test image card also includes a test image block label card; The test block card is used to analyze the image to be analyzed to determine the clarity of the camera.

10. A testing system, characterized in that: The test system comprises: The test chart according to any one of claims 8 to 9; Equipment to be tested; The device to be tested is equipped with a camera; the camera is used to photograph the test image card to obtain an image to be analyzed; An analysis device, used for implementing the camera clarity test method as described in any one of claims 1-7 when executed.

Citation Information

Patent Citations

  • Digital camera image quality comprehensive detection device and method

    CN103731665A

  • Automatic exposure method and camera module detection method

    CN103929598A

  • Definition testing method and device, storage medium and electronic equipment

    CN108225741A

  • Focusing test method based on image definition evaluation algorithm and terminal equipment

    CN110392254A

  • Lens focusing state determination method and device, equipment and storage medium

    CN113452991A