Data processing method and device, computer equipment and storage medium

By using identification blocks and computer vision technology to clip and position images in camera testing, the inaccuracy and instability of test results caused by manual judgments is solved, and more efficient and accurate test results are achieved, reducing costs and risk.

CN119011807APending Publication Date: 2024-11-22WUHAN TCL CORP RES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310574236.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing camera testing methods rely on manual judgment and have subjective influence, resulting in inaccurate and unstable test results, increasing the cost of repairs and customer complaints.

Method used

By acquiring the test images and using identification blocks for cropping and pixel positioning, computer vision technology replaces manual judgment of blurred pixel points and determines the test results based on the resolution data.

Benefits of technology

It improves the accuracy and stability of the test results, saves labor costs, improves testing efficiency, and reduces the risk of inflow and remediation of defective products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011807A_ABST
    Figure CN119011807A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and apparatus, a computer device and a storage medium. The method comprises the steps of obtaining a test image of a to-be-tested camera and analytic power data of a test pattern contained in the test image; wherein the test pattern is identified through an identification block; cutting the test image based on the identification block to obtain a cut image corresponding to the test pattern; performing pixel positioning on the test pattern based on the cut image to obtain a target pixel point corresponding to the test pattern; and determining a test result of the to-be-tested camera based on the analytic power data and the target pixel point. The test result of the data processing method is not affected by manual subjectivity, and the accuracy and stability of the test result can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of intelligent equipment and the increasing demand for video recording by users, it is becoming more and more popular to configure cameras on various types of equipment. Camera imaging may be blurred due to defects in the camera module itself or improper assembly of the camera module. Therefore, it is generally necessary to test the camera before it is put into use. The existing camera testing method mainly uses the camera to shoot a test image, and then manually judges whether the test image is blurred. The test results are affected by human subjectivity and are uncontrollable and unreliable. Summary of the invention

[0003] The embodiments of the present application provide a data processing method, apparatus, computer equipment, and storage medium, and the test results are not affected by human subjectivity, thereby improving the accuracy and stability of the test results.

[0004] The technical solution adopted by the present invention to solve the problem is as follows:

[0005] On the one hand, the present application provides a data processing method, comprising:

[0006] Acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block;

[0007] The test image is cropped based on the identification block to obtain a cropped image corresponding to the test pattern;

[0008] Perform pixel positioning on the test pattern based on the cropped image to obtain target pixel points corresponding to the test pattern;

[0009] Based on the resolution data and target pixels, the test results of the camera to be tested are determined.

[0010] In some embodiments of the present application, the test image is cropped based on the identification block to obtain a cropped image corresponding to the test pattern, including:

[0011] Processing the test image based on the identification block to obtain a mask image of the test image;

[0012] Based on the mask image, determining first position information of the identification block;

[0013] The test image is cropped based on the first position information to obtain a cropped image corresponding to the test pattern.

[0014] In some embodiments of the present application, the test image is cropped based on the first position information to obtain a cropped image corresponding to the test pattern, including:

[0015] Based on the first position information, determining second position information of the test pattern;

[0016] The test image is cropped based on the second position information to obtain a cropped image corresponding to the test pattern.

[0017] In some embodiments of the present application, the identification block includes a first identification block, a second identification block and a third identification block, the first identification block is used to identify the center of the test pattern, and the second identification block and the third identification block are used to identify the boundaries of the test pattern.

[0018] In some embodiments of the present application, pixel positioning of the test pattern is performed based on the cropped image to obtain target pixel points corresponding to the test pattern, including:

[0019] Perform a convolution operation on the cropped image to obtain a convolved cropped image;

[0020] Performing enhancement processing on the cropped image after the convolution to obtain an enhanced cropped image;

[0021] The test pattern is pixel-located based on the enhanced cropped image to obtain the target pixel points corresponding to the test pattern.

[0022] In some embodiments of the present application, the test pattern includes a first pattern, the cropped image includes a first cropped image corresponding to the first pattern, and pixel positioning of the test pattern is performed based on the enhanced cropped image to obtain a target pixel point corresponding to the test pattern, including:

[0023] Calculating a pixel mean of each column of pixels in the enhanced first cropped image to obtain a plurality of first pixel means;

[0024] Determine a first target pixel mean value based on multiple first pixel means and a preset first pixel threshold value; wherein the first target pixel mean value is a pixel mean value that is smaller than the first pixel threshold value and has the smallest difference with the first pixel threshold value among the multiple first pixel means values;

[0025] The pixel point corresponding to the first target pixel mean value in the enhanced first cropped image is determined as the target pixel point corresponding to the test pattern.

[0026] In some embodiments of the present application, the test pattern includes a second pattern, the cropped image includes a second cropped image corresponding to the second pattern, and pixel positioning of the test pattern is performed based on the enhanced cropped image to obtain a target pixel point corresponding to the test pattern, including:

[0027] Calculating a pixel mean of each row of pixels in the enhanced second cropped image to obtain a plurality of second pixel means;

[0028] Determine a second target pixel mean based on a plurality of second pixel means and a preset second pixel threshold; wherein the second target pixel mean is a pixel mean that is smaller than the second pixel threshold and has the smallest difference with the second pixel threshold among the plurality of second pixel means;

[0029] The pixel point corresponding to the second target pixel mean value in the enhanced second cropped image is determined as the target pixel point corresponding to the test pattern.

[0030] In some embodiments of the present application,

[0031] The test result includes horizontal resolution and vertical resolution, the target pixel includes a first target pixel and a second target pixel, the resolution data includes a first resolution range of a test pattern to which the first target pixel belongs and a second resolution range of a test pattern to which the second target pixel belongs, and based on the resolution data and the target pixel, the test result of the camera to be tested is determined, including:

[0032] Obtaining a first pixel serial number of a first target pixel and an image width of a cropped image corresponding to the first target pixel;

[0033] Obtaining a second pixel number of a second target pixel and an image height of a cropped image corresponding to the second target pixel;

[0034] The horizontal resolution of the camera to be tested is determined based on the first pixel number, the image width and the first resolution range, and the vertical resolution of the camera to be tested is determined based on the second pixel number, the image height and the second resolution range.

[0035] In some embodiments of the present application, determining the horizontal resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range includes:

[0036] Determine a first resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range;

[0037] Based on the first resolution and the first resolution range, the horizontal resolution of the camera to be tested is determined.

[0038] In some embodiments of the present application, determining the vertical resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range includes:

[0039] Determine the second resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range;

[0040] Based on the second resolution and the second resolution range, the vertical resolution of the camera to be tested is determined.

[0041] In some embodiments of the present application, it also includes:

[0042] Based on the test results, the camera to be tested is calibrated.

[0043] In a second aspect, an embodiment of the present invention further provides a data processing device, including:

[0044] An image acquisition unit, used to acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block;

[0045] An image clipping unit, used to clip the test image based on the identification block to obtain a clipped image corresponding to the test pattern;

[0046] A pixel determination unit, used to perform pixel positioning on the test pattern based on the cropped image to obtain a target pixel point corresponding to the test pattern;

[0047] The result determination unit is used to determine the test result of the camera to be tested based on the resolution data and the target pixel points.

[0048] In a third aspect, the present application further provides a computer device, the computer device comprising:

[0049] one or more processors;

[0050] Memory; and

[0051] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement any one of the data processing methods in the first aspect.

[0052] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is loaded by a processor to execute the steps in the data processing method of any one of the first aspects.

[0053] The beneficial effects of the present invention are as follows: the test image is cropped based on the identification block, and the pixel positioning of the test image is performed based on the cropped image. The blurred pixel points in the test image are determined by computer vision instead of manually. Under the premise of ensuring the determination accuracy, the labor cost can be saved and the test efficiency can be improved. The test result is determined based on the determined target pixel points and resolution data. The test result is not affected by manual subjectivity, which improves the accuracy and stability of the test result. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention;

[0056] Figure 2 The test pattern provided in the embodiment of the present invention is not marked on the test chart;

[0057] Figure 3 The test pattern provided in the embodiment of the present invention is marked by the marking block.

[0058] Figure 4 is a clipped image corresponding to the upper half of the wedge line in the vertical direction provided by an embodiment of the present invention;

[0059] Figure 5 is a cropped image corresponding to the lower half of the wedge line in the vertical direction provided by an embodiment of the present invention;

[0060] Figure 6 is a cropped image corresponding to the left half of the wedge line in the horizontal direction provided by an embodiment of the present invention;

[0061] Figure 7 is a cropped image corresponding to the right half of the wedge line in the horizontal direction provided by an embodiment of the present invention;

[0062] Figure 8 is a cropped image corresponding to a vertical wedge line in the middle part provided by an embodiment of the present invention;

[0063] Fig. 9 is a cropped image corresponding to the horizontal wedge line in the middle part provided by an embodiment of the present invention;

[0064] Fig.10 is a first mask image provided by an embodiment of the present invention;

[0065] Fig.11 is a second mask image provided by an embodiment of the present invention;

[0066] Fig.12 is a third mask image provided by an embodiment of the present invention;

[0067] Fig.13 is a principle block diagram of a data processing device provided by an embodiment of the present invention;

[0068] Fig.14It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0070] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third", "fourth", and "fifth" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", "third", "fourth", and "fifth" may explicitly or implicitly include one or more of the features. In the description of the present application, "multiple" means two or more, and "several" means one or more, unless otherwise clearly and specifically defined.

[0071] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0072] It should be noted that since the method of the embodiment of the present application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, time is actually time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data for processing by the computer device. The details will not be repeated here.

[0073] The inventor has found through research that the test process of existing cameras is generally as follows: the camera takes a test image, and then the R&D personnel guide the production personnel to manually determine whether the test image is blurred to obtain the test result of the camera. Due to the unstable work of the production line personnel, the test results are affected by human subjectivity and are prone to misjudgment, resulting in defective products flowing into the back-end and even into the market, thereby increasing the camera's repair cost and customer complaint risk.

[0074] Based on this, in an embodiment of the present application, the test image of the camera to be tested and the resolution data of the test pattern contained in the test image are obtained; wherein the test pattern is identified by an identification block; the test image is cropped based on the identification block to obtain a cropped image corresponding to the test pattern; the test pattern is pixel-located based on the cropped image to obtain the target pixel point corresponding to the test pattern; based on the resolution data and the target pixel point, the test result of the camera to be tested is determined. The present application crops the test image based on the identification block, and performs pixel location on the test image based on the cropped image, and uses computer vision to replace manual work to determine the blurred pixels in the test image. Under the premise of ensuring the accuracy of determination, it can save labor costs and improve production line efficiency; the test result is determined based on the determined target pixel point and resolution data, and the test result is not affected by manual subjectivity, thereby improving the accuracy and stability of the test result.

[0075] The content of this application is further illustrated below through the description of embodiments in conjunction with the accompanying drawings.

[0076] This embodiment provides a data processing method, such as Figure 1 As shown in , the method includes:

[0077] Step S10, obtaining a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block.

[0078] Specifically, the camera to be tested is a camera that needs to be tested, and the test image is an image obtained by taking a picture of a pre-prepared test card by the camera to be tested, and the test card includes a test pattern. Figure 2As shown, the test chart can adopt the standard ISO12233 chart (Chart), and the test pattern is a wedge line (TV line, TVline). TVline is a line pair composed of black lines and white lines under certain standard conditions. This line pair can be single or multiple, and their combination is called TVline.

[0079] Continue to refer to Figure 2 As shown, the test chart used in this embodiment includes five test patterns (TVline), which are distributed in the four corners and the middle area of ​​the test chart. Each test pattern includes a horizontal wedge line and a vertical wedge line, and the horizontal wedge lines and the vertical wedge lines of the test patterns in the four corners are distributed in a cross shape.

[0080] After the test chart is prepared, a marking block can be pasted on the test chart to mark the test pattern with the marking block, wherein the marking block is any marking object that can mark the test pattern. For example, the test pattern can be marked with marking blocks of different shapes, such as triangles, diamonds, squares, etc.; or the test pattern can be marked with marking blocks of different colors, such as red, yellow, green, etc.

[0081] In a specific implementation, each test pattern is identified by three identification blocks, which are respectively a first identification block, a second identification block and a third identification block, wherein the first identification block is used to identify the center of the test pattern, and the second identification block and the third identification block are used to identify the boundaries of the test pattern. Figure 2 and Figure 3 Taking the test chart shown as an example, the centers of the five test patterns are marked by yellow identification blocks, the ends of the horizontal wedge lines of the upper left test pattern and the lower right test pattern are marked by green identification blocks, the ends of the vertical wedge lines of the upper left test pattern and the lower right test pattern are marked by red identification blocks, the ends of the horizontal wedge lines of the lower left test pattern and the upper right test pattern are marked by red identification blocks, the ends of the vertical wedge lines of the lower left test pattern and the upper right test pattern are marked by green identification blocks, the ends of the vertical wedge lines in the middle part are marked by green identification blocks, and the ends of the horizontal wedge lines in the middle part are marked by red identification blocks.

[0082] Resolution is the ability to distinguish the details of the original object. Each pixel in the test pattern has a corresponding resolution value, and the resolution data is the resolution range of each part of the test pattern. Figure 2As shown, taking the test pattern in the upper left corner as an example, the resolution range of the right half of the horizontal wedge line is 1000-2000, the resolution range of the left half of the horizontal wedge line is 500-1000, the resolution range of the lower half of the vertical wedge line is 1000-2000, and the resolution range of the upper half of the vertical wedge line is 500-1000.

[0083] Step S20: cropping the test image based on the identification block to obtain a cropped image corresponding to the test pattern.

[0084] The cropped image is a cropped image obtained by cropping the test image based on the identification block. In a specific embodiment, when the test pattern includes a vertical upper half wedge line, a vertical lower half wedge line, a horizontal right half wedge line, and a horizontal left half wedge line ( Figure 2 and Figure 3 When the test pattern in the four corners is Figures 4 to 7 As shown, after the test image is cropped based on the identification block, a cropped image corresponding to the upper half of the vertical wedge line, a cropped image corresponding to the lower half of the vertical wedge line, a cropped image corresponding to the right half of the horizontal wedge line, and a cropped image corresponding to the left half of the horizontal wedge line can be obtained; when the test pattern only includes the vertical wedge line and the horizontal wedge line ( Figure 2 and Figure 3 When the test pattern in the middle part of Figure 8 and Fig. 9 As shown, after the test image is cropped based on the identification block, a cropped image corresponding to the vertical wedge line and a cropped image corresponding to the horizontal wedge line can be obtained.

[0085] In a specific implementation, step S20 includes:

[0086] Step S21, processing the test image based on the identification block to obtain a mask image of the test image;

[0087] Step S22: determining first position information of the identification block based on the mask image;

[0088] Step S23: cropping the test image based on the first position information to obtain a cropped image corresponding to the test pattern.

[0089] The mask image is a binary image composed of 0 and 1, and the number of mask images corresponds to the type of identification blocks. In a specific implementation, when the identification blocks include a first identification block, a second identification block, and a third identification block, when processing the test image based on the identification blocks, the pixel values ​​of the pixels in the area where the first identification block is located in the test image can be first set to 1, and the pixel values ​​of the pixels in other areas can be set to 0, so as to obtain the first mask image of the test image; then the pixel values ​​of the pixels in the area where the second identification block is located in the test image can be set to 1, and the pixel values ​​of the pixels in other areas can be set to 0, so as to obtain the second mask image of the test image; finally, the pixel values ​​of the pixels in the area where the third identification block is located in the test image can be set to 1, and the pixel values ​​of the pixels in other areas can be set to 0, so as to obtain the third mask image of the test image.

[0090] Still Figure 3 Taking the test image corresponding to the test chart shown in the figure as an example, the pixel values ​​of the pixels in the area where the yellow mark block is located in the test image are set to 1, and the pixel values ​​of the pixels in other areas are set to 0, and the following can be obtained: Fig.10 The first mask image shown in FIG. 1 ; the pixel values ​​of the pixels in the area where the red mark block is located in the test image are set to 1, and the pixel values ​​of the pixels in other areas are set to 0, and the following can be obtained: Fig.11 The second mask image shown in FIG. 1 is a second mask image; the pixel values ​​of the pixels in the area where the green mark block is located in the test image are set to 1, and the pixel values ​​of the pixels in other areas are set to 0, and the following can be obtained: Fig.12 The third mask image is shown.

[0091] The first position information is the position information of the identification block in the test image. Since the pixel values ​​of the pixels in the area where the identification block is located in the mask image are 1, and the pixel values ​​of the pixels in other areas are 0, the first position information can be determined based on the mask image. In a specific embodiment, the first position information includes the coordinates of the upper left corner and the lower right corner of the identification block. Figure 3 Taking the upper left corner test pattern as an example, based on the first mask image, the upper left corner coordinates of the first identification block (yellow identification block) can be determined as (x yellow1 ,y yellow1 ), the coordinate of the lower right corner of the first marker block (yellow marker block) is (x yellow2 ,y yellow2 ); Based on the second mask image, the coordinates of the upper left corner of the second mark block (red mark block) above can be determined as (x red1 ,y red1 ), the coordinates of the lower right corner of the second mark block (red mark block) above are (x red2 ,y red2 ), the coordinate of the upper left corner of the second marker block (red marker block) below is (x red3 ,y red3), the coordinates of the lower right corner of the second marker block (red marker block) below are (x red4 ,y red4 ); Based on the third mask image, the coordinates of the upper left corner of the third identification block (green identification block) can be determined as (x green1 ,y green1 ), the coordinates of the lower right corner of the third marker block (green marker block) above are (x green2 ,y green2 ), the coordinate of the upper left corner of the third marker block (green marker block) below is (x green3 ,y green3 ), the coordinates of the lower right corner of the third marker block (green marker block) below are (x green4 ,y green4 ).

[0092] In a specific implementation, step S23 includes:

[0093] Step S231, determining second position information of the test pattern based on the first position information;

[0094] Step S232: crop the test image based on the second position information to obtain a cropped image corresponding to the test pattern.

[0095] The second position information is the position information of the test pattern in the test image. The test image is cropped based on the second position information, and a cropped image corresponding to the test pattern can be cropped from the test image. In a specific embodiment, when the test pattern includes a vertical upper half wedge line, a vertical lower half wedge line, a horizontal left half wedge line, and a horizontal right half wedge line, the second position information of the vertical upper half wedge line can be first determined based on the first identification block and the upper second identification block, and then the second position information of the vertical lower half wedge line can be determined based on the first identification block and the lower second identification block, and then the second position information of the horizontal left half wedge line can be determined based on the first identification block and the left third identification block, and finally the second position information of the horizontal right half wedge line can be determined based on the first identification block and the right third identification block.

[0096] For example, Figure 3 Taking the upper left corner test pattern as an example, based on the position information of the first identification block and the position information of the second identification block above, the coordinates of the upper left corner of the upper half of the wedge line in the vertical direction are determined as (min(x red1 , x yellow1 ), y red2 ), the coordinates of the lower right corner are (max(x red2 , x yellow2 ), y yellow1); Based on the position information of the first identification block and the position information of the second identification block below, determine the coordinates of the upper left corner of the lower half of the wedge line in the vertical direction as (min(x red3 , x yellow1 ), y yellow2 ), the coordinates of the lower right corner are (max(x red4 , x yellow2 ), y red3 ); Based on the position information of the first identification block and the position information of the third identification block on the left, determine the coordinates of the upper left corner of the left half of the wedge line in the horizontal direction as (x green2 ,min(y green1 ,y yellow1 )), the coordinate of the lower right corner is (x yellow1 ,max(y green2 ,y yellow2 )); Based on the position information of the first identification block and the position information of the third identification block on the left, determine the coordinates of the upper left corner of the right half of the wedge line in the horizontal direction as (x yellow2 ,min(y green3 ,y yellow1 )), the coordinate of the lower right corner is (x green3 ,max(y green4 ,y yellow2 )). Based on the above determined coordinates, the upper left corner test pattern is cut to obtain the following Figures 4 to 7 Cropped image shown.

[0097] For example, Figure 3 Taking the middle part of the test pattern as an example, the coordinates of the upper left corner of the yellow mark block of the vertical wedge line are (x mid_yellow1 ,y mid_yellow1 ), the coordinate of the lower right corner is (x mid_yellow2 ,y mid_yellow2 ), the coordinate of the upper left corner of the green mark block is (x mid_green1 ,y mid_greenn1 ), the coordinate of the lower right corner is (x mid_green2 ,y mid_green2 ), the coordinate of the upper left corner of the red mark block is (x mid _ red1 ,y mid_red1 ), the coordinate of the lower right corner is (x mid_red2 ,y mid_red2 ), based on the position information of the yellow marking block and the green marking block of the vertical wedge line, the coordinates of the upper left corner of the vertical wedge line can be determined as (mn(x mid_yellow1 , x mid_green1 ), y mid_green2 ), the coordinates of the lower right corner are (max(x mid_yellow2 , x mid_green2 ), y mid_yellow1); Based on the position information of the yellow marking block and the red marking block of the horizontal wedge line, the coordinates of the upper left corner of the horizontal wedge line can be determined as (x mid_red2 ,min(y mid_red1 ,y mid_yellow3 )), the coordinate of the lower right corner is (x mid_yellow3 ,max(y mid_red2 ,y mid_yellow4 )). Based on the coordinates determined above, the test pattern in the middle part is cut to obtain the following: Figure 8-Figure 9 Cropped image shown.

[0098] It should be noted that Figure 3 The process of determining the second position information of the lower left corner, upper right corner and lower right corner test patterns is the same as the process of determining the second position information of the upper left corner test pattern. For details, please refer to the process of determining the second position information of the upper left corner test pattern.

[0099] Step S30: locating pixels of the test pattern based on the cropped image to obtain target pixel points corresponding to the test pattern.

[0100] The target pixel point is the pixel point where the test pattern in the test image begins to become blurred. After obtaining the cropped image corresponding to the test pattern, this embodiment performs pixel positioning on the test pattern based on the cropped image to obtain the target pixel point corresponding to the test pattern. This embodiment uses a computer device to locate the pixel point where the test pattern begins to become blurred based on the cropped image. It does not rely on manual judgment. While ensuring the accuracy of judgment, it can save costs and improve production line efficiency.

[0101] In a specific implementation, step S30 includes:

[0102] Step S31, performing a convolution operation on the cropped image to obtain a convolved cropped image;

[0103] Step S32, performing enhancement processing on the cropped image after the convolution to obtain an enhanced cropped image;

[0104] Step S33: locating the pixels of the test pattern based on the enhanced cropped image to obtain target pixel points corresponding to the test pattern.

[0105] In a specific embodiment, a sobel operator may be used to perform a convolution operation on the cropped image. Specifically, a vertical sobel operator may be used to perform a convolution operation on the cropped image corresponding to the horizontal wedge line, and a horizontal sobel operator may be used to perform a convolution operation on the cropped image corresponding to the vertical wedge line. The horizontal sobel operator may be expressed as: The Sobel operator in the vertical direction can be expressed as:

[0106] When the cropped image after convolution is enhanced, the cropped image after convolution is enhanced based on the preset scaling factor and offset factor. The enhancement process can be expressed as: dst = (|α*src+β|), dst represents the enhanced cropped image, src represents the cropped image after convolution, α represents the scaling factor, and β represents the offset factor.

[0107] In a specific implementation, the test pattern includes a first pattern, the cropped image includes a first cropped image corresponding to the first pattern, and step S33 includes:

[0108] Step S331, calculating the pixel mean of each column of pixels in the enhanced first cropped image to obtain a plurality of first pixel means;

[0109] Step S332: determining a first target pixel mean based on a plurality of first pixel means and a preset first pixel threshold; wherein the first target pixel mean is a pixel mean that is smaller than the first pixel threshold and has the smallest difference with the first pixel threshold among the plurality of first pixel means;

[0110] Step S333: Determine the pixel point corresponding to the first target pixel mean in the enhanced first cropped image as the target pixel point corresponding to the test pattern.

[0111] The test pattern includes a first pattern, and the cropped image includes a first cropped image corresponding to the first pattern. In a specific embodiment, the first pattern is a horizontal wedge line, and the first cropped image is a cropped image corresponding to the horizontal wedge line. For example, when the test pattern is Figure 3 When the test pattern is formed at the four corners of the image, that is, the test pattern includes the vertical upper half wedge line, the vertical lower half wedge line, the horizontal left half wedge line and the horizontal right half wedge line, the first cropped image includes Figure 6 and Figure 7 The horizontal left half wedge line corresponds to the cropped image and the horizontal right half wedge line corresponds to the cropped image; when the test pattern is Figure 3 When the test pattern is the middle part of the image, that is, the test pattern only includes the vertical wedge line and the horizontal wedge line, the first cropped image includes Fig. 9 The horizontal wedge lines shown correspond to the cropped image.

[0112] The first pixel threshold is a preset pixel threshold for measuring the blur degree of the pixel points in the enhanced first cropped image, and the first target pixel mean is the pixel mean that is smaller than the first pixel threshold and has the smallest difference with the first pixel threshold among the multiple first pixel means. In other words, the multiple first pixel means are sorted in order from large to small, and the first pixel means arranged before the first target pixel mean are all greater than the first pixel threshold, and the first pixel means arranged after the first target pixel mean are all less than the first pixel threshold.

[0113] When the cropped image includes a first cropped image corresponding to a first pattern, the process of determining the target pixel point based on the enhanced cropped image specifically includes: calculating the pixel mean of each column in the enhanced first cropped image to obtain multiple first pixel means, and then comparing the multiple first pixel means with a preset first pixel threshold, determining the first target pixel mean from the multiple first pixel means based on the comparison result, and finally determining the pixel point corresponding to the first target pixel mean in the enhanced first cropped image as the target pixel point corresponding to the test pattern.

[0114] It should be noted that the plurality of first pixel means can be compared with the preset first pixel threshold from high to low resolution. Figure 3 Taking the upper left corner test pattern as an example, since the resolution of the right half of the horizontal wedge line is greater than that of the left half of the horizontal wedge line, and the resolution of the right half of the horizontal wedge line decreases from left to right, and the resolution of the left half of the horizontal wedge line decreases from right to left, the multiple first pixel means of the right half of the horizontal wedge line can be compared with the first pixel threshold from left to right to determine whether there is a first pixel mean less than the first pixel threshold; if so, the first pixel mean is determined as the first target pixel mean; otherwise, the multiple first pixel means of the left half of the horizontal wedge line are further compared with the first pixel threshold from right to left until a pixel mean less than the first pixel threshold is found from the multiple first pixel means. For another example, for Figure 3 In the test pattern in the middle part, since the resolution of the horizontal wedge line decreases from right to left, multiple first pixel means of the horizontal wedge line can be compared with the first pixel threshold from right to left to determine the first target pixel mean.

[0115] In a specific implementation, the test pattern includes a second pattern, the cropped image includes a second cropped image corresponding to the second pattern, and step S33 includes:

[0116] Step S334, calculating the pixel mean of each row of pixels in the enhanced second cropped image to obtain a plurality of second pixel mean values;

[0117] Step S335: determining a second target pixel mean based on the plurality of second pixel means and a preset second pixel threshold; wherein the second target pixel mean is a pixel mean among the plurality of second pixel means that is less than the second pixel threshold and has the smallest difference with the second pixel threshold;

[0118] Step S336: Determine the pixel point corresponding to the second target pixel mean in the enhanced second cropped image as the target pixel point corresponding to the test pattern.

[0119] The test pattern includes a second pattern, and the cropped image includes a second cropped image corresponding to the second pattern. In a specific embodiment, the second pattern is a vertical wedge line, and the second cropped image is a cropped image corresponding to the vertical wedge line. For example, when the test pattern is Figure 3 When the test pattern is formed at the four corners of the image, that is, the test pattern includes the vertical upper half wedge line, the vertical lower half wedge line, the horizontal left half wedge line and the horizontal right half wedge line, the second cropped image includes Figure 4 and Figure 5 The clipping image corresponding to the upper half of the vertical wedge line and the clipping image corresponding to the lower half of the vertical wedge line shown in the figure; when the test pattern is Figure 3 When the test pattern is the middle part of the test pattern, that is, the test pattern only includes the vertical wedge line and the horizontal wedge line, the second cropped image includes Figure 8 The vertical wedge lines shown correspond to the cropped image.

[0120] The second pixel threshold is a preset pixel threshold for measuring the blur degree of the pixel points in the enhanced second cropped image, and the second target pixel mean is the pixel mean that is smaller than the second pixel threshold and has the smallest difference with the second pixel threshold among the multiple second pixel means. That is to say, the multiple second pixel means are sorted in descending order, and the second pixel means arranged before the second target pixel mean are all greater than the second pixel threshold, and the second pixel means arranged after the second target pixel mean are all less than the second pixel threshold.

[0121] When the cropped image includes a second cropped image corresponding to the second pattern, the process of determining the target pixel point based on the enhanced cropped image specifically includes: calculating the pixel mean of each row in the enhanced second cropped image to obtain multiple second pixel means, and then comparing the multiple second pixel means with a preset second pixel threshold, determining the second target pixel mean from the multiple second pixel means based on the comparison result, and finally determining the pixel point corresponding to the second target pixel mean in the enhanced second cropped image as the target pixel point corresponding to the test pattern.

[0122] It should be noted that the plurality of second pixel means can be compared with the preset second pixel threshold from high to low resolution. Figure 3 Taking the upper left corner test pattern as an example, since the resolution of the lower half of the vertical wedge line is greater than that of the upper half of the vertical wedge line, and the resolution of the lower half of the vertical wedge line decreases from top to bottom, and the resolution of the upper half of the vertical wedge line decreases from bottom to top, the multiple second pixel means of the lower half of the vertical wedge line can be compared with the second pixel threshold from top to bottom to determine whether there is a second pixel mean less than the second pixel threshold; if so, the second pixel mean is determined as the second target pixel mean; otherwise, the multiple second pixel means of the upper half of the vertical wedge line are further compared with the second pixel threshold from bottom to top until a pixel mean less than the second pixel threshold is found from the multiple second pixel means. For another example, for Figure 3 In the test pattern in the middle part, since the resolution of the vertical wedge line decreases from bottom to top, multiple second pixel means of the vertical wedge line can be compared with the second pixel threshold from bottom to top to determine the second target pixel mean.

[0123] In addition, the first pixel threshold and the second pixel threshold can be set as needed, and the first pixel threshold and the second pixel threshold can be set to be the same or different.

[0124] Step S40: Determine the test result of the camera to be tested based on the resolution data and the target pixel points.

[0125] The test result includes the horizontal resolution and / or vertical resolution of the camera to be tested. When the test pattern includes horizontal wedge lines and vertical wedge lines, the test result includes horizontal resolution and vertical resolution; when the test pattern includes only horizontal wedge lines or vertical wedge lines, the test result includes horizontal resolution or vertical resolution. In this embodiment, since the test result does not rely on manual judgment, the test result has strong stability and high accuracy.

[0126] Continue to refer to Figure 2 and Figure 3 As shown, when test patterns are set at the four corners and the middle of the test chart, the target pixel points corresponding to each test pattern are determined respectively based on the data processing method in this embodiment, and based on the target pixel points corresponding to each test pattern and the resolution data of each test pattern, the horizontal resolution and vertical resolution of the camera to be tested at the four corners and the middle can be determined.

[0127] In a specific implementation, step S40 specifically includes:

[0128] Step S41, obtaining a first pixel number of a first target pixel and an image width of a cropped image corresponding to the first target pixel;

[0129] Step S42, obtaining a second pixel number of a second target pixel and an image height of the cropped image corresponding to the second target pixel;

[0130] Step S43, determining the horizontal resolution of the camera to be tested based on the first pixel number, the image width and the first resolution range, and determining the vertical resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range.

[0131] The cropped image includes the image width and image height, for example, Figures 4 to 7 As shown, the image height of the cropped image corresponding to the upper half of the wedge line in the vertical direction is h1, and the image width is w1, the image height of the cropped image corresponding to the lower half of the wedge line in the vertical direction is h2, and the image width is w2, the image height of the cropped image corresponding to the left half of the wedge line in the horizontal direction is h3, and the image width is w3, and the image height of the cropped image corresponding to the right half of the wedge line in the horizontal direction is h4, and the image width is w4.

[0132] Each pixel in the cropped image corresponds to a pixel number, wherein the pixel number corresponding to each pixel in the cropped image corresponding to the right / left half wedge line in the horizontal direction is the column number corresponding to the pixel, and the column number is determined based on the image width of the cropped image corresponding to the right / left half wedge line in the horizontal direction; the pixel number corresponding to each pixel in the cropped image corresponding to the upper / lower half wedge line in the vertical direction is the row number corresponding to the pixel, and the row number is determined based on the image height of the cropped image corresponding to the upper / lower half wedge line in the vertical direction.

[0133] In a specific implementation, the test result includes horizontal resolution and vertical resolution, the target pixel includes a first target pixel and a second target pixel, and the resolution data includes a first resolution range of the test pattern to which the first target pixel belongs and a second resolution range of the test pattern to which the second target pixel belongs. For example, when the test pattern to which the first target pixel belongs is a right half wedge line in the horizontal direction, the first resolution range may be 1000 to 2000, and when the test pattern to which the first target pixel belongs is a left half wedge line in the horizontal direction, the first resolution range may be 500 to 1000; similarly, when the test pattern to which the second target pixel belongs is a upper half wedge line in the vertical direction, the second resolution range may be 500 to 1000, and when the test pattern to which the second target pixel belongs is a lower half wedge line in the vertical direction, the second resolution range may be 1000 to 2000.

[0134] Correspondingly, determining the test result of the camera to be tested based on the resolution data and the target pixel can specifically include: first obtaining the first pixel number of the first target pixel and the image width of the cropped image corresponding to the first target pixel, and simultaneously obtaining the second pixel number of the second target pixel and the image height of the cropped image corresponding to the second target pixel, and then determining the horizontal resolution of the camera to be tested based on the first pixel number, the image width and the first resolution range, and simultaneously determining the vertical resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range.

[0135] In a specific implementation, the step of determining the horizontal resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range in step S43 includes:

[0136] Step S431, determining the first resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range;

[0137] Step S432: Determine the horizontal resolution of the camera to be tested based on the first resolution and the first resolution range.

[0138] When the present embodiment determines the horizontal resolution of the camera to be tested based on the first pixel number, the image width and the first resolution range, the first resolution of the camera to be tested is first determined based on the first pixel number, the image width and the first resolution range, and then the horizontal resolution of the camera to be tested is determined based on the first resolution and the first resolution range. When the test pattern to which the first target pixel belongs is the right half of the wedge line in the horizontal direction, the calculation formula of the horizontal resolution is: F1=S1+F2; when the test pattern to which the first target pixel belongs is the left half of the wedge line in the horizontal direction, the calculation formula of the horizontal resolution is: F1=S2+F2, wherein F1 represents the horizontal resolution, F2 represents the first resolution, S1 represents the lower limit value of the resolution of the right half of the wedge line in the horizontal direction, and S2 represents the lower limit value of the resolution of the left half of the wedge line in the horizontal direction.

[0139] Further, when the test pattern to which the first target pixel belongs is the right half of the horizontal wedge line, the calculation formula for the first resolution is: F2=(output1 / w4)*S1; when the test pattern to which the first target pixel belongs is the left half of the horizontal wedge line, the calculation formula for the first resolution is: F2=((w3-output1) / w3)*S2, wherein output1 represents the first pixel sequence, w4 represents the image width of the cropped image corresponding to the right half of the horizontal wedge line, and w3 represents the image width of the cropped image corresponding to the left half of the horizontal wedge line. For example, when the test pattern to which the first target pixel belongs is a right half wedge line in the horizontal direction, and the resolution range of the right half wedge line in the horizontal direction is 1000-2000, the horizontal resolution of the camera can be calculated as F1=1000+(output1 / w4)*1000; when the test pattern to which the first target pixel belongs is a left half wedge line in the horizontal direction, and the resolution range of the left half wedge line in the horizontal direction is 500-1000, the horizontal resolution of the camera can be calculated as F1=500+((w3-output1) / w3)*500.

[0140] In a specific implementation, the step of determining the vertical resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range in step S43 includes:

[0141] Step S433, determining the second resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range;

[0142] Step S434: Determine the vertical resolution of the camera to be tested based on the second resolution and the second resolution range.

[0143] When the vertical resolution of the camera to be tested is determined based on the second pixel number, the image height and the second resolution range, the second resolution of the camera to be tested is first determined based on the second pixel number, the image height and the second resolution range, and then the vertical resolution of the camera to be tested is determined based on the second resolution and the second resolution range. When the test pattern to which the second target pixel belongs is the lower half of the vertical wedge line, the calculation formula of the vertical resolution is: F3 = S3 + F4; when the test pattern to which the second target pixel belongs is the pixel in the cropped image corresponding to the upper half of the vertical wedge line, the calculation formula of the vertical resolution is: F3 = S4 + F4, where F3 represents the vertical resolution, F4 represents the second resolution, S3 represents the lower limit value of the resolution of the lower half of the vertical wedge line, and S4 represents the lower limit value of the resolution of the upper half of the vertical wedge line.

[0144] Further, when the test pattern to which the second target pixel belongs is the lower half of the wedge line in the vertical direction, the calculation formula for the second resolution is: F4=(output2 / h2)*S3; when the test pattern to which the second target pixel belongs is the upper half of the wedge line in the vertical direction, the calculation formula for the second resolution is: F4=((h1-output2) / h1)*S4, wherein output2 represents the second pixel sequence, h2 represents the image height of the lower half of the wedge line in the vertical direction, and h1 represents the image height of the upper half of the wedge line in the vertical direction. For example, when the test pattern to which the second target pixel belongs is the lower half of the vertical wedge line, and the resolution range of the lower half of the vertical wedge line is 1000-2000, the horizontal resolution of the camera can be calculated as F3=1000+(output2 / h2)*1000; when the test pattern to which the second target pixel belongs is the upper half of the vertical wedge line, and the resolution range of the upper half of the vertical wedge line is 500-1000, the horizontal resolution of the camera can be calculated as F3=500+((h1-output2) / h1)*500.

[0145] In a specific implementation, after step S40, the following steps are further included:

[0146] Step S50: Calibrate the camera to be tested based on the test result.

[0147] After obtaining the test results of the camera to be tested, this embodiment compares the test results of the camera with the benchmark results, determines whether the camera to be tested meets the requirements based on the comparison results, and calibrates the camera to be tested when it is determined that the camera to be tested does not meet the requirements. For example, when the test results include horizontal resolution and / or vertical resolution, the benchmark result is the benchmark resolution, and when the horizontal resolution and / or vertical resolution is less than the benchmark resolution, it is determined that the clarity of the camera to be tested does not meet the requirements, and the camera to be tested is calibrated. Among them, calibrating the camera to be tested includes but is not limited to adjusting the focal length, exposure, etc. of the camera to be tested.

[0148] In order to better implement the data processing method in the embodiment of the present application, based on the data processing method, a data processing device is also provided in the embodiment of the present application, such as Fig.13 As shown, the data processing device includes:

[0149] The image acquisition unit 710 is used to acquire the test image of the camera to be tested and the resolution data of the test pattern contained in the test image; wherein the test pattern is identified by an identification block;

[0150] An image clipping unit 720, configured to clip the test image based on the identification block to obtain a clipped image corresponding to the test pattern;

[0151] A pixel determination unit 730 is used to perform pixel positioning on the test pattern based on the cropped image to obtain a target pixel point corresponding to the test pattern;

[0152] The result determination unit 740 is used to determine the test result of the camera to be tested based on the resolution data and the target pixel points.

[0153] In an embodiment of the present application, a test image is cropped based on an identification block, and pixel positioning of the test image is performed based on the cropped image. Computer vision is used to replace manual judgment of blurred pixels in the test image. This can save labor costs and improve production line efficiency while ensuring judgment accuracy. The test results are determined based on the determined target pixels and resolution data, and the test results are not affected by manual subjectivity, thereby improving the accuracy and stability of the test results.

[0154] In some embodiments of the present application, the image cropping unit 720 is specifically used to:

[0155] Processing the test image based on the identification block to obtain a mask image of the test image;

[0156] Based on the mask image, determining first position information of the identification block;

[0157] The test image is cropped based on the first position information to obtain a cropped image corresponding to the test pattern.

[0158] In some embodiments of the present application, the image cropping unit 720 is further configured to:

[0159] Based on the first position information, determining second position information of the test pattern;

[0160] The test image is cropped based on the second position information to obtain a cropped image corresponding to the test pattern.

[0161] In some embodiments of the present application, the pixel determination unit 730 is specifically used to:

[0162] Perform a convolution operation on the cropped image to obtain a convolved cropped image;

[0163] Performing enhancement processing on the cropped image after the convolution to obtain an enhanced cropped image;

[0164] The test pattern is pixel-located based on the enhanced cropped image to obtain the target pixel points corresponding to the test pattern.

[0165] In some embodiments of the present application, the test pattern includes a first pattern, the cropped image includes a first cropped image corresponding to the first pattern, and the pixel determination unit 730 is further configured to:

[0166] Calculating a pixel mean of each column of pixels in the enhanced first cropped image to obtain a plurality of first pixel means;

[0167] Determine a first target pixel mean value based on multiple first pixel means and a preset first pixel threshold value; wherein the first target pixel mean value is a pixel mean value that is smaller than the first pixel threshold value and has the smallest difference with the first pixel threshold value among the multiple first pixel means values;

[0168] The pixel point corresponding to the first target pixel mean value in the enhanced first cropped image is determined as the target pixel point corresponding to the test pattern.

[0169] In some embodiments of the present application, the test pattern includes a second pattern, the cropped image includes a second cropped image corresponding to the second pattern, and the pixel determination unit 730 is further configured to:

[0170] Calculating a pixel mean of each row of pixels in the enhanced second cropped image to obtain a plurality of second pixel means;

[0171] Determine a second target pixel mean based on a plurality of second pixel means and a preset second pixel threshold; wherein the second target pixel mean is a pixel mean that is smaller than the second pixel threshold and has the smallest difference with the second pixel threshold among the plurality of second pixel means;

[0172] The pixel points corresponding to the second target pixel mean in the enhanced second cropped image are

[0173] Determine the target pixel point corresponding to the test pattern.

[0174] In some embodiments of the present application, the test result includes horizontal resolution and vertical resolution, the target pixel includes a first target pixel and a second target pixel, the resolution data includes a first resolution range of the test pattern to which the first target pixel belongs and a second resolution range of the test pattern to which the second target pixel belongs, and the result determination unit 740 is specifically used to:

[0175] Obtaining a first pixel serial number of a first target pixel and an image width of a cropped image corresponding to the first target pixel;

[0176] Obtaining a second pixel number of a second target pixel and an image height of a cropped image corresponding to the second target pixel;

[0177] The horizontal resolution of the camera to be tested is determined based on the first pixel number, the image width and the first resolution range, and the vertical resolution of the camera to be tested is determined based on the second pixel number, the image height and the second resolution range.

[0178] In some embodiments of the present application, the result determination unit 740 is further configured to:

[0179] Determine a first resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range;

[0180] Based on the first resolution and the first resolution range, the horizontal resolution of the camera to be tested is determined.

[0181] In some embodiments of the present application, the result determination unit 740 is further configured to:

[0182] Determine a second resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range;

[0183] Based on the second resolution and the second resolution range, the vertical resolution of the camera to be tested is determined.

[0184] The embodiment of the present application further provides a computer device, which integrates any one of the data processing devices provided in the embodiment of the present application, and the computer device includes:

[0185] one or more processors;

[0186] Memory; and

[0187] One or more applications, wherein the one or more applications are stored in a memory and are configured to be executed by a processor to execute the steps of the data processing method in any of the above data processing method embodiments.

[0188] The present application also provides a computer device that integrates any data processing device provided in the present application. Fig.14 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:

[0189] The computer device may include one or more processing core processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804 and other components. Those skilled in the art will appreciate that Fig.14 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0190] The processor 801 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.

[0191] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.

[0192] The computer device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 803 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0193] The computer device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0194] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:

[0195] Acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block;

[0196] The test image is cropped based on the identification block to obtain a cropped image corresponding to the test pattern;

[0197] Perform pixel positioning on the test pattern based on the cropped image to obtain target pixel points corresponding to the test pattern;

[0198] Based on the resolution data and target pixels, the test results of the camera to be tested are determined.

[0199] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0200] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any data processing method provided in the embodiment of the present application. For example, the computer program is loaded by a processor to execute the following steps:

[0201] Acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block;

[0202] The test image is cropped based on the identification block to obtain a cropped image corresponding to the test pattern;

[0203] Perform pixel positioning on the test pattern based on the cropped image to obtain target pixel points corresponding to the test pattern;

[0204] Based on the resolution data and target pixels, the test results of the camera to be tested are determined.

[0205] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0206] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0207] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0208] The above is a detailed introduction to a data processing method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data processing method, characterized in that: include: Acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block; Cutting the test image based on the identification block to obtain a cut image corresponding to the test pattern; Perform pixel positioning on the test pattern based on the cropped image to obtain target pixel points corresponding to the test pattern; Based on the resolution data and the target pixel point, a test result of the camera to be tested is determined.

2. The method according to claim 1, characterized in that The step of clipping the test image based on the identification block to obtain a clipped image corresponding to the test pattern includes: Processing the test image based on the identification block to obtain a mask image of the test image; Based on the mask image, determining first position information of the identification block; The test image is cropped based on the first position information to obtain a cropped image corresponding to the test pattern.

3. The method according to claim 1, characterized in that The step of clipping the test image based on the first position information to obtain a clipped image corresponding to the test pattern includes: Based on the first position information, determining second position information of the test pattern; The test image is cropped based on the second position information to obtain a cropped image corresponding to the test pattern.

4. The method according to any one of claims 1 to 3, characterized in that: The identification block includes a first identification block, a second identification block and a third identification block. The first identification block is used to identify the center of the test pattern, and the second identification block and the third identification block are used to identify the boundary of the test pattern.

5. The method according to claim 1, characterized in that The performing pixel positioning on the test pattern based on the cropped image to obtain a target pixel point corresponding to the test pattern includes: Performing a convolution operation on the cropped image to obtain a convolved cropped image; Performing enhancement processing on the cropped image after convolution to obtain an enhanced cropped image; Pixel positioning is performed on the test pattern based on the enhanced cropped image to obtain target pixel points corresponding to the test pattern.

6. The method according to claim 5, characterized in that The test pattern includes a first pattern, the cropped image includes a first cropped image corresponding to the first pattern, and the pixel positioning of the test pattern based on the enhanced cropped image to obtain a target pixel point corresponding to the test pattern includes: Calculating a pixel mean of each column of pixels in the enhanced first cropped image to obtain a plurality of first pixel means; Determine a first target pixel mean based on the first pixel means and a preset first pixel threshold; wherein the first target pixel mean is a pixel mean that is smaller than the first pixel threshold and has the smallest difference with the first pixel threshold among the first pixel means; The pixel point corresponding to the first target pixel mean value in the enhanced first cropped image is determined as the target pixel point corresponding to the test pattern.

7. The method according to claim 5, characterized in that The test pattern includes a second pattern, the cropped image includes a second cropped image corresponding to the second pattern, and the pixel positioning of the test pattern based on the enhanced cropped image to obtain a target pixel point corresponding to the test pattern includes: Calculating a pixel mean of each row of pixels in the enhanced second cropped image to obtain a plurality of second pixel means; Determine a second target pixel mean based on the plurality of second pixel means and a preset second pixel threshold; wherein the second target pixel mean is a pixel mean among the plurality of second pixel means that is less than the second pixel threshold and has the smallest difference with the second pixel threshold; The pixel point corresponding to the second target pixel mean value in the enhanced second cropped image is determined as the target pixel point corresponding to the test pattern.

8. The method according to claim 1, characterized in that: The test result includes horizontal resolution and vertical resolution, the target pixel includes a first target pixel and a second target pixel, the resolution data includes a first resolution range of a test pattern to which the first target pixel belongs and a second resolution range of a test pattern to which the second target pixel belongs, and the test result of the camera to be tested is determined based on the resolution data and the target pixel, including: Obtaining a first pixel serial number of the first target pixel and an image width of the cropped image corresponding to the first target pixel; Obtaining a second pixel serial number of the second target pixel and an image height of the cropped image corresponding to the second target pixel; The horizontal resolution of the camera to be tested is determined based on the first pixel number, the image width and the first resolution range, and the vertical resolution of the camera to be tested is determined based on the second pixel number, the image height and the second resolution range.

9. The method according to claim 8, characterized in that The determining the horizontal resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range includes: Determine the first resolution of the camera to be tested based on the first pixel sequence number, the image width and the first resolution range; Determining the horizontal resolution of the camera to be tested based on the first resolution and the first resolution range; The determining the vertical resolution of the camera to be tested based on the second pixel sequence number, the image height and the second resolution range includes: Determine the second resolution of the camera to be tested based on the second pixel number, the image height and the second resolution range; Based on the second resolution and the second resolution range, a vertical resolution of the camera to be tested is determined.

10. The method according to claim 1, characterized in that Also includes: Based on the test result, the camera to be tested is calibrated.

11. A data processing device, characterized in that: include: An image acquisition unit, used to acquire a test image of the camera to be tested and resolution data of a test pattern contained in the test image; wherein the test pattern is identified by an identification block; An image clipping unit, configured to clip the test image based on the identification block to obtain a clipped image corresponding to the test pattern; A pixel determination unit, configured to perform pixel positioning on the test pattern based on the cropped image to obtain a target pixel point corresponding to the test pattern; A result determination unit is used to determine the test result of the camera to be tested based on the resolution data and the target pixel point.

12. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the data processing method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the data processing method according to any one of claims 1 to 10.