Laminating precision detection method and device and storage medium

Through the combination of Hough linear algorithm and preset grab frame, the problem of low accuracy of misalignment detection during the bonding of flexible panel protective film is solved, and more efficient bonding accuracy detection is achieved to ensure the accurate alignment and display quality of the protective film.

CN120298346APending Publication Date: 2025-07-11BOE TECHNOLOGY GROUP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510362262.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

During the process of attaching protective film to flexible panels, the protective film is misaligned due to fluctuations in the accuracy of the film-mounting equipment, which affects production efficiency and display image quality, and the accuracy of existing detection methods is low.

Method used

The Hough linear algorithm is used to perform linear fitting and screening of the edges of the protective film, combining preset grab frames and homomorphic filtering technology to improve the accuracy of edge detection and calculate the bonding accuracy of the protective film.

Benefits of technology

Improve the accuracy of bonding accuracy detection, ensure accurate alignment of the protective film, reduce foreign matter intrusion and glue exposure, and improve production efficiency and display quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120298346A_ABST
    Figure CN120298346A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a fitting precision detection method and device and a storage medium. The fitting precision detection method comprises the steps that at least two images are acquired and preprocessed, and the at least two images are images of different angle areas of the plane object; for each image, capturing according to a preset capturing frame, performing linear fitting on the captured area according to a Hough linear algorithm to obtain a fitted linear segment, screening the fitted linear segment according to a preset screening condition, and taking the screened linear segment as the protective film edge of the corner area corresponding to the current image; and calculating the laminating precision of the protective film according to the position information of all the screened straight line segments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of flexible panels, and more specifically, to a method, device, and storage medium for detecting lamination accuracy. Background Art

[0002] With the maturity and large-scale use of flexible display panel technology, and the increasing requirements for quality from flexible OLED panel customers and manufacturers, before attaching the glass cover plate (Cover Glass) to the flexible panel, front protective films and back protective films are attached to both the front and back sides of the PI (polyimide film) substrate to protect the PI from being eroded and scratched by foreign objects during the process flow and to keep the clarity and color consistency of the screen unaffected. However, during the process of attaching the protective films, affected by the accuracy fluctuation of the film attaching equipment, the problem of misalignment between the upper protective film and the lower protective film will occur. If the lamination deviation is lower than the allowable range, various adverse effects will occur, such as foreign objects invading the protective film, the adhesive material of the protective film being exposed, and the size increasing. These problems will seriously affect the production efficiency and even directly affect the display image quality of the flexible panel. Therefore, it is necessary to use a camera to take pictures after attachment and calculate the degree of lamination misalignment. The degree of lamination misalignment, that is, the lamination accuracy, refers to Figure 1 the deviation degree after the upper optical protective film and the lower optical protective film are laminated. Summary of the Invention

[0003] Embodiments of the present application provide a method, device, and storage medium for detecting lamination accuracy, which improve the accuracy of detecting lamination accuracy.

[0004] Embodiments of the present application provide a method for detecting lamination accuracy, which is applicable to a quadrilateral planar object. The first surface and the second surface of the planar object are both provided with protective films of the same size. The first surface is one surface of the planar object, and the second surface is the surface opposite to the first surface. The method includes:

[0005] Obtain and preprocess at least two images, where the at least two images are images of different corner regions of the planar object;

[0006] For each image, perform grabbing according to a preset grabbing frame, perform line fitting on the grabbed area according to the Hough line algorithm to obtain the fitted line segments, screen the fitted line segments according to a preset screening condition, and use the screened line segments as the edges of the protective film of the corresponding corner region of the current image;

[0007] Calculate the lamination accuracy of the protective film according to the position information of all the screened line segments.

[0008] In an exemplary embodiment, the grasping according to the preset grasping frame includes:

[0009] For each image, first grasp with the first grasping frame, and in the case where the edge of the protective film is not grasped, grasp with the second grasping frame; wherein, the area of the first grasping frame is smaller than the area of the second grasping frame.

[0010] In an exemplary embodiment, in the case where grasping is performed with the second grasping frame and the edge of the protective film is not grasped, the method further includes:

[0011] Perform homomorphic filtering on the area within the second grasping frame.

[0012] In an exemplary embodiment, the screening of the fitted straight line segments according to the preset screening conditions includes:

[0013] Judge whether the length and angle of each straight line segment meet the preset screening conditions; the screening conditions include one or more of the following: the length of the straight line segment is greater than the preset length; the angle of the straight line segment is the preset angle.

[0014] In an exemplary embodiment, the selected straight line segments include straight line segments extending along a first direction and straight line segments extending along a second direction in the pixel coordinate system; the first direction is perpendicular to the second direction;

[0015] The position information of the straight line segment includes the coordinate values at both ends of the straight line segment in its respective image in the pixel coordinate system;

[0016] The calculating of the fitting accuracy of the protective film according to the position information of all the selected straight line segments includes:

[0017] Calculate the fitting accuracy according to the maximum coordinate value and the minimum coordinate value in the second direction of the straight line segments extending along the first direction and the maximum coordinate value and the minimum coordinate value in the first direction of the straight line segments extending along the second direction among all the selected straight line segments in each image.

[0018] In an exemplary embodiment, the fitting accuracy includes an offset distance; the offset distance includes an offset distance in the first direction and an offset distance in the second direction;

[0019] The fitting accuracy includes an offset distance; the offset distance includes an offset distance in the first direction and an offset distance in the second direction;

[0020] The offset distance in the first direction is the actual length corresponding to the difference between the maximum coordinate value and the minimum coordinate value in the second direction of the straight line segments extending along the first direction among the selected straight line segments in any image;

[0021] The offset distance in the second direction is the average of the actual lengths corresponding to the difference between the maximum coordinate value and the minimum coordinate value in the first direction of at least two straight line segments extending in the second direction among all the straight line segments screened out in each image.

[0022] In an exemplary embodiment, the fitting accuracy further includes a fitting angle;

[0023] The fitting angle GAP θ is calculated in one of the following ways:

[0024] GAP θ = arctan((GAP X1 - GAP X2 ) / (H film - (Y 201 + (H cam - Y 102 )) × R));

[0025] GAP θ = arctan((GAP X3 - GAP X4 ) / (H film - (Y 401 + (H cam - Y 302 )) × R));

[0026] GAP θ = arctan((GAP Y2 - GAP Y4 ) / (L film - (X 203 + (L cam - X 404 )) × R));

[0027] GAP θ = arctan((GAP Y1 - GAP Y3 ) / (L film - (X 103 + (L cam - X 304 )) × R));

[0028] wherein, GAP X1 represents the offset distance of the image in the lower left corner region in the first direction; GAP X2 represents the offset distance of the image in the upper left corner region in the first direction; GAP X3 represents the offset distance of the image in the lower right corner region in the first direction; GAP X4Indicates the offset distance of the image in the upper right corner area in the first direction; GAP Y1 Indicates the offset distance of the image in the lower left corner area in the second direction; GAP Y2 Indicates the offset distance of the image in the upper left corner area in the second direction; GAP Y3 Indicates the offset distance of the image in the lower right corner area in the second direction; GAP Y4 Indicates the offset distance of the image in the upper right corner area in the second direction; L film Indicates the actual length of the protective film; H film Indicates the actual width of the protective film; Y 102 Indicates the maximum coordinate value of the image in the lower left corner area in the second direction; Y 201 Indicates the minimum coordinate value of the image in the upper left corner area in the second direction; Y 302 Indicates the maximum coordinate value of the image in the lower right corner area in the second direction; Y 401 Indicates the minimum coordinate value of the image in the upper right corner area in the second direction; X 103 Indicates the minimum coordinate value of the image in the lower left corner area in the first direction; X 203 Indicates the minimum coordinate value of the image in the upper left corner area in the first direction; X 304 Indicates the maximum coordinate value of the image in the lower right corner area in the first direction; X 404 Indicates the maximum coordinate value of the image in the upper right corner area in the first direction; L cam Indicates the pixel length of the photo; H cam Indicates the pixel width of the photo; R represents the actual length represented by each pixel.

[0029] In an exemplary embodiment, the planar object is a display panel.

[0030] The embodiment of the present application further provides a fitting accuracy detection device, including a memory and a processor,

[0031] The memory is used to save the program for fitting accuracy detection;

[0032] The processor is used to read and execute the program for fitting accuracy detection, and execute the method described in any one of the above embodiments.

[0033] The embodiment of the present application further provides a computer-readable storage medium, storing computer-executable instructions, wherein the computer-executable instructions are used to make the computer execute the method described in any one of the above embodiments.

[0034] The fitting accuracy detection method of the embodiment of the present application captures images of the corner regions of a flat object with protective films attached to both the upper and lower surfaces through a capture frame; for each captured image, straight line fitting is performed according to the Hough line algorithm to obtain multiple straight line segments; the position information of the multiple straight line segments is extracted, and the multiple straight line segments are screened according to the position information and the screening rules; the screened straight line segments are used as the straight line segments at the edge of the protective film; the fitting accuracy is calculated according to the position information of the straight line segments at the edge of the protective film in at least two images. Compared with the prior art, this fitting accuracy detection method improves the accuracy of fitting accuracy detection.

[0035] Other features and advantages of the present application will be described in the following specification, and part of them will be obvious from the specification, or will be understood by implementing the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures specifically pointed out in the specification and the drawings. Brief Description of the Drawings

[0036] The drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification. They are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.

[0037] Figure 1 It is a schematic diagram of a display panel with a protective film attached;

[0038] Figure 2 It is a schematic diagram of a fitting accuracy detection method according to an embodiment of the present application;

[0039] Figure 3 It is a schematic diagram of photographing the protective film after fitting according to an embodiment of the present application;

[0040] Figure 4 It is a schematic diagram of the size of the protective film according to an embodiment of the present application;

[0041] Figure 5A It is a schematic diagram of the original image of the corner region according to an embodiment of the present application;

[0042] Figure 5B It is a schematic diagram of the image after gray-scale processing of the corner region image according to an embodiment of the present application;

[0043] Figure 6 It is a schematic diagram of the influence of different capture frames on the fitting accuracy according to an embodiment of the present application;

[0044] Figure 7 It is a schematic diagram of capturing an image through the first capture frame according to an embodiment of the present application;

[0045] Figure 8Schematic diagram of grabbing an image by the second grabbing frame in the embodiment of the present application;

[0046] Figure 9 Schematic diagram of the image after grayscale processing and homomorphic filtering of the corner region image in the embodiment of the present application;

[0047] Figure 10 Schematic diagram of the edge of the protective film grabbed in the prior art;

[0048] Figure 11 Schematic diagram of the edge of the protective film grabbed in the embodiment of the present application;

[0049] Figure 12 One of the schematic diagrams of the edge of the protective film grabbed in the image coordinate system in the embodiment of the present application;

[0050] Figure 13 Another schematic diagram of the edge of the protective film grabbed in the image coordinate system in the embodiment of the present application;

[0051] Figure 14 Another schematic diagram of the edge of the protective film grabbed in the image coordinate system in the embodiment of the present application;

[0052] Figure 15 Another schematic diagram of the edge of the protective film grabbed in the image coordinate system in the embodiment of the present application;

[0053] Figure 16 Schematic diagram of the edge of the protective film successfully grabbed by 4 cameras in the embodiment of the present application;

[0054] Figure 17 Schematic diagram of the fitting angle in the embodiment of the present application.

[0055] Figure 18 Schematic diagram of the fitting accuracy detection device in the embodiment of the present application. Detailed implementation manners

[0056] To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily.

[0057] During the general fitting accuracy inspection process, four cameras are installed at the four corners above the flexible panel to capture the image after the upper protective film and the lower protective film are fitted. After grayscale processing, the pixel superposition method is used to check the peak of the grayscale change. The position of this peak is the edge of the protective film, and then the distance between the two edges is obtained, and the fitting accuracy of the upper and lower protective films is calculated. However, this method is prone to grabbing the wrong edge, resulting in a low detection accuracy.

[0058] To solve the problem of low detection accuracy brought by the existing technology, the present application proposes a method for detecting fitting accuracy.

[0059] Figure 2 FIG. is a schematic diagram of a method for detecting fitting accuracy according to an embodiment of the present application. The method for detecting fitting accuracy is applicable to a planar object in the shape of a quadrilateral. The first surface and the second surface of the planar object are both provided with protective films of the same size. The first surface is one surface of the planar object, and the second surface is the surface opposite to the first surface. The method for detecting fitting accuracy is as Figure 2 shown, and includes the following steps 11 to 13:

[0060] Step 11, obtaining and preprocessing at least two images, where the at least two images are images of different corner regions of the planar object;

[0061] Step 12, for each image, performing grabbing according to a preset grabbing frame, performing line fitting on the grabbed region according to the Hough line algorithm to obtain the fitted line segments, screening the fitted line segments according to a preset screening condition, and taking the screened line segments as the edges of the protective films of the corresponding corner regions of the current image;

[0062] Step 13, calculating the fitting accuracy of the protective film according to the position information of all the screened line segments;

[0063] The method for detecting fitting accuracy according to the embodiment of the present application grabs the images of the corner regions of the planar object with protective films attached to both the upper surface and the lower surface through the grabbing frame; for each grabbed image, line fitting is performed according to the Hough line algorithm to obtain multiple line segments; the multiple line segments are screened according to a preset screening condition; the screened line segments are taken as the line segments at the edges of the protective films; the fitting accuracy is calculated according to the position information of the line segments at the edges of the protective films of at least two images. Compared with the existing technology, the method for detecting fitting accuracy improves the accuracy of detecting fitting accuracy.

[0064] Exemplarily, the planar object may be a display panel. The first surface and the second surface of the display panel are both provided with protective films of the same size. The first surface is the surface on which the display panel displays, and the second surface is the surface opposite to the first surface.

[0065] In some other embodiments, the planar object may be a transparent quadrilateral planar glass, and a transparent protective film is attached to the glass surface.

[0066] The planar object may also be a non-transparent planar quadrilateral object, and the projection of the upper planar object is completely within the projection range of the lower planar object.

[0067] AsFigure 2 As shown, the platen 1 is used to place the laminated protective film. Here, the upper protective film and the lower protective film have the same size. For example, Figure 4 as shown, the length of the protective film is L film (in mm), and the width is H film (in mm). Figure 3 The figure shows a schematic diagram of obtaining an image of the corner area of the display panel with the protective film laminated by a camera. Figure 3 In the figure, the upper protective film 2 has already reached the stage after the PI lamination is completed. Ideally, after lamination, the lower protective film 3 will completely overlap with the upper protective film 2, that is, the offset degree is 0. However, due to the machine error of the lamination equipment and environmental impact, a certain offset amount will be formed between the lower protective film 3 and the upper protective film 2 after lamination. Above the four corners of the platen 1, cameras 4 to 7 and their attached ring flashlights are arranged. Camera 4 is placed at the upper left corner of the platen 1, camera 5 is placed at the lower left corner of the platen 1, camera 6 is placed at the upper right corner of the platen 1, and camera 7 is placed at the lower right corner of the platen 1. Cameras 4 to 7 can be long-focus industrial cameras. During shooting, the protective film should appear within the field of view of the camera, and the mechanical placement device of the protective film should be adjusted so that the position difference of the protective film each time does not exceed the range of the camera. And the camera focal length and the surrounding ambient light are adjusted. Supplementary light can be carried out through the ring flashlight so that the edge contour of the protective film is highlighted by the reflected light. Only in this way can the accuracy of shooting and edge grabbing be ensured.

[0068] The 4 cameras will take pictures simultaneously when the lamination is completed. The 4 cameras are, for example, black-and-white cameras (color cameras can also be used). The image taken by camera 4 is as Figure 5A shown. After preprocessing (such as grayscale processing), it can be as Figure 5B shown. Figure 5B is a grayscale image, only including black, white, and gray-scale color information. Figure 5A and Figure 5B have the same size, both are images with a length of L cam (in pixels) and a width of H cam (in pixels). Those skilled in the art know that not only the right angle of the protective film but also two sides need to appear within the field of view of the captured image, and each position change needs to be within the field of view and is not allowed to jump out of the shooting range of the camera, otherwise calculation cannot be performed.

[0069] In step 11, the preprocessing can be grayscale processing.

[0070] Exemplarily, the display panel can be a flexible OLED panel.

[0071] In step 12, since the lens is fixed in position and angle during shooting, and the display panel is placed on the platen in a way that the long side and short side can be determined, the position of the grabbing frame can be preset so that the edge line of the protective film is inside the grabbing frame.

[0072] The function of the grabbing frame is to avoid areas that affect grabbing. For example, the edge of the PI (polyimide film) substrate may appear within the field of view, but this edge is not the target edge and will affect grabbing, so it should be shielded. If there are no factors affecting grabbing within the field of view, such as using a transparent protective film and the placed tabletop having no scratches, etc., then the grabbing frame can be not used. However, the application scenario of this application is that there are factors affecting grabbing within the field of view.

[0073] Exemplarily, two grabbing frames can be set simultaneously to grab the long side edge and short side edge of the protective film respectively.

[0074] The grabbing frame can be rectangular, or circular or a polygon other than a rectangle.

[0075] In an exemplary embodiment, the grabbing frame can include a first grabbing frame and a second grabbing frame; the area of the first grabbing frame is smaller than the area of the second grabbing frame.

[0076] In an exemplary embodiment, the grabbing each image through the grabbing frame can include:

[0077] For each image, first grab through the first grabbing frame, and in the case where the edge of the protective film is not grabbed, grab through the second grabbing frame.

[0078] Grab the image through the smaller first grabbing frame first because the protective film has a certain deflection angle during shooting, and the straight line fitted by the Hough line algorithm is parallel to the image edge. The edge offset D obtained using the smaller frame small is more accurate, while the edge offset D obtained using the larger frame large will be larger (as Figure 6 shown). Here, the edge offset refers to the difference between the maximum coordinate value and the minimum coordinate value of the straight line segment selected from all the straight line segments that meet the length fitted by the Hough line algorithm in one direction (the first direction or the second direction). To ensure that the grabbed edge offset is more accurate, therefore, it is preferred to use the smaller frame for image grabbing. Assuming that the photographed sample has no angular deflection, then setting the large frame or the small frame will not affect the edge offset, that is, D small is equal to D large .

[0079] Figure 7 Shows a schematic diagram of grabbing an image using the first grabbing frame. In Figure 7Among them, the first grabbing frame 8 is used to grab the edges of the long sides of the upper protective film 2 and the lower protective film 3, and the first grabbing frame 9 is used to grab the edges of the short sides of the upper protective film 2 and the lower protective film 3.

[0080] Figure 8 The schematic diagram of grabbing an image using the second grabbing frame is shown. In Figure 8 Among them, the second grabbing frame 10 is used to grab the edges of the long sides of the upper protective film 2 and the lower protective film 3, and the second grabbing frame 11 is used to grab the edges of the short sides of the upper protective film 2 and the lower protective film 3.

[0081] The range that the second grabbing frame can grab is larger. It is easier to grab the edge of the protective film in the case of unsatisfactory light and shooting environment, and it contains more image information. When performing line fitting using the Hough line algorithm, more pixel points of the edge can be obtained. Therefore, the probability of successful grabbing is increased in the case of blurred edges, but the grabbing accuracy of the second grabbing frame is weaker than that of the first grabbing frame.

[0082] In an exemplary embodiment, in the case where the edge of the protective film is not grabbed by the second grabbing frame, it may further include:

[0083] Performing homomorphic filtering on the area within the second grabbing frame.

[0084] The function of homomorphic filtering is to regard the pixel gray value as two components, illumination and reflectivity, eliminate the influence of uneven illumination, enhance image details, make the differentiation of pixels with large gray value differences more obvious, and more prominently show the pixel changes at the edge. Figure 9 The schematic diagram of the image after homomorphic filtering is shown.

[0085] The above sequence of first grabbing an image through the first grabbing frame, then grabbing through the second grabbing frame, and finally performing homomorphic filtering on the image grabbed by the second grabbing frame is exemplary. In some other embodiments, the sequence can also be adjusted according to the actual situation. For example, start using the second grabbing frame to grab and perform homomorphic filtering on the image grabbed by the second grabbing frame.

[0086] If the edge of the protective film is not grabbed in the cases of respectively using the first grabbing frame, the second grabbing frame, and using homomorphic filtering, a prompt will be given indicating that there is no edge of the protective film in the shooting area or the image is too blurred.

[0087] In an exemplary embodiment, the situation of the image where the edge of the protective film is not grabbed may include at least one of the following:

[0088] When performing line fitting on the grabbed image according to the Hough line algorithm, multiple straight line segments cannot be obtained;

[0089] None of the multiple straight line segments meet the screening rules.

[0090] Exemplarily, the position information of the straight line segment includes the coordinate values at both endpoints of the straight line segment in their respective images in the pixel coordinate system;

[0091] The screening rules may include that the length of the line segment is greater than a preset length and the angle of the line segment is a preset angle.

[0092] Exemplarily, the preset angle is 0 degrees or 90 degrees.

[0093] In step 13, before performing the Hough line algorithm for line fitting, the minimum line distance Hmin of the fitted line can be set to 10 pixels, and the angle of the fitted line. Multiple eligible Hough line segments Line1, Line2, Line3... are obtained inside the effective area of the grabbing frame.

[0094] In an exemplary embodiment, the screening of the multiple straight line segments according to the position information and the screening rules may include:

[0095] Determine the length and angle of the straight line segment according to the position information;

[0096] Judge whether the length and angle of each straight line segment meet the screening rules.

[0097] The Hough line algorithm can avoid the defect of mis-grabbing edges in the traditional grayscale calculation algorithm. As Figure 10 shown, the traditional algorithm grabs the black dot as the edge, while Figure 11 shown, the Hough line algorithm avoids mis-grabbing the black dot and accurately finds the edge.

[0098] In step 14, in an exemplary embodiment, the selected straight line segments may include straight line segments extending along a first direction and straight line segments extending along a second direction in the pixel coordinate system; the first direction is perpendicular to the second direction.

[0099] The pixel coordinate system is a two-dimensional coordinate system used to describe an image in the program's image processing library. Specifically, it refers to a rectangular coordinate system established with the upper left corner of the image as the coordinate origin, the first direction as the X-axis direction, and the second direction as the Y-axis direction. Among them, the first direction is the direction in which the X coordinate increases from left to right, and the second direction is the direction in which the Y coordinate increases from top to bottom.

[0100] In an exemplary embodiment, the calculation of the fitting accuracy of the protective film according to the position information of all the selected straight line segments includes:

[0101] Calculate the fitting accuracy of the protective film according to the maximum and minimum coordinate values of the straight line segments extending in the second direction among the straight line segments selected in each image along the first direction, and the maximum and minimum coordinate values of the straight line segments extending in the first direction among the straight line segments selected in each image along the second direction.

[0102] In an exemplary embodiment, the fitting accuracy includes an offset distance; the offset distance includes an offset distance in the first direction and an offset distance in the second direction;

[0103] The fitting accuracy includes an offset distance; the offset distance includes an offset distance in the first direction and an offset distance in the second direction;

[0104] The offset distance in the first direction is the actual length corresponding to the difference between the maximum and minimum coordinate values of the straight line segments extending in the second direction among the straight line segments selected in any image along the first direction;

[0105] The offset distance in the second direction is the average value of the actual lengths corresponding to the differences between the maximum and minimum coordinate values of at least two straight line segments extending in the first direction among the straight line segments selected in each image along the second direction.

[0106] The coordinates in the pixel coordinate system are in pixels, so the actual length corresponding to the difference between the maximum and minimum coordinate values can be obtained by multiplying the difference between the maximum and minimum coordinate values by the actual length represented by each pixel.

[0107] In an exemplary embodiment, the fitting accuracy further includes a fitting angle;

[0108] The fitting angle GAP θ is calculated in one of the following ways:

[0109] GAP θ = arctan((GAP X1 - GAP X2 ) / (H film - (Y 201 + (H cam - Y 102 )) × R));

[0110] GAP θ = arctan((GAP X3 - GAP X4 ) / (H film - (Y 401 + (H cam - Y 302 )) × R));

[0111] GAPθ = arctan((GAP Y2 - GAP Y4 ) / (L film - (X 203 + (L cam - X 404 )) × R));

[0112] GAP θ = arctan((GAP Y1 - GAP Y3 ) / (L film - (X 103 + (L cam - X 304 )) × R));

[0113] Among them, GAP X1 represents the offset distance of the image in the lower - left corner area in the first direction; GAP X2 represents the offset distance of the image in the upper - left corner area in the first direction; GAP X3 represents the offset distance of the image in the lower - right corner area in the first direction; GAP X4 represents the offset distance of the image in the upper - right corner area in the first direction; GAP Y1 represents the offset distance of the image in the lower - left corner area in the second direction; GAP Y2 represents the offset distance of the image in the upper - left corner area in the second direction; GAP Y3 represents the offset distance of the image in the lower - right corner area in the second direction; GAP Y4 represents the offset distance of the image in the upper - right corner area in the second direction; L film represents the actual length of the protective film; H film represents the actual width of the protective film; Y 102 represents the maximum coordinate value of the image in the lower - left corner area in the second direction; Y 201 represents the minimum coordinate value of the image in the upper - left corner area in the second direction; Y 302 represents the maximum coordinate value of the image in the lower - right corner area in the second direction; Y 401 represents the minimum coordinate value of the image in the upper - right corner area in the second direction; X 103 represents the minimum coordinate value of the image in the lower - left corner area in the first direction; X 203 represents the minimum coordinate value of the image in the upper - left corner area in the first direction; X 304 represents the maximum coordinate value of the image in the lower - right corner area in the first direction; X 404 represents the maximum coordinate value of the image in the upper - right corner area in the first direction; L cam represents the pixel length of the photo; H camW represents the pixel width of the photo; R represents the actual length represented by each pixel.

[0114] The following takes Figure 12 , Figure 13 , Figure 14 , Figure 15 as an example to illustrate the calculation process of the fitting accuracy.

[0115] For example, Figure 12 , the image captured by the camera 5 is coordinated using the pixel coordinate system. The upper left corner of all the pixel points of the image is the coordinate origin O1. The right direction from the origin is the positive direction of the X-axis (corresponding to the aforementioned first direction), and the downward direction is the positive direction of the Y-axis (corresponding to the aforementioned second direction). The side length of each square pixel is equal to the value of 1 of the X-axis and Y-axis coordinate values. The line segment 101 is the line segment with the minimum Y value in the grasping frame obtained by fitting the long-edge Hough line. The line segment 102 is the line segment with the maximum Y value in the grasping frame obtained by fitting the long-edge Hough line. They are two of the edges of the long side of the protective film. It should be noted that these two edges may be the edges of the upper protective film or the lower protective film. This application only calculates the degree of offset and does not analyze the offset direction. The line segment 103 is the line segment with the minimum X value in the grasping frame obtained by fitting the short-edge Hough line. The line segment 104 is the line segment with the maximum X value in the grasping frame obtained by fitting the long-edge Hough line. They are two of the edges of the short side of the protective film. Further, the value corresponding to the positive direction of the Y-axis of the Hough line segment 101 is Y 101 , the value corresponding to the positive direction of the Y-axis of the Hough line segment 102 is Y 102 , the value corresponding to the positive direction of the X-axis of the Hough line segment 103 is X 103 , the value corresponding to the positive direction of the X-axis of the Hough line segment 104 is X 104 .

[0116] For example, Figure 13 , the image captured by the camera 4 is coordinated using the pixel coordinate system. The upper left corner of all the pixel points of the image is the coordinate origin O2. The right direction from the origin is the positive direction of the X-axis (corresponding to the aforementioned first direction), and the downward direction is the positive direction of the Y-axis (corresponding to the aforementioned second direction). The side length of each square pixel is equal to the value of 1 of the X-axis and Y-axis coordinate values. The line segment 201 is the line segment with the minimum Y value in the grasping frame obtained by fitting the long-edge Hough line. The line segment 202 is the line segment with the maximum Y value in the grasping frame obtained by fitting the long-edge Hough line. They are two of the edges of the long side of the protective film. These two edges may be the edges of the upper protective film or the lower protective film. This application only calculates the degree of offset and does not analyze the offset direction. The line segment 203 is the line segment with the minimum X value in the grasping frame obtained by fitting the short-edge Hough line. The line segment 204 is the line segment with the maximum X value in the grasping frame obtained by fitting the long-edge Hough line. They are two of the edges of the short side of the protective film. The value corresponding to the positive direction of the Y-axis of the Hough line segment 201 is Y201 , the value of the positive Y-axis direction corresponding to the Hough line segment 202 is Y 202 , the value of the positive X-axis direction corresponding to the Hough line segment 203 is X 203 , the value of the positive X-axis direction corresponding to the Hough line segment 204 is X 204 .

[0117] Such as Figure 14 , the image captured by the camera 7 is coordinate-transformed using the pixel coordinate system. The upper left corner of all the pixels in the image is the coordinate origin O3. The right direction from the origin is the positive X-axis direction (corresponding to the aforementioned first direction), and the downward direction is the positive Y-axis direction (corresponding to the aforementioned second direction). The side length of each square pixel is equal to the value of 1 of the X-axis and Y-axis coordinates. The line segment 301 is the line segment with the minimum Y value in the grasping frame obtained by fitting the long-side Hough line. The line segment 302 is the line segment with the maximum Y value in the grasping frame obtained by fitting the long-side Hough line. They are two of the edges of the long side of the protective film. These two edges may be the edges of the upper protective film or the lower protective film. This application only calculates the degree of offset and does not analyze the offset direction. The line segment 303 is the line segment with the minimum X value in the grasping frame obtained by fitting the short-side Hough line. The line segment 304 is the line segment with the maximum X value in the grasping frame obtained by fitting the long-side Hough line. They are two of the edges of the short side of the protective film. Further, the value of the positive Y-axis direction corresponding to the Hough line segment 301 is Y 301 , the value of the positive Y-axis direction corresponding to the Hough line segment 302 is Y 302 , the value of the positive X-axis direction corresponding to the Hough line segment 303 is X 303 , the value of the positive X-axis direction corresponding to the Hough line segment 304 is X 304 .

[0118] Such as Figure 15 , the image captured by the camera 6 is coordinate-transformed using the pixel coordinate system. The upper left corner of all the pixels in the image is the coordinate origin O4. The right direction from the origin is the positive X-axis direction (corresponding to the aforementioned first direction), and the downward direction is the positive Y-axis direction (corresponding to the aforementioned second direction). The side length of each square pixel is equal to the value of 1 of the X-axis and Y-axis coordinates. The line segment 401 is the line segment with the minimum Y value in the grasping frame obtained by fitting the long-side Hough line. The line segment 402 is the line segment with the maximum Y value in the grasping frame obtained by fitting the long-side Hough line. They are two of the edges of the long side of the protective film. These two edges may be the edges of the upper protective film or the lower protective film. This application only calculates the degree of offset and does not analyze the offset direction. The line segment 403 is the line segment with the minimum X value in the grasping frame obtained by fitting the short-side Hough line. The line segment 404 is the line segment with the maximum X value in the grasping frame obtained by fitting the long-side Hough line. They are two of the edges of the short side of the protective film. Further, the value of the positive Y-axis direction corresponding to the Hough line segment 401 is Y 401, the value of the positive Y-axis direction corresponding to the Hough line 402 is Y 402 , the value of the positive X-axis direction corresponding to the Hough line 403 is X 403 , the value of the positive X-axis direction corresponding to the Hough line 304 is X 404 .

[0119] The actual picture where all the Hough lines (i.e., the actual edges of the protective film) of all 4 cameras are successfully captured is as Figure 16 shown Figure 16 The blue frame in [] is the capture frame, the green straight line passing through the picture is the positioning line, and the green straight line segment in the blue frame represents the captured edge of the protective film. If one of the frames is shown as a red frame, it means that the edge has not been captured.

[0120] Before calculating the offset degree, the following parameters need to be obtained: the distance conversion ratio R (i.e., the actual length corresponding to one pixel (unit: mm). Assuming that 10 pixels correspond to a length of 1 mm in reality, then the conversion ratio is R = 1 mm / 10 pixels = 0.1), Figure 4 the fixed length L of the protective film in [] film and the fixed width H film , the pixel length L of the taken picture cam and the pixel width H cam . It should be noted that the pixel length L cam and the pixel width H cam of the pictures taken by cameras 4, 5, 6, and 7 should all be kept consistent, otherwise the calculation will be incorrect.

[0121] The calculation formula for the offset value in the positive X-axis direction corresponding to camera 5 is as follows: GAP X1 = ABS(X 103 - X 104 ) × R; ABS represents taking the absolute value.

[0122] The calculation formula for the offset value in the positive Y-axis direction corresponding to camera 5 is as follows: GAP Y1 = ABS((H cam - Y 102 ) - (H cam - Y 101 )) × R;

[0123] The calculation formula for the offset value in the positive X-axis direction corresponding to camera 4 is as follows: GAP X2 = ABS(X 203 - X 204 ) × R;

[0124] The calculation formula for the offset value in the positive Y-axis direction corresponding to camera 4 is as follows: GAP Y2 = ABS(Y 202-Y 201 ) × R;

[0125] The calculation formula for the offset value in the positive X-axis direction corresponding to camera 7 is as follows: GAP X3 = ABS((L cam - X 303 ) - (L cam - X 304 )) × R;

[0126] The calculation formula for the offset value in the positive Y-axis direction corresponding to camera 7 is as follows: GAP Y3 = ABS((H cam - Y 301 ) - (H cam - Y 302 )) × R;

[0127] The calculation formula for the offset value in the positive X-axis direction corresponding to camera 6 is as follows: GAP X4 = ABS((L cam - X 403 ) - (L cam - X 404 )) × R;

[0128] The calculation formula for the offset value in the positive Y-axis direction corresponding to camera 6 is as follows: GAP Y4 = ABS(Y 402 - Y 401 ) × R;

[0129] Generally, the roller lamination is carried out along the long side direction. This is because the shorter the roller length, the smaller the deformation, so the shorter the roller is more stable; in addition, the waviness of the long side of the protective film is larger and it is more difficult to discharge air bubbles.

[0130] Exemplarily, the GAP X (the offset distance between the long side of the lower protective film and the long side of the upper protective film) of the lamination accuracy can be calculated according to the following formula: GAP X = (GAP X1 + GAP X2 ) / 2;

[0131] This formula is more suitable for the scenario where there is a process of lamination start and lamination end. Before starting, first calculate the positions of the film to be laminated and the film for lamination, and then use the roller to roll and laminate in the positive X-axis direction of the long side. Since the protective film is relatively soft, there may be wrinkles, there may be jitters during the process, and there may be slight stretching of the protective film after lamination, resulting in different deviations at the lamination end position. Therefore, calculate the lamination offset angle and GAP XIt can better reflect the precision of the equipment process and is conducive to personnel to adjust the equipment.

[0132] Exemplarily, the GAP of the lamination precision X (the offset distance between the long sides of the lower protective film and the upper protective film) can also be calculated according to the following formula: GAP X =(GAP X3 +GAP X4 ) / 2;

[0133] This formula is more suitable for the scenario where the starting position of lamination is in the two camera areas on the right.

[0134] Exemplarily, the GAP of the lamination precision X (the offset distance between the long sides of the lower protective film and the upper protective film) can also be calculated according to the following formula: GAP X =(GAP X1 +GAP X2 +GAP X3 +GAP X4 ) / 4;

[0135] This formula is more suitable for the scenario where the starting position and the ending position are not involved (for example: directly laminating the protective film as a whole in a covering manner), that is, there is no deviation caused by roller rolling lamination.

[0136] GAP Y The selection of the calculation method and the calculation of the above GPA X are the same, and there are effects of the lamination starting position and the lamination ending position. Exemplarily, the lamination direction is to roll and laminate in the positive X direction of the long side. Because the protective film is relatively soft, there may be wrinkles, it may shake halfway, and there may be slight stretching of the protective film after lamination. The lamination starting position can reflect the accuracy of the lamination process. The GAP Y3 or GAP Y4 at the long side ending position may cause the deviation to become larger and larger due to the influence of the deflection angle, and the result is not as accurate as GAP Y1 or GAP Y2 . And the positive Y direction is not the lamination direction. Therefore, GAP Y can be selected from GAP Y1 or GAP Y2 . That is, for the GAP Y (the offset distance between the short sides of the lower protective film and the upper protective film) of the lamination precision, the value of GAP Y1 is used, that is: GAP Y =GAP Y1 ; or for the GAP Y (the offset distance between the short sides of the lower protective film and the upper protective film) of the lamination precision, the value of GAP Y2The value, i.e., GAP Y = GAP Y2 ;

[0137] or GAP Y = GAP Y3 or GAP Y = GAP Y4 ; However, these two formulas are more suitable for scenarios where the starting position is in the right two camera areas.

[0138] Or GAP Y = (GAP Y1 + GAP Y2 + GAP Y3 + GAP Y4 ) / 4; However, this formula is more suitable for scenarios where the starting position and the ending position are not involved (for example: directly laminating the entire protective film in a covering manner), that is, there is no deviation caused by roller rolling lamination.

[0139] Exemplarily, for the lamination process with a lamination start and a lamination end. Before starting, first calculate the positions of the film to be laminated and the film to be laminated, and then use a roller to roll and laminate in the positive X direction of the long side. Since the protective film is relatively soft, there may be wrinkles, there may be jitters during the process, and there may be slight stretching of the protective film after lamination, resulting in different deviations at the lamination end position. Therefore, calculating the lamination offset angle and θ at the lamination start position (i.e., the cameras in the upper left and lower left corners) can better reflect the accuracy of the device process and is beneficial for personnel to adjust the device. The GAP of the lamination accuracy θ (the offset angle of the lower protective film compared to the upper protective film) can be calculated according to the following formula: GAP θ = arctan((GAP X1 - GAP X2 ) / (H film - (Y 201 + (H cam - Y 102 )) × R));

[0140] Among them, the denominator H film - (Y 201 + (H cam - Y 102 )) × R) represents the adjacent side when calculating the arctangent of θ. No matter how the two protective films are deflected, one of the short sides of the protective film can be made vertical, and then the lower left vertex can be aligned to more intuitively see the calculation process. As Figure 17 shown, the line connecting the projection points A and B of the point when calculating GAP X2 on the short side of the protective film is the adjacent side, and this side is always less than or equal to the short side H film of the protective film, and the smaller value is (Y201 +(H cam -Y 102 )) × R, then the denominator, which is the adjacent side, is H film -(Y 201 +(H cam -Y 102 )) × R.

[0141] It can also be calculated according to the following formula:

[0142] GAP θ = arctan((GAP X3 - GAP X4 ) / (H film -(Y 401 +(H cam -Y 302 )) × R));

[0143] However, this formula is more suitable for calculating the fitting angle when the starting position is in the right two-camera area.

[0144] It can also be calculated according to the following formula:

[0145] GAP θ = arctan((GAP Y2 - GAP Y4 ) / (L film -(X 203 +(L cam -X 404 )) × R));

[0146] Or,

[0147] GAP θ = arctan((GAP Y1 - GAP Y3 ) / (L film -(X 103 +(L cam -X 304 )) × R));

[0148] However, these two formulas are more suitable when the starting and ending positions are not involved (for example: directly attaching the protective film in a covering manner), that is, there is no deviation caused by roller rolling attachment. Then, the two cameras at the two corners of the short side can be used for calculation because the long side is longer and the edge is more likely to leave the camera shooting range when the deflection angle is too large.

[0149] GAP X 、GAP Y and GAP θThree values represent the results of the overall fitting offset. These three results need to be compared with the standard range set by the personnel according to the actual situation. If it exceeds this range, it means that the fitting accuracy detected this time is unqualified; otherwise, the fitting accuracy detected this time is qualified. GAP X1 Results such as X1 represent the fitting offset of each corner of the protective film. A standard range can be set for interception, or no range can be set for reference, and it can be used according to the actual situation.

[0150] An embodiment of the present application discloses a fitting accuracy detection device, as Figure 18 shown, including a memory and a processor,

[0151] The memory 100 is used to store a program for fitting accuracy detection;

[0152] The processor 200 is used to read and execute the program for fitting accuracy detection, and execute the method described in any of the above embodiments.

[0153] The present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to cause the computer to execute the method described in any of the above embodiments.

[0154] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those of ordinary skill in the art that there can be more embodiments and implementation schemes within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the detailed description, many other combination ways of the disclosed features are also possible. Unless specifically restricted, any feature or element of any embodiment can be combined with any other feature or element in any other embodiment, or can replace any other feature or element in any other embodiment.

[0155] The present application includes and contemplates combinations with features and elements known to those of ordinary skill in the art. The embodiments, features, and elements already disclosed in the present application can also be combined with any conventional features or elements to form a unique invention. Any feature or element of any embodiment can also be combined with features or elements from other invention schemes to form another unique invention. Therefore, it should be understood that any feature shown and / or discussed in the present application can be implemented alone or in any suitable combination. Therefore, except for the limitations made according to the appended claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes can be made within the scope of protection of the appended claims.

[0156] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a particular sequence of steps. However, to the extent that the method or process does not depend on the particular sequence of steps described herein, the method or process should not be limited to the particular sequence of steps described. As will be understood by those of ordinary skill in the art, other sequences of steps are possible. Accordingly, the particular sequence of steps set forth in the specification should not be construed as limiting the claims. In addition, the claims directed to the method and / or process should not be limited to performing their steps in the order written, as those skilled in the art can readily understand that such orders may vary and still remain within the spirit and scope of the embodiments of the present application.

[0157] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by several physical components in cooperation. Some components or all components can be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0158] In addition, terms such as "first", "second", etc. are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", etc. can explicitly or implicitly include at least one such feature.

[0159] In the description of the present application, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise specifically defined.

[0160] In the present application, unless otherwise clearly defined, terms such as "installed", "connected", "coupled", "fixed", etc. shall be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal connection of two components or the interaction relationship between two components, unless otherwise clearly defined. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.

[0161] In the present application, unless otherwise clearly defined, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first feature and the second feature are in indirect contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may be that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "underneath" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.

[0162] In the description of this specification, the description with reference to terms such as "an embodiment", "some embodiments", "example", "specific example" or "some examples", etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0163] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present application.

Claims

1. A method for detecting fitting accuracy, applicable to planar objects in the shape of a quadrilateral. The first surface and the second surface of the planar object are both provided with protective films of the same size. The first surface is one surface of the planar object, and the second surface is the surface opposite to the first surface. The method includes: Obtaining and preprocessing at least two images, where the at least two images are images of different corner regions of the planar object; For each image, performing grabbing according to a preset grabbing frame, performing straight line fitting on the grabbed area according to the Hough straight line algorithm to obtain the fitted straight line segments, screening the fitted straight line segments according to preset screening conditions, and taking the screened straight line segments as the edges of the protective film of the corresponding corner region of the current image; Calculating the fitting accuracy of the protective film according to the position information of all the screened straight line segments.

2. The method for detecting fitting accuracy according to claim 1, wherein The performing grabbing according to a preset grabbing frame includes: For each image, first performing grabbing through a first grabbing frame, and in the case where the edge of the protective film is not grabbed, performing grabbing through a second grabbing frame; wherein, the area of the first grabbing frame is smaller than the area of the second grabbing frame.

3. The method for detecting fitting accuracy according to claim 2, wherein In the case where grabbing is performed through the second grabbing frame and the edge of the protective film is not grabbed, the method further includes: Performing homomorphic filtering on the area within the second grabbing frame.

4. The method for detecting fitting accuracy according to claim 1, wherein The screening the fitted straight line segments according to preset screening conditions includes: Judging whether the length and angle of each straight line segment meet the preset screening conditions; the screening conditions include one or more of the following: the length of the straight line segment is greater than a preset length; the angle of the straight line segment is a preset angle.

5. The method for detecting fitting accuracy according to claim 1, wherein The screened straight line segments include straight line segments extending along a first direction and straight line segments extending along a second direction in the pixel coordinate system; the first direction is perpendicular to the second direction; The position information of the straight line segments includes the coordinate values at both ends of the straight line segments in their respective images in the pixel coordinate system; The calculating the fitting accuracy of the protective film according to the position information of all the screened straight line segments includes: Calculating the fitting accuracy according to the maximum coordinate value and the minimum coordinate value of the straight line segments extending along the first direction in the second direction, and the maximum coordinate value and the minimum coordinate value of the straight line segments extending along the second direction in the first direction among all the straight line segments screened in each image.

6. The method for detecting fitting accuracy according to claim 5, wherein The fitting accuracy includes an offset distance; the offset distance includes an offset distance in the first direction and an offset distance in the second direction; The offset distance in the first direction is the actual length corresponding to the difference between the maximum coordinate value and the minimum coordinate value of the straight line segments extending along the first direction in the second direction among the straight line segments screened in any image; The offset distance in the second direction is the average of the actual lengths corresponding to the difference between the maximum coordinate value and the minimum coordinate value in the first direction of at least two straight line segments extending in the second direction among all the straight line segments screened out in each image.

7. The fitting accuracy detection method according to claim 6, characterized in that The fitting accuracy further includes a fitting angle; The fitting angle GAP θ is calculated in one of the following ways: GAP θ = arctan((GAP X1 - GAP X2 ) / (H film - (Y 201 + (H cam - Y 102 )) × R)); GAP θ = arctan((GAP X3 - GAP X4 ) / (H film - (Y 401 + (H cam - Y 302 )) × R)); GAP θ = arctan((GAP Y2 - GAP Y4 ) / (L film - (X 203 + (L cam - X 404 )) × R)); GAP θ = arctan((GAP Y1 - GAP Y3 ) / (L film - (X 103 + (L cam - X 304 )) × R)); Among them, GAP X1 represents the offset distance of the image in the lower left corner region in the first direction; GAP X2 represents the offset distance of the image in the upper left corner region in the first direction; GAP X3 represents the offset distance of the image in the lower right corner region in the first direction; GAP X4 represents the offset distance of the image in the upper right corner region in the first direction; GAP Y1 represents the offset distance of the image in the lower left corner region in the second direction; GAP Y2 represents the offset distance of the image in the upper left corner region in the second direction; GAP Y3 represents the offset distance of the image in the lower right corner region in the second direction; GAP Y4 represents the offset distance of the image in the upper right corner region in the second direction; L film represents the actual length of the protective film; H film represents the actual width of the protective film; Y 102 represents the maximum coordinate value of the image in the lower left corner region in the second direction; Y 201 represents the minimum coordinate value of the image in the upper left corner region in the second direction; Y 302 represents the maximum coordinate value of the image in the lower right corner region in the second direction; Y 401 represents the minimum coordinate value of the image in the upper right corner region in the second direction; X 103 represents the minimum coordinate value of the image in the lower left corner region in the first direction; X 203 represents the minimum coordinate value of the image in the upper left corner region in the first direction; X 304 represents the maximum coordinate value of the image in the lower right corner region in the first direction; X 404 represents the maximum coordinate value of the image in the upper right corner region in the first direction; L cam represents the pixel length of the photo; H cam represents the pixel width of the photo; R represents the actual length represented by each pixel.

8. The fitting accuracy detection method according to claim 1, characterized in that The planar object is a display panel.

9. A fitting accuracy detection device, comprising a memory and a processor, characterized in that The memory is used to store a program for fitting accuracy detection; The processor is used to read and execute the program for fitting accuracy detection, and execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium stores computer-executable instructions, wherein, The computer-executable instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.