A method for controlling edge grabbing and gluing of mobile phone frame
By preprocessing and extracting feature points on the mobile phone frame component image, correcting the position of the dispensing point, solving the problem of dispensing offset and overflow caused by reference edge deviation in the mobile phone frame dispensing process, achieving higher dispensing accuracy and satisfying process requirements.
Patent Information
- Application Number
- CN202411902779.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the mobile phone frame dispensing process, due to the low processing accuracy of die-cast molded workpieces, the reference edge deviation of the mobile phone frame is deviated, and there is a risk of dispensing offset and overflow, which cannot meet the dispensing process requirements of the mobile phone frame.
By collecting the image of the component to be dispensed for pre-processing, the feature points and coordinates of the outer edge of the component outline are extracted, the reference rectangular angle frame and feature points are used to calculate the reference minimum distance, and the preset dispensing point position is corrected to ensure the accuracy of the dispensing trajectory.
It effectively avoids the deformation of the mobile phone die-cast shell, avoids the problem of dispensing offset and overflow due to different shell sizes, improves the dispensing accuracy, and meets the requirements of the mobile phone production process.
Smart Images

Figure CN119359704B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of glue dispensing control, and in particular to a method for controlling glue dispensing on an edge of a mobile phone frame. Background Art
[0002] At present, in the intelligent manufacturing industry, the quality requirements for dispensing are getting higher and higher, and the demand for dispensing technology is also increasing; for example, some processes are to dispense glue on the frame of the mobile phone, and then fit the frame to the screen.
[0003] Before dispensing glue, it is necessary to grab the edge position of the mobile phone frame first; currently, the commonly used grabbing method is to grab the diagonal positioning point position of the workpiece; however, for some die-cast workpieces, the processing accuracy is low; the reference edge of the mobile phone frame will deviate, resulting in a deviation between the diagonal positioning point position of the mobile phone and the reference edge of the mobile phone frame. Once a deviation occurs, there will be a risk of glue dispensing offset, causing glue overflow, and failing to meet the glue dispensing process requirements of the mobile phone frame. Summary of the invention
[0004] In view of the shortcomings of the existing methods, the present invention solves the problem that the position of the operating components is offset due to the process of the existing mobile phone, and there is a risk of glue overflow when dispensing glue through preset glue dispensing points.
[0005] The technical solution adopted by the present invention is: a method for controlling the edge grabbing and gluing of a mobile phone frame comprises the following steps:
[0006] Step 1: Collect the image of the component to be dispensed and pre-process the image;
[0007] As a preferred embodiment of the present invention, the components include: a middle frame component, a camera component, a flash component and a charging port component.
[0008] As a preferred implementation of the present invention, the preprocessing includes: image binarization processing and particle processing.
[0009] Step 2: extract the feature points of the outer edge of the component outline and their corresponding coordinates;
[0010] As a preferred implementation of the present invention, an image processing module is used to extract feature points of the outer edge of the component outline and their corresponding coordinates.
[0011] As a preferred implementation of the present invention, the image processing module includes sobel, SIFT, and Canny operators.
[0012] Step 3: Draw a reference rectangular angle frame with the coordinates of the reference glue point as the center point, obtain the reference contour points using the reference rectangular angle frame and the feature points of the outer edge of the component contour, and calculate the reference minimum distance using the reference contour points and the reference glue point;
[0013] Step three specifically includes:
[0014] Step 31, draw a reference rectangular angle frame with the reference glue point as the center, and rotate the reference rectangular angle frame with the reference glue point as the center;
[0015] Step 32, when the tangent line of the reference contour point is parallel to the wide side of the reference rectangular angle frame, and the reference contour point is the midpoint of the tangent line segment of the reference contour point, stop the rotation of the reference rectangular angle frame;
[0016] Step 33, calculate the minimum distance between the reference glue point and the reference contour point.
[0017] Step 4, calculating the first minimum distance between the first glue point and the first contour point;
[0018] Step 5: Correct the position of the first glue point according to the first minimum distance and the reference minimum distance;
[0019] As a preferred implementation of the present invention, step five specifically includes:
[0020] When the difference between the first minimum distance and the reference minimum distance is smaller than the preset third threshold value, there is no need to correct the position of the first glue point; otherwise, the position of the first glue point is corrected.
[0021] As a preferred embodiment of the present invention, correcting the position of the first glue point includes: finding the coordinates of a point on the straight line of the first minimum distance that is equal to the reference minimum distance, and the correction amount of the first glue point is the difference between the coordinates of the corrected first glue point and the coordinates of the first glue point.
[0022] Step 6: Repeat steps 4 and 5 to complete the position correction of all preset dispensing points;
[0023] As a preferred embodiment of the present invention, a mobile phone frame edge grabbing and glue dispensing control system includes: a memory for storing instructions executable by a processor; a processor for executing instructions to implement a mobile phone frame edge grabbing and glue dispensing control method.
[0024] As a preferred embodiment of the present invention, a computer readable medium stores computer program code, and the computer program code implements a method for controlling the edge gripping and gluing of a mobile phone frame when executed by a processor.
[0025] Beneficial effects of the present invention:
[0026] 1. The present invention uses angle frames and edge contour feature points to obtain contour points, uses contour points to offset the position of preset glue points, generates glue dispensing trajectories, avoids the influence of deformation of the die-cast shell of the mobile phone, avoids glue dispensing offset and overflow problems due to different shell sizes, effectively meets the glue dispensing process, and improves the glue dispensing accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of the mobile phone frame edge grabbing and glue dispensing control method of the present invention;
[0028] Figure 2 It is a schematic diagram of the mobile phone to be dispensed;
[0029] Figure 3 It is a schematic diagram of the relationship between the preset dispensing points and the component positions of the present invention;
[0030] Figure 4 It is a schematic diagram of searching contour points on the outer edge of the component contour according to the rectangular angle frame and the glue point of the present invention;
[0031] Figure 5 It is a schematic diagram of a rectangular angle frame and a minimum distance of the present invention;
[0032] Figure 6 It is a schematic diagram of the position of the correction dispensing point of the present invention;
[0033] Figure 7 It is a preprocessed image of a preset glue dispensing point of the mobile phone to be glued of the present invention. DETAILED DESCRIPTION
[0034] The present invention is further described below in conjunction with the accompanying drawings and embodiments. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore it only shows the components related to the present invention.
[0035] like Figure 2 As shown, a glue dispenser is required to dispense glue between the outer frame of the mobile phone and the adjacent components so that the outer frame of the mobile phone fits tightly with the mobile phone screen, thereby completing the assembly process of the mobile phone screen; Figure 2 The middle component is a middle frame component; the components may also include a flash component, a charging port component, a camera component, etc. The embodiment of the present invention takes the middle frame component as an example to illustrate the dispensing control method.
[0036] like Figure 3As shown, several preset glue points are set in the software of the glue dispensing machine. The preset glue points are between the outer frame of the mobile phone and the components, and the mobile phone frame and the screen are bonded through the preset glue points; however, due to production process reasons, it is impossible to ensure that the shape of each component is exactly the same, and there will be certain deviations, that is, there will be certain deviations in the line shape of the outer edge of the component outline. If each mobile phone is glued according to the same trajectory of the preset glue points, once the line shape deviation of the outer edge of the component outline is large, that is, the minimum distance between each preset glue point and the outer edge of the component outline is not the same, this will cause the glue at the glue point to overflow onto the component when the mobile phone screen is bonded, which does not meet the mobile phone production process; therefore, it is necessary to correct the coordinates of the preset glue points so that the coordinates of each glue point relative to the minimum distance of the component are within the set range, thereby solving the problem of glue overflow during bonding.
[0037] like Figure 1 As shown, a method for controlling the edge grabbing and gluing of a mobile phone frame includes the following steps:
[0038] Step 1: Collect the image of the component to be dispensed and pre-process the image;
[0039] First, move the image acquisition device to the edge of the component frame to be glued, and use the image acquisition device to capture the image of the outer frame of the mobile phone and the component. The image acquisition device can be a camera or other device.
[0040] In order to improve the clarity and accuracy of the image, the brightness of the light source needs to be adjusted to filter out interfering particles and ensure that the image processing module can accurately identify the edge of the mobile phone frame;
[0041] Preprocessing includes: binarizing the image; converting the image into a binary image to facilitate particle processing and edge detection;
[0042] Particle processing is to filter out interfering particles to make the edge of the component to be dispensed clearer; by filtering out white particles smaller than the preset first threshold and removing the white area connected to the edge of the field of view; the first threshold can be customized.
[0043] Step 2: Using the image processing module to extract the feature points of the outer edge of the component outline and their corresponding coordinates;
[0044] The image processing module can be an edge feature extraction algorithm such as sobel, SIFT, Canny, etc., or a convolutional neural network model, etc.; since the feature point extraction process is a conventional technology, it will not be repeated.
[0045] The feature points of the outer edge of the component outline can also be obtained through the changes in image pixels, such as Figure 2, the middle frame component is a black image, the glue dispensing position is white, and the difference between adjacent pixels is compared with the preset second threshold to determine whether the pixel is a feature point of the outer edge of the component outline; for example, the pixel value of a pure black pixel is (0, 0, 0), and the pixel value of a pure white pixel is (255,255,255). When the black pixel value and the white pixel value are within a certain range and the difference between the black pixel value and the white pixel value is greater than the second threshold 240, it indicates that there is a black and white boundary, that is, the corresponding black pixel is a feature point of the outer edge of the component outline.
[0046] like Figure 3 As shown, an XOY coordinate system is constructed with the vertical mobile phone as the front view, the lower frame of the mobile phone is the X-axis, the left vertical frame is the Y-axis, and the intersection of the lower frame and the left vertical frame is the origin O.
[0047] like Figure 4 and 5 As shown, step three, draw a reference rectangular angle frame with the coordinates of the reference glue point as the center point, obtain the reference contour points using the reference rectangular angle frame and the feature points of the outer edge of the component contour, and calculate the reference minimum distance using the reference contour points and the reference glue point;
[0048] Step three specifically includes:
[0049] Step 31, draw a reference rectangular angle frame with the reference glue point as the center, and rotate the reference rectangular angle frame with the reference glue point as the center;
[0050] The first point among several preset dispensing points is selected as the reference dispensing point, and the following points are divided into the first dispensing point, the second dispensing point and the N-1th dispensing point in sequence. For example, among several dispensing points, N=1 is the reference dispensing point, and N=6 is the fifth dispensing point.
[0051] A reference rectangular angle frame is drawn with the reference glue point as the center, that is, the distance between the reference glue point and the two long sides of the reference rectangular angle frame is equal; the two long sides of the reference rectangular angle frame are the first long side of the reference rectangular angle frame and the second long side of the reference rectangular angle frame.
[0052] Among them, the reference rectangular angle frame is a rectangular frame with customized length and width. The first wide side of the reference rectangular angle frame is close to the reference glue point in the reference rectangular angle frame, the first long side is on the right side of the reference rectangular angle frame, and the second wide side and the second long side of the rectangular angle frame are respectively relative to the first wide side and the first long side.
[0053] The angle frame of several dispensing points needs to be between the outer edge of the component outline and the outer edge of the component outline, that is, the second wide side of the rectangular angle frame needs to be between the outer edge of the component outline and the inner edge of the component outline.
[0054] Step 32, when the tangent line of the reference contour point is parallel to the wide side of the reference rectangular angle frame, and the reference contour point is the midpoint of the tangent line segment of the reference contour point, stop the rotation of the reference rectangular angle frame;
[0055] The purpose of rotating the reference rectangular angle frame is to find the minimum distance between the reference glue point and the outer edge of the component contour, that is, the reference minimum distance; there are several reference contour points on the outer edge of the component contour within the reference rectangular angle frame, that is, the characteristic points of the outer edge of the component contour; with the reference contour point as the starting point, find several reference contour point tangents in the tangential direction of the curve of the outer edge of the component contour; when the reference contour point tangent is parallel to the width direction of the reference rectangular angle frame, and the reference contour point is the midpoint of the reference contour point tangent segment, the reference contour point corresponding to the reference minimum distance is obtained, and the rotation of the reference rectangular angle frame is stopped after the reference contour point is found; at this time, the line connecting the reference contour point and the reference glue point is perpendicular to the reference contour point tangent by 90°; wherein, the reference contour point tangent segment is the line segment of the reference contour point tangent within the reference rectangular angle frame.
[0056] Step 33, calculating the minimum distance between the reference glue point and the reference contour point;
[0057] Step 4, calculating the first minimum distance between the first glue point and the first contour point;
[0058] The process of the first minimum distance is the same as the process of the benchmark minimum distance, so it will not be repeated here.
[0059] Step 5: Correct the position of the first glue point according to the first minimum distance and the reference minimum distance;
[0060] Step five includes:
[0061] When the difference between the first minimum distance and the reference minimum distance is smaller than the preset third threshold value, there is no need to correct the position of the first glue point; otherwise, the position of the first glue point is corrected.
[0062] The position of the first glue point is corrected, that is, when the difference between the first minimum distance and the reference minimum distance exceeds the preset third threshold, the coordinates of a point equal to the reference minimum distance are found on the straight line of the first minimum distance, which is the correction of the first glue point; the difference between the coordinates of the corrected first glue point and the coordinates of the first glue point is the correction amount required for the first glue point;
[0063] For example: The minimum distance of the benchmark is d n , unit: mm; the coordinates of the first glue point are (x 1 ,y 1 ), the coordinates of the first contour point are ((x 2 ,y 2 ), the first minimum distance d 1 =sqrt{(x2 -x 1 )^2 + (y 2 -y 1 )^2}, when d 1 <d n If , it indicates that the preset first glue point is too close to the outer edge of the component outline. There is a risk of glue overflow at this glue point, so the preset first glue point needs to be kept away from the outer edge of the component outline. Figure 6 As shown, the coordinates of the preset first glue point need to be moved to the corrected first glue point of the upper red dot, and the corrected first glue point is on the outer extension line of the first minimum distance; otherwise, the coordinates of the preset first glue point need to be moved to the corrected first glue point of the lower red dot, and the corrected first glue point is within the line segment of the first minimum distance, that is, between the preset first glue point and the first contour point; that is, the distance between the corrected first glue point and the first contour point = the reference minimum distance.
[0064] Step 6: Repeat steps 4 and 5 to complete the position correction of all preset dispensing points.
[0065] like Figure 7 As shown, it is a schematic diagram of the positions of 7 preset glue points and the outer edge of the middle frame component outline. It can be seen that the distances between the 7 preset glue points of the mobile phone product and the outer edge of the component outline are not completely equal, and need to be corrected according to the position of the top reference glue point.
[0066] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for controlling the edge grabbing and gluing of a mobile phone frame, characterized in that: The following steps are involved: Step 1: Collect the image of the component to be dispensed and pre-process the image; Step 2: extract the feature points of the outer edge of the component outline and their corresponding coordinates; Step 3: Draw a reference rectangular angle frame with the coordinates of the reference glue point as the center point, obtain reference contour points using the reference rectangular angle frame and the feature points of the outer edge of the component contour, and calculate the reference minimum distance using the reference contour points and the reference glue point; Step three specifically includes: Step 31, draw a reference rectangular angle frame with the reference glue point as the center, and rotate the reference rectangular angle frame with the reference glue point as the center; Draw a reference rectangular angle frame with the reference glue point as the center, that is, the distance between the reference glue point and the two long sides of the reference rectangular angle frame is equal; the two long sides of the reference rectangular angle frame are the first long side of the reference rectangular angle frame and the second long side of the reference rectangular angle frame; The reference rectangular angle frame is a rectangular frame of custom length and width, the first wide side of the reference rectangular angle frame is close to the reference glue point in the reference rectangular angle frame, the right side of the reference glue point is the first long side of the reference rectangular angle frame, and the second wide side and the second long side of the rectangular angle frame are opposite to the first wide side and the first long side respectively; Step 32, when the tangent line of the reference contour point is parallel to the wide side of the reference rectangular angle frame, and the reference contour point is the midpoint of the tangent line segment of the reference contour point, stop the rotation of the reference rectangular angle frame; The purpose of rotating the reference rectangular angle frame is to find the minimum distance between the reference glue point and the outer edge of the component contour, that is, the reference minimum distance; there are several reference contour points on the outer edge of the component contour within the reference rectangular angle frame, that is, the characteristic points of the outer edge of the component contour; with the reference contour point as the starting point, find several reference contour point tangents in the tangent direction of the curve of the outer edge of the component contour; when the reference contour point tangent is parallel to the width direction of the reference rectangular angle frame, and the reference contour point is the midpoint of the reference contour point tangent segment, the reference contour point corresponding to the reference minimum distance is obtained, and the rotation of the reference rectangular angle frame is stopped after the reference contour point is found; at this time, the line connecting the reference contour point and the reference glue point is perpendicular to the reference contour point tangent at 90°; wherein, the reference contour point tangent segment is the line segment of the reference contour point tangent within the reference rectangular angle frame; Step 33, calculating the minimum distance between the reference glue point and the reference contour point; Step 4, calculating the first minimum distance between the first glue point and the first contour point; Step 5: Correct the position of the first glue point according to the first minimum distance and the reference minimum distance; Step 6: Repeat steps 4 and 5 to complete the position correction of all preset dispensing points.
2. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 1, characterized in that: Step five specifically includes: when the difference between the first minimum distance and the reference minimum distance is less than a preset third threshold, there is no need to correct the position of the first glue point; otherwise, the position of the first glue point is corrected.
3. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 2, characterized in that: Correcting the position of the first glue point includes: when the difference between the first minimum distance and the reference minimum distance exceeds a preset third threshold, finding the coordinates of a point on the straight line of the first minimum distance that is equal to the reference minimum distance, that is, correcting the first glue point, and the correction amount of the first glue point is the difference between the coordinates of the corrected first glue point and the coordinates of the first glue point.
4. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 1, characterized in that: Components include: Components include: middle frame assembly, camera assembly, flash assembly and charging port assembly.
5. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 1, characterized in that: Preprocessing includes: Image binarization and particle processing.
6. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 1, characterized in that: The image processing module is used to extract the feature points of the outer edge of the component outline and their corresponding coordinates.
7. The method for controlling the edge grabbing and gluing of a mobile phone frame according to claim 6, characterized in that: The image processing module includes sobel, SIFT, and Canny operators.
8. Mobile phone frame edge grabbing and glue dispensing control system, characterized in that: include: a memory for storing instructions executable by a processor; A processor, used to execute instructions to implement the mobile phone frame edge grabbing and gluing control method as described in any one of claims 1-7.
9. A computer readable medium storing a computer program code, characterized in that: The computer program code, when executed by a processor, implements the mobile phone frame edge grabbing and gluing control method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Glue spraying device and determination method of border track
CN106391397A
Method for adjusting shoe upper gluing track, storage equipment and shoe sole gluing robot
CN114788602A