Projection detection method, device, equipment and computer readable storage medium

By acquiring and processing the brightness characteristic information of the projection image, the projection detection result is automatically determined, which solves the problem of low efficiency and accuracy of projection detection in the existing technology, and achieves efficient and accurate projection detection.

CN117768629BActive Publication Date: 2024-08-23GUANGDONG JUHUA RES INST OF ADVANCED DISPLAY +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311842615.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-08-23
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

Existing projection detection methods have low efficiency and accuracy and rely on manual back-end processing, making it difficult to ensure the flatness and accuracy of projection lines.

Method used

By obtaining the image to be detected, preprocessing and feature information extraction are performed, and the target brightness feature information is used for detection, and the projection detection results are automatically determined to improve detection efficiency and accuracy.

Benefits of technology

Automated projection detection is realized, improving detection efficiency and accuracy, and avoiding the inefficiency and inaccuracy of manual detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768629B
    Figure CN117768629B
Patent Text Reader

Abstract

The present application discloses a projection detection method, device, equipment and computer-readable storage medium, the method comprising: acquiring an image to be detected; processing the image to be detected to obtain target brightness feature information; performing detection based on the target brightness feature information to determine projection detection result information. By detecting the target brightness feature information of the image to be detected and determining the projection detection result information, the relatively low detection efficiency and accuracy caused by manual projection detection is avoided, thereby improving the efficiency and accuracy of projection detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a projection detection method, device, equipment and computer-readable storage medium. Background Art

[0002] When using a projector, you need to make sure that the projector line is adjusted to the correct position to ensure that the projected image can be displayed horizontally and flatly on the projection screen or wall. The flatness of the projection line has a great impact on the projection quality, but the existing detection of the projection line pair is usually done manually after the projection image is captured. Not only is the detection efficiency relatively low, but the detection accuracy is also difficult to guarantee.

[0003] Therefore, how to improve the efficiency and accuracy of projection detection is an issue that needs to be addressed urgently. Summary of the invention

[0004] The embodiments of the present application provide a projection detection method, apparatus, device, and computer-readable storage medium, which can improve the efficiency and accuracy of projection detection.

[0005] In a first aspect, an embodiment of the present application provides a projection detection method, the method comprising:

[0006] Acquire the image to be detected;

[0007] Processing the image to be detected to obtain target brightness feature information;

[0008] Detection is performed based on the target brightness characteristic information to determine projection detection result information.

[0009] In a second aspect, an embodiment of the present application provides a projection detection device comprising:

[0010] An acquisition unit, used for acquiring an image to be detected;

[0011] A processing unit, used for processing the image to be detected to obtain target brightness feature information;

[0012] A determination unit is used to perform detection based on the target brightness feature information and determine projection detection result information.

[0013] In a third aspect, an embodiment of the present application further provides a projection detection device, comprising a memory storing a plurality of computer programs; a processor loading the computer program from the memory to execute the steps of any one of the projection detection methods provided in the embodiments of the present application.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of computer programs, and the computer programs are suitable for loading by a processor to execute the steps of any projection detection method provided in the embodiment of the present application.

[0015] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of any projection detection method provided in the embodiment of the present application.

[0016] The scheme of the embodiment of the application is adopted to obtain the image to be detected; the image to be detected is processed to obtain the target brightness characteristic information; the detection is performed based on the target brightness characteristic information to determine the projection detection result information. By detecting the target brightness characteristic information of the image to be detected and determining the projection detection result information, the relatively low detection efficiency and accuracy caused by manual projection detection is avoided, thereby improving the efficiency and accuracy of projection detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 It is a schematic diagram of an embodiment of the projection detection method provided in the embodiments of the present application;

[0019] Figure 2 Schematic diagram of the image to be detected provided in the embodiment of the present application;

[0020] Figure 3 Schematic diagram of the projection line binary image provided in the embodiment of the present application;

[0021] Figure 4 A schematic diagram of brightness position association information provided in an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of the structure of a projection detection device provided in an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of the structure of the projection detection device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0025] Embodiments of the present application provide a projection detection method, apparatus, device, and computer-readable storage medium.

[0026] Specifically, the embodiments of the present application will be described from the perspective of a projection detection device, which can be integrated into a projection detection device, that is, the projection detection method of the embodiments of the present application can be executed by the projection detection device.

[0027] The projection detection method provided in the embodiment of the present application can be applied to projection detection equipment, and the projection detection equipment may include devices such as smart terminals, PC terminals, etc.

[0028] The following is a detailed description in conjunction with the accompanying drawings. In the embodiments of the present application, the execution subject is a projection detection device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0029] Please refer to Figure 1 The specific process of an embodiment of the projection detection method includes the following steps:

[0030] Step 101, obtaining an image to be detected;

[0031] Step 102, processing the image to be detected to obtain target brightness feature information;

[0032] Step 103: Perform detection based on the target brightness feature information to determine projection detection result information.

[0033] In this embodiment, when it is necessary to perform projection line detection on the projector, the projection detection device obtains the image to be detected projected by the projector on the projection area, processes the image to be detected, obtains the target brightness characteristic information corresponding to the image to be detected, and then performs projection line detection based on the target brightness characteristic information to determine the projection detection result information. It should be noted that the image to be detected includes multiple line pair areas, and all line pair areas constitute line pair area information; the target brightness characteristic information is obtained by processing each line pair area in the image to be detected, and the target brightness characteristic information is represented by the MTF value, which describes the transfer characteristics of the imaging system for brightness changes at different spatial frequencies; the projection detection result information includes whether the projection line meets the target condition and whether the projection line does not meet the target condition.

[0034] The projection detection device of this embodiment obtains an image to be detected; processes the image to be detected to obtain target brightness feature information; performs detection based on the target brightness feature information to determine projection detection result information. By detecting the target brightness feature information of the image to be detected and determining the projection detection result information, the relatively low detection efficiency and accuracy caused by manual projection detection is avoided, thereby improving the efficiency and accuracy of projection detection.

[0035] Specifically, each step is described in detail below:

[0036] Step 101, obtaining an image to be detected;

[0037] In this step, when the projector needs to perform projection line detection, the parameters of the image to be detected are first set in the projector, including the width of the line, the interval between two lines, the line pair area width, the line pair area height, and FOV (the interval and layout between the line pairs, and the number and layout of the line pair areas are obtained based on this parameter). The projector projects the image to be detected on the projection area according to the set parameters, and the projection detection device calls the camera to take a picture of the image to be detected on the projection area to obtain the image to be detected. For example, the image to be detected is as follows: Figure 2 As shown, taking the image to be detected with 9 line pair regions as an example, the image to be detected includes 9 line pair regions, and the 9 line pair regions constitute the line pair region information. The line pair region information is also as shown in FIG. Figure 2 An array of line pair areas with 3 rows and 3 columns.

[0038] It should be noted that the line pair area includes multiple line segments with the same width, and the interval between each line segment is also the same; the image to be detected may include multiple line pair areas, and multiple line pair areas constitute different line pair area information, which can be set according to actual conditions and is not limited here.

[0039] Step 102, processing the image to be detected to obtain target brightness feature information;

[0040] In this step, after the projection detection device obtains the image to be detected, it first pre-processes the image to be detected and adjusts the line pair area information in the image to be detected to a level that can be subsequently processed, that is, eliminates the error caused by the image to be detected projected by the projector on the projection area; the projection detection device then processes each line pair area of ​​the line pair area information in the image to be detected separately to obtain the reference brightness characteristic information corresponding to each line pair area, and then obtains the target brightness characteristic information corresponding to the image to be detected based on the reference brightness characteristic information corresponding to each line pair area.

[0041] For example, the line pair area information is as follows: Figure 2 In the line pair area array of 3 rows and 3 columns, for each line pair area in the line pair area array, the projection detection equipment calculates the corresponding reference brightness characteristic information, and the reference brightness characteristic information is expressed by MTF value. After obtaining the MTF values ​​corresponding to the 9 line pair areas, the target brightness characteristic information corresponding to the image to be detected can be determined according to the MTF values ​​corresponding to the 9 line pair areas. The target brightness characteristic information is also expressed by MTF value.

[0042] Specifically, step 102 includes:

[0043] Step 1021, preprocessing the image to be detected to obtain line pair area information;

[0044] In this step, after the projection detection device obtains the image to be detected, it first pre-processes the image to be detected, and the pre-processing includes grayscale conversion, binarization, rectangular fitting and rectangular shrinkage to obtain the line pair area information after eliminating the error generated by the image to be detected projected by the projector on the projection area. Specifically, the projection detection device performs grayscale conversion on the image to be detected according to the set grayscale threshold (empirical value) to obtain the projection line grayscale image, and then binarizes the projection line grayscale image according to the set binarization threshold to obtain the projection line binary image; the projection detection device performs rectangular fitting on each line pair area in the projection line binary image, determines the pixel points within the envelope contour of each line pair area, and then performs rectangular shrinkage on each line pair area according to the set shrinkage ratio, so that each line pair area shrinks to a line pair area of ​​the target size and target shape. It can be understood that since the image to be detected projected by the projector on the projection area will produce a certain degree of deformation, it is necessary to eliminate such deformation through rectangular shrinkage to facilitate subsequent processing.

[0045] For example, the line pair area information is as follows: Figure 2In the 3-row 3-column line pair area array, the projection detection device performs grayscale conversion on the image to be detected according to the set grayscale threshold (empirical value) to obtain the projection line grayscale image, and then performs binarization processing on the projection line grayscale image according to the set binarization threshold to obtain the following Figure 3 The projected line binarization image shown includes 3 rows and 3 columns of line pair area array ( Figure 3 The white area in the middle is a collection of pixels, which is not necessarily completely connected, that is, the pixels seen after the white area is magnified are not necessarily completely adjacent). The projection detection equipment performs rectangular fitting on each line pair area in the projection line binary image, determines the pixels within the envelope contour of each line pair area, and then performs rectangular shrinkage on the length and width of each line pair area according to the set shrinkage ratio of 0.8, so that each line pair area is shrunk to a line pair area of ​​the target size and target shape.

[0046] Step 1022, determining target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval;

[0047] In this step, for each line pair area in the line pair area information, the projection detection device determines the target pixel point information in the line pair area according to the target direction and the target sampling interval; it can be understood that after preprocessing, the line pair area includes a pixel point information, and the projection detection device selects multiple target pixel points from the pixel point information according to the target direction and the target sampling interval, and the multiple target pixel points constitute the target pixel point information in the line pair area.

[0048] Further, the target direction includes horizontal direction information and vertical direction information, and step 1022 includes:

[0049] Step 10221, determining target pixel row information in the line pair area according to the horizontal direction information and the target sampling interval;

[0050] In this step, the projection detection device determines the target pixel row information in the line pair area according to the horizontal direction information and the target sampling interval; specifically, the projection detection device first randomly selects a row of pixel rows in the line pair area according to the horizontal direction information, and then selects target pixels in the selected pixel row according to the target sampling interval. The pixel row formed by the selected target pixels is the target pixel row information in the line pair area.

[0051] Exemplarily, the pixel point information in the line pair area is a pixel array of 20 rows and 40 columns. The projection detection device first randomly selects a pixel row from the 20 pixel rows according to the horizontal direction information. Assuming that the 10th pixel row is selected, according to the target sampling interval (a target pixel point is selected every other pixel), a target pixel point is selected every other pixel from the 40 pixels in the 10th pixel row, and 20 target pixels are obtained. The pixel row formed by these 20 target pixels is the target pixel row information in the line pair area.

[0052] Step 10222: Determine the target pixel point information in the line pair area according to the vertical direction information, the target sampling interval and the target pixel point row information.

[0053] In this step, the projection detection device determines the target pixel point information in the line pair area according to the vertical direction information, the target sampling interval and the target pixel point row information; specifically, for each target pixel point in the target pixel point row information, the projection detection device determines the pixel point located on the same vertical direction information as the target pixel point, that is, determines the pixel point located in the same column as the target pixel point, and then selects the target pixel point from the pixel points located in the same column as the target pixel point according to the target sampling interval, and the pixel point row formed by the selected target pixel points is the target pixel point column information in the line pair area; after the projection detection device obtains the target pixel point column information corresponding to each target pixel point in the target pixel point row information, it constructs the target pixel point information in the line pair area according to all the target pixel point column information and the target pixel point row information.

[0054] For example, in a line pair region including a pixel array of 20 rows and 40 columns, the projection detection device first randomly selects a row of pixel points from the 20 pixel points in the horizontal direction. Assuming that the 10th pixel point row is selected, according to the target sampling interval (a target pixel point is selected every other pixel point), a target pixel point is selected every other pixel point from the 40 pixel points in the 10th pixel point row, and 20 target pixel points are obtained. The pixel point row formed by these 20 target pixel points is the target pixel point row information determined in the line pair region; the projection detection device selects one pixel point from the target pixel point row information in turn. A target pixel point is determined, and the pixel points located in the same vertical direction as the target pixel point, that is, the pixel points located in the same column as the target pixel point are determined, and then 10 target pixels are selected from the 20 pixels located in the same column as the target pixel point according to the target sampling interval (a target pixel point is selected every other pixel point), and the pixel point column formed by these 10 target pixel points is a target pixel point column information in the line pair area; until the projection detection device determines all the target pixel point column information in the line pair area, the target pixel point information in the line pair area is obtained as a pixel point array with 10 rows and 20 columns.

[0055] Step 1023, determining reference brightness feature information of the line pair area based on the brightness information of each target pixel in the target pixel information;

[0056] In this step, for each line pair region in the image to be detected, the projection detection device determines the reference brightness characteristic information of the line pair region based on the brightness information of each target pixel in the target pixel information in the line pair region. It can be understood that the image to be detected includes multiple line pair regions, each of which includes a target pixel information.

[0057] Further, step 1023 includes:

[0058] Step 10231, based on each column of target pixel column information in the target pixel column information, obtaining brightness information of each target pixel in the target pixel column information;

[0059] In this step, the projection detection device obtains the target pixel point information of each line pair area in the image to be detected, and selects one column of target pixel point column information at a time in the target pixel point information, and obtains the brightness information of each target pixel point in the selected target pixel point column information, until the brightness information of each target pixel point in each column of the target pixel point information is obtained.

[0060] Step 10232, based on the brightness information of each target pixel in the target pixel array information, determine the brightness feature information corresponding to the target pixel array information;

[0061] In this step, the projection detection device determines the brightness characteristic information corresponding to each column of target pixel point array information based on the brightness information of each target pixel point in each column of target pixel point array information, wherein the brightness characteristic information is represented by an MTF value.

[0062] Further, step 10232 includes:

[0063] Step 102321, based on the brightness information of each target pixel in the target pixel array information, determine the brightness position association information corresponding to the target pixel array information;

[0064] In this step, the projection detection device determines the brightness position association information corresponding to each column of target pixel point array information based on the brightness information of each target pixel point in each column of target pixel point array information. Figure 4 As shown, the brightness position association information is a curve (similar to a sine curve) formed by connecting the brightness information of each target pixel point in a column of target pixel point column information.

[0065] Step 102322, based on the brightness maximum value information of each curve peak region and the brightness minimum value information of each curve valley region in the brightness position association information, determine the brightness peak valley value information in the brightness position association information;

[0066] In this step, the projection detection device determines the brightness peak-valley value information in the brightness position association information based on the brightness maximum value information of each curve peak area and the brightness minimum value information of each curve valley area in the brightness position association information, and the brightness peak-valley value information includes the brightness peak value of each curve peak area and the brightness valley value of each curve valley area.

[0067] For example, Figure 4 As shown, there will be multiple extreme values ​​in the curve peak area and curve valley area of ​​the brightness position association information. At this time, the projection detection equipment sums and averages all the maximum values ​​in a curve peak area to obtain the maximum brightness value (brightness peak value) of the curve peak area, and sums and averages all the minimum values ​​in a curve valley area to obtain the minimum brightness value (brightness valley value) of the curve valley area.

[0068] Step 102323: Determine the brightness feature information corresponding to the target pixel point column information based on every two adjacent brightness peak-valley values ​​in the brightness peak-valley value information.

[0069] In this step, after obtaining the brightness position association information corresponding to each column of target pixel point column information, the projection detection device selects the brightness position association information corresponding to a column of target pixel point column information in turn, and for the brightness position association information, based on every two adjacent brightness peak-valley values ​​in the brightness position association information, determines the brightness characteristic information of every two adjacent curve peak areas and curve valley areas in the brightness position association information, and then determines the brightness characteristic information corresponding to the target pixel point column information based on the brightness characteristic information of every two adjacent curve peak areas and curve valley areas in the brightness position association information.

[0070] Among them, the brightness characteristic information is represented by the MTF value, and the formula for determining the brightness characteristic information of every two adjacent curve peak areas and curve valley areas in the brightness position association information is: MTF value = (max1-min1) / (max2-min2), max1 and max2 are respectively the maximum brightness values ​​(brightness peak values) in the two adjacent curve peak areas in the brightness position association information, and min1 and min2 are respectively the minimum brightness values ​​(brightness valley values) in the two adjacent curve valley areas in the brightness position association information.

[0071] Exemplarily, the brightness position association information includes 10 curve peak areas and 10 curve valley areas. The projection detection device determines the brightness feature information of every two adjacent curve peak areas and curve valley areas in the brightness position association information based on every two adjacent brightness peak-valley values ​​in the brightness position association information, and will obtain the brightness feature information of 9 adjacent curve peak areas and curve valley areas. The brightness feature information of these 9 adjacent curve peak areas and curve valley areas are summed and averaged to obtain the brightness feature information corresponding to the target pixel point column information.

[0072] Step 10233: Determine reference brightness characteristic information of the line pair area based on the brightness characteristic information corresponding to each column of the target pixel point column information.

[0073] In this step, through the above steps, the projection detection device obtains the brightness characteristic information corresponding to each column of target pixel point column information in each line pair area in the image to be detected. At this time, for each line pair area, the projection detection device sums and averages the brightness characteristic information corresponding to each column of target pixel point column information in the line pair area to determine the reference brightness characteristic information of each line pair area.

[0074] Step 1024: Obtain target brightness characteristic information based on the reference brightness characteristic information of each of the line pair regions.

[0075] In this step, through the above steps, the projection detection device obtains the reference brightness feature information corresponding to each line pair area in the image to be detected, and the projection detection device obtains the target brightness feature information corresponding to the image to be detected based on the reference brightness feature information of each line pair area. The target brightness feature information includes corner brightness feature, edge brightness feature, and center brightness feature. The corner brightness feature is the MTF value of the four corners of the image to be detected, the edge brightness feature is the MTF value of the four edges of the image to be detected, and the center brightness feature is the MTF value of the center area of ​​the image to be detected.

[0076] Further, step 1024 includes:

[0077] Step 10241, acquiring the line pair area information of each line pair area in the first target area, each line pair area in the second target area, and each line pair area in the third target area;

[0078] In this step, the projection detection device obtains each line pair area in the first target area of ​​the line pair area information, obtains each line pair area in the second target area of ​​the line pair area information, and obtains each line pair area in the third target area of ​​the line pair area information.

[0079] Among them, the first target area is set in advance, and the first target area refers to the four corner areas of the online area information, such as Figure 3 As shown, the first target area includes the first row and the first column, the first row and the third column, the third row and the first column, and the third row and the third column. It is understandable that the first target area can be adjusted according to actual conditions, that is, the number of line pair areas included in the four corner areas of the line pair area information is adjusted, which is not limited here.

[0080] The second target area is set in advance, and the second target area refers to the edge area of ​​the line area information except the four corners, such as Figure 3 As shown, the second target area includes the first row and the second column, the second row and the first column, the second row and the third column, and the third row and the second column. It is understandable that the second target area can be adjusted according to actual conditions, that is, the number of line pair areas included in the edge area of ​​the line pair area information is adjusted, which is not limited here.

[0081] Among them, the third target area is set in advance, and the third target area refers to the central area of ​​the online area information, such as Figure 3 As shown, the third target area is the second row and the second column. It is understandable that the third target area can be adjusted according to actual conditions, that is, the number of line pair areas included in the central area of ​​the line pair area information is adjusted, which is not limited here.

[0082] Step 10242, obtaining each of the line pair areas in the first target area of ​​the line pair area information, and determining an angular brightness feature in the target brightness feature information according to the reference brightness feature information of each of the line pair areas in the first target area;

[0083] In this step, after the projection detection device obtains each line pair area in the first target area of ​​the line pair area information, the reference brightness feature information of each line pair area in the first target area is compared, and a minimum reference brightness feature information is selected to be determined as the angular brightness feature in the target brightness feature information;

[0084] Step 10243, obtaining each of the line pair regions in the second target region of the line pair region information, and determining the edge brightness feature in the target brightness feature information according to the reference brightness feature information of each of the line pair regions in the second target region;

[0085] In this step, after the projection detection device obtains each line pair area in the second target area of ​​the line pair area information, the reference brightness feature information of each line pair area in the second target area is compared, and a minimum reference brightness feature information is selected to be determined as the edge brightness feature in the target brightness feature information;

[0086] Step 10244, obtaining each of the line pair areas in the third target area of ​​the line pair area information, and determining the central brightness feature in the target brightness feature information according to the reference brightness feature information of each of the line pair areas in the third target area.

[0087] In this step, after the projection detection device obtains each line pair area in the third target area of ​​the line pair area information, it compares the reference brightness characteristic information of each line pair area in the third target area, selects a minimum reference brightness characteristic information, and determines it as the central brightness feature in the target brightness characteristic information.

[0088] Step 103: Perform detection based on the target brightness feature information to determine projection detection result information.

[0089] In this step, after determining the target brightness characteristic information corresponding to the image to be detected, the projection detection device compares the target brightness characteristic information with the preset brightness characteristic threshold to obtain the brightness characteristic threshold. It can be understood that the target brightness characteristic information is represented by the MTF value. When the MTF value is greater than the preset brightness characteristic threshold, the projection detection result information is determined to be that the projection line of the image to be detected meets the target condition. When the MTF value is not greater than the preset brightness characteristic threshold, the projection detection result information is determined to be that the projection line of the image to be detected does not meet the target condition.

[0090] Specifically, step 103 includes:

[0091] Step 1031, comparing the corner brightness feature, the edge brightness feature and the center brightness feature with a brightness feature threshold;

[0092] In this step, the target brightness feature information includes corner brightness features, edge brightness features and center brightness features, the brightness feature thresholds include corner brightness feature thresholds, edge brightness feature thresholds and center brightness feature thresholds, and the projection detection device compares the corner brightness feature with the corner brightness feature threshold, compares the edge brightness feature with the edge brightness feature threshold, and compares the center brightness feature with the center brightness feature threshold.

[0093] Step 1032: if the corner brightness feature, the edge brightness feature, and the center brightness feature are all greater than the brightness feature threshold, then determining the projection detection result information as the projection line meeting the target condition;

[0094] In this step, if the projection detection device obtains the comparison result that the angular brightness feature is greater than the angular brightness feature threshold, the edge brightness feature is greater than the edge brightness feature threshold, and the center brightness feature is greater than the center brightness feature threshold, then the projection detection result information is determined to be that the projection line meets the target conditions.

[0095] Step 1033: If the corner brightness feature, the edge brightness feature or the center brightness feature is not greater than the brightness feature threshold, it is determined that the projection detection result information is that the projection line does not meet the target condition.

[0096] In this step, if the projection detection device obtains a comparison result that the angular brightness feature is not greater than the angular brightness feature threshold, the edge brightness feature is not greater than the edge brightness feature threshold, or the center brightness feature is not greater than the center brightness feature threshold, then the projection detection result information is determined to be that the projection line does not meet the target conditions.

[0097] The projection detection device of this embodiment obtains an image to be detected; processes the image to be detected to obtain target brightness feature information; performs detection based on the target brightness feature information to determine projection detection result information. By detecting the target brightness feature information of the image to be detected and determining the projection detection result information, the relatively low detection efficiency and accuracy caused by manual projection detection is avoided, thereby improving the efficiency and accuracy of projection detection.

[0098] This embodiment also provides a projection detection device, which can be integrated into a smart terminal, a PC terminal, etc. Figure 5 As shown, the projection detection device may include:

[0099] An acquisition unit 1001 is used to acquire an image to be detected;

[0100] The processing unit 1002 is used to process the image to be detected to obtain target brightness feature information;

[0101] The determination unit 1003 is used to perform detection based on the target brightness feature information and determine projection detection result information.

[0102] In an optional example, the processing unit is further configured to:

[0103] Preprocessing the image to be detected to obtain line pair area information;

[0104] Determine target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval;

[0105] Determining reference brightness feature information of the line pair area based on brightness information of each target pixel in the target pixel information;

[0106] Based on the reference brightness characteristic information of each of the line pair regions, target brightness characteristic information is obtained.

[0107] In an optional example, the processing unit is further configured to:

[0108] Determine target pixel row information in the line pair area according to the horizontal direction information and the target sampling interval;

[0109] Target pixel point information is determined in the line pair area according to the vertical direction information, the target sampling interval and the target pixel point row information.

[0110] In an optional example, the processing unit is further configured to:

[0111] Based on each column of target pixel point column information in the target pixel point information, acquiring brightness information of each target pixel point in the target pixel point column information;

[0112] Based on the brightness information of each target pixel in the target pixel array information, determining brightness feature information corresponding to the target pixel array information;

[0113] Based on the brightness characteristic information corresponding to each column of the target pixel point column information, reference brightness characteristic information of the line pair area is determined.

[0114] In an optional example, the processing unit is further configured to:

[0115] Based on the brightness information of each target pixel in the target pixel array information, determining brightness position association information corresponding to the target pixel array information;

[0116] Determine the brightness peak-valley value information in the brightness position association information based on the brightness maximum value information of each curve peak region and the brightness minimum value information of each curve valley region in the brightness position association information;

[0117] Based on every two adjacent brightness peak-valley values ​​in the brightness peak-valley value information, brightness feature information corresponding to the target pixel point column information is determined.

[0118] In an optional example, the processing unit is further configured to:

[0119] Acquire the line pair area information of each of the line pair areas in the first target area, each of the line pair areas in the second target area, and each of the line pair areas in the third target area;

[0120] Determine an angular brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the first target area;

[0121] Determine the edge brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the second target area;

[0122] According to the reference brightness feature information of each of the line pair regions in the third target region, a central brightness feature in the target brightness feature information is determined.

[0123] In an optional example, the detection unit is further configured to:

[0124] Comparing the corner brightness feature, the edge brightness feature, and the center brightness feature with a brightness feature threshold;

[0125] If the corner brightness feature, the edge brightness feature, and the center brightness feature are all greater than the brightness feature threshold, determining the projection detection result information as the projection line meeting the target condition; and / or

[0126] If the corner brightness feature, the edge brightness feature or the center brightness feature is not greater than the brightness feature threshold, it is determined that the projection detection result information is that the projection line does not meet the target condition.

[0127] By adopting the scheme of this embodiment, the image to be detected is obtained; the image to be detected is processed to obtain target brightness feature information; detection is performed based on the target brightness feature information to determine projection detection result information. By detecting the target brightness feature information of the image to be detected and determining the projection detection result information, the relatively low detection efficiency and accuracy caused by manual projection detection is avoided, thereby improving the efficiency and accuracy of projection detection.

[0128] Accordingly, the embodiment of the present application also provides a projection detection device, such as Figure 6 As shown, Figure 6 A schematic diagram of the structure of a projection detection device provided in an embodiment of the present application. The projection detection device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. It will be understood by those skilled in the art that the structure of the projection detection device shown in the figure does not constitute a limitation on the projection detection device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0129] The processor 1101 is the control center of the projection detection device 1100, and uses various interfaces and lines to connect the various parts of the entire projection detection device 1100, and executes various functions and processes data of the projection detection device 1100 by running or loading software programs and / or units stored in the memory 1102, and calling data stored in the memory 1102, so as to monitor the projection detection device 1100 as a whole. The processor 1101 can be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.

[0130] In the embodiment of the present application, the processor 1101 in the projection detection device 1100 will load the computer program corresponding to the process of one or more application programs into the memory 1102 according to the following steps, and the processor 1101 will run the application stored in the memory 1102 to execute any one of the projection detection methods provided in the embodiment of the present application. The specific implementation of each operation of the projection detection method can be found in the previous embodiment and will not be repeated here.

[0131] Optional, such as Figure 6 As shown, the projection detection device 1100 further includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107. Those skilled in the art can understand that Figure 6 The structure of the projection detection device shown in the figure does not constitute a limitation on the projection detection device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0132] The touch display screen 1103 can be used to display a graphical user interface and receive an operation computer program generated by a user acting on the graphical user interface. The touch display screen 1103 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by a user or information provided to a user and various graphical user interfaces of a projection detection device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like may be used to configure the display panel. The touch panel may be used to collect a user's touch operation on or near it (such as an operation by a user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate a corresponding operation computer program, and the operation computer program executes a corresponding program. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1101, and can receive the command sent by the processor 1101 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event, and then the processor 1101 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1103 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1103 can also be used as a part of the input unit 1106 to realize the input function.

[0133] The radio frequency circuit 1104 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other projection detection devices through wireless communication, and to send and receive signals between the network device or other projection detection devices.

[0134] The audio circuit 1105 can be used to provide an audio interface between the user and the projection detection device through a speaker and a microphone. The audio circuit 1105 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1105 and converted into audio data, and then the audio data is output to the processor 1101 for processing, and then sent to another projection detection device through the radio frequency circuit 1104, or the audio data is output to the memory 1102 for further processing. The audio circuit 1105 may also include an earplug jack to provide communication between an external headset and the projection detection device.

[0135] The input unit 1106 may be used to receive input numbers, character information, or user target feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0136] The power supply 1107 is used to supply power to various components of the projection detection device 1100. Optionally, the power supply 1107 can be logically connected to the processor 1101 through a power management device, so that the power management device can manage charging, discharging, and power consumption. The power supply 1107 can also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0137] although Figure 6 Not shown in the figure, the projection detection device 1100 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0138] 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, reference can be made to the relevant description of other embodiments.

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

[0140] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer program can be loaded by a processor to execute any one of the projection detection methods provided in the embodiments of the present application. The specific implementation of each operation of the projection detection method can be referred to the previous embodiments and will not be repeated here.

[0141] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0142] Since the computer program stored in the computer-readable storage medium can execute any one of the projection detection methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the projection detection methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0143] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising a computer program, the computer program being stored in a computer-readable storage medium. The processor of the projection detection device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the projection detection device performs the methods provided in various optional implementations in the above-mentioned embodiments.

[0144] In the above-mentioned projection detection device, computer-readable storage medium, projection detection equipment, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described projection detection device, computer-readable storage medium, computer program product, projection detection equipment, and corresponding units can refer to the description of the projection detection method in the above embodiment, and will not be repeated here.

[0145] The above is a detailed introduction to a projection detection method, device, equipment, computer-readable storage medium and computer program product 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 projection detection method, characterized in that: The projection detection method comprises: Acquire the image to be detected; Processing the image to be detected to obtain target brightness feature information; Perform detection based on the target brightness characteristic information to determine projection detection result information; The step of processing the image to be detected to obtain target brightness feature information includes: Preprocessing the image to be detected to obtain line pair area information; Determine target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval; Determining reference brightness feature information of the line pair area based on brightness information of each target pixel in the target pixel information; Based on the reference brightness characteristic information of each line pair area, obtaining target brightness characteristic information; The obtaining target brightness characteristic information based on the reference brightness characteristic information of each line pair area includes: Acquire the line pair area information of each of the line pair areas in the first target area, each of the line pair areas in the second target area, and each of the line pair areas in the third target area; Determine an angular brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the first target area; Determine the edge brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the second target area; According to the reference brightness feature information of each of the line pair regions in the third target region, a central brightness feature in the target brightness feature information is determined.

2. The projection detection method according to claim 1, characterized in that: The target direction includes horizontal direction information and vertical direction information, and determining target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval includes: Determine target pixel row information in the line pair area according to the horizontal direction information and the target sampling interval; Target pixel point information is determined in the line pair area according to the vertical direction information, the target sampling interval and the target pixel point row information.

3. The projection detection method according to claim 1, characterized in that: The step of determining the reference brightness feature information of the line pair area based on the brightness information of each target pixel in the target pixel information includes: Based on each column of target pixel point column information in the target pixel point information, acquiring brightness information of each target pixel point in the target pixel point column information; Based on the brightness information of each target pixel in the target pixel array information, determining brightness feature information corresponding to the target pixel array information; Based on the brightness characteristic information corresponding to each column of the target pixel point column information, reference brightness characteristic information of the line pair area is determined.

4. The projection detection method according to claim 3, characterized in that: The generating, based on the brightness information of each target pixel in the target pixel array information, brightness feature information corresponding to the target pixel array information includes: Based on the brightness information of each target pixel in the target pixel array information, determining brightness position association information corresponding to the target pixel array information; Determine the brightness peak-valley value information in the brightness position association information based on the brightness maximum value information of each curve peak region and the brightness minimum value information of each curve valley region in the brightness position association information; Based on every two adjacent brightness peak-valley values ​​in the brightness peak-valley value information, brightness feature information corresponding to the target pixel point column information is determined.

5. The projection detection method according to any one of claims 1 to 4, characterized in that: The detecting based on the target brightness characteristic information and determining the projection detection result information includes: Comparing the corner brightness feature, the edge brightness feature, and the center brightness feature with a brightness feature threshold; If the corner brightness feature, the edge brightness feature, and the center brightness feature are all greater than the brightness feature threshold, determining that the projection detection result information is that the projection line meets the target condition; and / or If the corner brightness feature, the edge brightness feature or the center brightness feature is not greater than the brightness feature threshold, it is determined that the projection detection result information is that the projection line does not meet the target condition.

6. A projection detection device, characterized in that: The device comprises: An acquisition unit, used for acquiring an image to be detected; A processing unit, used for processing the image to be detected to obtain target brightness feature information; A determination unit, configured to perform detection based on the target brightness characteristic information and determine projection detection result information; The processing unit processes the image to be detected to obtain target brightness feature information, including: Preprocessing the image to be detected to obtain line pair area information; Determine target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval; Determining reference brightness feature information of the line pair area based on brightness information of each target pixel in the target pixel information; Based on the reference brightness characteristic information of each line pair area, obtaining target brightness characteristic information; The target direction includes horizontal direction information and vertical direction information, and the processing unit determines target pixel point information in the line pair area based on each line pair area in the line pair area information, the target direction and the target sampling interval, including: Determine target pixel row information in the line pair area according to the horizontal direction information and the target sampling interval; Determine the target pixel point information in the line pair area according to the vertical direction information, the target sampling interval and the target pixel point row information; The processing unit determines reference brightness feature information of the line pair area based on brightness information of each target pixel in the target pixel information, including: Based on each column of target pixel point column information in the target pixel point information, acquiring brightness information of each target pixel point in the target pixel point column information; Based on the brightness information of each target pixel in the target pixel array information, determining brightness feature information corresponding to the target pixel array information; Determine reference brightness characteristic information of the line pair area based on brightness characteristic information corresponding to each column of the target pixel point column information; The processing unit generates brightness feature information corresponding to the target pixel point array information based on the brightness information of each target pixel point in the target pixel point array information, including: Based on the brightness information of each target pixel in the target pixel array information, determining brightness position association information corresponding to the target pixel array information; Determine the brightness peak-valley value information in the brightness position association information based on the brightness maximum value information of each curve peak region and the brightness minimum value information of each curve valley region in the brightness position association information; Determining brightness feature information corresponding to the target pixel point column information based on every two adjacent brightness peak-valley values ​​in the brightness peak-valley value information; The processing unit obtains target brightness feature information based on the reference brightness feature information of each line pair area, including: Acquire the line pair area information of each of the line pair areas in the first target area, each of the line pair areas in the second target area, and each of the line pair areas in the third target area; Determine an angular brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the first target area; Determine the edge brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the second target area; Determine a center brightness feature in the target brightness feature information according to the reference brightness feature information of each line pair area in the third target area; The determining unit performs detection based on the target brightness feature information to determine projection detection result information, including: Comparing the corner brightness feature, the edge brightness feature, and the center brightness feature with a brightness feature threshold; If the corner brightness feature, the edge brightness feature, and the center brightness feature are all greater than the brightness feature threshold, determining that the projection detection result information is that the projection line meets the target condition; and / or If the corner brightness feature, the edge brightness feature or the center brightness feature is not greater than the brightness feature threshold, it is determined that the projection detection result information is that the projection line does not meet the target condition.

7. A projection detection device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program; when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program. When the computer program is run on a projection detection device, the computer program is used to enable the projection detection device to perform the steps of any one of the methods of claims 1-5.

Citation Information

Patent Citations

  • Projection method, moving device and robot

    CN107222731A

  • Defect detection method and detection device, and computer readable storage medium

    CN110441326A

  • Image correction inspection method and device, electronic equipment and storage medium

    CN114302121A

  • Projection image correction method and device, electronic equipment and readable storage medium

    CN116156132A

  • Projector with inclination measurement instrument

    JP2005012679A