A method, system, device and storage medium for generating a shoe sole glue spraying trajectory
Through three-dimensional point cloud image processing and posture analysis, the edge and center area trajectory data set of the sole is generated, which solves the problems of low efficiency of sole glue spraying and inaccurate trajectory matching in the existing technology, and achieves efficient and accurate sole glue spraying. operation, improving the quality of shoe sole glue spraying.
Patent Information
- Application Number
- CN202310029230.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-01-09
AI Technical Summary
In the existing technology, the efficiency of glue spraying on soles is low and due to local deformation of the soles, it is difficult to accurately match the predetermined fixed teaching trajectory to the actual situation, affecting the quality of glue spraying.
By obtaining the three-dimensional point cloud image of the sole, using the threshold segmentation method to remove the non-sole point cloud background, extracting the edge contour and central surface of the closed area of the sole, performing trajectory point sampling and posture analysis, a spatial trajectory data set of the sole edge and central area is formed. , sent to the glue spraying robot to realize automated glue spraying operations.
It achieves efficient and accurate generation of sole glue spraying trajectories, overcomes the impact of local deformation of the sole on the quality of glue spraying, and improves the efficiency and quality of shoe sole glue spraying operations.
Smart Images

Figure CN115969144B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of machine vision, and in particular relates to a method, system, device and storage medium for generating a shoe sole glue spraying trajectory. Background Art
[0002] At present, the shoemaking process in the shoemaking industry can be roughly divided into the cutting and sewing section, the molding section and the packaging section; the cutting and sewing section is mainly responsible for making the upper separately, mainly cutting various fabrics and sewing them into the upper part through sewing, and the sole is made separately by injection molding or other processes; the molding section is mainly for roughening, spraying treatment agents and spraying glue on the parts that need to be bonded between the sole and the upper, and then bonding the sole and the upper together; the packaging section is mainly for the finished product quality inspection of the finished shoes and packing them into boxes. Among them, the processing of the sole in the molding section includes feeding, applying treatment agents, drying in treatment agent ovens, applying glue, drying in glue ovens and bonding the sole from front to back. During the glue spraying operation, it is usually completed manually or by a six-axis robot with a spray gun using a pre-established unified fixed teaching trajectory. The manual operation method has low efficiency. Since the soles are mostly made of EVA and other materials, they will have certain local deformations after passing through the oven. Although this local deformation does not affect the quality of the soles, for the robot, it will cause the pre-established fixed teaching trajectory to deviate from the actual situation of the soles, thereby affecting the quality of the glue spraying operation. In order to reduce labor, improve the quality of shoemaking, and achieve the upgrading of the shoemaking industry, an efficient, accurate and practical sole glue spraying trajectory generation method is needed to assist the automated glue spraying operation of the soles. Summary of the invention
[0003] The purpose of the present invention is to provide a method, system, device and storage medium for generating a shoe sole glue spraying trajectory, so as to solve the above-mentioned problems existing in the prior art.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] In a first aspect, a method for generating a shoe sole glue spraying trajectory is provided, comprising:
[0006] Obtain a three-dimensional point cloud image of the sole;
[0007] The threshold segmentation method is used to remove the non-sole point cloud background in the 3D point cloud image to obtain the 3D point cloud image of the closed area of the sole;
[0008] Extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence;
[0009] Perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain the six-dimensional posture parameters of each trajectory point;
[0010] Associating and combining each trajectory point of the edge trajectory point sequence with its corresponding six-dimensional pose parameter to form a sole edge spatial trajectory dataset;
[0011] Send the sole edge spatial trajectory dataset to the glue spraying robot.
[0012] In one possible design, the method further includes:
[0013] Based on the three-dimensional point cloud image of the closed area of the sole, the point cloud of the center area of the sole is extracted to perform surface fitting with a set fitting equation to obtain a smooth center surface of the sole;
[0014] Extract edge trajectories based on the center surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence;
[0015] Import the x-axis value and y-axis value of each track point in the center area track point sequence into the set fitting equation for calculation to obtain a new z-axis value;
[0016] The x-axis value, y-axis value and new z-axis value of each trajectory point are used as its fixed posture parameters, and each trajectory point in the center area trajectory point sequence is associated and combined with its fixed posture parameters to form a spatial trajectory data set of the center area of the sole;
[0017] The spatial trajectory dataset of the center area of the sole is synchronously sent to the glue spraying robot.
[0018] In one possible design, the set fitting equation is
[0019] z=ax 5 +bx 4 +cx 3 +dx 2 +ex+fy 2 +gy+hx 4 y+ix 3 y 2 +jx 3 y+kx 2 y 2 +lx 2 y+mxy 2 +nxy+o
[0020] Among them, z represents the z-axis value to be determined, x represents the x-axis value of the corresponding point, y represents the y-axis value of the corresponding point, and a, b, c, d, e, f, g, h, i, j, k, l, m, n and o are all fixed parameters.
[0021] In a possible design, the threshold segmentation method is used to remove the non-sole point cloud background in the three-dimensional point cloud image to obtain a three-dimensional point cloud image of the closed area of the sole, including:
[0022] Obtain a correction matrix, and convert the three-dimensional point cloud image of the sole into a three-dimensional matrix including a two-dimensional matrix of an x-axis, a two-dimensional matrix of a y-axis, and a two-dimensional matrix of a z-axis;
[0023] Extract the z-axis two-dimensional matrix of the three-dimensional matrix, add the correction matrix to the z-axis two-dimensional matrix, and obtain a corrected z-axis image matrix;
[0024] Based on the corrected z-axis image matrix, the points of the closed area of the sole are extracted to form a three-dimensional point cloud image of the closed area of the sole.
[0025] In a possible design, the points of the closed area of the sole are extracted based on the corrected z-axis image matrix to form a three-dimensional point cloud image of the closed area of the sole, including: based on the corrected z-axis image matrix, determining whether the characteristic values of each point on the z-axis image are within a set interval; if they are within the set interval, determining that the corresponding point belongs to the point within the closed area of the sole, otherwise determining that the corresponding point is a background point that does not belong to the closed area of the sole and removes it; finally, extracting the points belonging to the closed area of the sole to form a three-dimensional point cloud image of the closed area of the sole.
[0026] In a possible design, the posture analysis of each trajectory point in the edge trajectory point sequence is performed to obtain the six-dimensional posture parameters of each trajectory point, including:
[0027] For the trajectory point P in the edge trajectory point sequence i =[x i ,y i ,z i ], take its previous point P i-1 and the next point P i+1 , the three points P i , P i-1 and P i+1 Project onto the plane composed of the x-axis and y-axis of the 3D point cloud image;
[0028] P i-1 Point and P i+1 Connect the points and draw a line P i Click to P i-1 and P i+1 The perpendicular line of the connecting line;
[0029] Take the vertical line as the center line and P i Point is the starting boundary point, and a rectangular area with a long side of c and a short side of d is delineated, where c and d are set values;
[0030] Extract all points in the rectangular area to fit a plane using the least squares method;
[0031] The normal vector of the fitted plane is taken as the Z axis of the new attitude coordinate system, and P i-1 Point and P i+1 The straight line where the point connection line is located is used as the Y axis of the newly created attitude coordinate system. Based on the Z axis and the Y axis, the X axis of the newly created attitude coordinate system is determined according to the right-hand rule;
[0032] Determine the trajectory point P i The coordinate values R on the X-axis, Y-axis and Z-axis respectively xi , R yi and R zi , then the trajectory point P i The six-dimensional pose parameter is [x i ,y i ,z i , R xi , R yi , R zi ].
[0033] In a second aspect, a shoe sole glue spraying trajectory generation system is provided, comprising an acquisition unit, a denoising unit, a first sampling unit, a first parsing unit, a first combining unit and a sending unit, wherein:
[0034] An acquisition unit, used for acquiring a three-dimensional point cloud image of the sole;
[0035] A denoising unit is used to remove the non-sole point cloud background in the three-dimensional point cloud image by using a threshold segmentation method to obtain a three-dimensional point cloud image of a closed area of the sole;
[0036] A first sampling unit is used to extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence;
[0037] A first parsing unit is used to perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain a six-dimensional posture parameter of each trajectory point;
[0038] A first combining unit is used to associate and combine each trajectory point of the edge trajectory point sequence with its corresponding six-dimensional posture parameter to form a sole edge spatial trajectory data set;
[0039] The sending unit is used to send the sole edge spatial trajectory dataset to the glue spraying robot.
[0040] In one possible design, the system further includes a fitting unit, a second sampling unit, a second parsing unit, and a second combining unit, wherein:
[0041] A fitting unit, used to extract the point cloud of the center area of the sole based on the three-dimensional point cloud image of the closed area of the sole, perform surface fitting with a set fitting equation, and obtain a smooth center surface of the sole;
[0042] The second sampling unit is used to extract edge trajectories based on the center curved surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed-interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence;
[0043] The second analysis unit is used to import the x-axis value and y-axis value of each track point in the center area track point sequence into the set fitting equation for calculation to obtain a new z-axis value;
[0044] The second combining unit is used to use the x-axis value, y-axis value and new z-axis value of each trajectory point as its fixed posture parameter, associate and combine each trajectory point of the center area trajectory point sequence with its fixed posture parameter, and form a spatial trajectory data set of the center area of the sole;
[0045] The sending unit is also used to synchronously send the spatial trajectory data set of the center area of the sole to the glue spraying robot.
[0046] In a third aspect, a device for generating a shoe sole glue spraying trajectory is provided, comprising:
[0047] A memory for storing instructions;
[0048] A processor is used to read the instructions stored in the memory and execute any one of the methods described in the first aspect according to the instructions.
[0049] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored on the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute any one of the methods described in the first aspect. In addition, a computer program product containing instructions is provided, and when the instructions are executed on a computer, the computer is caused to execute any one of the methods described in the first aspect.
[0050] Beneficial effect: The present invention extracts the edge contour of the closed area of the sole from the three-dimensional point cloud image of the closed area of the sole to perform trajectory point sampling, obtains an edge trajectory point sequence, and then performs posture analysis on each edge trajectory point to obtain the six-dimensional posture parameters of each edge trajectory point to form a sole edge space trajectory data set, and extracts the center area of the sole to perform trajectory point sampling to obtain a center area trajectory point sequence, and then performs fixed posture fitting calculation on each center area trajectory point to obtain the fixed posture parameters of each center area trajectory point to form a sole center area space trajectory data set, and can intelligently generate sole glue spraying space trajectory data to the glue spraying robot for subsequent automated sole glue spraying operations. The present invention can replace the traditional sole glue spraying operation mode, realize efficient and accurate sole glue spraying space trajectory extraction, and can effectively overcome the influence of local deformation of the sole, assist the glue spraying robot to perform high-quality sole trajectory glue spraying operations, and improve the efficiency of the sole glue spraying operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A schematic diagram of the steps of the method in the embodiment of the present invention;
[0053] Figure 2 Schematic diagram of edge trajectory point posture analysis in an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of the system structure in an embodiment of the present invention;
[0055] Figure 4 Schematic diagram of the structure of the device in the embodiment of the present invention. DETAILED DESCRIPTION
[0056] It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. The specific structures and functional details disclosed herein are only used to describe the exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and it should not be understood that the present invention is limited to the embodiments set forth herein.
[0057] It should be understood that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments can be understood according to specific circumstances.
[0058] In the following description, certain details are provided to facilitate a complete understanding of the example embodiments. However, it will be appreciated by those of ordinary skill in the art that the example embodiments may be implemented without these certain details. For example, the system may be shown in a block diagram to avoid obscuring the example with unnecessary details. In other embodiments, well-known processes, structures, and techniques may not be shown in unnecessary detail to avoid obscuring the embodiments.
[0059] Embodiment 1:
[0060] This embodiment provides a method for generating a shoe sole glue spraying trajectory, which can be applied to a corresponding processing server, such as Figure 1 As shown, the method comprises the following steps:
[0061] S1. Obtain a 3D point cloud image of the sole.
[0062] In specific implementation, a line laser 3D camera can be used to scan the sole or a structured light 3D camera can be used to take a picture of the sole to obtain a 3D point cloud image of the sole. The 3D point cloud image can be represented as a 3D matrix of M*N*3, which means that the 3D point cloud image has M rows and N columns, and has 3 channels, representing the x-axis channel, y-axis channel and z-axis channel respectively. The coordinate values corresponding to each channel are the x-axis, y-axis and z-axis coordinates of the physical point respectively.
[0063] S2. Use the threshold segmentation method to remove the non-sole point cloud background in the three-dimensional point cloud image to obtain a three-dimensional point cloud image of the closed area of the sole.
[0064] In specific implementation, since the acquisition of the three-dimensional point cloud image of the sole is generally obtained by placing the sole on a belt and scanning or taking a photo, it is necessary to remove the non-sole point cloud background in the image. The threshold segmentation method can be used to remove the non-sole point cloud background in the three-dimensional point cloud image, and based on the fast correction method, the threshold segmentation effect is ensured. The specific process includes: first, create a matrix of size M*N, let the matrix be a correction matrix, let the value of the N / 2th row of the matrix be 0, and take this row as the basis, the value of the upper and lower rows is unit*K, where unit is the unit length and K is the row distance from the current row to the center row. After creating the correction matrix, add the correction matrix to the z-axis two-dimensional matrix extracted from the three-dimensional matrix of the three-dimensional point cloud image to obtain the corrected z-axis image matrix. Then, based on the corrected z-axis image matrix, determine whether the eigenvalues of each point on the z-axis image are within the set interval [T min , T max ]; if it is within the set interval, the corresponding point is determined to be a point in the closed area of the sole, otherwise the corresponding point is determined to be a background point that does not belong to the closed area of the sole and is removed, that is, the three-channel values of all physical points that do not belong to the sole are set to 0. Finally, the points belonging to the closed area of the sole are extracted to form a three-dimensional point cloud image of the closed area of the sole.
[0065] S3. Extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence.
[0066] In specific implementation, after obtaining the three-dimensional point cloud image of the closed area of the sole, the edge contour of the closed area of the sole can be extracted based on the three-dimensional point cloud image of the closed area of the sole, and then the edge contour is sampled with fixed-interval trajectory points to obtain an edge trajectory point sequence.
[0067] S4. Perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain the six-dimensional posture parameters of each trajectory point.
[0068] In specific implementation, after sampling the edge trajectory point sequence, each trajectory point in the edge trajectory point sequence can be subjected to posture analysis to obtain the six-dimensional posture parameters of each trajectory point, such as Figure 2 As shown, the specific process includes:
[0069] For the trajectory point P in the edge trajectory point sequence i =[x i ,y i ,z i ], take its previous point P i-1 and the next point P i+1 , the three points P i , P i-1 and P i+1Project onto the plane composed of the x-axis and y-axis of the 3D point cloud image;
[0070] P i-1 Point and P i+1 Connect the points and draw a line P i Click to P i-1 and P i+1 The perpendicular line of the connecting line;
[0071] Take the vertical line as the center line and P i Point is the starting boundary point, and a rectangular area with a long side of c and a short side of d is delineated, where c and d are set values;
[0072] Extract all points in the rectangular area to fit a plane using the least squares method;
[0073] The normal vector of the fitted plane is taken as the Z axis of the new attitude coordinate system, and P i-1 Point and P i+1 The straight line where the point connection line is located is used as the Y axis of the newly created attitude coordinate system. Based on the Z axis and the Y axis, the X axis of the newly created attitude coordinate system is determined according to the right-hand rule;
[0074] Determine the trajectory point P i The coordinate values R on the X-axis, Y-axis and Z-axis respectively xi , R yi and R zi , then the trajectory point P i The six-dimensional pose parameter is [x i ,y i ,z i , R xi , R yi , R zi ].
[0075] S5. Associate and combine each trajectory point in the edge trajectory point sequence with its corresponding six-dimensional posture parameter to form a sole edge spatial trajectory dataset.
[0076] In specific implementation, after the six-dimensional pose parameters of each edge trajectory point are obtained through analysis, each trajectory point in the edge trajectory point sequence is associated and combined with its corresponding six-dimensional pose parameters to form a sole edge spatial trajectory dataset.
[0077] S6. Based on the three-dimensional point cloud image of the closed area of the sole, the point cloud of the center area of the sole is extracted to perform surface fitting with a set fitting equation to obtain a smooth center surface of the sole.
[0078] In the specific implementation, in addition to the edge area of the sole, the center area of the sole also needs to be sprayed with glue according to different processes. However, there are many pit textures in the center area of the sole. If points are directly taken, there is a risk of obtaining the inside of the pit, which will cause subsequent spraying of glue to collide. Therefore, it is necessary to take out the point cloud of the center area of the sole for surface fitting with a set fitting equation to obtain a smooth center surface of the sole. The fitting equation is set as
[0079] z=ax 5 +bx 4 +cx 3 +dx 2 +ex+fy 2 +gy+hx 4 y+ix 3 y 2 +jx 3 y+kx 2 y 2 +lx 2 y+mxy 2 +nxy+o
[0080] Among them, z represents the z-axis value to be determined, x represents the x-axis value of the corresponding point, y represents the y-axis value of the corresponding point, a, b, c, d, e, f, g, h, i, j, k, l, m, n and o are all fixed parameters. By establishing the error formula
[0081]
[0082] The error formula is minimized and the fixed parameters a, b, c, d, e, f, g, h, i, j, k, l, m, n and o can be solved by using the least squares method and SVD decomposition.
[0083] S7. Extract edge trajectories based on the center surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed-interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence.
[0084] In specific implementation, an edge area corrosion operation is performed based on the center surface of the sole to extract the glue spraying trajectory in the center area of the sole. Similarly, the glue spraying trajectory in the center area of the sole is sampled at fixed intervals to obtain a center area trajectory point sequence.
[0085] S8. Import the x-axis value and y-axis value of each trajectory point in the center area trajectory point sequence into the set fitting equation for calculation to obtain a new z-axis value.
[0086] In specific implementation, after sampling to obtain a sequence of trajectory points in the central area, the x-axis value and the y-axis value of each trajectory point in the central area may be introduced into a set fitting equation for calculation to obtain a new z-axis value.
[0087] S9. The x-axis value, y-axis value and new z-axis value of each trajectory point are used as its fixed posture parameters, and each trajectory point in the center area trajectory point sequence is associated and combined with its fixed posture parameters to form a spatial trajectory data set for the center area of the sole.
[0088] In the specific implementation, after calculating the new z-axis value of each center area trajectory point, the x-axis value, y-axis value and new z-axis value of each center area trajectory point are used as its fixed posture parameters, and the posture of the center area of the sole only needs to use the fixed posture. Finally, each trajectory point in the center area trajectory point sequence is associated and combined with its fixed posture parameters to form the center area spatial trajectory dataset of the sole.
[0089] S10. Synchronously send the sole edge spatial trajectory dataset and the sole center area spatial trajectory dataset to the glue spraying robot.
[0090] In the specific implementation, after obtaining the spatial trajectory dataset of the sole edge and the spatial trajectory dataset of the sole center area, the spatial trajectory dataset of the sole edge and the spatial trajectory dataset of the sole center area are synchronously sent to the glue spraying robot, and the glue spraying robot can subsequently complete the efficient and accurate sole edge trajectory glue spraying operation according to the spatial trajectory dataset of the sole edge and the spatial trajectory dataset of the sole center area, and because the posture parameters are taken into consideration, the influence of local deformation of the sole can also be effectively overcome, thereby improving the quality of the sole glue spraying operation.
[0091] Embodiment 2:
[0092] This embodiment provides a shoe sole glue spraying trajectory generation system. Figure 3 As shown, it includes an acquisition unit, a denoising unit, a first sampling unit, a first parsing unit, a first combining unit and a sending unit, wherein:
[0093] An acquisition unit, used for acquiring a three-dimensional point cloud image of the sole;
[0094] A denoising unit is used to remove the non-sole point cloud background in the three-dimensional point cloud image by using a threshold segmentation method to obtain a three-dimensional point cloud image of a closed area of the sole;
[0095] A first sampling unit is used to extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence;
[0096] A first parsing unit is used to perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain a six-dimensional posture parameter of each trajectory point;
[0097] A first combining unit is used to associate and combine each trajectory point of the edge trajectory point sequence with its corresponding six-dimensional posture parameter to form a sole edge spatial trajectory data set;
[0098] The sending unit is used to send the sole edge spatial trajectory dataset to the glue spraying robot.
[0099] Furthermore, the system further comprises a fitting unit, a second sampling unit, a second parsing unit and a second combining unit, wherein:
[0100] A fitting unit, used to extract the point cloud of the center area of the sole based on the three-dimensional point cloud image of the closed area of the sole, perform surface fitting with a set fitting equation, and obtain a smooth center surface of the sole;
[0101] The second sampling unit is used to extract edge trajectories based on the center curved surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed-interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence;
[0102] The second analysis unit is used to import the x-axis value and y-axis value of each track point in the center area track point sequence into the set fitting equation for calculation to obtain a new z-axis value;
[0103] The second combining unit is used to use the x-axis value, y-axis value and new z-axis value of each trajectory point as its fixed posture parameter, associate and combine each trajectory point of the center area trajectory point sequence with its fixed posture parameter, and form a spatial trajectory data set of the center area of the sole;
[0104] The sending unit is also used to synchronously send the spatial trajectory data set of the center area of the sole to the glue spraying robot.
[0105] Embodiment 3:
[0106] This embodiment provides a shoe sole glue spraying trajectory generation device, such as Figure 4 As shown, at the hardware level, it includes:
[0107] A data interface is used to establish data connection between the processor and an external image acquisition device to obtain a three-dimensional point cloud image of the sole;
[0108] A memory for storing instructions;
[0109] The processor is used to read the instructions stored in the memory and execute the method for generating the shoe sole glue spraying trajectory in Example 1 according to the instructions.
[0110] Optionally, the correction device further comprises an internal bus. The processor, the memory and the data interface may be interconnected via the internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0111] The memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO) memory, etc. The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] Embodiment 4:
[0113] This embodiment provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the method for generating a shoe sole glue spraying trajectory in Embodiment 1. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems.
[0114] This embodiment also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the method for generating a shoe sole glue spraying trajectory in Embodiment 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable systems.
[0115] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating a shoe sole glue spraying trajectory, characterized in that: include: Obtain a three-dimensional point cloud image of the sole; The threshold segmentation method is used to remove the non-sole point cloud background in the 3D point cloud image to obtain the 3D point cloud image of the closed area of the sole; Extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence; Perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain the six-dimensional posture parameters of each trajectory point; Associating and combining each trajectory point of the edge trajectory point sequence with its corresponding six-dimensional pose parameter to form a sole edge spatial trajectory dataset; Send the sole edge spatial trajectory dataset to the glue spraying robot; Based on the three-dimensional point cloud image of the closed area of the sole, the point cloud of the center area of the sole is extracted to perform surface fitting with a set fitting equation to obtain a smooth center surface of the sole; Extract edge trajectories based on the center surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence; Import the x-axis value and y-axis value of each track point in the center area track point sequence into the set fitting equation for calculation to obtain a new z-axis value; The x-axis value, y-axis value and new z-axis value of each trajectory point are used as its fixed posture parameters, and each trajectory point in the center area trajectory point sequence is associated and combined with its fixed posture parameters to form a spatial trajectory data set of the center area of the sole; The spatial trajectory dataset of the center area of the sole is synchronously sent to the glue spraying robot; The fitting equation is set as z=ax 5 +bx 4 +cx 3 +dx 2 +ex+fy 2 +gy+hx 4 y+ix 3 y 2 +jx 3 y+kx 2 y 2 +lx 2 y+mxy 2 +nxy+o Among them, z represents the z-axis value to be determined, x represents the x-axis value of the corresponding point, y represents the y-axis value of the corresponding point, and a, b, c, d, e, f, g, h, i, j, k, l, m, n and o are all fixed parameters; The method of removing the non-sole point cloud background in the three-dimensional point cloud image by using the threshold segmentation method to obtain the three-dimensional point cloud image of the closed area of the sole includes: Obtain a correction matrix, and convert the three-dimensional point cloud image of the sole into a three-dimensional matrix including a two-dimensional matrix of an x-axis, a two-dimensional matrix of a y-axis, and a two-dimensional matrix of a z-axis; Extract the z-axis two-dimensional matrix of the three-dimensional matrix, add the correction matrix to the z-axis two-dimensional matrix, and obtain a corrected z-axis image matrix; Based on the corrected z-axis image matrix, each point of the closed area of the sole is extracted to form a three-dimensional point cloud image of the closed area of the sole; The method extracts points of the closed area of the sole based on the corrected z-axis image matrix to form a three-dimensional point cloud image of the closed area of the sole, including: based on the corrected z-axis image matrix, determining whether the characteristic value of each point on the z-axis image is within a set interval; if it is within the set interval, determining that the corresponding point belongs to a point in the closed area of the sole, otherwise determining that the corresponding point is a background point that does not belong to the closed area of the sole and removing it; finally extracting the points belonging to the closed area of the sole to form a three-dimensional point cloud image of the closed area of the sole; The posture analysis of each trajectory point in the edge trajectory point sequence is performed to obtain the six-dimensional posture parameters of each trajectory point, including: For the trajectory point P in the edge trajectory point sequence i =[x i ,y i ,z i ], take its previous point P i-1 and the next point P i+1 , the three points P i , P i-1 and P i+1 Project onto the plane composed of the x-axis and y-axis of the 3D point cloud image; P i-1 Point and P i+1 Connect the points and draw a line P i Click to P i-1 and P i+1 The perpendicular line of the connecting line; Take the vertical line as the center line and P i Point is the starting boundary point, and a rectangular area with a long side of c and a short side of d is delineated, where c and d are set values; Extract all points in the rectangular area to fit a plane using the least squares method; The normal vector of the fitted plane is taken as the Z axis of the new attitude coordinate system, and P i-1 Point and P i+1 The straight line where the point connection line is located is used as the Y axis of the newly created attitude coordinate system. Based on the Z axis and the Y axis, the X axis of the newly created attitude coordinate system is determined according to the right-hand rule; Determine the trajectory point P i The coordinate values R on the X-axis, Y-axis and Z-axis respectively xi , R yi and R zi , then the trajectory point P i The six-dimensional pose parameter is [x i ,y i ,z i , R xi , R yi , R zi ].
2. A shoe sole glue spraying trajectory generation system, characterized in that: It includes an acquisition unit, a denoising unit, a first sampling unit, a first parsing unit, a first combining unit and a sending unit, wherein: An acquisition unit, used for acquiring a three-dimensional point cloud image of the sole; A denoising unit is used to remove the non-sole point cloud background in the three-dimensional point cloud image by using a threshold segmentation method to obtain a three-dimensional point cloud image of a closed area of the sole; A first sampling unit is used to extract the edge contour of the closed area of the sole based on the three-dimensional point cloud image of the closed area of the sole, and perform fixed-interval trajectory point sampling on the edge contour to obtain an edge trajectory point sequence; A first parsing unit is used to perform posture analysis on each trajectory point in the edge trajectory point sequence to obtain a six-dimensional posture parameter of each trajectory point; A first combining unit is used to associate and combine each trajectory point of the edge trajectory point sequence with its corresponding six-dimensional posture parameter to form a sole edge spatial trajectory data set; A sending unit, used for sending the sole edge spatial trajectory data set to the glue spraying robot; The system further comprises a fitting unit, a second sampling unit, a second parsing unit and a second combining unit, wherein: A fitting unit, used to extract the point cloud of the center area of the sole based on the three-dimensional point cloud image of the closed area of the sole, perform surface fitting with a set fitting equation, and obtain a smooth center surface of the sole; The second sampling unit is used to extract edge trajectories based on the center curved surface of the sole to obtain the glue spraying trajectory of the center area of the sole, and perform fixed-interval trajectory point sampling on the glue spraying trajectory of the center area of the sole to obtain a center area trajectory point sequence; The second analysis unit is used to import the x-axis value and y-axis value of each track point in the center area track point sequence into the set fitting equation for calculation to obtain a new z-axis value; The second combining unit is used to use the x-axis value, y-axis value and new z-axis value of each trajectory point as its fixed posture parameter, associate and combine each trajectory point of the center area trajectory point sequence with its fixed posture parameter, and form a spatial trajectory data set of the center area of the sole; The sending unit is also used to synchronously send the spatial trajectory data set of the center area of the sole to the glue spraying robot.
3. A shoe sole glue spraying track generation device, characterized in that: include: A memory for storing instructions; A processor is used to read the instructions stored in the memory and execute the method according to claim 1 according to the instructions.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to execute the method according to claim 1 .
