Acrylic plate transparency detection method, system, equipment and medium
By setting a standard image on the acrylic plate and collecting and analyzing the transparent image, the problem of incomplete detection of the entire acrylic plate is solved, efficient transparency detection is achieved, and waste caused by cutting is avoided.
Patent Information
- Application Number
- CN202510835172.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-06-20
AI Technical Summary
It is difficult to conduct overall transparency testing on an entire acrylic sheet with a newly designed structure in the existing technology. Individual cutting and testing are required, resulting in incomplete and inefficient testing, and the cut parts are not representative of the whole.
By setting a standard image on one side of the acrylic plate, using an image acquisition device to capture the transmittance image, grayscale processing and standard analysis are performed to obtain the transmittance and uniformity. The image to be tested is analyzed based on the standard uniform interval, the uneven area is eliminated, and the transmittance comparison is performed to obtain the transparency of the acrylic plate.
It realizes the overall transparency detection of the entire acrylic board, improves the detection efficiency, avoids the waste of the board, and provides accurate data support.
Smart Images

Figure CN120374599B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and in particular to a method, system, equipment 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, a measure of how much light can maintain its original intensity after passing through the object; in acrylic sheets, transparency refers to the degree to which acrylic transmits light;
[0003] In the prior art, when testing the transparency of acrylic sheets, especially for processed acrylic sheets, such as a whole grid-shaped acrylic sheet, or acrylic sheets with other design structures, the acrylic sheet is usually cut into multiple small pieces, and only the parts without design are selected for light transmittance testing. The selected part of the sample is placed in a spectrophotometer to measure the transparency of the sample. The prior art is not convenient for overall testing of the entire acrylic sheet with a new design structure, and the designed part cannot be eliminated. It needs to be cut separately during testing, and the cut part may not be representative of the whole, resulting in incomplete testing and low testing efficiency. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent. By setting a standard image behind an acrylic plate, the standard image is captured through the acrylic plate to obtain a light-transmitting image, and the light transmittance of the acrylic plate is obtained by image analysis of the light-transmitting image. The light transmittance of the acrylic plate to be inspected is compared with the light transmittance of the acrylic plate with known transparency to obtain the transparency of the acrylic plate, so as to solve the problem in the prior art that it is inconvenient to perform overall inspection on the entire acrylic plate with a new design structure, the design part therein cannot be eliminated, and it needs to be cut separately during inspection, and the cut part may not be representative of the whole, resulting in incomplete inspection and low inspection efficiency.
[0005] To achieve the above objectives, in a first aspect, the present application provides a method for detecting the transparency of an acrylic plate, comprising the following steps:
[0006] Performing light transmission collection on acrylic plates of different known light transmittances, and setting the light transmission images obtained based on the light transmission collection as known light transmission images;
[0007] Analyze the known light transmittance image using grayscale processing and standard analysis, obtain the transmittance and uniformity of different transmittances based on the analysis results, and obtain the standard uniformity interval based on the uniformity;
[0008] Perform light transmission collection on the acrylic transparent plate to be inspected, and set the obtained light transmission image as the light transmission image to be inspected;
[0009] Perform image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval, obtain the uneven area, and obtain a contrast light transmission image;
[0010] The known light transmission image and the comparison light transmission image are compared based on the transmittance, and the transparency of the acrylic plate is obtained based on the comparison result.
[0011] Furthermore, the light transmission acquisition includes: for any acrylic plate, setting a standard image on one side of the acrylic plate, and setting an image acquisition device on the side of the acrylic plate away from the standard image;
[0012] When performing light transmission acquisition, an image acquisition device is used to acquire a standard image on the other side of the acrylic plate, and the obtained image is set as the light transmission image.
[0013] Furthermore, the method of analyzing the known light transmittance image using grayscale processing and standard analysis, obtaining the transmittance and uniformity of different transmittances based on the analysis results, and obtaining the standard uniformity interval based on the uniformity includes the following sub-steps:
[0014] Grayscale processing is performed on the standard image and the known light transmission image to obtain a standard grayscale image and a known grayscale image;
[0015] Perform standard analysis on the standard grayscale image and the known grayscale image respectively to obtain the standard pixel average, standard pixel difference, pixel average of the known light-transmitting image, and pixel difference of the known light-transmitting image;
[0016] For any known light-transmittance image, the ratio of the pixel average value of the known light-transmittance image to the standard pixel average value is set as the light transmittance;
[0017] The ratio of the pixel difference of the known light-transmitting image to the standard pixel difference is set as the uniformity, the uniformity of all known light-transmitting images is obtained, and a standard uniformity interval is established, wherein 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.
[0018] Furthermore, the standard analysis includes:
[0019] For any grayscale image, obtain the pixel values k1 to kn of all pixels in the grayscale image, where n is the number of pixels;
[0020] Calculate the average pixel value of the pixels of the grayscale image and record it as k0;
[0021] Substitute the pixel values of all pixels in the grayscale image and the average pixel value of all pixels in the grayscale image into the pixel difference formula , the pixel difference is calculated, where Y is the pixel difference, k0 is the average pixel value of all pixels in the grayscale image, n is the number of pixels, and kn is the pixel value of any pixel in the grayscale image.
[0022] Furthermore, the image analysis and distribution analysis of the light transmission image to be detected based on the standard uniform interval to obtain the non-uniform area and obtain the comparative light transmission image includes the following sub-steps:
[0023] Grayscale processing is performed on the light-transmitting image to be detected to obtain a grayscale image to be detected;
[0024] 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;
[0025] When the uniformity to be detected is not within the standard uniformity interval, the light transmission image to be detected is marked as a non-uniform light transmission image;
[0026] 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;
[0027] Perform distribution analysis on any uneven light transmission image to obtain the uneven area;
[0028] The uneven areas on the uneven light transmission image are removed, and the remaining areas are set as the contrast light transmission image.
[0029] Furthermore, the distribution analysis includes: setting any pixel point on the uneven light transmission image as a target pixel point,
[0030] Get the pixel values of the target pixel and its eight neighboring pixels;
[0031] 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 its eight neighboring pixels, pm is the pixel value of the target pixel and its 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;
[0032] 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;
[0033] After removing the target pixel and its eight neighboring pixels, the pixel difference of the uneven light transmission 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. When the removed uniformity is within the standard uniformity range, the analysis ends.
[0034] 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;
[0035] When the block uniformity is within the standard uniformity interval, the target pixel and the eight neighboring pixels are set as uniform areas, and the target pixel is reselected until the block uniformity is no longer within the standard uniformity interval.
[0036] Furthermore, the step of 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 includes the following sub-steps:
[0037] Acquire a contrast transmission image based on the uneven area, perform standard analysis on the contrast transmission image, and obtain a pixel average value of the contrast transmission image;
[0038] The ratio of the pixel average value of the contrast light transmission image to the standard pixel average value is set as the transmittance of the contrast light transmission image;
[0039] The transmittance of all known transmittance images and the transmittance of the comparison transmittance image are compared using the transmittance pixel comparison method. The transmittance pixel comparison method is:
[0040] Obtain the absolute value of the difference between the transmittance of all known transmittance images and the transmittance of the comparison transmittance image, and set it as the transmittance difference. When there is only one minimum value of the transmittance difference, the transmittance corresponding to the known transmittance image corresponding to the minimum value of the transmittance difference is set as the transmittance of the comparison transmittance image; when there are two minimum values of the transmittance difference, the average value of the transmittance corresponding to the known transmittance images corresponding to the two minimum values of the transmittance difference is set as the transmittance of the comparison transmittance image.
[0041] In a second aspect, the present invention provides an acrylic plate transparency detection system, comprising a light transmission acquisition module, an image analysis module, a distribution comparison module, and a light transmission comparison module;
[0042] The light transmission acquisition module is used to perform light transmission acquisition on acrylic plates of different known light transmittances, and set the light transmission images obtained based on the light transmission acquisition as the known light transmission images; perform light transmission acquisition on the acrylic transparent plate to be inspected, and set the obtained light transmission images as the light transmission images to be inspected;
[0043] The image analysis module analyzes the known light transmittance image using grayscale processing and standard analysis, obtains the transmittance and uniformity of different transmittances based on the analysis results, and obtains the standard uniformity interval based on the uniformity;
[0044] 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 a comparative light transmission image;
[0045] 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.
[0046] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the above method are performed.
[0047] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are executed.
[0048] Beneficial effects of the present invention: The present invention first collects light transmission data from acrylic plates of different known transmittances, sets the light transmission images obtained based on the light transmission data collection as known light transmission images, then uses grayscale processing and standard analysis to analyze the known light transmission images, obtains the transmittance and uniformity of different transmittances based on the analysis results, and obtains a standard uniformity interval based on the uniformity. The transmittance and uniformity of acrylic plates of known transmittance are representative, providing accurate data support for subsequent comparative analysis;
[0049] When collecting data on an acrylic plate, the present invention collects data from the entire acrylic plate and then analyzes the light transmittance image of the entire acrylic plate. Therefore, the obtained analysis result can display the light transmittance of the entire acrylic plate, and can achieve overall detection of acrylic plates with new design structures, thereby improving detection efficiency and avoiding plate waste caused by cutting the acrylic plate. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a flow chart of the steps of the method of the present invention;
[0051] Figure 2 This is a schematic diagram of light transmission collection according to the present invention;
[0052] Figure 3 A schematic diagram of the distribution analysis of the present invention;
[0053] Figure 4 is a functional block diagram of the system of the present invention;
[0054] Figure 5 Schematic diagram of the structure of the electronic device of the present invention. DETAILED DESCRIPTION
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0056] Example 1, please refer to Figure 1 As shown, the present application provides a method for detecting the transparency of an acrylic plate, comprising the following steps:
[0057] Step S1: performing light transmission acquisition on acrylic plates of different known light transmittances, and setting the light transmission images obtained based on the light transmission acquisition as known light transmission images;
[0058] See also 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 a plurality of different color blocks to avoid unclear changes after acquisition through the acrylic plate due to similar colors;
[0059] When performing light transmission acquisition, use an image acquisition device to capture a standard image on the other side of the acrylic plate, and set the obtained image as the light transmission image;
[0060] Step S2: Analyze the known light transmittance image using grayscale processing and standard analysis, obtain the transmittance and uniformity of different transmittances based on the analysis results, and obtain the standard uniformity interval based on the uniformity;
[0061] Step S2 includes the following sub-steps:
[0062] Step S201: grayscale processing is performed on the standard image and the known light transmission image to obtain a standard grayscale image and a known grayscale image;
[0063] Step S202: performing standard analysis on the standard grayscale image and the known grayscale image respectively to obtain a standard pixel average, a standard pixel difference, a pixel average of a known light-transmitting image, and a pixel difference of a known light-transmitting image;
[0064] Standard analyses include:
[0065] For any grayscale image, obtain the pixel values k1 to kn of all pixels in the grayscale image, where n is the number of pixels;
[0066] Calculate the average pixel value of the pixels of the grayscale image and record it as k0;
[0067] Substitute the pixel values of all pixels in the grayscale image and the average pixel value of all pixels in the grayscale image into the pixel difference formula , the pixel difference is calculated, where Y is the pixel difference, k0 is the average pixel value of all pixels in the grayscale image, n is the number of pixels, and kn is the pixel value of any pixel in the grayscale image. In a specific implementation, for example, in a standard analysis process, the grayscale values of all pixels are obtained as 100, 105, 110, 104, 106, 103, and 107, respectively, and the average pixel value of all pixels in the grayscale image is 105. Y is calculated to be 8.57. 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.
[0068] Step S203: For any known light-transmitting image, the ratio of the pixel average value of the known light-transmitting image to the standard pixel average value is set as the light transmittance. In a specific implementation, for example, if a known light-transmitting image is obtained from an acrylic plate with a light transmittance of 95%, the pixel average value of the known light-transmitting image is 196, and the standard pixel average value is 200, then the light transmittance is 98%.
[0069] Step S204: setting the ratio of the pixel difference of the known light transmission image to the standard pixel difference as the uniformity, obtaining the uniformities of all known light transmission images, and establishing a standard uniformity interval. The minimum value of the standard uniformity interval is the minimum value among the uniformities of all known light transmission images, and the maximum value of the standard uniformity interval is the maximum value among the uniformities of all known light transmission images. In a specific implementation, the standard pixel difference is 10. When the pixel differences of the obtained known light transmission images are 7.55, 8.57, 9.13, 10.90, 11.50, 10.33, and 10.11, respectively, the obtained standard uniformity interval is 0.755 to 1.150.
[0070] Step S3: collecting light transmission images of the acrylic transparent plate to be inspected, and setting the obtained light transmission images as the light transmission images to be inspected;
[0071] Step S4: performing image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval, obtaining the non-uniform area, and obtaining a comparative light transmission image;
[0072] Step S4 includes the following sub-steps:
[0073] Step S401: grayscale the light-transmitting image to be detected to obtain a grayscale image to be detected;
[0074] Step S402: 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;
[0075] Step S403: When the uniformity to be detected is not within the standard uniformity range, the light transmission image to be detected is marked as a non-uniform light transmission image;
[0076] 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;
[0077] Step S404: performing distribution analysis on any uneven light transmission image to obtain an uneven area;
[0078] See also Figure 3 As shown, the distribution analysis includes: for any pixel point on the uneven light transmission image, set it as the target pixel point,
[0079] Get the pixel values of the target pixel and its eight neighboring pixels;
[0080] 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 of the pixel values 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; in a specific implementation process, for example, in a distribution analysis process, the pixel values of the target pixel and the eight neighboring pixels are obtained as 200, 204, 208, 210, 198, 204, 204, 207 and 201 respectively, and the calculated block pixel difference is 13.6;
[0081] 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;
[0082] After removing the target pixel and its eight neighboring pixels, the pixel difference of the uneven light transmission 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. When the removed uniformity is within the standard uniformity range, the analysis ends.
[0083] 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;
[0084] When the block uniformity is within the standard uniformity interval, the target pixel and the eight neighboring pixels are set as uniform areas, and the target pixel is reselected until the block uniformity is no longer within the standard uniformity interval.
[0085] Step S405: removing the uneven areas on the uneven light transmission image, and setting the remaining areas as the contrast light transmission image.
[0086] Step S5: comparing the known light transmission image with the comparison light transmission image based on the transmittance, and obtaining the transparency of the acrylic plate based on the comparison result;
[0087] Step S5 includes the following sub-steps:
[0088] Step S501: acquiring a contrast light transmission image based on the non-uniform area, and performing standard analysis on the contrast light transmission image to obtain a pixel average value of the contrast light transmission image;
[0089] Step S502: setting the ratio of the average pixel value of the contrast light transmission image to the average pixel value of the standard as the transmittance of the contrast light transmission image;
[0090] Step S503: using a light-transmitting pixel comparison method to compare the transmittances of all known light-transmitting images and the transmittance of the comparison light-transmitting image. The light-transmitting pixel comparison method is:
[0091] Obtain the absolute value of the difference between the transmittance of all known transmittance images and the transmittance of the comparison transmittance image, and set it as the transmittance difference. When there is only one minimum value of the transmittance difference, the transmittance corresponding to the known transmittance image corresponding to the minimum value of the transmittance difference is set as the transmittance of the comparison transmittance image; when there are two minimum values of the transmittance difference, the average value of the transmittance corresponding to the known transmittance images corresponding to the two minimum values of the transmittance difference is set as the transmittance of the comparison transmittance image.
[0092] Example 2, please refer to Figure 4 As shown, the present application also provides an acrylic plate transparency detection system, including a light transmission acquisition module, an image analysis module, a distribution comparison module and a light transmission comparison module;
[0093] The light transmission acquisition module is used to collect light transmission from acrylic plates with different known light transmittances, and set the light transmission images obtained based on the light transmission acquisition as the known light transmission images; and to collect light transmission from the acrylic transparent plate to be tested, and set the obtained light transmission images as the light transmission images to be tested;
[0094] The light transmission acquisition module is configured with a light transmission acquisition strategy, which includes: for any acrylic plate, setting a standard image on one side of the acrylic plate and setting an image acquisition device on the side of the acrylic plate away from the standard image;
[0095] When performing light transmission acquisition, use an image acquisition device to capture a standard image on the other side of the acrylic plate, and set the obtained image as the light transmission image;
[0096] The image analysis module uses grayscale processing and standard analysis to analyze the known light transmittance image, obtains the transmittance and uniformity of different transmittances based on the analysis results, and obtains the standard uniformity interval based on the uniformity;
[0097] 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. The image processing strategy includes grayscale processing of the standard image and the known light transmission image to obtain a standard grayscale image and a known grayscale image.
[0098] The pixel analysis unit is configured with a pixel analysis strategy, which includes performing standard analysis on the standard grayscale image and the known grayscale image, respectively, to obtain the standard pixel average, standard pixel difference, the pixel average of the known light transmission image, and the pixel difference of the known light transmission image. The standard analysis includes: for any grayscale image, obtaining pixel values k1 to kn of all pixels in the grayscale image, where n is the number of pixels;
[0099] Calculate the average pixel value of the pixels of the grayscale image and record it as k0;
[0100] Substitute the pixel values of all pixels in the grayscale image and the average pixel value of all pixels in the grayscale image into the pixel difference formula , the pixel difference is calculated, where Y is the pixel difference, k0 is the average pixel value of all pixels in the grayscale image, n is the number of pixels, and kn is the pixel value of any pixel in the grayscale image;
[0101] For any known light-transmittance image, the ratio of the pixel average value of the known light-transmittance image to the standard pixel average value is set as the light transmittance;
[0102] The ratio of the pixel difference of the known light-transmitting image to the standard pixel difference is set as the uniformity, the uniformity of all known light-transmitting images is obtained, and a standard uniformity interval is established. The minimum value of the standard uniformity interval is the minimum value of the uniformity of all known light-transmitting images, and the maximum value of the standard uniformity interval is the maximum value of the uniformity of all known light-transmitting images.
[0103] 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 a comparison light transmission image; the distribution comparison module is configured with a distribution comparison strategy, which includes grayscale processing of the light transmission image to be detected to obtain a grayscale image to be detected;
[0104] 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;
[0105] When the uniformity to be detected is not within the standard uniformity interval, the light transmission image to be detected is marked as a non-uniform light transmission image;
[0106] 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;
[0107] For any uneven light transmission image, distribution analysis is performed to obtain the uneven area; the distribution analysis includes: for any pixel point on the uneven light transmission image, setting it as the target pixel point,
[0108] Get the pixel values of the target pixel and its eight neighboring pixels;
[0109] 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 its eight neighboring pixels, pm is the pixel value of the target pixel and its 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;
[0110] 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;
[0111] After removing the target pixel and its eight neighboring pixels, the pixel difference of the uneven light transmission 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. When the removed uniformity is within the standard uniformity range, the analysis ends.
[0112] 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;
[0113] When the block uniformity is within the standard uniformity interval, the target pixel and the eight neighboring pixels are set as uniform areas, and the target pixel is reselected until the block uniformity is no longer within the standard uniformity interval.
[0114] The uneven areas on the uneven light transmission image are removed, and the remaining areas are set as the contrast light transmission image.
[0115] 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.
[0116] The light transmission comparison module is configured with a light transmission comparison strategy, which includes obtaining a contrast light transmission image based on the uneven area, and performing a standard analysis on the contrast light transmission image to obtain a pixel average value of the contrast light transmission image;
[0117] The ratio of the pixel average value of the contrast light transmission image to the standard pixel average value is set as the transmittance of the contrast light transmission image;
[0118] The transmittance of all known transmittance images and the transmittance of the comparison transmittance image are compared using the transmittance pixel comparison method. The transmittance pixel comparison method is:
[0119] Obtain the absolute value of the difference between the transmittance of all known transmittance images and the transmittance of the comparison transmittance image, and set it as the transmittance difference. When there is only one minimum value of the transmittance difference, the transmittance corresponding to the known transmittance image corresponding to the minimum value of the transmittance difference is set as the transmittance of the comparison transmittance image; when there are two minimum values of the transmittance difference, the average value of the transmittance corresponding to the known transmittance images corresponding to the two minimum values of the transmittance difference is set as the transmittance of the comparison transmittance image.
[0120] Example 3, please refer to Figure 5 As shown, Figure 5 A schematic diagram of the structure of an electronic device is provided. The electronic device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps of a method for detecting the transparency of an acrylic plate are executed to implement the following functions: light transmission acquisition is performed on acrylic plates of different known transmittances, and a light transmission image obtained based on the light transmission acquisition is set as a known light transmission image; the known light transmission image is analyzed using grayscale processing and standard analysis, and the transmittance and uniformity of different transmittances are obtained based on the analysis results, and a standard uniformity interval is obtained based on the uniformity; light transmission acquisition is performed on an acrylic transparent plate to be detected, and the obtained light transmission image is set as the light transmission image to be detected; image analysis and distribution analysis are performed on the light transmission image to be detected based on the standard uniformity interval to obtain uneven areas and obtain a comparison light transmission image; the known light transmission image and the comparison light transmission image are compared based on the transmittance, and the transparency of the acrylic plate is obtained based on the comparison result.
[0121] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
[0122] Example 4. The present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute an acrylic plate transparency detection method provided by the above methods, the method including: performing light transmittance collection on acrylic plates with different known transmittances, and setting the light transmittance image obtained based on the light transmittance collection as a known light transmittance image; using grayscale processing and standard analysis to analyze the known light transmittance image, obtaining the transmittance and uniformity of different transmittances based on the analysis results, and obtaining a standard uniformity interval based on the uniformity; performing light transmittance collection on the acrylic transparent plate to be detected, and setting the obtained light transmittance image as the light transmittance image to be detected; performing image analysis and distribution analysis on the light transmittance image to be detected based on the standard uniformity interval, obtaining an uneven area, and obtaining a comparative light transmittance image; comparing the known light transmittance image with the comparative light transmittance image based on the transmittance, and obtaining the transparency of the acrylic plate based on the comparison result.
[0123] 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 acrylic plate transparency detection method are executed to achieve the following functions: light transmittance collection is performed on acrylic plates with different known transmittances, and the light transmittance image obtained based on the light transmittance collection is set as the known light transmittance image; the known light transmittance image is analyzed using grayscale processing and standard analysis, and the transmittance and uniformity of different transmittances are obtained based on the analysis results, and the standard uniformity interval is obtained based on the uniformity; light transmittance collection is performed on the acrylic transparent plate to be detected, and the obtained light transmittance image is set as the light transmittance image to be detected; image analysis and distribution analysis are performed on the light transmittance image to be detected based on the standard uniformity interval to obtain an uneven area and obtain a comparative light transmittance image; the known light transmittance image and the comparative light transmittance image are compared based on the transmittance, and the transparency of the acrylic plate is obtained based on the comparison result.
[0124] Through the description of the above embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the essence of the above technical solutions or the portion that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (such as a personal computer, server, or network device) to execute the methods described in various embodiments or certain portions of the embodiments.
[0125] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting transparency of acrylic sheets, characterized in that: The steps include: Performing light transmission collection on acrylic plates of different known light transmittances, and setting the light transmission images obtained based on the light transmission collection as known light transmission images; Analyze the known light transmittance image using grayscale processing and standard analysis, obtain the transmittance and uniformity of different transmittances based on the analysis results, and obtain the standard uniformity interval based on the uniformity; Perform light transmission collection on the acrylic transparent plate to be inspected, and set the obtained light transmission image as the light transmission image to be inspected; Perform image analysis and distribution analysis on the light transmission image to be detected based on the standard uniform interval to obtain the uneven area, and then delete the uneven area to obtain the contrast light transmission image; Comparing the known light transmission image with the comparison light transmission image based on the transmittance, and obtaining the transparency of the acrylic plate based on the comparison result; The method of analyzing a known light transmittance image using grayscale processing and standard analysis, obtaining transmittance and uniformity of different transmittances based on the analysis results, and obtaining a standard uniformity interval based on the uniformity includes the following sub-steps: Grayscale processing is performed on the standard image and the known light transmission 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, standard pixel difference, pixel average of the known light-transmitting image, and pixel difference of the known light-transmitting image; For any known light-transmittance image, the ratio of the pixel average value of the known light-transmittance image to the standard pixel average value is set as the light transmittance; The ratio of the pixel difference of the known light transmission image to the standard pixel difference is set as the uniformity, the uniformity of all known light transmission images is obtained, and a standard uniformity interval is established, wherein the minimum value of the standard uniformity interval is the minimum value of the uniformity of all known light transmission images, and the maximum value of the standard uniformity interval is the maximum value of the uniformity of all known light transmission images; The method of 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 area and obtain the comparative light transmission image includes the following sub-steps: Grayscale processing is performed on the light-transmitting image to be detected to obtain a 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 a non-uniform 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; Perform distribution analysis on any uneven light transmission image to obtain the uneven area; Eliminate the uneven areas on the uneven light transmission image and set the remaining areas as the contrast light transmission image; The distribution analysis includes: setting any pixel point on the uneven light transmission image as a target pixel point, Get the 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 its eight neighboring pixels, pm is the pixel value of the target pixel and its 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 removing the target pixel and its eight neighboring pixels, the pixel difference of the uneven light transmission 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. When the removed uniformity is within the standard uniformity range, 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 neighboring pixels are set as uniform areas, and the target pixel is reselected until the block uniformity is no longer within the standard uniformity interval.
2. The method for detecting transparency of an acrylic plate according to claim 1, wherein: The light transmission acquisition includes: for any acrylic plate, setting a standard image on one side of the acrylic plate, and setting an image acquisition device on the side of the acrylic plate away from the standard image; When performing light transmission acquisition, an image acquisition device is used to acquire a standard image on the other side of the acrylic plate, and the obtained image is set as the light transmission image.
3. The method for detecting transparency of an acrylic plate according to claim 2, wherein: The standard analysis includes: For any grayscale image, obtain the pixel values k1 to kn of all pixels in the grayscale image, where n is the number of pixels; Calculate the average pixel value of the pixels of the grayscale image and record it as k0; Substitute the pixel values of all pixels in the grayscale image and the average pixel value of all pixels in the grayscale image into the pixel difference formula , the pixel difference is calculated, where Y is the pixel difference, k0 is the average pixel value of all pixels in the grayscale image, n is the number of pixels, and kn is the pixel value of any pixel in the grayscale image.
4. The method for detecting transparency of an acrylic plate according to claim 1, wherein: The method of 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 includes the following sub-steps: Acquire a contrast transmission image based on the uneven area, perform standard analysis on the contrast transmission image, and obtain a pixel average value of the contrast transmission image; The ratio of the pixel average value of the contrast light transmission image to the standard pixel average value is set as the transmittance of the contrast light transmission image; The transmittance of all known transmittance images and the transmittance of the comparison transmittance image are compared using the transmittance pixel comparison method. The transmittance pixel comparison method is: Obtain the absolute value of the difference between the transmittance of all known transmittance images and the transmittance of the comparison transmittance image, and set it as the transmittance difference. When there is only one minimum value of the transmittance difference, the transmittance corresponding to the known transmittance image corresponding to the minimum value of the transmittance difference is set as the transmittance of the comparison transmittance image; when there are two minimum values of the transmittance difference, the average value of the transmittance corresponding to the known transmittance images corresponding to the two minimum values of the transmittance difference is set as the transmittance of the comparison transmittance image.
5. An acrylic plate transparency detection system, used to implement the acrylic plate transparency detection method according to any one of claims 1 to 4, characterized in that: It includes light transmission acquisition module, image analysis module, distribution comparison module and light transmission comparison module; The light transmission acquisition module is used to perform light transmission acquisition on acrylic plates of different known light transmittances, and set the light transmission images obtained based on the light transmission acquisition as the known light transmission images; perform light transmission acquisition on the acrylic transparent plate to be inspected, and set the obtained light transmission images as the light transmission images to be inspected; The image analysis module analyzes the known light transmittance image using grayscale processing and standard analysis, obtains the transmittance and uniformity of different transmittances based on the analysis results, and obtains the standard uniformity interval based on the uniformity; 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 a comparative light transmission image; 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.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 4 are executed.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are executed.
Citation Information
Patent Citations
Method and device for detecting transmittance of transparent substrate
CN106226033A
Beacon light surface defect identification method and system
CN118691606A