A light guide plate film alignment detection method, system and device

By performing grayscale and binarization processing on the light guide plate image, reference points and reference values ​​of the light guide plate and the coating are obtained, simplifying the alignment judgment process and solving the problem of low detection efficiency caused by complex data processing in the existing technology, thus achieving efficient alignment detection and adjustment.

CN120912608BActive Publication Date: 2026-02-27TWL OPTRONICS SUZHOU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511438636.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-10
Publication Date
2026-02-27
Estimated Expiration
2045-10-10

AI Technical Summary

Technical Problem

Existing light guide plate coating alignment detection technologies involve extensive data processing and complex alignment procedures, resulting in low detection efficiency.

Method used

By acquiring a top-view image of the light guide plate, performing grayscale and binarization processing, the outline and reference points of the light guide plate are obtained. Combined with the reference points and reference values ​​of the coating, it is determined whether the light guide plate and the coating are aligned, and alignment adjustments are made.

Benefits of technology

Reduce the amount of data comparison, simplify the alignment process, and improve the efficiency of light guide plate coating alignment detection and the convenience of alignment adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120912608B_ABST
    Figure CN120912608B_ABST
Patent Text Reader

Abstract

The application discloses a light guide plate film alignment detection method, system and device, relates to the technical field of light guide plate film alignment detection, and comprises the following steps: obtaining an overhead image of a light guide plate to be coated and marking the image as a light guide plate image; performing gray scale processing on the light guide plate image to obtain a light guide plate gray scale image; performing binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; obtaining a light guide plate contour based on the light guide plate binaryzation image; obtaining a light guide plate reference point based on the light guide plate contour; obtaining a light guide plate reference value based on the light guide plate contour; obtaining a film reference point and a film reference value of a film; judging whether the light guide plate and the film are aligned and adjusting the alignment of the light guide plate and the film based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value; and the application is used to solve the problems that in the prior light guide plate film alignment detection technology, data processing is more and the alignment process is relatively complex, resulting in low efficiency of light guide plate film alignment detection.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of light guide plate film alignment detection, in particular to a light guide plate film alignment detection method, system and device. BACKGROUND

[0002] In liquid crystal display, organic light emitting diode and other flat panel display technologies, the light guide plate is the core component of the backlight module, and the surface film quality directly affects the display effect. The light guide plate film process realizes uniform light distribution, improves brightness and protects the light guide plate from scratching or contamination by bonding protective film, brightness enhancement film and diffusion film on the surface of the light guide plate. However, the alignment accuracy of the protective film and the light guide plate during the film process is a key factor affecting the yield of the product. If there is a positional offset or angular deviation between the two, it will cause defects such as light halo, uneven brightness and color deviation in the display area. Therefore, light guide plate film alignment detection is needed.

[0003] In the existing light guide plate film alignment detection technology, the distance between the edge of the light guide plate and the edge of the film is compared to determine whether they are aligned. Therefore, the distance between all the edges of the light guide plate and the edges of the film needs to be detected and obtained, resulting in a large number of comparison points. When adjusting the alignment based on the distance between the edge of the light guide plate and the edge of the film, it can only be indicated that the smaller the distance, the more aligned it is, but it is difficult to know how to adjust the process to make the distance smaller. Therefore, the existing light guide plate film alignment detection has a large amount of comparison data and a relatively complex alignment process, resulting in low efficiency of light guide plate film alignment detection. SUMMARY

[0004] The present application aims to at least solve one of the technical problems in the prior art. The top view image of the light guide plate to be coated is obtained and marked as a light guide plate image. The light guide plate image is subjected to grayscale processing to obtain a light guide plate grayscale image. The light guide plate grayscale image is subjected to binaryzation processing to obtain a light guide plate binaryzation image. The light guide plate contour is obtained based on the light guide plate binaryzation image. The light guide plate reference point is obtained based on the light guide plate contour. The light guide plate reference value is obtained based on the light guide plate contour. The film reference point and the film reference value of the film are obtained. Whether the light guide plate and the film are aligned is judged based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, so as to solve the problem of low efficiency of light guide plate film alignment detection due to a large amount of data processing and a relatively complex alignment process in the existing light guide plate film alignment detection technology.

[0005] To achieve the above object, the application provides a light guide plate film covering alignment detection method, comprising the following steps:

[0006] Obtaining an overhead image of the light guide plate to be covered, which is marked as a light guide plate image;

[0007] Performing gray scale processing on the light guide plate image to obtain a light guide plate gray scale image;

[0008] Performing binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; and obtaining a light guide plate contour based on the light guide plate binaryzation image;

[0009] Obtaining a light guide plate reference point based on the light guide plate contour;

[0010] Obtaining a light guide plate reference value based on the light guide plate contour;

[0011] Obtaining a film covering reference point and a film covering reference value of the film covering;

[0012] Judging whether the light guide plate and the film covering are aligned based on the light guide plate reference point, the light guide plate reference value, the film covering reference point and the film covering reference value, and adjusting the alignment of the light guide plate and the film covering.

[0013] Further, obtaining an overhead image of the light guide plate to be covered, which is marked as a light guide plate image comprises the following sub-steps:

[0014] Making the environment background of the light guide plate black, lighting the light guide plate so that the brightness of the light guide plate is higher than the background environment, and then obtaining the light guide plate image.

[0015] Further, performing gray scale processing on the light guide plate image to obtain a light guide plate gray scale image comprises the following sub-steps:

[0016] Converting the RGB value of each pixel point in the obtained light guide plate image into a gray scale value by using a gray scale conversion formula to obtain a light guide plate gray scale image; and marking the gray scale value of each pixel point in the light guide plate gray scale image as a light guide plate gray scale value.

[0017] Further, performing binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; and obtaining a light guide plate contour based on the light guide plate binaryzation image comprises the following sub-steps:

[0018] Dividing the gray scale value from 0 to 255 into ranges with the same interval, which is marked as a gray scale value division range;

[0019] Obtaining the frequency of the light guide plate gray scale value in each gray scale value division range, which is marked as a first frequency;

[0020] Taking the gray scale value as the X axis, the first frequency as the Y axis, and the gray scale value division range as the interval of the histogram, drawing a histogram, which is marked as a light guide plate histogram;

[0021] Obtaining the middle value of the gray value division range corresponding to the second frequency, and marking it as a range representative value;

[0022] Obtaining the middle value of the gray value division range corresponding to the second frequency, and marking it as a range representative value;

[0023] Obtaining the gray value division range between the smallest range representative value and the largest range representative value, and marking it as an intermediate division range;

[0024] Obtaining the middle value of the gray value division range corresponding to the second frequency, and marking it as a range representative value;

[0025] Obtaining the middle value of the gray value division range corresponding to the second frequency, and marking it as a range representative value;

[0026] In the light guide plate gray scale image, setting the light guide plate gray value greater than or equal to the light guide plate binarization threshold value as 0, and setting the light guide plate gray value less than the light guide plate binarization threshold value as 255, to obtain a light guide plate binarization image;

[0027] Marking the independent region composed of the gray value 0 in the light guide plate binarization image as a light guide plate region;

[0028] Obtaining the contour of the light guide plate region, and marking it as a light guide plate contour.

[0029] Further, obtaining the light guide plate reference point based on the light guide plate contour includes the following sub-steps:

[0030] Establishing a coordinate system, and marking it as a position reference coordinate system; and making the light guide plate contour in the first quadrant of the position reference coordinate system;

[0031] Obtaining the minimum value and the maximum value of the abscissa of the light guide plate contour, and marking them as a first abscissa value and a second abscissa value respectively;

[0032] Obtaining the minimum value and the maximum value of the ordinate of the light guide plate contour, and marking them as a first ordinate value and a second ordinate value respectively;

[0033] Marking the coordinate point with the abscissa of the first abscissa value and the ordinate of the second ordinate value as a first coordinate point; marking the coordinate point with the abscissa of the first abscissa value and the ordinate of the first ordinate value as a second coordinate point; and marking the coordinate point with the abscissa of the second abscissa value and the ordinate of the first ordinate value as a third coordinate point;

[0034] Connecting the first coordinate point and the second coordinate point to obtain a straight line, and marking it as a first line segment; and connecting the second coordinate point and the third coordinate point to obtain a straight line, and marking it as a second line segment;

[0035] Drawing a perpendicular line of the first line segment through the midpoint of the first line segment, and marking it as a first perpendicular line; and drawing a perpendicular line of the second line segment through the midpoint of the second line segment, and marking it as a second perpendicular line;

[0036] Obtaining the intersection of the first vertical line and the second vertical line, marked as the light guide plate reference point.

[0037] Further, obtaining the light guide plate reference value based on the light guide plate profile includes the following sub-steps:

[0038] Starting with the X-axis, drawing a first number of straight lines parallel to the X-axis with a distance interval of a first distance and a direction of the positive direction of the Y-axis, marked as the segmentation straight line;

[0039] Obtaining the segmentation straight line intersecting the light guide plate profile, marked as the data analysis straight line;

[0040] Obtaining the minimum value and the maximum value of the abscissa of the intersection point of each data analysis straight line and the light guide plate profile, respectively marked as the first intersection point value and the second intersection point value;

[0041] Calculating the difference between the second intersection point value and the first intersection point value, marked as the width difference value;

[0042] Obtaining the width difference value of each data analysis straight line;

[0043] Deleting the minimum value and the maximum value of one width difference value, and then calculating the mean value of the remaining width difference values, marked as the light guide plate reference value.

[0044] Further, obtaining the film reference point and the film reference value of the film includes the following sub-steps:

[0045] Making the environmental background of the film black, lighting the film to make the film brightness higher than the background environment, and then obtaining the overhead image of the film to be covered, marked as the film image;

[0046] Regarding the film image as the light guide plate image, and then obtaining the light guide plate reference point and the light guide plate reference value, respectively marked as the film reference point and the film reference value.

[0047] Further, judging whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, and adjusting the alignment of the light guide plate and the film includes the following sub-steps:

[0048] Judging whether the film reference point and the film reference point coincide, and judging whether the light guide plate reference value and the film reference value are equal at the same time, if yes, indicating that the light guide plate and the film have been aligned; if not, moving the position of the film to make the film reference point and the film reference point coincide, and at the same time, rotating the film with the film reference point as the center of rotation, so that the absolute value of the difference between the light guide plate reference value and the film reference value is minimized, indicating that the alignment of the light guide plate and the film is completed.

[0049] The application provides a light guide plate film covering alignment detection system, comprising a light guide plate data acquisition module, a grayscale module, a binary module, a reference point construction module, a reference value construction module, a film covering data acquisition module and an alignment adjustment module.

[0050] The light guide plate data acquisition module is used for acquiring an overhead image of a light guide plate to be covered, which is marked as a light guide plate image.

[0051] The grayscale module is used for performing grayscale processing on the light guide plate image to acquire a light guide plate grayscale image.

[0052] The binary module is used for performing binary processing on the light guide plate grayscale image to acquire a light guide plate binary image; and a light guide plate contour is acquired based on the light guide plate binary image.

[0053] The reference point construction module is used for acquiring a light guide plate reference point based on the light guide plate contour.

[0054] The reference value construction module is used for acquiring a light guide plate reference value based on the light guide plate contour.

[0055] The film covering data acquisition module is used for acquiring a film covering reference point and a film covering reference value of the film covering.

[0056] The alignment adjustment module is used for judging whether the light guide plate and the film covering are aligned based on the light guide plate reference point, the light guide plate reference value, the film covering reference point and the film covering reference value, and adjusting the alignment of the light guide plate and the film covering.

[0057] The application provides an electronic device, comprising 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 above method are executed.

[0058] The application has the following advantages: the overhead image of the light guide plate to be covered is acquired and marked as a light guide plate image; the light guide plate image is subjected to grayscale processing to acquire a light guide plate grayscale image; the light guide plate grayscale image is subjected to binary processing to acquire a light guide plate binary image; a light guide plate contour is acquired based on the light guide plate binary image; a light guide plate reference point is acquired based on the light guide plate contour; a light guide plate reference value is acquired based on the light guide plate contour; a film covering reference point and a film covering reference value of the film covering are acquired; and whether the light guide plate and the film covering are aligned is judged based on the light guide plate reference point, the light guide plate reference value, the film covering reference point and the film covering reference value, which has the advantages of reducing the amount of data for comparison, facilitating subsequent alignment adjustment, improving the light guide plate film covering alignment detection efficiency and facilitating subsequent alignment adjustment.

[0059] The application acquires the light guide plate reference point and the light guide plate reference value based on the light guide plate contour, which has the advantages of reducing the amount of data for comparison, improving the light guide plate film covering alignment detection efficiency and facilitating subsequent alignment adjustment. BRIEF DESCRIPTION OF DRAWINGS

[0060] Figure 1 is a schematic diagram of the light guide plate reference point of the present application;

[0061] Figure 2 is a schematic diagram of the light guide plate reference point of the present application;

[0062] Figure 3 is a schematic diagram of the light guide plate reference point of the present application;

[0063] Figure 4 is a schematic diagram of the light guide plate reference point of the present application;

[0064] Figure 5 is a schematic diagram of the light guide plate reference point of the present application; DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of the present application.

[0066] Embodiment 1, please refer to Figure 1 As shown in the figure, the present application provides a light guide plate film covering alignment detection system, comprising a light guide plate data acquisition module, a grayscale module, a binary module, a reference point construction module, a reference value construction module, a film data acquisition module and an alignment adjustment module.

[0067] The light guide plate data acquisition module is used to acquire the overhead image of the light guide plate to be covered with film, marked as a light guide plate image.

[0068] The light guide plate data acquisition module is configured with a light guide plate data acquisition strategy, and the light guide plate data acquisition strategy comprises:

[0069] The environment background of the light guide plate is black, the light guide plate is lighted to make the light guide plate brightness higher than the background environment, and then the light guide plate image is acquired. In order to facilitate the identification of the light guide plate and the subsequent binary processing, the outline of the light guide plate can be acquired more clearly and accurately.

[0070] The grayscale module is used to perform grayscale processing on the light guide plate image to acquire a light guide plate grayscale image.

[0071] The grayscale module is configured with a grayscale strategy, and the grayscale strategy comprises:

[0072] The RGB values ​​of each pixel in the light guide plate image are converted to grayscale values ​​using a grayscale conversion formula to obtain a grayscale image of the light guide plate; the grayscale value of each pixel in the grayscale image of the light guide plate is marked as the grayscale value of the light guide plate.

[0073] In practical applications, the average of the R, G, and B values ​​of any pixel in the light guide plate image is taken and marked as the grayscale value of the light guide plate; for example, if the RGB value of a pixel is (120, 122, 124), then the grayscale value of the light guide plate for this pixel is 122.

[0074] The binarization module is used to binarize the grayscale image of the light guide plate to obtain a binarized image of the light guide plate; and to obtain the outline of the light guide plate based on the binarized image of the light guide plate.

[0075] The binarization module is configured with binarization strategies, which include:

[0076] The grayscale values ​​from 0 to 255 are divided into equally spaced ranges, which are marked as grayscale value ranges. In order to observe the distribution of grayscale values ​​on the light guide plate, the number of grayscale value ranges should not be too small, for example, 8.

[0077] Obtain the frequency of grayscale values ​​of the light guide plate within each grayscale value range, and mark it as the first frequency.

[0078] Plot a histogram with grayscale values ​​on the X-axis, the first frequency on the Y-axis, and the grayscale value range as the interval of the histogram. This histogram is then labeled as the light guide plate histogram. The purpose of plotting the light guide plate histogram is to facilitate observation of the distribution of grayscale values ​​on the light guide plate.

[0079] The first frequency number that is greater than the adjacent frequencies on the left and right sides in the light guide plate histogram is marked as the second frequency number.

[0080] Obtain the median value of the grayscale value range corresponding to the second frequency and mark it as the representative value of the range;

[0081] Obtain the grayscale value range between the smallest and largest representative values, and mark it as the intermediate range.

[0082] Obtain the middle range of the minimum first frequency and mark it as the final range;

[0083] Obtain the median value of the final division range and mark it as the binarization threshold of the light guide plate;

[0084] In the grayscale image of the light guide plate, the grayscale values ​​of the light guide plate that are greater than or equal to the binarization threshold of the light guide plate are set to 0, and the grayscale values ​​of the light guide plate that are less than the binarization threshold of the light guide plate are set to 255 to obtain the binarized image of the light guide plate. In order to show the light guide plate area, since the light guide plate has high brightness under illumination and the black background has low brightness, the area with a grayscale value of 0 is the light guide plate area.

[0085] An independent region composed of gray value 0 in the light guide plate binaryzation graph is marked as a light guide plate region;

[0086] An outline of the light guide plate region is obtained and marked as a light guide plate outline;

[0087] In practical applications, please refer to Figure 2 As shown in the figure, the intermediate value of the final division range 95 to 127 is obtained as 111, and the light guide plate binaryzation threshold is 111. In the light guide plate gray scale graph, the light guide plate gray scale value greater than or equal to 111 is set to 0, and the light guide plate gray scale value less than 111 is set to 255, thereby obtaining the light guide plate binaryzation graph.

[0088] The reference point construction module is configured to obtain a light guide plate reference point based on the light guide plate outline;

[0089] The reference point construction module is configured with a reference point construction strategy, and the reference point construction strategy includes:

[0090] A coordinate system is established and marked as a position reference coordinate system; the light guide plate outline is in the first quadrant of the position reference coordinate system; the light guide plate outline is a rectangle, and here it is necessary to ensure that there is a side of the rectangle parallel to the X-axis or Y-axis in the position reference coordinate system, which is convenient for subsequent operations;

[0091] The minimum and maximum values of the abscissa of the light guide plate outline are obtained and marked as a first abscissa value and a second abscissa value, respectively;

[0092] The minimum and maximum values of the ordinate of the light guide plate outline are obtained and marked as a first ordinate value and a second ordinate value, respectively;

[0093] A coordinate point with the abscissa being the first abscissa value and the ordinate being the second ordinate value is marked as a first coordinate point; a coordinate point with the abscissa being the first abscissa value and the ordinate being the first ordinate value is marked as a second coordinate point; a coordinate point with the abscissa being the second abscissa value and the ordinate being the first ordinate value is marked as a third coordinate point;

[0094] A straight line is obtained by connecting the first coordinate point and the second coordinate point, and marked as a first line segment; a straight line is obtained by connecting the second coordinate point and the third coordinate point, and marked as a second line segment;

[0095] A perpendicular line of the first line segment is drawn through the midpoint of the first line segment and marked as a first perpendicular line; a perpendicular line of the second line segment is drawn through the midpoint of the second line segment and marked as a second perpendicular line;

[0096] Obtaining the intersection of the first vertical line and the second vertical line, marked as the light guide plate reference point; The constructed light guide plate reference point is equivalent to the center of the light guide plate, because the light guide plate is a regular rectangle, and the subsequent film and the light guide plate are also regular rectangles with the same size, and the subsequent film is not placed at the same angle, so the film reference point obtained by using this method is also the midpoint of the film, and the light guide plate and the film are preliminarily aligned through the midpoint of the film and the center of the light guide plate; Reduce the position comparison point;

[0097] In practical applications, please refer to Figure 3 The light guide plate reference point obtained.

[0098] The reference value construction module is configured to obtain the light guide plate reference value based on the light guide plate profile;

[0099] The reference value construction module is configured with a reference value construction strategy, and the reference value construction strategy includes:

[0100] Starting with the X-axis, the distance interval is the first distance, and the direction is the positive direction of the Y-axis, a first number of straight lines parallel to the X-axis are drawn, marked as the segmentation straight line; The segmentation straight line is set to obtain the horizontal interval of the light guide plate, so the first distance should not be too large, so that the segmentation straight line can include the light guide plate profile, and therefore the first number should not be too small, for example, the first distance is 12cm, and the first number is 7;

[0101] Obtaining the segmentation straight line intersecting the light guide plate profile, marked as the data analysis straight line;

[0102] Obtaining the minimum value and the maximum value of the abscissa of the intersection point of each data analysis straight line and the light guide plate profile, respectively marked as the first intersection value and the second intersection value;

[0103] Calculate the difference between the second intersection value and the first intersection value, marked as the width difference value;

[0104] Obtaining the width difference value of each data analysis straight line;

[0105] Delete the minimum value and the maximum value of one width difference value, and then calculate the average of the remaining width difference values, marked as the light guide plate reference value; Delete the minimum value and the maximum value of one width difference value to exclude abnormal small or large data, and improve the comparative significance of the light guide plate reference value; Because of the placement relationship between the light guide plate and the position comparison coordinate system, the light guide plate reference value obtained here is equivalent to the side length of the light guide plate;

[0106] In practical applications, please refer to Figure 4 Draw a first intersection value and a second intersection value, for example, the obtained light guide plate reference value is 70cm.

[0107] The film data acquisition module is configured to obtain the film reference point and the film reference value of the film;

[0108] The film data acquisition module is configured with a film data acquisition strategy, and the film data acquisition strategy includes:

[0109] The environment background of the film is black, the film is lighted to make the brightness of the film higher than the background environment, and then an overhead image of the film to be covered is acquired and marked as a film image; Here, the light guide plate is not lighted when the film image is acquired, so that the light guide plate is identified as a film;

[0110] The film image is regarded as a light guide plate image, and then a light guide plate reference point and a light guide plate reference value are acquired, which are respectively marked as a film reference point and a film reference value; The film reference point and the film reference value are acquired by the same method as the light guide plate reference point and the light guide plate reference value, and will not be described again. However, when the film and the light guide plate are not aligned, the positions of the light guide plate reference point and the film reference point are different, and the film reference value and the light guide plate reference value are also different.

[0111] The alignment adjustment module is used to determine whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, and alignment adjustment of the light guide plate and the film;

[0112] The alignment adjustment module is configured with an alignment adjustment strategy, and the alignment adjustment strategy includes:

[0113] It is determined whether the film reference point and the film reference point coincide, and whether the light guide plate reference value and the film reference value are equal. If yes, it indicates that the light guide plate and the film are aligned. If not, the position of the film is moved to make the film reference point and the film reference point coincide, and the film is rotated with the film reference point as the center of rotation, so that the absolute value of the difference between the light guide plate reference value and the film reference value is minimized, indicating that the alignment adjustment of the light guide plate and the film is completed.

[0114] The principle and beneficial effects of the alignment determination are as follows: when the film reference point and the film reference point coincide, it indicates that the center point of the film coincides with the center point of the light guide plate; when the light guide plate reference value and the film reference value are equal, it indicates that the edge of the film coincides with the edge of the light guide plate, i.e. the film and the light guide plate are aligned; when the light guide plate reference value and the film reference value are not equal, the film and the light guide plate are not aligned; when not aligned, the data analysis straight line passing through the length of the film will change, so that the light guide plate reference value and the film reference value will be different; when the light guide plate reference value and the film reference value are minimum or equal, it indicates that they are the same; Therefore, the film and the light guide plate can be aligned by using this method, and the alignment adjustment is more convenient.

[0115] Embodiment 2, please refer to Figure 5 As shown in the figure, the present application provides a light guide plate film alignment detection method, which includes the following steps:

[0116] Step S1, obtain the overhead image of the light guide plate to be coated, and mark it as a light guide plate image; Step S1 includes the following sub-steps:

[0117] Step S101, make the environment background of the light guide plate black, light the light guide plate so that the brightness of the light guide plate is higher than the background environment, and then obtain the light guide plate image.

[0118] Step S2, perform gray scale processing on the light guide plate image to obtain a light guide plate gray scale image; Step S2 includes the following sub-steps:

[0119] Step S201, convert the RGB value of each pixel point in the obtained light guide plate image into a gray scale value using a gray scale conversion formula to obtain a light guide plate gray scale image; mark the gray scale value of each pixel point in the light guide plate gray scale image as a light guide plate gray scale value.

[0120] Step S3, perform binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; obtain a light guide plate contour based on the light guide plate binaryzation image; Step S3 includes the following sub-steps:

[0121] Step S301, divide the gray scale value from 0 to 255 into ranges with the same interval, and mark them as gray scale value division ranges;

[0122] Step S302, obtain the frequency of the light guide plate gray scale value in each gray scale value division range, and mark it as a first frequency;

[0123] Step S303, take the gray scale value as the X-axis, the first frequency as the Y-axis, and the gray scale value division range as the interval of the histogram, draw a histogram, and mark it as a light guide plate histogram;

[0124] Step S303, obtain the second frequency greater than the first frequencies of the adjacent left and right sides in the light guide plate histogram, and mark it as a second frequency;

[0125] Step S304, obtain the middle value of the gray scale value division range corresponding to the second frequency, and mark it as a range representative value;

[0126] Step S305, obtain the gray scale value division range between the smallest range representative value and the largest range representative value, and mark it as an intermediate division range;

[0127] Step S306, obtain the intermediate division range of the smallest first frequency, and mark it as a final division range;

[0128] Step S307, obtain the middle value of the final division range, and mark it as a light guide plate binaryzation threshold value;

[0129] Step S308, in the light guide plate gray scale image, set the light guide plate gray scale value greater than or equal to the light guide plate binaryzation threshold value to 0, and set the light guide plate gray scale value less than the light guide plate binaryzation threshold value to 255 to obtain a light guide plate binaryzation image;

[0130] Step S309, the independent region composed of the gray value of 0 in the light guide plate binaryzation image is marked as the light guide plate region;

[0131] Step S310, the contour of the light guide plate region is obtained and marked as the light guide plate contour.

[0132] Step S4, the light guide plate reference point is obtained based on the light guide plate contour; Step S4 includes the following sub-steps:

[0133] Step S401, a coordinate system is established and marked as the position comparison coordinate system; the light guide plate contour is in the first quadrant of the position comparison coordinate system;

[0134] Step S402, the minimum value and the maximum value of the abscissa of the light guide plate contour are obtained and marked as the first abscissa value and the second abscissa value respectively;

[0135] Step S403, the minimum value and the maximum value of the ordinate of the light guide plate contour are obtained and marked as the first ordinate value and the second ordinate value respectively;

[0136] Step S404, a coordinate point with the abscissa of the first abscissa value and the ordinate of the second ordinate value is marked as the first coordinate point; a coordinate point with the abscissa of the first abscissa value and the ordinate of the first ordinate value is marked as the second coordinate point; a coordinate point with the abscissa of the second abscissa value and the ordinate of the first ordinate value is marked as the third coordinate point;

[0137] Step S405, a straight line is obtained by connecting the first coordinate point and the second coordinate point and marked as the first line segment; a straight line is obtained by connecting the second coordinate point and the third coordinate point and marked as the second line segment;

[0138] Step S406, a perpendicular line of the first line segment is drawn through the midpoint of the first line segment and marked as the first perpendicular line; a perpendicular line of the second line segment is drawn through the midpoint of the second line segment and marked as the second perpendicular line;

[0139] Step S407, the intersection point of the first perpendicular line and the second perpendicular line is obtained and marked as the light guide plate reference point.

[0140] Step S5, the light guide plate reference value is obtained based on the light guide plate contour; Step S5 includes the following sub-steps:

[0141] Step S501, a first number of straight lines parallel to the X axis are drawn with the X axis as the starting point, the distance interval being the first distance and the direction being the positive direction of the Y axis, and marked as the segmentation straight lines;

[0142] Step S502, the segmentation straight line having the intersection point with the light guide plate contour is obtained and marked as the data analysis straight line;

[0143] Step S503, the minimum value and the maximum value of the abscissa of the intersection point of each data analysis straight line and the light guide plate profile are obtained, and are marked as the first intersection point value and the second intersection point value respectively;

[0144] Step S504, the difference between the second intersection point value and the first intersection point value is calculated, and is marked as the width difference value;

[0145] Step S505, the width difference value of each data analysis straight line is obtained;

[0146] Step S506, the minimum value and the maximum value of the width difference value are deleted, and then the average value of the remaining width difference value is calculated, and is marked as the light guide plate reference value.

[0147] Step S6, the film reference point and the film reference value of the film are obtained; Step S6 includes the following sub-steps:

[0148] Step S601, the environment background of the film is black, the film is lighted to make the brightness of the film higher than the background environment, and then the overhead image of the film to be covered is obtained, and is marked as the film image;

[0149] Step S602, the film image is regarded as the light guide plate image, and then the light guide plate reference point and the light guide plate reference value are obtained, and are marked as the film reference point and the film reference value respectively.

[0150] Step S7, whether the light guide plate and the film are aligned and the alignment adjustment of the light guide plate and the film are judged based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value; Step S7 includes the following sub-steps:

[0151] Step S701, whether the film reference point and the film reference point coincide, and whether the light guide plate reference value and the film reference value are equal are judged, if yes, it indicates that the light guide plate and the film have been aligned; if not, the position of the film is moved to make the film reference point and the film reference point coincide, and the film is rotated with the film reference point as the rotation center, so that the absolute value of the difference between the light guide plate reference value and the film reference value is minimized, and then the alignment adjustment of the light guide plate and the film is completed.

[0152] In some embodiments, the electronic device can include a processor, a communication interface, a memory, and a communication bus. The processor, the communication interface, and the memory can communicate with each other through the communication bus. The memory can store computer-readable instructions. The processor can invoke the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in the method for detecting alignment of a light guide plate film can be executed to achieve the following functions: obtaining an overhead image of a light guide plate to be coated, and marking the image as a light guide plate image; performing grayscale processing on the light guide plate image to obtain a light guide plate grayscale image; performing binaryzation processing on the light guide plate grayscale image to obtain a light guide plate binaryzation image; obtaining a light guide plate contour based on the light guide plate binaryzation image; obtaining a light guide plate reference point based on the light guide plate contour; obtaining a light guide plate reference value based on the light guide plate contour; obtaining a film reference point and a film reference value of the film; determining whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point, and the film reference value, and adjusting the alignment of the light guide plate and the film.

[0153] In addition, the logic instructions in the memory described above can be implemented in the form of a software functional unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0154] In embodiment 4, the application further provides a computer program product, which comprises a computer program stored on a computer readable storage medium, and the computer program comprises program instructions, when the program instructions are executed by a computer, the computer can execute the alignment detection method of the light guide plate film provided by the above method, and the method comprises the following steps: obtaining an overhead image of a light guide plate to be coated, and marking the image as a light guide plate image; performing gray scale processing on the light guide plate image to obtain a light guide plate gray scale image; performing binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; obtaining a light guide plate contour based on the light guide plate binaryzation image; obtaining a light guide plate reference point based on the light guide plate contour; obtaining a light guide plate reference value based on the light guide plate contour; obtaining a film reference point and a film reference value of the film; judging whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, and adjusting the alignment of the light guide plate and the film.

[0155] In embodiment 5, the application further provides a computer readable storage medium, and the application provides a storage medium, which stores a computer program, and the computer program is executed by a processor to run the steps of the alignment detection method of the light guide plate film, so as to realize the following functions: obtaining an overhead image of a light guide plate to be coated, and marking the image as a light guide plate image; performing gray scale processing on the light guide plate image to obtain a light guide plate gray scale image; performing binaryzation processing on the light guide plate gray scale image to obtain a light guide plate binaryzation image; obtaining a light guide plate contour based on the light guide plate binaryzation image; obtaining a light guide plate reference point based on the light guide plate contour; obtaining a light guide plate reference value based on the light guide plate contour; obtaining a film reference point and a film reference value of the film; judging whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, and adjusting the alignment of the light guide plate and the film.

[0156] Through the description of the above embodiments, the embodiments of the application can be provided as a method, a system or a computer program product. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment or some parts of the embodiment.

[0157] In the embodiments of the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and other division manners can be used in actual implementation, for example, a plurality of modules or units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some communication interface, the indirect coupling or communication connection between the system, the module and the unit can be electrical, mechanical or other forms.

[0158] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part 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 light guide plate film alignment detection method, characterized by, The method comprises the following steps: Obtain the overhead image of the light guide plate to be coated, and mark it as a light guide plate image; Obtain the light guide plate grayscale image by performing grayscale processing on the light guide plate image; Obtain the light guide plate binary image by performing binary processing on the light guide plate grayscale image; Obtain the light guide plate contour based on the light guide plate binary image; Obtain the light guide plate reference point based on the light guide plate contour; Obtain the light guide plate reference value based on the light guide plate contour; Obtain the coating reference point and the coating reference value of the coating; Determine whether the light guide plate and the coating are aligned based on the light guide plate reference point, the light guide plate reference value, the coating reference point and the coating reference value, and adjust the alignment of the light guide plate and the coating; The method for obtaining the light guide plate reference point based on the light guide plate contour comprises the following steps: Establish a coordinate system, and mark it as a position comparison coordinate system; and make the light guide plate contour in the first quadrant of the position comparison coordinate system; Obtain the minimum value and the maximum value of the horizontal coordinates of the light guide plate contour, and mark them as a first horizontal coordinate value and a second horizontal coordinate value respectively; Obtain the minimum value and the maximum value of the vertical coordinates of the light guide plate contour, and mark them as a first vertical coordinate value and a second vertical coordinate value respectively; Mark a coordinate point with the first horizontal coordinate value as the horizontal coordinate and the second vertical coordinate value as the vertical coordinate as a first coordinate point; mark a coordinate point with the first horizontal coordinate value as the horizontal coordinate and the first vertical coordinate value as the vertical coordinate as a second coordinate point; and mark a coordinate point with the second horizontal coordinate value as the horizontal coordinate and the first vertical coordinate value as the vertical coordinate as a third coordinate point; Connect the first coordinate point and the second coordinate point to obtain a straight line, and mark it as a first line segment; Connect the second coordinate point and the third coordinate point to obtain a straight line, and mark it as a second line segment; Draw a perpendicular line of the first line segment through the midpoint of the first line segment, and mark it as a first perpendicular line; and draw a perpendicular line of the second line segment through the midpoint of the second line segment, and mark it as a second perpendicular line; Obtain the intersection point of the first perpendicular line and the second perpendicular line, and mark it as the light guide plate reference point; The method for obtaining the light guide plate reference value based on the light guide plate contour comprises the following steps: Draw a first number of straight lines parallel to the X axis, and mark them as segmentation straight lines, with the X axis as the starting point, a distance interval as a first distance, and the direction as the positive direction of the Y axis; Obtain the segmentation straight line having an intersection point with the light guide plate contour, and mark it as a data analysis straight line; Obtain the minimum value and the maximum value of the horizontal coordinates of the intersection point of each data analysis straight line and the light guide plate contour, and mark them as a first intersection point value and a second intersection point value respectively; Calculate the difference value between the second intersection point value and the first intersection point value, and mark it as a width difference value; Obtain the width difference value of each data analysis straight line; Delete the minimum value and the maximum value of one width difference value, and then obtain the average value of the remaining width difference values, and mark it as the light guide plate reference value; The method for obtaining the coating reference point and the coating reference value of the coating comprises the following steps: Make the environment background of the coating black, light the coating so that the brightness of the coating is higher than that of the background environment, and then obtain the overhead image of the coating to be coated, and mark it as a coating image; 2. The light guide plate film alignment detection method according to claim 1, wherein Treat the coating image as the light guide plate image, and then obtain the light guide plate reference point and the light guide plate reference value, and mark them as the coating reference point and the coating reference value respectively. The method for obtaining the overhead image of the light guide plate to be coated comprises the following steps: The environment background of the light guide plate is black, the light guide plate is lighted to make the brightness of the light guide plate higher than the background environment, and then a light guide plate image is acquired.

3. The method of claim 2, wherein the method further comprises: The light guide plate image is subjected to grayscale processing to acquire a light guide plate grayscale image, including the following sub-steps: The RGB values of each pixel point in the acquired light guide plate image are converted into grayscale values by using a grayscale conversion formula to obtain a light guide plate grayscale image; and the grayscale values of each pixel point in the light guide plate grayscale image are marked as light guide plate grayscale values.

4. The method of claim 3, wherein the method further comprises: The light guide plate grayscale image is subjected to binarization processing to acquire a light guide plate binarization image; and a light guide plate contour is acquired based on the light guide plate binarization image, including the following sub-steps: The grayscale values from 0 to 255 are divided into ranges with the same interval, which are marked as grayscale value division ranges; The frequency of the light guide plate grayscale values in each grayscale value division range is acquired, which is marked as a first frequency; A histogram is drawn with the grayscale values as the X-axis, the first frequency as the Y-axis, and the grayscale value division ranges as the interval of the histogram, which is marked as a light guide plate histogram; The second frequency is acquired, which is greater than the first frequencies of the adjacent left and right sides in the light guide plate histogram; The middle value of the grayscale value division range corresponding to the second frequency is acquired, which is marked as a range representative value; The grayscale value division range between the smallest range representative value and the largest range representative value is acquired, which is marked as an intermediate division range; The intermediate division range of the smallest first frequency is acquired, which is marked as a final division range; The middle value of the final division range is acquired, which is marked as a light guide plate binarization threshold value; In the light guide plate grayscale image, the light guide plate grayscale values greater than or equal to the light guide plate binarization threshold value are set to 0, and the light guide plate grayscale values less than the light guide plate binarization threshold value are set to 255, to obtain a light guide plate binarization image; Independent regions composed of the light guide plate grayscale values of 0 in the light guide plate binarization image are marked as light guide plate regions; The contour of the light guide plate region is acquired, which is marked as a light guide plate contour.

5. The method of claim 4, wherein the method further comprises: detecting the alignment of the light guide plate film by using a camera. Based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, whether the light guide plate and the film are aligned and the alignment adjustment of the light guide plate and the film include the following sub-steps: It is judged whether the light guide plate reference point and the film reference point coincide, and whether the light guide plate reference value and the film reference value are equal, if so, it indicates that the light guide plate and the film have been aligned, if not, the position of the film is moved to make the light guide plate reference point and the film reference point coincide, and at the same time, the film is rotated with the film reference point as the center of rotation, so that the absolute value of the difference between the light guide plate reference value and the film reference value is minimized, indicating that the alignment adjustment of the light guide plate and the film is completed.

6. A light guide plate film alignment detection system, adapted to the light guide plate film alignment detection method of any one of claims 1-5, characterized in that, It includes a light guide plate data acquisition module, a grayscale module, a binarization module, a reference point construction module, a reference value construction module, a film data acquisition module and an alignment adjustment module; The light guide plate data acquisition module is used to acquire an overhead image of a light guide plate to be coated, which is marked as a light guide plate image; The grayscale module is used to acquire a light guide plate grayscale image by performing grayscale processing on the light guide plate image; The binarization module is used to acquire a light guide plate binarization image by performing binarization processing on the light guide plate grayscale image; and a light guide plate contour is acquired based on the light guide plate binarization image; The reference point construction module is used to acquire a light guide plate reference point based on the light guide plate contour; The reference value construction module is configured to acquire a reference value of the light guide plate based on the light guide plate profile; The film data acquisition module is configured to acquire a film reference point and a film reference value of the film; The alignment adjustment module is configured to determine whether the light guide plate and the film are aligned based on the light guide plate reference point, the light guide plate reference value, the film reference point and the film reference value, and to adjust the alignment of the light guide plate and the film.

7. An electronic device, comprising: A processor and a memory are included, and the memory stores computer readable instructions. When the computer readable instructions are executed by the processor, the steps in the method of any one of claims 1-5 are executed.

Citation Information

Patent Citations

  • Steel pipe flush anomaly detection method and device, electronic equipment and storage medium

    CN118037659A

  • Laminating method, device and equipment for light guide plate

    CN119141857A