Method, system and equipment for detecting transparency of acrylic plate and medium

By setting standard images on the acrylic plate, collecting and analyzing the translucent images, the problem of incomplete detection of acrylic plates in the prior art is solved, and efficient overall transparency detection is achieved.

CN120374599AActive Publication Date: 2025-07-25TWL OPTRONICS SUZHOU
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510835172.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-07-25
Estimated Expiration
2045-06-20

AI Technical Summary

Technical Problem

In the prior art, the transparency detection of acrylic plates cannot be conducted as a whole piece of board with a newly designed structure, and requires separate cut parts to be tested, resulting in incomplete inspection and low efficiency.

Method used

By setting a standard image on one side of the acrylic plate, collecting the translucent image and performing grayscale processing and standard analysis, the light transmittance and uniformity are obtained. Based on the comparison between the acrylic plate with known transparency and the plate to be detected, the uneven area is eliminated to achieve overall transparency detection.

Benefits of technology

The overall transparency detection of acrylic plates with new design structures is achieved, which improves the detection efficiency and avoids waste of boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120374599A_ABST
    Figure CN120374599A_ABST
Patent Text Reader

Abstract

The invention discloses an acrylic plate transparency detection method, system and device and a medium, and relates to the technical field of image recognition, and the method comprises the following steps: carrying out light transmission acquisition on an acrylic plate with known transparency to obtain a known light transmission image; using graying processing and standard analysis to obtain light transmittance and a standard uniform interval; performing light transmission acquisition on the acrylic transparent plate to be detected to obtain a light transmission image to be detected; performing image analysis and distribution analysis on the to-be-detected light-transmitting image to obtain a comparison light-transmitting image; comparing the known light-transmitting image with the contrast light-transmitting image based on the light transmittance to obtain the transparency of the acrylic plate; the device is used for solving the problems that in the prior art, the whole acrylic plate with a new design structure cannot be detected integrally, the design part cannot be removed, independent cutting is needed during detection, and the cutting part does not certainly have overall representativeness, so that the detection is incomplete and the detection efficiency is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and particularly to a method, system, device and medium for detecting the transparency of an acrylic plate. Background Art

[0002] Transparency refers to an index of the light transmittance of an object, that is, the measure of the ability to maintain the original light intensity after light passes through an object; in an acrylic plate, transparency refers to the degree of light transmission through the acrylic. In the prior art, when detecting the transparency of an acrylic plate, especially for a processed acrylic plate, such as a whole grid-shaped acrylic plate or an acrylic plate with other design structures, the acrylic plate is usually cut into multiple small pieces, and only the part without design is selected for light transmission detection. A part of the sample is selected and put into a spectrophotometer to measure the transparency of the sample. In the prior art, it is not convenient to perform an overall detection on the whole acrylic plate with a new design structure, the design part cannot be removed, separate cutting is required during detection, and the cut part may not necessarily be representative of the whole, resulting in problems of incomplete detection and low detection efficiency. Summary of the Invention

[0003] The present invention aims to solve at least one of the technical problems in the prior art. By setting a standard image behind the acrylic plate, collecting a light-transmitting image of the standard image through the acrylic plate, analyzing the light-transmitting image to obtain the light transmittance of the acrylic plate, and comparing the light transmittance of the acrylic plate to be detected with the light transmittance of the acrylic plate with known transparency to obtain the transparency of the acrylic plate, so as to solve the problems in the prior art that it is not convenient to perform an overall detection on the whole acrylic plate with a new design structure, the design part cannot be removed, separate cutting is required during detection, and the cut part may not necessarily be representative of the whole, resulting in problems of incomplete detection and low detection efficiency.

[0004] To achieve the above object, in the first aspect, the present application provides a method for detecting the transparency of an acrylic plate, including the following steps: Performing light transmission acquisition on acrylic plates with different known light transmittances, and setting the light-transmitting images obtained based on the light transmission acquisition as known light-transmitting images; Analyzing the known light-transmitting images using grayscale processing and standard analysis, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtaining a standard uniform interval based on the uniformity rate; Performing light transmission acquisition on the acrylic transparent plate to be detected, and setting the obtained light-transmitting image as the light-transmitting image to be detected; Performing image analysis and distribution analysis on the light-transmitting image to be detected based on the standard uniform interval, obtaining non-uniform regions, and obtaining a comparative light-transmitting image; Compare a known transmissive image with a comparative transmissive image based on the light transmittance, and obtain the transparency of the acrylic sheet based on the comparison result.

[0005] Further, the transmissive acquisition includes: for any acrylic sheet, set a standard image on one side of the acrylic sheet, and set an image acquisition device on the side of the acrylic sheet away from the standard image; During the transmissive acquisition, use the image acquisition device to acquire the standard image on the other side of the acrylic sheet, and set the obtained image as the transmissive image.

[0006] Further, the steps of analyzing the known transmissive image using grayscale processing and standard analysis, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis result, and obtaining the standard uniformity interval based on the uniformity rate include the following sub-steps: Perform grayscale processing on the standard image and the known transmissive image to obtain a standard grayscale image and a known grayscale image; Perform standard analysis on the standard grayscale image and the known grayscale image respectively to obtain the standard pixel average value, the standard pixel difference, the pixel average value of the known transmissive image, and the pixel difference of the known transmissive image; For any known transmissive image, set the ratio of the pixel average value of the known transmissive image to the standard pixel average value as the light transmittance; Set the ratio of the pixel difference of the known transmissive image to the standard pixel difference as the uniformity rate, obtain the uniformity rates of all known transmissive images, establish a standard uniformity interval, where the minimum value of the standard uniformity interval is the minimum value among the uniformity rates of all known transmissive images, and the maximum value of the standard uniformity interval is the maximum value among the uniformity rates of all known transmissive images.

[0007] Further, the standard analysis includes: For any grayscale image, obtain the pixel values k1 to kn of all pixel points in the grayscale image, where n is the number of pixel points; Calculate the average pixel value of the pixel points of the grayscale image and record it as k0; Substitute the pixel values of all pixel points in the grayscale image and the average pixel value of all pixel points in the grayscale image into the pixel difference formula to calculate the pixel difference, where Y is the pixel difference, k0 is the average pixel value of all pixel points in the grayscale image, n is the number of pixel points, and kn is the pixel value of any pixel point in the grayscale image.

[0008] Further, the steps of performing image analysis and distribution analysis on the to-be-detected transmissive image based on the standard uniformity interval, obtaining the non-uniform area, and obtaining the comparative transmissive image include the following sub-steps: The transmissive image to be detected is grayscaled to obtain the grayscale image to be detected; The grayscale image to be detected is subjected to standard analysis to obtain the pixel difference of the transmissive image to be detected, and the ratio of the pixel difference of the transmissive image to be detected to the standard pixel difference is set as the uniformity rate to be detected; When the uniformity rate to be detected is not within the standard uniformity range, the transmissive image to be detected is marked as a non-uniform transmissive image; When the uniformity rate to be detected is within the standard uniformity range, the transmissive image to be detected is marked as a uniform transmissive image; For any non-uniform transmissive image, distribution analysis is performed to obtain the non-uniform region; The non-uniform region on the non-uniform transmissive image is removed, and the remaining region is set as the comparison transmissive image.

[0009] Further, the distribution analysis includes: for any pixel point on the non-uniform transmissive image, it is set as the target pixel point, The pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point are obtained; The pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point are substituted into the block pixel difference formula to calculate the block pixel difference, where Q is the block pixel difference, p0 is the average value of the pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point, pm is the pixel value of the target pixel point and the eight-neighborhood pixel points, and m is a positive integer. The ratio of the block pixel difference to the standard pixel difference is set as the block uniformity rate; When the block uniformity rate is not within the standard uniformity range, the target pixel point and the eight-neighborhood pixel points are set as the non-uniform region; After removing the target pixel point and the eight-neighborhood pixel points of the target pixel point, the pixel difference of the non-uniform transmissive image is obtained and set as the removed pixel difference. The ratio of the removed pixel difference to the standard pixel difference is set as the removed uniformity rate. When the removed uniformity rate is within the standard uniformity range, the analysis ends; When the removed uniformity rate is not within the standard uniformity range, the target pixel point is repeatedly selected until the removed uniformity rate is within the standard uniformity range; When the block uniformity rate is within the standard uniformity range, the target pixel point and the eight-neighborhood pixel points are set as the uniform region, and the target pixel point is reselected until the block uniformity rate is not within the standard uniformity range.

[0010] Further, comparing the known transmissive image and the comparison transmissive image based on the transmittance, and obtaining the transparency of the acrylic plate based on the comparison result includes the following sub-steps: Based on the non-uniform region, the comparison transmissive image is obtained, and the standard analysis is performed on the comparison transmissive image to obtain the pixel average value of the comparison transmissive image; Set the ratio of the pixel average value of the comparison light-transmitting image to the standard pixel average value as the light transmittance of the comparison light-transmitting image; Use the light-transmitting pixel comparison method to compare the light transmittances of all known light-transmitting images and the comparison light-transmitting image. The light-transmitting pixel comparison method is as follows: Obtain the absolute value of the difference between the light transmittances of all known light-transmitting images and the comparison light-transmitting image, and set it as the light-transmitting difference. When there is only one and only one minimum value of the light-transmitting difference, set the light transmittance corresponding to the known light-transmitting image corresponding to the minimum value of the light-transmitting difference as the light transmittance of the comparison light-transmitting image; when there are two minimum values of the light-transmitting difference, set the average value of the light transmittances corresponding to the known light-transmitting images corresponding to the two minimum values of the light-transmitting difference as the light transmittance of the comparison light-transmitting image.

[0011] In a second aspect, the present invention provides an acrylic sheet transparency detection system, including a light-transmitting acquisition module, an image analysis module, a distribution comparison module, and a light-transmitting comparison module; The light-transmitting acquisition module is used to perform light-transmitting acquisition on acrylic sheets with different known light transmittances, and set the light-transmitting image obtained based on the light-transmitting acquisition as the known light-transmitting image; perform light-transmitting acquisition on the acrylic transparent sheet to be detected, and set the obtained light-transmitting image as the to-be-detected light-transmitting image; The image analysis module uses grayscale processing and standard analysis to analyze the known light-transmitting image, obtains the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtains the standard uniform interval based on the uniformity rate; The distribution comparison module performs image analysis and distribution analysis on the to-be-detected light-transmitting image based on the standard uniform interval, obtains the non-uniform area, and obtains the comparison light-transmitting image; The light-transmitting comparison module compares the known light-transmitting image and the comparison light-transmitting image based on the light transmittance, and obtains the transparency of the acrylic sheet based on the comparison result.

[0012] In a third aspect, the present application provides an electronic device, including a processor and a memory. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the above method are run.

[0013] In a fourth aspect, the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are run.

[0014] Advantages of the present invention: First, the present invention performs light transmission acquisition on acrylic plates with different known light transmittances, sets the light transmission images obtained based on the light transmission acquisition as known light transmission images, then analyzes the known light transmission images using grayscale processing and standard analysis, obtains the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtains the standard uniformity interval based on the uniformity rate. The light transmittance and uniformity rate of the acrylic plates with known light transmittances are representative, providing accurate data support for subsequent comparison and analysis. When the present invention performs data acquisition on acrylic plates, it acquires the entire acrylic plate and then analyzes the light transmission image of the entire acrylic plate. Therefore, the analysis results obtained can show the light transmittance of the entire acrylic plate, enabling the overall detection of acrylic plates with new design structures, improving the detection efficiency, and avoiding waste of the plates caused by cutting the acrylic plates. Description of the Drawings

[0015] Figure 1 is the flowchart of the steps of the method of the present invention; Figure 2 is the schematic diagram of light transmission acquisition of the present invention; Figure 3 is the schematic diagram of distribution analysis of the present invention; Figure 4 is the principle block diagram of the system of the present invention; Figure 5 is the structural schematic diagram of the electronic device of the present invention. Detailed Embodiments

[0016] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0017] Embodiment 1, please refer to Figure 1 as shown, the present application provides a method for detecting the transparency of acrylic plates, including the following steps: Step S1: Perform light transmission acquisition on acrylic plates with different known light transmittances, and set the light transmission images obtained based on the light transmission acquisition as known light transmission images; Please refer to Figure 1 as shown, the light transmission acquisition includes: for any acrylic plate, a standard image is set on one side of the acrylic plate, and an image acquisition device is set on the side of the acrylic plate away from the standard image; in the specific implementation process, the standard image is multiple different color blocks, avoiding the situation that the change is not obvious after acquisition through the acrylic plate due to similar colors. When performing light transmission acquisition, use an image acquisition device to acquire a standard image on the other side of the acrylic board, and set the obtained image as the light transmission image; Step S2: Analyze the known light transmission image using grayscale processing and standard analysis, obtain the light transmittance and uniformity rate with different light transmittances based on the analysis results, and obtain the standard uniformity interval based on the uniformity rate; Step S2 includes the following sub-steps: Step S201: Perform grayscale processing on the standard image and the known light transmission image to obtain a standard grayscale image and a known grayscale image; Step S202: Perform standard analysis on the standard grayscale image and the known grayscale image respectively to obtain the standard pixel average value, the standard pixel difference, the pixel average value of the known light transmission image, and the pixel difference of the known light transmission image; The standard analysis includes: For any grayscale image, obtain the pixel values k1 to kn of all pixel points in the grayscale image, where n is the number of pixel points; Calculate the average pixel value of the pixel points of the grayscale image and record it as k0; Substitute the pixel values of all pixel points in the grayscale image and the average pixel value of all pixel points in the grayscale image into the pixel difference formula to calculate the pixel difference, where Y is the pixel difference, k0 is the average pixel value of all pixel points in the grayscale image, n is the number of pixel points, and kn is the pixel value of any pixel point in the grayscale image; In the specific implementation process, for example, in a standard analysis process, the grayscale values of all pixel points are obtained as 100, 105, 110, 104, 106, 103, and 107, the average pixel value of all pixel points in the grayscale image is 105, and Y is calculated to be 8.57 through calculation. The pixel difference can represent the color fluctuation on an image. The larger the pixel difference, the greater the color difference on the image, and the smaller the pixel difference, the smaller the color difference on the image; Step S203: For any known light transmission image, set the ratio of the pixel average value of the known light transmission image to the standard pixel average value as the light transmittance; In the specific implementation process, for example, a known light transmission image is obtained from an acrylic board with a light transmittance of 95%. The pixel average value of the known light transmission image is 196, and the standard pixel average value is 200, then the light transmittance is 98%; Step S204: Set the ratio of the pixel difference of the known light-transmitting image to the standard pixel difference as the uniformity rate, obtain the uniformity rates of all known light-transmitting images, and establish a standard uniformity interval. The minimum value of the standard uniformity interval is the minimum value among the uniformity rates of all known light-transmitting images, and the maximum value of the standard uniformity interval is the maximum value among the uniformity rates of all known light-transmitting images. In the specific implementation process, the standard pixel difference is 10. When the pixel differences of the obtained known light-transmitting images are 7.55, 8.57, 9.13, 10.90, 11.50, 10.33, and 10.11 respectively, the obtained standard uniformity interval is from 0.755 to 1.150; Step S3: Perform light-transmitting acquisition on the acrylic transparent plate to be detected, and set the obtained light-transmitting image as the light-transmitting image to be detected; Step S3 includes the following sub-steps: Step S301: Perform grayscale processing on the light-transmitting image to be detected to obtain the grayscale image to be detected; Step S302: Perform standard analysis on the grayscale image to be detected to obtain the pixel difference of the light-transmitting image to be detected, and set the ratio of the pixel difference of the light-transmitting image to be detected to the standard pixel difference as the uniformity rate to be detected; Step S303: When the uniformity rate to be detected is not within the standard uniformity interval, mark the light-transmitting image to be detected as a non-uniform light-transmitting image; When the uniformity rate to be detected is within the standard uniformity interval, mark the light-transmitting image to be detected as a uniform light-transmitting image; Step S304: Perform distribution analysis on any non-uniform light-transmitting image to obtain a non-uniform area; Please refer to Figure 3 As shown, the distribution analysis includes: For any pixel point on the non-uniform light-transmitting image, set it as the target pixel point, Obtain the pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point; Substitute the pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point into the block pixel difference formula to calculate the block pixel difference, where Q is the block pixel difference, p0 is the average value of the pixel values of the target pixel point and the eight-neighborhood pixel points of the target pixel point, pm is the pixel value of the target pixel point and the eight-neighborhood pixel points, and m is a positive integer. Set the ratio of the block pixel difference to the standard pixel difference as the block uniformity rate; In the specific implementation process, for example, in a distribution analysis process, the pixel values of the obtained target pixel point and the eight-neighborhood pixel points are 200, 204, 208, 210, 198, 204, 204, 207, and 201 respectively, and the calculated block pixel difference is 13.6; When the block uniformity rate is not within the standard uniformity interval, set the target pixel point and the eight-neighborhood pixel points as the non-uniform area; After removing the target pixel and the eight-neighbor pixels of the target pixel, the pixel difference of the uneven light-transmitting image is obtained and set as the removed pixel difference. The ratio of the removed pixel difference to the standard pixel difference is set as the removed uniformity rate. When the removed uniformity rate is within the standard uniformity range, the analysis ends; When the removed uniformity rate is not within the standard uniformity range, the target pixel is repeatedly selected until the removed uniformity rate is within the standard uniformity range; When the block uniformity rate is within the standard uniformity range, the target pixel and the eight-neighbor pixels are set as the uniform area, and the target pixel is reselected until the block uniformity rate is not within the standard uniformity range.

[0018] Step S305: Remove the uneven area on the uneven light-transmitting image, and set the remaining area as the comparison light-transmitting image.

[0019] Step S4: Based on the standard uniformity range, perform image analysis and distribution analysis on the to-be-detected light-transmitting image to obtain the uneven area, and obtain the comparison light-transmitting image; Step S5: Compare the known light-transmitting image and the comparison light-transmitting image based on the light transmittance, and obtain the transparency of the acrylic board based on the comparison result; Step S5 includes the following sub-steps: Step S501: Obtain the comparison light-transmitting image based on the uneven area, and perform standard analysis on the comparison light-transmitting image to obtain the pixel average value of the comparison light-transmitting image; Step S502: Set the ratio of the pixel average value of the comparison light-transmitting image to the standard pixel average value as the light transmittance of the comparison light-transmitting image; Step S503: Use the light-transmitting pixel comparison method to compare the light transmittance of all known light-transmitting images and the light transmittance of the comparison light-transmitting image. The light-transmitting pixel comparison method is as follows: Obtain the absolute value of the difference between the light transmittance of all known light-transmitting images and the light transmittance of the comparison light-transmitting image, and set it as the light-transmitting difference. When there is only one and only one minimum value of the light-transmitting difference, set the light transmittance corresponding to the known light-transmitting image corresponding to the minimum value of the light-transmitting difference as the light transmittance of the comparison light-transmitting image; when there are two minimum values of the light-transmitting difference, set the average value of the light transmittances corresponding to the two known light-transmitting images corresponding to the minimum values of the light-transmitting difference as the light transmittance of the comparison light-transmitting image.

[0020] Embodiment 2, please refer to Figure 4 As shown, the present application also provides an acrylic board transparency detection system, including a light-transmitting acquisition module, an image analysis module, a distribution comparison module, and a light-transmitting comparison module; The light-transmitting acquisition module is used to perform light-transmitting acquisition on acrylic plates with different known light transmittances, and set the light-transmitting image obtained based on the light-transmitting acquisition as the known light-transmitting image; perform light-transmitting acquisition on the acrylic transparent plate to be detected, and set the obtained light-transmitting image as the light-transmitting image to be detected. The light-transmitting acquisition module is configured with a light-transmitting acquisition strategy, and the light-transmitting acquisition strategy includes: for any acrylic plate, set a standard image on one side of the acrylic plate, and set an image acquisition device on the side of the acrylic plate away from the standard image. When performing light-transmitting acquisition, use the image acquisition device to acquire the standard image on the other side of the acrylic plate, and set the obtained image as the light-transmitting image. The image analysis module uses grayscale processing and standard analysis to analyze the known light-transmitting image, obtains the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtains the standard uniformity interval based on the uniformity rate. The image analysis module includes an image processing unit and a pixel analysis unit. The image processing unit is configured with an image processing strategy, and the image processing strategy includes performing grayscale processing on the standard image and the known light-transmitting image to obtain a standard grayscale image and a known grayscale image. The pixel analysis unit is configured with a pixel analysis strategy, and the pixel analysis strategy includes performing standard analysis on the standard grayscale image and the known grayscale image respectively to obtain the standard pixel average value, the standard pixel difference, the pixel average value of the known light-transmitting image, and the pixel difference of the known light-transmitting image; the standard analysis includes: for any grayscale image, obtain the pixel values k1 to kn of all pixel points in the grayscale image, where n is the number of pixel points. Calculate the average pixel value of the pixel points of the grayscale image, and record it as k0. Substitute the pixel values of all pixel points in the grayscale image and the average pixel value of all pixel points in the grayscale image into the pixel difference formula to calculate the pixel difference, where Y is the pixel difference, k0 is the average pixel value of all pixel points in the grayscale image, n is the number of pixel points, and kn is the pixel value of any pixel point in the grayscale image. For any known light-transmitting image, set the ratio of the pixel average value of the known light-transmitting image to the standard pixel average value as the light transmittance. Set the ratio of the pixel difference of the known light-transmitting image to the standard pixel difference as the uniformity rate, obtain the uniformity rates of all known light-transmitting images, establish a standard uniformity interval, the minimum value of the standard uniformity interval is the minimum value of the uniformity rates of all known light-transmitting images, and the maximum value of the standard uniformity interval is the maximum value of the uniformity rates of all known light-transmitting images.

[0021] The distribution comparison module performs image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval, obtains the uneven area, and obtains the comparison light transmission image; the distribution comparison module is configured with a distribution comparison strategy, which includes graying the light transmission image to be detected to obtain the grayscale image to be detected; Performing standard analysis on the grayscale image to be detected to obtain the pixel difference of the light-transmitting image to be detected, and setting the ratio of the pixel difference of the light-transmitting image to be detected to the standard pixel difference as the uniformity to be detected; When the uniformity to be detected is not within the standard uniformity interval, the light transmission image to be detected is marked as an uneven light transmission image; When the uniformity to be detected is within the standard uniformity interval, the light-transmitting image to be detected is marked as a uniform light-transmitting image; For any uneven light transmission image, distribution analysis is performed to obtain an uneven area; the distribution analysis includes: for any pixel point on the uneven light transmission image, setting it as a target pixel point, Obtain pixel values of the target pixel and its eight neighboring pixels; Substitute the pixel values of the target pixel and the eight neighboring pixels of the target pixel into the block pixel difference formula , the block pixel difference is calculated, where Q is the block pixel difference, p0 is the average pixel value of the target pixel and the eight neighboring pixels of the target pixel, pm is the pixel value of the target pixel and the eight neighboring pixels, m is a positive integer, and the ratio of the block pixel difference to the standard pixel difference is set as the block uniformity rate; When the block uniformity is not within the standard uniformity interval, the target pixel and the eight neighboring pixels are set as non-uniform areas; After eliminating the target pixel and the eight neighboring pixels of the target pixel, the pixel difference of the uneven light transmission image is obtained and set as the eliminated pixel difference. The ratio of the eliminated pixel difference to the standard pixel difference is set as the eliminated uniformity. When the eliminated uniformity is within the standard uniformity interval, the analysis ends. When the elimination uniformity is not within the standard uniformity interval, the target pixel point is repeatedly selected until the elimination uniformity is within the standard uniformity interval; When the block uniformity is within the standard uniformity interval, the target pixel and the eight neighborhood pixels are set as uniform areas, and the target pixel is reselected until the block uniformity is not within the standard uniformity interval.

[0022] The uneven areas on the uneven light transmission image are removed, and the remaining areas are set as the contrast light transmission image.

[0023] The light transmission comparison module compares the known light transmission image with the comparison light transmission image based on the light transmittance, and obtains the transparency of the acrylic plate based on the comparison result.

[0024] The light transmission comparison module is configured with a light transmission comparison strategy. The light transmission comparison strategy includes obtaining a comparison light transmission image based on the non-uniform region, and performing standard analysis on the comparison light transmission image to obtain the pixel average value of the comparison light transmission image; Set the ratio of the pixel average value of the comparison light transmission image to the standard pixel average value as the light transmittance of the comparison light transmission image; Use the light-transmitting pixel comparison method to compare the light transmittances of all known light transmission images and the comparison light transmission image. The light-transmitting pixel comparison method is as follows: Obtain the absolute value of the difference between the light transmittances of all known light transmission images and the comparison light transmission image, and set it as the light transmission difference. When there is only one and only one minimum value of the light transmission difference, set the light transmittance corresponding to the known light transmission image corresponding to the minimum value of the light transmission difference as the light transmittance of the comparison light transmission image; when there are two minimum values of the light transmission difference, set the average value of the light transmittances corresponding to the known light transmission images corresponding to the two minimum values of the light transmission difference as the light transmittance of the comparison light transmission image.

[0025] Example 3, please refer to Figure 5 as shown Figure 5 illustrates a schematic structural diagram of an electronic device. The electronic device may include: a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus. The memory stores computer-readable instructions. The processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, it runs the steps in a method for detecting the transparency of an acrylic plate to achieve the following functions: performing light transmission acquisition on acrylic plates with different known light transmittances, and setting the light transmission image obtained based on the light transmission acquisition as the known light transmission image; using grayscale processing and standard analysis to analyze the known light transmission image, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtaining the standard uniform interval based on the uniformity rate; performing light transmission acquisition on the acrylic transparent plate to be detected, and setting the obtained light transmission image as the light transmission image to be detected; performing image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval to obtain the non-uniform region, and obtaining the comparison light transmission image; comparing the known light transmission image and the comparison light transmission image based on the light transmittance, and obtaining the transparency of the acrylic plate based on the comparison result.

[0026] In addition, when the logical instructions in the above-mentioned memory can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.

[0027] Embodiment 4, this application also provides a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute an acrylic sheet transparency detection method provided by the above-mentioned various methods. The method includes: performing light transmission acquisition on acrylic sheets with different known light transmittances, and setting the light transmission images obtained based on the light transmission acquisition as known light transmission images; using grayscale processing and standard analysis to analyze the known light transmission images, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtaining a standard uniform interval based on the uniformity rate; performing light transmission acquisition on the acrylic transparent sheet to be detected, and setting the obtained light transmission image as the light transmission image to be detected; performing image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval, obtaining non-uniform regions, and obtaining a comparison light transmission image; comparing the known light transmission image with the comparison light transmission image based on the light transmittance, and obtaining the transparency of the acrylic sheet based on the comparison result.

[0028] Example 5. The present application also provides a computer-readable storage medium. The present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method for detecting the transparency of an acrylic plate are run to achieve the following functions: performing light transmission acquisition on acrylic plates with different known light transmittances, and setting the light transmission images obtained based on the light transmission acquisition as known light transmission images; analyzing the known light transmission images using grayscale processing and standard analysis, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtaining a standard uniformity interval based on the uniformity rate; performing light transmission acquisition on the acrylic transparent plate to be detected, and setting the obtained light transmission image as the light transmission image to be detected; performing image analysis and distribution analysis on the light transmission image to be detected based on the standard uniformity interval, obtaining non-uniform regions, and obtaining a comparison light transmission image; comparing the known light transmission image with the comparison light transmission image based on the light transmittance, and obtaining the transparency of the acrylic plate based on the comparison result.

[0029] Through the description of the above embodiments, the embodiments of the present invention can be provided as a method, a system or a computer program product. Based on such an understanding, the above technical solution, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0030] In the embodiments provided by the present application, it should be understood that the disclosed system or method can be implemented in other ways. The above-described embodiments are merely illustrative. For example, the division of modules or units is only a logical function division, and there can be other division methods in actual implementation. For another example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some communication interfaces. The indirect coupling or communication connection of systems, modules and units can be in an electrical, mechanical or other form.

[0031] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting the transparency of an acrylic plate, characterized in that, It includes the following steps: Perform light transmission acquisition on acrylic plates with different known light transmittances, and set the light transmission images obtained based on the light transmission acquisition as known light transmission images; Analyze the known light transmission images using grayscale processing and standard analysis, obtain the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtain the standard uniformity interval based on the uniformity rate; Perform light transmission acquisition on the acrylic transparent plate to be detected, and set the obtained light transmission image as the light transmission image to be detected; Perform image analysis and distribution analysis on the light transmission image to be detected based on the standard uniformity interval, obtain the non-uniform area, and delete the non-uniform area to obtain the comparison light transmission image; Compare the known light transmission image and the comparison light transmission image based on the light transmittance, and obtain the transparency of the acrylic plate based on the comparison result.

2. The method for detecting the transparency of an acrylic board according to claim 1, characterized in that, The light transmission acquisition includes: for any acrylic plate, set a standard image on one side of the acrylic plate, and set an image acquisition device on the side of the acrylic plate away from the standard image; During light transmission acquisition, use the image acquisition device to acquire the standard image on the other side of the acrylic plate, and set the obtained image as the light transmission image.

3. A method for detecting the transparency of an acrylic board according to claim 2, characterized in that, The step of analyzing the known light transmission image using grayscale processing and standard analysis, obtaining the light transmittance and uniformity rate of different light transmittances based on the analysis results, and obtaining the standard uniformity interval based on the uniformity rate includes the following sub-steps: Perform grayscale processing on the standard image and the known light transmission image to obtain the standard grayscale image and the known grayscale image; Perform standard analysis on the standard grayscale image and the known grayscale image respectively to obtain the standard pixel average value, the standard pixel difference, the pixel average value of the known light transmission image, and the pixel difference of the known light transmission image; For any known light transmission image, set the ratio of the pixel average value of the known light transmission image to the standard pixel average value as the light transmittance; Set the ratio of the pixel difference of the known light transmission image to the standard pixel difference as the uniformity rate, obtain the uniformity rates of all known light transmission images, establish the standard uniformity interval, the minimum value of the standard uniformity interval is the minimum value among the uniformity rates of all known light transmission images, and the maximum value of the standard uniformity interval is the maximum value among the uniformity rates of all known light transmission images.

4. A method for detecting the transparency of an acrylic plate according to claim 3, characterized in that, The standard analysis includes: For any grayscale image, obtain the pixel values k1 to kn of all pixel points in the grayscale image, where n is the number of pixel points; Calculate the average pixel value of the pixel points of the grayscale image and record it as k0; Substitute the pixel values of all pixel points in the grayscale image and the average pixel value of all pixel points in the grayscale image into the pixel difference formula to calculate the pixel difference, where Y is the pixel difference, k0 is the average pixel value of all pixel points in the grayscale image, n is the number of pixel points, and kn is the pixel value of any one pixel point in the grayscale image.

5. A method for detecting the transparency of an acrylic plate according to claim 4, characterized in that, The step of performing image analysis and distribution analysis on the light transmission image to be detected based on the standard uniformity interval, obtaining the non-uniform area, and obtaining the comparison light transmission image includes the following sub-steps: Perform grayscale processing on the light transmission image to be detected to obtain the grayscale image to be detected; Perform standard analysis on the grayscale image to be detected to obtain the pixel difference of the light transmission image to be detected, and set the ratio of the pixel difference of the light transmission image to be detected to the standard pixel difference as the uniformity rate to be detected; When the uniformity rate to be detected is not within the standard uniformity interval, mark the light transmission image to be detected as a non-uniform light transmission image; When the uniformity rate to be detected is within the standard uniformity interval, mark the light transmission image to be detected as a uniform light transmission image; Perform distribution analysis on any non-uniform light-transmitting image to obtain non-uniform regions; Remove the non-uniform regions on the non-uniform light-transmitting image, and set the remaining regions as the comparison light-transmitting image.

6. A method for detecting the transparency of an acrylic sheet according to claim 1, characterized in that, The distribution analysis includes: for any pixel point on the non-uniform light-transmitting image, set it as the target pixel point, Obtain the pixel values of the target pixel point and the eight-neighbor pixel points of the target pixel point; Substitute the pixel values of the target pixel and the eight-neighborhood pixels of the target pixel into the block pixel difference formula to calculate the block pixel difference. Here, Q is the block pixel difference, p0 is the average value of the pixel values of the target pixel and the eight-neighborhood pixels of the target pixel, pm is the pixel value of the target pixel and the eight-neighborhood pixels, and m is a positive integer. Set the ratio of the block pixel difference to the standard pixel difference as the block uniformity rate; When the block uniformity rate is not within the standard uniformity interval, set the target pixel point and the eight-neighbor pixel points as non-uniform regions; After removing the target pixel point and the eight-neighbor pixel points of the target pixel point, obtain the pixel difference of the non-uniform light-transmitting image, set it as the removed pixel difference, and set the ratio of the removed pixel difference to the standard pixel difference as the removed uniformity rate. When the removed uniformity rate is within the standard uniformity interval, end the analysis; When the removed uniformity rate is not within the standard uniformity interval, repeat selecting the target pixel point until the removed uniformity rate is within the standard uniformity interval; When the block uniformity rate is within the standard uniformity interval, set the target pixel point and the eight-neighbor pixel points as uniform regions, and re-select the target pixel point until the block uniformity rate is not within the standard uniformity interval.

7. A method for detecting the transparency of an acrylic plate according to claim 1, characterized in that, The comparison of the known light-transmitting image and the comparison light-transmitting image based on the light transmittance, and obtaining the transparency of the acrylic plate based on the comparison result includes the following sub-steps: Obtain the comparison light-transmitting image based on the non-uniform region, and perform standard analysis on the comparison light-transmitting image to obtain the pixel average value of the comparison light-transmitting image; Set the ratio of the pixel average value of the comparison light-transmitting image to the standard pixel average value as the light transmittance of the comparison light-transmitting image; Use the light-transmitting pixel comparison method to compare the light transmittance of all known light-transmitting images and the light transmittance of the comparison light-transmitting image. The light-transmitting pixel comparison method is: Obtain the absolute value of the difference between the light transmittance of all known light-transmitting images and the light transmittance of the comparison light-transmitting image, and set it as the light-transmitting difference. When there is only one minimum value of the light-transmitting difference, set the light transmittance corresponding to the known light-transmitting image corresponding to the minimum value of the light-transmitting difference as the light transmittance of the comparison light-transmitting image; when there are two minimum values of the light-transmitting difference, set the average value of the light transmittances corresponding to the two known light-transmitting images corresponding to the minimum values of the light-transmitting difference as the light transmittance of the comparison light-transmitting image.

8. An acrylic sheet transparency detection system for implementing the acrylic sheet transparency detection method according to any one of claims 1-7, characterized in that, It includes a light-transmitting acquisition module, an image analysis module, a distribution comparison module, and a light-transmitting comparison module; The light-transmitting acquisition module is used to perform light-transmitting acquisition on acrylic plates with different known light transmittances, and set the light-transmitting image obtained based on the light-transmitting acquisition as the known light-transmitting image; perform light-transmitting acquisition on the acrylic transparent plate to be detected, and set the obtained light-transmitting image as the to-be-detected light-transmitting image; The image analysis module uses grayscale processing and standard analysis to analyze the known light-transmitting image, obtains the light transmittance and uniformity rate of different light transmittances based on the analysis result, and obtains the standard uniformity interval based on the uniformity rate; The distribution comparison module performs image analysis and distribution analysis on the to-be-detected light-transmitting image based on the standard uniformity interval, obtains the non-uniform region, and obtains the comparison light-transmitting image; The light transmittance comparison module compares a known light transmission image with a comparison light transmission image based on the light transmittance, and obtains the transparency of the acrylic plate based on the comparison result.

9. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1-7 are run.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps in the method according to any one of claims 1-7 are run.

Citation Information

Patent Citations

  • Method and device for detecting transmittance of transparent substrate

    CN106226033A

  • Method and system for characterizing surface uniformity

    CN112912717A

  • Image processing method and device, and training method and device of image processing model

    CN113139911A

  • Method, device and system for detecting light transmittance of adhesive tape

    CN117589726A

  • Beacon light surface defect identification method and system

    CN118691606A