CN115961429A - Pattern sewing template positioning method and sewing unit - Google Patents

Pattern sewing template positioning method and sewing unit Download PDF

Info

Publication number
CN115961429A
CN115961429A CN202310131003.8A CN202310131003A CN115961429A CN 115961429 A CN115961429 A CN 115961429A CN 202310131003 A CN202310131003 A CN 202310131003A CN 115961429 A CN115961429 A CN 115961429A
Authority
CN
China
Prior art keywords
pattern
sewing
plate
mark points
image acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310131003.8A
Other languages
Chinese (zh)
Inventor
戎鲁凯
王泓仁
蒋香锋
余昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Supreme Intelligent Technology Co Ltd
Original Assignee
Supreme Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Supreme Intelligent Technology Co Ltd filed Critical Supreme Intelligent Technology Co Ltd
Priority to CN202310131003.8A priority Critical patent/CN115961429A/en
Publication of CN115961429A publication Critical patent/CN115961429A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a pattern sewing template positioning method and a sewing unit, which comprises the following steps of 1, calibrating a reference plate of the sewing unit, detecting a reference mark point and a reference two-dimensional code on the reference plate through an image acquisition module, and storing and recording the position information of the reference mark point and the information of the reference two-dimensional code; step 2, performing pattern plate trial sewing on the sewing unit, detecting pattern mark points and pattern two-dimensional codes on the pattern plate through an image acquisition module, and storing and recording position information of the pattern mark points and pattern two-dimensional code information; and 3, when the pattern plate is formally sewn, the image acquisition module detects the pattern mark points and the pattern two-dimensional codes on the pattern plate, calculates the deviation value between the pattern mark point positions and the pattern mark point positions in the step 2, and adjusts the pattern mark point positions to the recording positions in the step 2.

Description

Pattern sewing template positioning method and sewing unit
Technical Field
The invention relates to the field of automatic sewing machinery, in particular to a pattern sewing template positioning method and a sewing unit.
Background
In the production process of clothes, shoes, hats, bags and the like, various marks or patterns are often needed to be sewn on the products in order to improve the aesthetic degree and the personalized marks of the products. The sewing of the mark or the pattern is complex, the operator is not easy to sew, the product is fixed on the template component, and then the template component is connected to the computer control pattern sewing machine to sew the pattern. In the prior art, an operator tries to sew to determine the pattern position and the starting point on a template, and then performs the sewing work of the template. The sewing work of other kinds of patterns can not be switched in the working process, once other kinds of templates are switched, the seam starting position of the other kinds of templates needs to be re-tried and positioned by an operator, template seam trying data can not be stored before switching, original template sewing needs to be performed after switching, a large amount of time is wasted, and the processing efficiency is reduced.
Disclosure of Invention
The invention provides a pattern sewing template positioning method and a sewing unit aiming at the technical problem that when different pattern templates are replaced, the starting point of the template needs to be repositioned, so that a plurality of sewing devices share one set of seam test data, and the seam test data can correspond to two-dimensional codes on corresponding templates, thereby realizing automatic identification and positioning of various pattern modules before sewing and improving the working efficiency.
The invention discloses a pattern sewing template positioning method, which comprises the following steps: step 1, calibrating a reference plate of a sewing unit, detecting a reference mark point and a reference two-dimensional code on the reference plate through an image acquisition module, and storing and recording position information of the reference mark point and information of the reference two-dimensional code;
step 2, performing pattern sample sewing on the sewing unit, detecting pattern marking points and pattern two-dimensional codes on the pattern sample plate through an image acquisition module, and storing and recording position information of the pattern marking points and pattern two-dimensional code information;
and 3, when the pattern plate is formally sewn, the image acquisition module detects the pattern mark points and the pattern two-dimensional codes on the pattern plate, calculates the deviation value between the pattern mark point positions and the pattern mark point positions in the step 2, and adjusts the pattern mark point positions to the recording positions in the step 2.
In order to optimize the technical scheme, the invention also comprises the following improved technical scheme.
When the reference plate is aligned in the step 1, the needle of the sewing unit is aligned with the needle hole of the reference plate.
And (3) when the pattern plate is subjected to seam testing in the step (2), aligning a needle of the sewing unit to a seam starting point on the pattern plate.
And 3, sending a control signal to the sewing unit through the control switch to adjust the pattern plate.
The sewing unit for executing the pattern sewing template positioning method comprises a sewing workbench, an XY feeding mechanism for driving the template to move along an XY coordinate system of the workbench, a sewing mechanism for executing sewing action, a sewing control module connected with a visual identification module, a reference plate for calibration and a pattern plate for installing sewing materials to be sewn.
The sewing control module comprises an image acquisition module, a calibration algorithm module for calibrating camera internal parameters and camera external parameters, a storage module, a detection algorithm module for detecting reference mark points and pattern mark points and calculating deviation values, and a communication module for connecting the modules.
The image acquisition module comprises a light source and a camera for shooting and acquiring the image of the working table, wherein the camera and the light source are arranged on the sewing machine frame above the working table.
The reference mark point on the reference plate is positioned on one side of the reference two-dimensional code; the pattern mark point on the pattern plate is positioned on one side of the pattern two-dimensional code.
Compared with the prior art, the pattern sewing template positioning method and the sewing unit provided by the invention have the advantages that the same reference plate is used for calibration before a plurality of sewing units leave a factory, the deviation between the pattern mark point position and the reference mark point is recorded during seam trial, and the data corresponds to the two-dimensional code of each pattern plate, so that the universality and the convenient storage of the seam trial data are realized, and the function that the plurality of sewing units only need to perform seam trial once is further realized. Before various pattern plates work, the offset can be automatically calculated and adjusted and the automatic adjustment of the positions of the pattern plates can be realized only by reading the actual positions of the pattern two-dimensional codes and the pattern mark points of the visual identification patterns, so that the sewing switching work of various patterns is more convenient, and the working efficiency is greatly improved.
Drawings
FIG. 1 is a schematic view of a modular structure of the sewing unit of the present invention.
Fig. 2 is a sewing process flow chart.
FIG. 3 is a schematic view of the application of the sewing unit, the reference plate and the pattern plate.
Detailed description of the preferred embodiments
Embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Fig. 1 to 3 are schematic structural views of the present invention.
Wherein the reference numerals are: the pattern printing machine comprises a reference plate 1, reference mark points 2, reference two-dimensional codes 3, a pattern plate 4, pattern mark points 5, pattern two-dimensional codes 6 and a camera 7.
The sewing unit comprises a sewing workbench, an XY feeding mechanism for driving a template to move along an XY coordinate system of the workbench, a sewing mechanism for executing sewing action, a sewing control module connected with a visual identification module, a reference plate 1 for calibration and a pattern plate 4 for installing sewing materials to be sewn. The sewing control module comprises an image acquisition module, a calibration algorithm module, a storage module, a detection algorithm module and a communication module.
The image acquisition module comprises a camera 7 and a light source, the camera 7 and the light source are arranged on the sewing machine frame above the workbench, and images are shot and acquired through the camera 7.
The calibration algorithm module is used for calibrating the camera internal parameters and calibrating the camera external parameters; the calibration of camera parameters is to manually collect 9-14 pictures at different positions of the camera view, and in order to prevent the camera 7 from reflecting light during collection, the light source can be moved to ensure the consistency of the light source. And calculating focal lengths fx and fy and optical centers Cx and Cy through a camera matrix to obtain 5 parameters D = k1, k2, P1, P2 and k3 of the distortion mathematical model, wherein the corresponding configuration file parameters are camera Param 0-camera Param8. The camera entries are saved in the system config.
The calibration method of the camera external reference adopts a nine-point calibration method, wherein the mechanical positions of the nine points are 3 rows and 3 columns at equal intervals, the mechanical positions are stored in config.ini files, and the 9 points are walked on the reference plate 1 by the tail end of a machine needle so as to obtain the coordinates of the 9 points in the XY feeding mechanism coordinate system; and simultaneously, automatically identifying 9 points by using a camera 7 to obtain pixel coordinates, thus obtaining 9 groups of corresponding coordinates, and generating external parameter 2-3 matrix parameters of the camera, wherein the corresponding configuration file parameters are camera Pos 0-camera Pos5. The camera external parameters are saved in a system config.
The storage module comprises various existing storage media, and in the embodiment, camera internal parameters, camera external parameters, camera 7 setting parameters, information of the reference mark point 2 and the reference two-dimensional code 3 of the reference plate 1, information of the pattern mark point 5 and the pattern two-dimensional code 6 of the pattern plate 4, image processing and other system initialization parameters are recorded through a config.ini file and a production.ini file.
The detection algorithm module is used for calculating the deviation value of the pattern mark points 5 and the reference mark points 2 during trial sewing calibration or formal work. The datum mark point 2, the datum two-dimensional code 3 and a pinhole are arranged on the datum plate 1, the datum mark point 2 and the datum two-dimensional code 3 can be located at one corner of the datum plate 1, and the pattern mark point 5 and the pattern two-dimensional code 6 are also located at one corner of the pattern plate 4. The position of the pattern mark point 5 is positioned by the deviation value between the pattern mark point 5 and the reference mark point 2.
The detection method of the reference mark point 2 and the pattern mark point 5 is the same, and the specific implementation steps are as follows: first, 3 rectangles of the two-dimensional code are found by the camera 7, thereby determining the position of the two-dimensional code. After the position of the two-dimension code is found, the contrast is continuously adjusted through gray linear mapping until the two-dimension code can be identified through zbar, and the original point information in the configuration file is searched. If zbar fails to recognize the reference two-dimensional code 3, it is necessary to check whether the reference marker point 2 and the reference two-dimensional code 3 are contaminated. And finding out an approximate region detected by the origin and an image binarization threshold according to the two-dimensional code. And screening candidate mark circles through the area and the roundness, finding the center of the origin and the radius through the minimum circumscribed rectangle, and screening the center of the origin through the radius. Through verification, the origin center found through the minimum circumscribed rectangle accords with the sub-pixel precision, and the error range is within plus or minus 5 silks. And then, using the external rectangle as initial positioning, extracting the outline by using the gradient, finally obtaining sub-pixels, connecting the outline, and fitting the ellipse to find the center of the origin.
The calculation method of the adjustment position of the pattern mark point 5 during formal sewing comprises the following steps: searching coordinate information of the pattern mark point 5 in the sewing test in a storage module of the sewing equipment, wherein the coordinate information can be relative coordinates of the pattern mark point 5 relative to the reference mark point 2; detecting coordinate information of the pattern mark point 5 relative to the reference mark point 2 during formal sewing, calculating a deviation value between the position of the pattern mark point 5 before formal sewing and the position of the pattern mark point 5 during trial sewing, and automatically adjusting the pattern plate 4 according to the position deviation value to realize automatic alignment of the starting point with the machine needle.
The communication module is used for transmitting images collected by the camera 7, the sewing equipment and the image collection module are in serial port communication, and the image collection module receives the images collected by the camera through usb communication.
The specific implementation steps of the pattern sewing template positioning method of the invention are as follows: step 1, calibrating a reference plate 1 of a sewing unit, detecting a reference mark point 2 and a reference two-dimensional code 3 on the reference plate 1 through an image acquisition module, and storing and recording position information of the reference mark point 2 and information of the reference two-dimensional code 3.
When the reference plate 1 is installed on the workbench, the reference plate 1 needs to be adjusted to a position where the sewing machine needle is just inserted into the needle hole on the reference plate 1, and then the origin of the reference plate 1, which is called a reference mark point 2, is determined by a detection algorithm module. The information of the reference mark point 2 is stored in a system config.ini file and used as default data, and the sewing equipment can automatically return to the reference mark point 2 after shutdown and restart.
The step is finished before leaving factory, the calibration setting of the reference mark point 2 needs password protection, and the reference mark point can be used only by inputting a customer password or an initial password. When the sewing equipment leaves a factory for packaging, drawings for determining the positions of the reference mark points 2 and the reference two-dimensional codes 3 are attached.
And 2, performing trial sewing on the sewing unit by using the pattern plate 4, detecting the pattern marking points 5 and the pattern two-dimensional codes 6 on the pattern plate 4 by using the image acquisition module, and storing and recording the position information of the pattern marking points 5 and the information of the pattern two-dimensional codes 6.
After the pattern plate 4 is installed on the XY feeding mechanism, an operator performs seam testing on the pattern plate 4 on sewing equipment, a sewing point is aligned with a machine needle during seam testing, after the seam testing is normal, position information of the pattern mark points 5 and information of the pattern two-dimensional codes 6 are obtained through a detection algorithm module, deviation values of the pattern mark points 5 and the reference mark points 2 are calculated, and the position information of the pattern mark points 5, the information of the pattern two-dimensional codes 6 and the deviation value information are stored in a system production. Ini file.
The pattern mark points 5 information, the pattern two-dimensional codes 6 information and the deviation value are copied to other sewing equipment through the USB flash disk, and the reference plate 1 is shared by a plurality of sewing equipment, so that the information can be directly used, the step that each piece of equipment needs to be sewn in a trial mode is avoided, and the working efficiency is improved.
And 3, when the pattern plate 4 is sewn formally, the image acquisition module detects the pattern mark points 5 and the pattern two-dimensional codes 6 on the pattern plate 4, calculates deviation values of the positions of the pattern mark points 5 and the positions of the pattern mark points 5 in the step 2, and adjusts the positions of the pattern mark points 5 to the recording positions in the step 2.
After the pattern plate 4 is replaced, a pedal of the sewing equipment is stepped, and an instruction is sent to the sewing control module. An image acquisition module in the sewing control module calls the camera 7 to shoot the acquired template image, and the image acquired by the camera 7 is received through the communication module. And then, the detection algorithm module automatically identifies the pattern two-dimensional code 6 in the image, the position information of the pattern mark point 5 during the trial sewing is searched in the storage module according to the pattern two-dimensional code 6 so as to calculate the offset adjustment quantity of the pattern mark point 5 during the work, and the sewing control module drives the pattern plate 4 to move through an XY feeding mechanism according to the offset adjustment quantity of the pattern mark point 5 so as to automatically calibrate the working position of the pattern plate 4, so that the sewing unit can be directly sewn next.
And if the information of the pattern two-dimensional code 6 and the pattern mark point 5 in the process of trial sewing is not recorded in the storage module of a certain sewing unit, and the step 3 cannot be executed, alarming and prompting are carried out. The trial sewing calibration can be carried out again, or the information of the pattern mark points 5, the information of the pattern two-dimensional codes 6 and the information of the deviation value of the trial sewing can be directly input.
By using the pattern sewing template positioning method, a plurality of sewing devices in a factory can save a large amount of positioning work before sewing the pattern plates 4 when using a plurality of pattern plates 4. Each pattern plate 4 only needs to be sewn once, data is input into each sewing device, and each pattern plate 4 can automatically realize positioning before sewing during working.
While the preferred embodiments of the present invention have been illustrated, various changes and modifications can be made by one skilled in the art without departing from the scope of the present invention.

Claims (8)

1. A positioning method of a pattern sewing template is characterized by comprising the following steps: the method comprises the following steps:
step 1, calibrating a reference plate (1) of a sewing unit, detecting a reference mark point (2) and a reference two-dimensional code (3) on the reference plate (1) through an image acquisition module, and storing and recording position information of the reference mark point (2) and information of the reference two-dimensional code (3);
step 2, performing trial sewing on the sewing unit by using the pattern plate (4), detecting the pattern mark points (5) and the pattern two-dimensional codes (6) on the pattern plate (4) by using the image acquisition module, and storing and recording the position information of the pattern mark points (5) and the information of the pattern two-dimensional codes (6);
and 3, when the pattern plate (4) is sewn formally, detecting the pattern mark points (5) and the pattern two-dimensional codes (6) on the pattern plate (4) by the image acquisition module, calculating deviation values of the positions of the pattern mark points (5) and the positions of the pattern mark points (5) in the step 2, and adjusting the positions of the pattern mark points (5) to the recording positions in the step 2.
2. The pattern sewing template positioning method according to claim 1, characterized in that: and when the reference plate (1) is calibrated in the step 1, aligning a needle of the sewing unit with a needle hole on the reference plate (1).
3. The pattern sewing template positioning method according to claim 1, characterized in that: and when the pattern plate (4) is sewn in the step 2, the needle of the sewing unit is aligned to a sewing starting point on the pattern plate (4).
4. The pattern sewing template positioning method according to claim 1, characterized in that: and in the step 3, a control signal is sent to the sewing unit through the control switch, and the adjustment action of the pattern plate (4) is executed.
5. A sewing unit for performing the pattern sewing template positioning method according to claim 1, characterized in that: the sewing machine comprises a sewing workbench, an XY feeding mechanism for driving a template to move along an XY coordinate system of the workbench, a sewing mechanism for executing sewing action, a sewing control module connected with a visual identification module, a reference plate (1) for calibration and a pattern plate (4) for installing sewing materials to be sewn.
6. The sewing unit of claim 5, wherein: the sewing control module comprises an image acquisition module, a calibration algorithm module for calibrating camera internal parameters and camera external parameters, a storage module, a detection algorithm module for detecting reference mark points (2) and pattern mark points (5) and calculating deviation values, and a communication module for connecting the modules.
7. The sewing unit of claim 6, wherein: the image acquisition module comprises a light source and a camera (7) for shooting and acquiring the image of the working table, wherein the camera (7) and the light source are installed on the sewing machine frame above the working table.
8. The sewing unit of claim 6, wherein: the datum mark point (2) on the datum plate (1) is positioned on one side of the datum two-dimensional code (3); the pattern mark points (5) on the pattern plate (4) are positioned on one side of the pattern two-dimensional code (6).
CN202310131003.8A 2023-02-17 2023-02-17 Pattern sewing template positioning method and sewing unit Pending CN115961429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310131003.8A CN115961429A (en) 2023-02-17 2023-02-17 Pattern sewing template positioning method and sewing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310131003.8A CN115961429A (en) 2023-02-17 2023-02-17 Pattern sewing template positioning method and sewing unit

Publications (1)

Publication Number Publication Date
CN115961429A true CN115961429A (en) 2023-04-14

Family

ID=87361619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310131003.8A Pending CN115961429A (en) 2023-02-17 2023-02-17 Pattern sewing template positioning method and sewing unit

Country Status (1)

Country Link
CN (1) CN115961429A (en)

Similar Documents

Publication Publication Date Title
US5333111A (en) Garment cutting system having computer assisted pattern alignment
CN105701492B (en) A kind of machine vision recognition system and its implementation
CN114227791B (en) Cutting machine and machine-readable carrier
CN107705304B (en) Positioning method and device
US11441253B2 (en) Method for controlling the position of a seam profile relative to structures of a sewing material
CN103806225A (en) Sewing device
CN113538583A (en) Method for accurately positioning position of workpiece on machine tool and vision system
CN112183134A (en) Splicing and correcting method for express delivery bar codes
CN110640303B (en) High-precision vision positioning system and positioning calibration method thereof
CN110390278B (en) Sewing material boundary identification method and device, electronic equipment and storage medium
CN115961429A (en) Pattern sewing template positioning method and sewing unit
CN112941733A (en) Image processing device, sewing machine and image processing method
CN102615665B (en) Automatic positioning system and method
KR20130128923A (en) Method and apparatus for tracking mounting error of chip mounter
US20150287177A1 (en) Image measuring device
CN114677429B (en) Positioning method and device of manipulator, computer equipment and storage medium
TWI504859B (en) Method for photographing and piecing together the images of an object
CN116329738A (en) Positioning method and device of circuit board target, electronic equipment and storage medium
CN103383730A (en) Automatic BNC terminal detecting machine and work method thereof
CN109668520B (en) System and method for extracting material profile through machine vision
CN113379692B (en) Method and device for calibrating OM and SEM coordinate relation, equipment and storage medium
JP2004268220A (en) Electric discharge machine
CN114392940A (en) Stitch detection method and device for special-shaped component
US11286597B2 (en) Sewing machine and sewing method
CN104677906A (en) Image information detecting method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination