Test chart detection method, device, equipment and storage medium

文档序号:1925577 发布日期:2021-12-03 浏览:2次 中文

阅读说明:本技术 测试图卡检测方法、装置、设备及存储介质 (Test chart detection method, device, equipment and storage medium ) 是由 闫淑娟 赵永亮 王娇娇 于 2021-08-16 设计创作,主要内容包括:本发明公开了一种测试图卡检测方法、装置、设备及存储介质,应用于摄像头模组测试领域,获取当前测试图卡的捕捉图像;确定捕捉图像中第一目标区域的尺寸信息,并根据尺寸信息判定当前测试图卡是否与针对摄像头模组的当前测试项匹配;确定捕捉图像中第二目标区域的倾斜信息,并根据倾斜信息判定当前测试图卡的实际摆放角度是否满足针对当前测试项预设的角度条件。通过本发明提高了对摄像头模组的测试准确性。(The invention discloses a test graphic card detection method, a test graphic card detection device, test equipment and a storage medium, which are applied to the field of camera module testing and used for acquiring a captured image of a current test graphic card; determining size information of a first target area in a captured image, and judging whether a current test chart is matched with a current test item aiming at the camera module according to the size information; and determining the inclination information of the second target area in the captured image, and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information. The invention improves the accuracy of testing the camera module.)

1. A test card detection method is characterized by comprising the following steps:

acquiring a captured image of a current test chart;

determining size information of a first target area in the captured image, and judging whether the current test chart is matched with a current test item aiming at the camera module according to the size information;

and determining the inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information.

2. The method of claim 1, wherein said obtaining a captured image of a current test card comprises:

acquiring a captured image of a test chart for testing the resolving power of the camera module, or

And acquiring a captured image of a test graphic card for testing the phase focusing of the camera module.

3. The method of claim 1, wherein determining size information for a first target area in the captured image and determining whether the current test card matches a current test item for a camera module based on the size information comprises:

determining N consecutive groups of tiles from the captured image as the first target region, N being an integer greater than 1;

determining size information for the consecutive N groups of tiles;

comparing the size information with a preset size threshold interval;

and if the size information is within the size threshold interval, judging that the current test chart is matched with the current test item aiming at the camera module, otherwise, judging that the current test chart is not matched with the current test item.

4. The method of claim 3, wherein said determining N consecutive groups of blocks from said captured image comprises:

determining a center pixel point of the captured image;

and determining the continuous N groups of image blocks from the captured image by taking the central pixel point as a reference, wherein each group of image blocks comprises image blocks with different colors.

5. The method of any of claims 1-4, wherein determining tilt information for a second target area in the captured image and determining from the tilt information whether the actual pose angle of the current test card satisfies a preset angle condition for the current test item comprises:

determining an inclination angle of each tile in the second target region relative to the horizontal direction;

averaging according to the inclination angle corresponding to each image block in the second target area to obtain the inclination information;

comparing the inclination information with a preset angle threshold interval;

and if the inclination information is within the angle threshold value interval, judging that the actual placing angle of the current test chart meets the angle condition, otherwise, judging that the actual placing angle of the current test chart does not meet the angle condition.

6. The method of claim 3 or 4, wherein after determining whether the current test card matches a current test item for a camera module according to the size information, further comprising:

if the current test chart is matched with the current test item aiming at the camera module, executing the following steps: determining inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets an angle condition preset for the current test item according to the inclination information;

and if not, outputting first error information, wherein the first error information is used for prompting that the current test chart is not matched with the current test item aiming at the camera module.

7. The method of claim 6, wherein after determining whether the actual angle of pose of the current test card satisfies the angle condition preset for the current test item according to the tilt information, the method further comprises:

if the actual placing angle of the current test chart meets the angle condition, outputting prompt information representing that the current test chart meets the test requirement;

and if not, outputting second error information, wherein the second error information is used for prompting the adjustment of the placing angle of the current test chart.

8. A test card detection apparatus, comprising:

an image acquisition unit for acquiring a captured image of a current test chart;

the first judging unit is used for determining the size information of a first target area in the captured image and judging whether the current test chart is matched with the current test item aiming at the camera module according to the size information;

and the second judging unit is used for determining the inclination information of a second target area in the captured image and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information.

9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of claims 1-7 when executing the program.

10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 7.

Technical Field

The invention relates to the field of camera module testing, in particular to a test graphic card detection method, a test graphic card detection device, test equipment and a storage medium.

Background

On the production line of the camera module, a test chart (chart) using test resolving power and a test chart for testing phase focusing need to be selected according to test requirements in software.

The equipment personnel is required to fix the name of the test chart card on the background light source plate in a way that the front surface of the test chart card faces the surface of the module (the strip-shaped test chart card is required to face the vertical direction), and after the recheck is carried out by a QC (quality center), the test chart card is used for testing the camera module.

Disclosure of Invention

The embodiment of the invention provides a test graphic card detection method, a test graphic card detection device, test equipment and a storage medium, and solves the problem that the result of testing a camera module by using a test graphic card in the prior art is inaccurate.

In a first aspect, an embodiment of the present invention provides a test card detection method, including: acquiring a captured image of a current test chart; determining size information of a first target area in the captured image, and judging whether the current test chart is matched with a current test item aiming at the camera module according to the size information; and determining the inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information.

Optionally, the acquiring a captured image of the current test card comprises: acquiring a captured image of a test card for testing the resolving power of the camera module, or acquiring a captured image of a test card for testing the phase focusing of the camera module.

Optionally, the determining size information of the first target area in the captured image and determining whether the current test card matches the current test item for the camera module according to the size information includes: determining N consecutive groups of tiles from the captured image as the first target region, N being an integer greater than 1; determining size information for the consecutive N groups of tiles; comparing the size information with a preset size threshold interval; and if the size information is within the size threshold interval, judging that the current test chart is matched with the current test item aiming at the camera module, otherwise, judging that the current test chart is not matched with the current test item.

Optionally, the determining N consecutive groups of blocks from the captured image comprises: determining a center pixel point of the captured image; and determining the continuous N groups of image blocks from the captured image by taking the central pixel point as a reference, wherein each group of image blocks comprises image blocks with different colors.

Optionally, the determining the tilt information of the second target area in the captured image and determining whether the actual placing angle of the current test card meets the angle condition preset for the current test item according to the tilt information includes: determining an inclination angle of each tile in the second target region relative to the horizontal direction; averaging according to the inclination angle corresponding to each image block in the second target area to obtain the inclination information; comparing the inclination information with a preset angle threshold interval; and if the inclination information is within the angle threshold value interval, judging that the actual placing angle of the current test chart meets the angle condition, otherwise, judging that the actual placing angle of the current test chart does not meet the angle condition.

Optionally, after the determining whether the current test card matches the current test item for the camera module according to the size information, the method further includes: if the current test chart is matched with the current test item aiming at the camera module, executing the following steps: determining inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets an angle condition preset for the current test item according to the inclination information; and if not, outputting first error information, wherein the first error information is used for prompting that the current test chart is not matched with the current test item aiming at the camera module.

Optionally, after the determining, according to the inclination information, whether the actual placing angle of the current test chart meets an angle condition preset for the current test item, the method further includes: if the actual placing angle of the current test chart meets the angle condition, outputting prompt information representing that the current test chart meets the test requirement; and if not, outputting second error information, wherein the second error information is used for prompting the adjustment of the placing angle of the current test chart.

In a second aspect, an embodiment of the present invention provides a test card detection apparatus, including: an image acquisition unit for acquiring a captured image of a current test chart; the first judging unit is used for determining the size information of a first target area in the captured image and judging whether the current test chart is matched with the current test item aiming at the camera module according to the size information; and the second judging unit is used for determining the inclination information of a second target area in the captured image and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information.

In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method according to any one of the first aspect.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements any of the methods of the first aspect.

One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

by obtaining a captured image of a current test card; judging whether the current test chart is matched with the current test item aiming at the camera module according to the size information of the first target area in the captured image so as to deal with risks such as dirty folds, test chart error selection and the like; and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item or not according to the inclination information of the second target area in the captured image so as to deal with the inclination risk of the test chart, so that whether the current test chart meets the relevant test requirements of the current test item of the camera module or not can be judged, the influence of risks such as inclination, dirty wrinkles and error selection of the test chart on the test result of the camera module is avoided, and the accuracy of the test on the camera module is improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.

FIG. 1 is a diagram illustrating a method for detecting a test card according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating the result of capturing an outline of a captured image according to an embodiment of the present invention;

FIG. 3 is a schematic diagram illustrating coordinate and size information of N consecutive groups of tiles in step S102 according to an embodiment of the present invention;

fig. 4 is a schematic diagram of the average value θ of the included angles in step S103 according to the embodiment of the present invention.

FIG. 5 is a schematic view of the rotation angle of a bar graph block in a captured image of a bar test chart card;

FIG. 6 is a diagram illustrating a method for detecting a test card according to an embodiment of the present invention;

FIG. 7 is a diagram illustrating an exemplary apparatus for testing a test card;

fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the invention.

Detailed Description

In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.

First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

In a first aspect, an embodiment of the present invention provides a test card detection method, which is used to detect a test card that needs to be used by a test item before the test card is used to perform the test item on a camera module, so as to determine whether the test card meets a relevant test requirement of the test item.

Specifically, before carrying out a certain test item to the camera module, it is fixed on the background light source board to need the equipment personnel to fix the name of test chart card on the surface of camera module (the test chart card of bar need just be vertical direction) openly facing to, and there are risks such as putting the dirty fold of test chart card slope, test chart card and selecting test chart card mistake in this in-process, then, lead to utilizing the test chart card to carry out the result inaccurate that tests to the camera module. In order to solve the technical problem to at least a certain extent, an embodiment of the present invention provides a test card detection method, which can be applied to a camera module test machine to detect a test card that needs to be used by a test item before the test card is used to perform the test item on a camera module.

Referring to fig. 1, a test card detection method provided in an embodiment of the present invention includes the following steps:

and S101, acquiring a captured image of the current test chart.

Specifically, the current test chart may be a test chart for testing resolution of the camera module, or a test chart for testing phase focusing. For example, checkerboard test cards, test cards with bar patterns, and test cards with diamond patterns. Of course, in actual practice, the test card is not limited to the exemplary type described above. The type of the test card is different according to the current test item.

The test chart card of the background light source board which is currently placed on the camera module test machine platform is shot through the camera module, so that a capture image of the current test chart card is obtained. Specifically, the camera module shoots the current test card after focusing, and the obtained captured image containing part or all of the image area of the current test card is obtained.

S102, determining size information of a first target area in the captured image, and judging whether the current test chart is matched with a current test item aiming at the camera module according to the size information.

If the current test item is the analysis force test of the camera module, judging whether the current test chart is the test chart for the analysis force test or not through the step S102; if the current test item is the phase focusing test for the camera module, it is determined whether the current test card is the test card for the phase focusing test through step S102.

In some embodiments, N consecutive groups of tiles may be determined from the captured image as the first target region, where N is an integer greater than 1. Each group of tiles contains tiles of different colors, for example, each group of tiles contains a black lattice and a white lattice; determining size information of N consecutive groups of tiles; and comparing the determined size information with a preset size threshold interval to judge whether the current test chart is matched with the current test item aiming at the camera module.

Specifically, the first target region may be located at the middle position of the captured image, and then the consecutive N groups of blocks may be obtained as follows: determining a center pixel point of the captured image; the continuous N groups of image blocks are determined from the middle position of the captured image by taking the central pixel point of the captured image as a reference, so that the judgment accuracy can be improved.

More specifically, the center pixel point can be determined based on the coordinate information of each pixel point in the captured image. Of course, the center pixel point of the captured image may also be determined according to the diagonal size of the captured image.

It should be noted that, in the embodiment of the present invention, the consecutive N groups of blocks refer to: the centers of all the N groups of blocks are on the same straight line. In practical implementation, referring to fig. 2, N may take a value of 5, i.e., 5 consecutive groups of blocks (10 consecutive blocks) on the same line may be determined from the captured image as the first target region.

Compare the size information of N continuous groups of blocks with size threshold interval, judge whether current test card matches with the current test item to the camera module, include: if the size information of the N groups of continuous image blocks is within the size threshold interval, judging that the current test image card is matched with the current test item; if the size information of the N groups of continuous image blocks is not in the size threshold interval, the current test image card is judged to be not matched with the current test item, namely, the current test image card is characterized to be not the test image card matched with the current test item or the test image card has a dirty fold.

In some embodiments, in order to accurately obtain N consecutive groups of tiles, a captured image may be first subjected to contour capture to obtain a contour image; and taking N groups of blocks from the middle position of the outline image. Specifically, the intermediate position refers to the position center of the N consecutive blocks being taken coinciding with the center point of the captured image.

Taking the captured image as a checkerboard image as an example, the contour of the checkerboard image is captured, the obtained contour image can be shown in fig. 2, and then 5 continuous groups of image blocks are taken from the middle position of the contour image.

Referring to fig. 3, the size information of N consecutive groups of tiles may be obtained from the coordinates of each group of N groups of tiles. Firstly, the coordinates of each group of blocks are respectively calculated, and the coordinates of each group of blocks are (X1, Y1), (X2, Y2), (X3, Y3), (X4, Y4), (X5, Y5), (X6, Y6); then, the size information D of the N consecutive groups of blocks is calculated according to the coordinates of each group of blocks, and the specific formula refers to the following:

wherein, L1, L2, L3, L4 and L5 are size information of the corresponding group of tiles.

Specifically, the determination may be determined according to the error threshold Q and the long-edge size d of one pattern block in the test chart required by the current test item, that is: the size threshold interval D is set to [10D-Q,10D + Q ]. It should be noted that the specific value of the size threshold interval may be different according to the current test item, but all the setting manners may be referred to.

Specifically, the long side dimension d of one block can be calculated by the following formulas:

S=a*b

d=v/u*S/n

wherein u is an image distance, and f is a focal length (the focal length of a light sensing chip in the camera module); v is the object distance; s is the length of the long side in the photosensitive chip; a is the number of pixels on the long side of the photosensitive chip; b is the size of the pixel in the photosensitive chip; n is the number of the blocks on the long side in the test chart; q is the error threshold (typically 30 times the size of the pixel).

In some embodiments, after the current test card is determined to match the current test item through step S102, the following step S103 may be executed: determining the inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item according to the inclination information; if it is determined through step S102 that the current test card does not match the current test item, first error information is output, and the detection process is ended. The first error reporting information is used for prompting that the current test graphic card is not matched with the current test item aiming at the camera module so as to prompt that the test graphic card is replaced. After the test card is replaced, the process may return to step S101 to enter the next test for the test card. After step S103 is executed, if the actual placing angle of the current test chart meets the angle condition preset for the current test item, outputting a prompt message indicating that the current test chart meets the test requirement; otherwise, outputting second error information, wherein the second error information is used for prompting the adjustment of the placing angle of the current test chart.

By the implementation mode, an unnecessary placing angle judgment process is avoided, and therefore the calculation amount is reduced.

In some embodiments, different from the previous embodiment, step S102 and step S103 are executed independently, and after respective determination results are obtained in step S102 and step S103, a comprehensive determination result for the current test card is determined according to the respective determination results in step S102 and step S103.

Specifically, if the determination results in step S102 and step S103 are both yes, prompt information indicating that the current test card meets the test requirements is output; otherwise, there are two different situations, and different error reporting information is correspondingly output: if only the judgment result of the step S102 is negative, outputting first error reporting information, wherein the first error reporting information is used for prompting that the current test chart is not matched with the current test item aiming at the camera module; if the determination result in step S103 is negative, outputting second error information, where the second error information is used to prompt adjustment of the placing angle of the current test card. And if the judgment results of the step S102 and the step S103 are both negative, simultaneously outputting the first error information and the second error information.

Next, the implementation of step S103 will be described in detail:

in S103, the tilt angle of each tile in the second target region may be obtained.

The specific implementation mode is as follows: determining the inclination angle of each image block in the second target area relative to the horizontal direction; and averaging according to the inclination angle corresponding to each image block in the second target area to obtain the inclination information of the second target area.

Specifically, referring to fig. 4, the included angle f (θ) between each of the N consecutive blocks on the current test chart and the horizontal direction can be calculated by the included angle calculation functioni) To respectively obtain the inclination angles theta of the N image blocksiAnd taking the average value theta of the included angles of the image blocks as the inclination information of the second target area:

for example, referring to fig. 3, for 10 continuous grids on the checkerboard test chart, the included angles between the 10 continuous grids and the horizontal direction are respectively calculated, so as to obtain the inclination angle: theta1,θ2,θ3,θ4,θ5,θ6,θ7,θ8,θ9,θ10. Then, each inclination angle θ is taken1~θ10As the average value of the angle of (a) isTilt information of the second target area.

It should be noted that the inclination information of the second target region is not limited to using the average value θ of the included angles of the N consecutive tiles, and may be determined in other manners. For example, after the maximum inclination angle and the minimum inclination angle are removed from the inclination angles of the N consecutive blocks, an average value of the inclination angles of the remaining N-2 blocks may be calculated as the inclination information of the second target region. Or selecting the inclination angle with the smallest difference from the average value theta of the included angles from the inclination angles of the continuous N blocks as the inclination information of the second target area. And judging whether the actual placing angle of the current test chart meets the angle condition preset for the current test item or not by using the obtained inclination information of the second target area. The meeting of the preset angle condition specifically means that the actual placing angle of the current test chart is within a preset angle threshold interval.

Specifically, since the inclination angle of the pattern block in the captured image of the current test card is the same as or similar to the actual angle of the current test card, in order to know whether the actual angle of the current test card satisfies the preset angle condition, it may be determined by determining whether the inclination information of the second target region in the captured image is within the angle threshold interval. Specifically, the inclination information of the second target area is compared with a preset angle threshold interval; and if the inclination information is within the angle threshold value interval, judging that the actual placing angle of the current test chart card meets the preset angle condition, otherwise, judging that the actual placing angle of the current test chart card does not meet the preset angle condition.

The angle threshold interval in the embodiment of the present invention may be set according to an average value θ of included angles of the image blocks in the second target region, for example: determining an angle threshold interval according to the included angle average value theta and the angle error threshold q, which can be expressed as: [ theta-q, theta + q ].

In the practical implementation process, aiming at a checkerboard test chart for an analytic force test, an angle threshold interval is generally set to be minus 84 +/-1 degrees or minus 6 +/-1 degrees; for a test chart with a diamond pattern, the angle threshold interval can be generally set to be 45 +/-1 degrees; referring to fig. 5, the angle threshold interval may be set to be [89 °, -90 ° ] for the test card with bar pattern, and it should be noted that, since the actual placing angle of the current test card does not exceed 90 ° and-90 °, the actual placing angle does not exceed ± 90 ° for the test card with bar pattern.

It should be noted that the second target area and the first target area in the embodiment of the present invention may be the same image area or different image areas. Even if the second target region is different from the first target region, it can be obtained from the captured image using a similar technique, which will not be described in detail herein.

In the following, the embodiment of the present invention is described by way of example with reference to fig. 2 to 6, so as to understand the implementation process of the test card detection method in the embodiment of the present invention:

referring to fig. 6, first, after fixing the name of a certain test card on the background light source board with the front surface of the camera module facing the surface of the camera module, step 1 is performed: capturing an image of the current test chart through a camera module to obtain a captured image;

then, step 2 is executed: grabbing a contour of the captured image to obtain a contour image, as shown with reference to fig. 2;

then, step 3 is executed: determining 5 continuous groups of black and white grids from the outline image, and calculating the total length of the 5 continuous groups of black and white grids;

then, step 4 is executed: judging whether the total length of the continuous 5 groups of black and white grids is within a size threshold interval or not, if so, executing a step 6; otherwise, step 5 is executed.

And 5: and outputting first error information, finishing the current detection process, waiting for the replacement of the test chart after the step 5, and re-executing the step 1 after the test chart is replaced.

Step 6: the average tilt angle of the consecutive 5 groups of black and white bins was calculated.

After step 6, step 7 is then performed: and (4) judging whether the average inclination angle is within the angle threshold interval, if so, executing the step 8, otherwise, executing the step 9.

And 8: and outputting prompt information representing that the current test chart meets the test requirement, and ending the test flow. The test to the camera module can be carried out.

And step 9: and outputting second error reporting information and ending the current detection process. And also waiting for adjusting the placing angle of the current test chart after the step 9, returning to execute the steps 1-3 and the steps 6-9 again after adjusting the placing angle of the current test chart, and skipping the steps 4-5 to reduce the calculated amount.

According to the embodiment of the test chart detection method, whether the current test chart meets the relevant test requirements of the current test item of the camera module can be judged before the current test chart is used for testing the camera module, so that the influence of risks such as test chart inclination, dirty wrinkles and test chart error selection on the test result of the camera module is avoided, and the accuracy of the test on the camera module is improved.

In a second aspect, based on the same inventive concept, an embodiment of the present invention provides a test card detection apparatus, shown in fig. 7, including:

an image acquisition unit 701 for acquiring a captured image of a current test chart;

a first determination unit 702, configured to determine size information of a first target area in the captured image, and determine whether the current test card matches a current test item for the camera module according to the size information;

a second determining unit 703, configured to determine the tilt information of the second target area in the captured image, and determine whether the actual placing angle of the current test card meets the angle condition preset for the current test item according to the tilt information.

In some embodiments, the image capturing unit 701 is specifically configured to:

acquiring a captured image of a test chart for testing the resolving power of the camera module, or

And acquiring a captured image of a test graphic card for testing the phase focusing of the camera module.

In some embodiments, the first determining unit 702 includes:

a tile determination subunit for determining, from the captured image, N consecutive groups of tiles as the first target region;

a size determining subunit for determining size information of the consecutive N groups of tiles;

the size comparison subunit is used for comparing the size information with a preset size threshold interval; and if the size information is within the size threshold interval, judging that the current test chart is matched with the current test item aiming at the camera module, otherwise, judging that the current test chart is not matched with the current test item.

In some embodiments, the tile determination subunit is specifically configured to:

determining a center pixel point of the captured image;

and determining the continuous N groups of image blocks from the captured image by taking the central pixel point as a reference, wherein each group of image blocks comprises image blocks with different colors.

In some embodiments, the second determining unit 703 includes:

a tile angle determination subunit for determining an inclination angle of each tile in the second target region with respect to a horizontal direction;

the angle averaging subunit is configured to average the inclination angles corresponding to each image block in the second target region to obtain the inclination information;

the angle comparison subunit is used for comparing the inclination information with a preset angle threshold interval; and if the inclination information is within the angle threshold value interval, judging that the actual placing angle of the current test chart meets the angle condition, otherwise, judging that the actual placing angle of the current test chart does not meet the angle condition.

In some embodiments, the second determining unit 703 is configured to perform the following steps if the current test card matches the current test item for the camera module: determining inclination information of a second target area in the captured image, and judging whether the actual placing angle of the current test chart meets an angle condition preset for the current test item according to the inclination information;

in some embodiments, the test card testing apparatus further comprises:

and the first error reporting unit is used for outputting first error reporting information if the current test chart is not matched with the current test item aiming at the camera module, and the first error reporting information is used for prompting that the current test chart is not matched with the current test item aiming at the camera module.

In some embodiments, the test card testing apparatus further comprises:

the prompt unit is used for outputting prompt information representing that the current test chart meets the test requirement if the actual placing angle of the current test chart meets the angle condition;

and the second error reporting unit is used for outputting second error reporting information if the actual placing angle of the current test chart does not meet the angle condition, wherein the second error reporting information is used for prompting the adjustment of the placing angle of the current test chart.

The test card detection apparatus in this embodiment is used to implement the test card detection method, and specific implementation details may refer to the foregoing test card detection method embodiment, and for brevity of the description, no further details are described here.

In a third aspect, based on the same inventive concept, an embodiment of the present invention further provides an electronic device, as shown in fig. 8, where the electronic device includes a memory 804, a processor 802, and a computer program that is stored in the memory 804 and is executable on the processor 802, and when the processor 802 executes the computer program, the method for detecting a test card according to the first aspect is implemented. For details of the foregoing test card detection method, details are not repeated herein for brevity of the description.

Where in fig. 8 a bus architecture (represented by bus 800), bus 800 may include any number of interconnected buses and bridges, bus 800 linking together various circuits including one or more processors, represented by processor 802, and memory, represented by memory 804. The bus 800 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 806 provides an interface between the bus 800 and the receiver 801 and transmitter 803. The receiver 801 and the transmitter 803 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 802 is responsible for managing the bus 800 and general processing, and the memory 804 may be used for storing data used by the processor 802 in performing operations.

In a fourth aspect, based on the same inventive concept as that implemented by the foregoing test chart detection method, an embodiment of the present specification further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements any implementation manner in the foregoing test chart detection method embodiment, so that specific implementation details refer to the foregoing test chart detection method embodiment and are not described herein again for brevity of the specification.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种摄像头模组测试设备及摄像头模组的测试方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!