CN113652803B - Pattern correction method, pattern correction device, electronic equipment and storage medium - Google Patents

Pattern correction method, pattern correction device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113652803B
CN113652803B CN202010395435.6A CN202010395435A CN113652803B CN 113652803 B CN113652803 B CN 113652803B CN 202010395435 A CN202010395435 A CN 202010395435A CN 113652803 B CN113652803 B CN 113652803B
Authority
CN
China
Prior art keywords
point
target
needle point
needle
section
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.)
Active
Application number
CN202010395435.6A
Other languages
Chinese (zh)
Other versions
CN113652803A (en
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.)
Beijing Dahao Industrial Sewing Intelligent Control Technology Co ltd
Zhejiang Dahao Technology Co ltd
Beijing Dahao Technology Co Ltd
Original Assignee
Beijing Dahao Industrial Sewing Intelligent Control Technology Co ltd
Zhejiang Dahao Technology Co ltd
Beijing Dahao 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 Beijing Dahao Industrial Sewing Intelligent Control Technology Co ltd, Zhejiang Dahao Technology Co ltd, Beijing Dahao Technology Co Ltd filed Critical Beijing Dahao Industrial Sewing Intelligent Control Technology Co ltd
Priority to CN202010395435.6A priority Critical patent/CN113652803B/en
Publication of CN113652803A publication Critical patent/CN113652803A/en
Application granted granted Critical
Publication of CN113652803B publication Critical patent/CN113652803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/04Sewing machines having electronic memory or microprocessor control unit characterised by memory aspects
    • D05B19/10Arrangements for selecting combinations of stitch or pattern data from memory ; Handling data in order to control stitch format, e.g. size, direction, mirror image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Textile Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

Pattern correction method, pattern correction device, electronic equipment and storage medium, and target needle points in patterns are screened according to preset indexes; determining target needle point sections in the pattern and a leading section and a trailing section of each target needle point section according to the target needle points, and combining the leading section, the target needle point sections and the trailing section into a section to be corrected; and determining the corrected coordinates of the needle points in the section to be corrected according to the probability distribution of the coordinate difference between the coordinates of the needle points in the section to be corrected and the coordinates after correction. The pattern correction method has higher accuracy and high efficiency, and can meet the requirements of actual sewing production.

Description

Pattern correction method, pattern correction device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of sewing, in particular to a pattern correction method, a pattern correction device, electronic equipment and a storage medium.
Background
Sewing refers generally to a production process capable of forming stitches on various materials (hereinafter referred to as fabric) such as cloth, and both sewing machines, embroidery machines and the like belong to sewing machines. Modern sewing machines are controlled by electronic equipment, and are produced according to patterns, so that automation of the sewing process can be realized. The patterns are data files containing sewing production related data, and can be identified by sewing machines by plate making software or other software. Usually, the stitch is a basic unit of a pattern, and the stitch includes coordinate values for positioning the position of the stitch on the fabric, and also includes data such as a sewing process corresponding to the stitch. The needle points can be numbered one by one from 0, and the number is increased gradually, for example, 1 is increased each time, so that each needle point in the pattern has an integer number corresponding to the needle point, and the needle point number can be used as a unique identifier of the needle point.
In recent years, new sewing technologies or sewing methods are continuously emerging, and the new technologies or the new methods possibly have special requirements on patterns, but pattern making software such as plate making software at present is not adjusted for a plurality of new technologies or new methods, so that various problems can occur when the new technologies or new methods adopt patterns made by the existing software for sewing. For example, the head is a key component of a sewing machine for sewing, and the head does not move in the horizontal direction during sewing in a conventional sewing machine. In the newly-emerging rotating machine head technology, the machine head rotates 360 degrees in the horizontal direction in the sewing process, and the effect of the sewn stitch is far better than that of the traditional sewing machine because the machine head always rotates along the sewing direction. However, when the rotary machine head sewing machine uses the patterns manufactured by the existing software to sew, the existing software does not consider the requirements of smoothness and the like of the patterns, so that the corresponding rotation angles of some needle points are overlarge, the machine head cannot rotate corresponding angles within the time meeting the requirements of sewing production, and in addition, due to the defects of overlarge rotation angle difference of adjacent needle points and the like, the machine head sewing machine is greatly vibrated when in operation, and the service life of the sewing machine is seriously influenced.
In order to adapt to the special requirements of new technology or new method for patterns, the patterns can only be corrected manually at present. The manual pattern correction is very dependent on the experience of operators, and the problems of repeated modification and the like exist, so that the efficiency is very low, and the actual sewing production requirement cannot be met at all. How to quickly, efficiently and accurately correct patterns is rarely reported.
Disclosure of Invention
The pattern correction method, the pattern correction device, the electronic equipment and the storage medium provided by the application are used for correcting the pattern aiming at the problems of uneven needle point data and the like in the pattern generated by the existing plate making software or other software, and the corrected pattern is suitable for a sewing technology or a sewing method with special requirements on the pattern. The accuracy and the efficiency of pattern correction are high, and the requirements of actual sewing production can be met.
In a first aspect, a pattern correction method includes: screening target needle points in the patterns according to preset indexes; determining target needle point sections in the pattern and a leading section and a trailing section of each target needle point section according to the target needle points, and combining the leading section, the target needle point sections and the trailing section into a section to be corrected; and determining the corrected coordinates of the needle points in the section to be corrected according to the probability distribution of the coordinate difference between the coordinates of the needle points in the section to be corrected and the coordinates after correction.
Further, the preset index includes a discrete second derivative, and the definition of the discrete second derivative includesh is the distance between two adjacent needle points.
Further, the starting point and the ending point of the target needle point section are the target needle points, and the distance between any two adjacent target needle points in the target needle point section does not exceed the set distance.
Further, the determining the target needle point segment in the pattern according to the target needle point includes:
traversing the needle points in the pattern according to the numbers, and finding out the target needle point with the minimum number;
searching whether other target needle points exist in all needle points with the number being smaller than that of the reference needle point and the distance between the target needle point and the reference needle point not exceeding a set threshold value by taking the target needle point with the smallest number as the reference needle point, and continuously searching by taking the target needle point with the largest number as a new reference needle point if the other target needle points exist until the other target needle points cannot be found;
and taking the target needle point with the smallest number in all the found target needle points as the starting point of the target needle point section, and taking the target needle point with the largest number as the ending point of the target needle point section.
Further, the needle point with the largest number in the preceding segment is adjacent to the start point of the target needle point segment, and the needle point with the smallest number in the following segment is adjacent to the end point of the target needle point segment.
Further, the merging the preamble section, the target needle point section and the subsequent section into the section to be corrected includes:
if the number of the needle points with the number smaller than the starting point number of the target needle point section is smaller than the number of the needle points of the preset preamble section, all the needle points with the number smaller than the starting point of the target needle point section are incorporated into the preamble section; and/or the number of the groups of groups,
if the number of the needle points with the number larger than the end point number of the target needle point section is smaller than the number of the needle points of the preset subsequent section, all the needle points with the number larger than the end point number of the target needle point section are brought into the subsequent section; and/or the number of the groups of groups,
and if the two sections to be corrected are overlapped or adjacent, merging the two sections to be corrected into one section to be corrected.
Further, the coordinate difference between the coordinates before correction and the coordinates after correction of the needle point is subjected to N (0, sigma) 2 )。
In a second aspect, the present application provides an apparatus for correcting a pattern, comprising: a point screening device, a segment confirmation device and a point correction device; the point screening device is used for screening target needle points in the patterns according to preset indexes; the segment confirmation device is used for determining target needle point segments in the pattern and a leading segment and a trailing segment of each target needle point segment according to the target needle points, and combining the leading segment, the target needle point segments and the trailing segment into a segment to be corrected; the point correction device is used for determining corrected coordinates of the needle points in the section to be corrected according to probability distribution of coordinate difference values of the coordinates before correction and the coordinates after correction of the needle points in the section to be corrected.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory is used for storing computer instructions; the processor is configured to execute computer instructions stored in the memory to cause the electronic device to perform the pattern correction method according to any one of the above first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed, implements the pattern correction method according to any one of the first aspects.
The pattern correction method, the pattern correction device, the electronic equipment and the storage medium provided by the application can correct the problems of uneven needle point data and the like in patterns generated by the existing plate making software or other software, and the corrected patterns are suitable for sewing technologies or sewing methods with special requirements on patterns, such as a rotating machine head technology and the like. The pattern correction method has higher accuracy, can automatically operate by writing special software and the like, has high pattern correction efficiency, and can meet the requirements of actual sewing production.
Drawings
For a clearer description of the application or of the technical solutions of the prior art, the figures that are necessary to describe the application or of the prior art are briefly introduced. Other figures can be obtained from these figures without inventive effort for the person skilled in the art.
FIG. 1 is a flowchart of a pattern correction method according to a first embodiment of the present application.
FIG. 2 is a schematic illustration of one pattern in accordance with a first embodiment of the present application. The pattern includes 25 needles, the number of which is 0-24. The absolute values of the discrete second derivatives for each needle are given, and the absolute values of the discrete second derivatives are rounded to integers for simplicity of illustration. The numbers "1" and "2" after the words "preamble", "target needle point", "succeeding" and "to be corrected" in the figures represent sequence numbers.
FIG. 3 is a schematic diagram of a pattern correction device according to a second embodiment of the present application.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings. It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, shall fall within the scope of the application as claimed.
The terms "first," "second," "third," and the like in the claims, in the description and in the drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order, and may be interchanged without affecting the accuracy of the semantics. Furthermore, the terms "comprises," "comprising," "includes," "including," "having," and any similar variation thereof, are intended to be non-exclusive, and thus, include a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical scheme of the embodiment is to correct patterns based on patterns generated by the existing plate making software or other software. For convenience of description, the needle points in the pattern are denoted by the numbers of the needle points. The technical scheme of the embodiment is mainly used for correcting the problem that needle points in patterns generated by the existing plate making software or other software are not smooth. Uneven means that the difference between some index of several points adjacent or closer to each other is too large. If a coordinate system is established by taking the needle point number as the abscissa and the index of each needle point as the ordinate, and corresponding points of each needle point in the coordinate system are connected to form a graph, the non-smooth appearance is that the graph has obvious and relatively sharp protrusions or depressions, and correspondingly, the smooth appearance is that the graph does not have relatively sharp protrusions or depressions.
Embodiment one:
FIG. 1 is a flowchart showing a pattern correction method according to the present embodiment, which includes the following steps.
S101, screening target needle points in the patterns according to preset indexes.
The needle point data comprises a coordinate value for locating the needle point on the fabric, wherein the coordinate value is generally X, Y coordinate values in a set two-dimensional coordinate system, tiny undulation on the fabric is ignored in sewing production, the fabric is regarded as a plane, and X, Y coordinate values can determine the position of the needle point on the fabric. The Y value may be considered as a function of the X value, which may then be used to describe certain properties of the needle point.
As an initial step, first, the needle points in the pattern are selected, and the selected needle points are generally referred to as target needle points based on a predetermined index. If the Y value for the point is considered as a function of the X value, the setting index may be some functional expression. The problem of uneven point data is corrected, and the set index can be selected as a discrete second derivative. The discrete second derivative is defined on the basis of the common continuous function second derivative, the needle points in the pattern are discrete rather than continuous data, and the direct use of the continuous function second derivative can have the problems of incapacity of calculation and the like, so that the discrete second derivative needs to be adopted. The discrete second derivative can have a number of different definitions, one of which is given below, given y=f (x)WhileH in the above formula represents the distance between two adjacent needle points, and the specific value of h can be obtained by calculating according to the coordinate values of the two adjacent needle points. The distance between two adjacent dots is generally the same in the pattern produced by the prior art plate making software or other software. If the distances between two adjacent points are different, the formula may be adaptively modified according to the above-described derivation process. Other definitions of the discrete second derivative, e.g. the first derivative +.>Replaced by->Different decisions based on discrete second derivativesBy definition, the discrete second derivative of a needle point can be calculated according to the coordinate values of the needle point and the two needle points before or after the needle point.
The absolute value of the second derivative at a point on the graph is related to the curvature of that point, and if the absolute value of the discrete second derivative at a point is too large, then the point is relatively unsmooth. The needle points in the pattern can be traversed according to the numbers, the discrete second derivative of each needle point is calculated, and if the absolute value of the discrete second derivative of a certain needle point is larger than a preset threshold value, the needle point is marked as a target needle point.
S102, determining target needle point sections in the pattern and the leading section and the trailing section of each target needle point section according to the target needle points, and combining the leading section, the target needle point sections and the trailing section into a section to be corrected.
In step S101, the target needle points in the pattern have been selected, and it is obvious that the target needle points should be corrected, but the correction cannot generally be performed only on the target needle points themselves, and other needle points adjacent to or close to the target needle points need to be corrected together, so that the concept of the segment to be corrected is introduced. The segment to be corrected includes both the target needle point described in step S101 and a needle point adjacent to or closer to the target needle point. The segment to be corrected can be regarded as a needle point set consisting of a preamble segment, a target needle point segment and a following segment, the set takes the needle point with the smallest number as a starting point and takes the needle point with the largest number as an ending point, wherein the target needle point segment is defined as the starting point and the ending point of the target needle point segment are both target needle points described in the step S101, and the distance between any two adjacent target needle points in the target needle point segment does not exceed the set distance. The spacing between the spots may be represented by the difference in the two spot numbers, e.g. the spots numbered 7 and 9 have a spacing of 2. Adjacent target points refer to all points between two target points that are not target points. There may be multiple target needle segments in the same pattern, and for some complex patterns, the desired set spacing of target needle segments at different locations in the pattern may also be different. In practice, for convenience of operation, a reference pitch may be set for a pattern, and the set pitch of each target needle segment is a positive integer multiple of the reference pitch. Based on the definition of the target needle point segment, the target needle point segment may include only one needle point, i.e., the start point and the end point of the target needle point segment are the same needle point.
According to the target needle point, a target needle point section in the pattern is determined, and a relatively common method is adopted, wherein the principle steps are as follows: traversing the needle points in the pattern according to the numbers, and finding out the target needle point with the minimum number; searching whether other target needle points exist in all needle points with the number being smaller than that of the reference needle point and the distance between the target needle point and the reference needle point not exceeding a set threshold value by taking the target needle point with the smallest number as the reference needle point, and continuously searching by taking the target needle point with the largest number as a new reference needle point if the other target needle points exist until the other target needle points cannot be found; and taking the target needle point with the smallest number in all the found target needle points as the starting point of the target needle point section, and taking the target needle point with the largest number as the ending point of the target needle point section.
Obviously, all the target needle points in the pattern can be searched by traversing all the needle points in the pattern by the method. For example, in the pattern shown in fig. 2, if the preset threshold of the absolute value of the discrete second derivative is set to 45, then the points 6, 8, 9, 18, 19 in the pattern are target points, and if the pitch threshold of all the target point segments in the pattern is set to 2, then the method is utilized to traverse from the point 1, first the point 6 is found, then the point 8 is found in the range of the points 7-8, the point 9 is found in the range of the points 9-10, the target point is not found in the range of the points 10-11, and then the start point of the target point segment 1 is the point 6 and the end point is the point 9. Then, from the needle point 12, the needle point 18 is found first, then the needle point 19 is found in the range of the needle points 19-20, and the target needle point is not found in the range of the needle points 20-21, then the starting point of the target needle point segment 2 is the needle point 18, and the end point is the needle point 19. Finally, the traversal starts from the needle point 22, the target needle point is not found any more, the whole pattern searching is finished, and 2 target needle point segments are found.
The leading segment and the trailing segment are the collection of needle points that are closely spaced from the target needle point segment. The needle point with the largest number in the front section is adjacent to the starting point of the target needle point section, and the needle point with the smallest number in the rear section is adjacent to the ending point of the target needle point section. If the numbers of the needle points are successively increased by 1, the numbers of adjacent needle points differ by 1. In order to ensure the accuracy of pattern correction, it is generally necessary to combine the preceding segment and the following segment into the segment to be corrected, and then to perform correction together. Obviously, the leading segment and the trailing segment correspond to a particular target needle point segment. The number of spots included in the preceding and following sections, which may or may not be the same, is usually determined according to the actual situation of the pattern or target spot section. For some simpler designs, the number of stitches of the preceding and following segments may be set to be the same as or slightly less than the number of stitches of their corresponding target stitch segments. For example, in the pattern shown in fig. 2, the preceding and following segments of the target needle point segment 1 each have 4 needle points, which are the same number as the needle points of the target needle point segment 1; the front section and the rear section of the target needle point section 2 are respectively provided with 2 needle points, and the number of the needle points is the same as that of the target needle point section 2.
The pre-segment, the target needle point segment and the post-segment are combined into a segment to be corrected, and three needle point sets are combined into one needle point set, and the number of the needle points and other corresponding data of the needle points are kept unchanged. In some special cases, the setting of the leading segment and the trailing segment and merging into the segment to be corrected need to follow corresponding special rules. The main purpose of the special rules is to make the segment to be corrected contain as many needle points as possible, so as to ensure the subsequent correction effect.
If the number of the starting point of the target needle point section is smaller, the situation that the number of the needle points, which are smaller than the number of the starting point of the target needle point section, in the pattern is smaller than the number of the needle points of the preset preamble section may occur, and at the moment, all the needle points, which are smaller than the number of the starting point of the target needle point section, in the pattern are included in the preamble section. For example, the starting point of a target needle point segment is needle point 3, the target needle point segment comprises 4 needle points, the preset fore segment and the following segment respectively comprise 4 needle points, but the number is smaller than that of the needle point 3, namely, only three needle points of needle point 0, needle point 1 and needle point 2, and the needle point 0, the needle point 1 and the needle point 2 are all incorporated into the fore segment.
If the number of the destination needle point segment end point is larger, the number of the needle points with the number larger than the destination needle point segment end point number in the pattern may be smaller than the preset number of the needle points of the subsequent segment, and at the moment, all the needle points with the number larger than the destination needle point segment end point in the pattern are included in the subsequent segment. For example, the end point of a target needle point segment is a needle point 20, the target needle point segment comprises 4 needle points, the preset front segment and the subsequent segment respectively comprise 4 needle points, but the pattern comprises only 23 needle points, the number of the last needle point is 22, and the needle point 21 and the needle point 22 are both incorporated into the subsequent segment.
And if the two sections to be modified are overlapped or adjacent, combining the two sections to be modified into one section to be modified. Coincidence means that at least one needle point exists which belongs to both the first section to be corrected and the second section to be corrected. Adjacent means that the start point of the first segment to be corrected is adjacent to the end point of the second segment to be corrected, or that the end point of the first segment to be corrected is adjacent to the start point of the second segment to be corrected.
S103, determining corrected coordinates of the needle points in the section to be corrected according to probability distribution of coordinate difference values of the coordinates before correction and the coordinates after correction of the needle points in the section to be corrected.
The pattern is corrected by correcting substantially all the needle points in the segment to be corrected obtained in step S102. The modification of the needle point generally refers to modifying the coordinate values of the needle point. The coordinate values before correction and after correction of the needle point are not completely uncorrelated, and a reasonable assumption is made that the coordinate differences between the coordinates before correction and the coordinates after correction follow a probability distribution, such as a relatively common normal distribution. Record P x 、P y G is the abscissa and ordinate before correction of a needle point x 、G y For the abscissa and ordinate values after the needle point correction, letThen t x And t y The coordinate difference between the coordinates before correction and the coordinates after correction can be regarded as the needle point. t is t x And t y H in the definition, namely h in the step S101, represents the distance between two adjacent needle points before correction, and h can eliminate t x And t y Is convenient for t x And t y Is a statistical treatment of (1). In general, it is possible toView t x And t y Obeys N (0, sigma) 2 ) I.e. +.>F in the above formula represents a probability density function, i=x, y. The specific value of the standard deviation sigma is determined according to the pattern or the condition of the segment to be corrected, and certain trial calculation can be carried out if necessary.
At present, there are mature probability value generation methods, and the methods can be used for generating a distribution obeying N (0, sigma) 2 ) Due to P of each point x 、P y It is known that each needle point G can be calculated x 、G y Is a numerical value of (2). Multiple groups of G are obtained by calculating multiple groups of random numbers x 、G y Then, the discrete second derivative corresponding to the corrected coordinates of each needle point in the section to be corrected can be calculated according to the description in the step S101, and a group of the most smooth G is selected x 、G y . Since the distances between adjacent points after correction are not necessarily the same, the calculation formula of the discrete second derivative in step S101 needs to be adaptively modified, for exampleH in 1 Indicating the distance between the needle point and the next adjacent needle point after the needle point, h 2 Indicating the distance between the next adjacent needle point after the needle point and the next adjacent needle point after the needle point. In actual operation, most sections to be corrected generate 3-5 groups of random numbers, and correction results which have good smoothing effect and meet the requirements of a new sewing technology or a new sewing method can be selected.
And correcting the needle points in the section to be corrected, if the data corresponding to the needle points in the section to be corrected are corrected, the data are corrected to be a corrected numerical value (the data without correction are kept unchanged), and the data of other needle points in the pattern are kept unchanged, so that the corrected pattern can be obtained. The corrected pattern can be directly used for sewing production, and a sewing machine can produce a sewing product according to the corrected pattern.
According to the pattern correction method provided by the embodiment, the time complexity and the space complexity of the method are low, an operator of a sewing machine after writing special software can obtain a correction result in a very short time by inputting a small amount of setting data into the software, and the correction efficiency is not comparable to that of the manual pattern correction. The actual operation effect of the method is good, and the requirement of the inter-stitch production can be met. For example, the corrected pattern is sewn by using a rotating machine head technology, so that the rotating angle of the machine head can be effectively controlled, the overlarge rotating angle of the machine head when sewing a plurality of needle points is avoided, and meanwhile, the mechanical vibration in the sewing process is sufficiently reduced.
Embodiment two:
FIG. 3 is a schematic diagram showing the configuration of a pattern correction apparatus according to the present embodiment. The pattern correction device 30 includes a dot screening device 31, a segment confirmation device 32, and a dot correction device 33. The dot screening device 31 is used for screening target needle dots in the pattern according to a preset index. The segment confirming device 32 is used for determining target needle point segments in the pattern and the preceding segment and the following segment of each target needle point segment according to the target needle points, and combining the preceding segment, the target needle point segment and the following segment into a segment to be corrected. The point correction device 33 is configured to determine corrected coordinates of the needle point in the section to be corrected according to a probability distribution of a coordinate difference between the coordinates of the needle point in the section to be corrected and the coordinates of the needle point.
The specific implementation manner of the device in this embodiment may be referred to in the first embodiment, and the implementation principle and technical effects are similar, which is not described herein.
The apparatus described in this embodiment should be understood as a functional module architecture implemented mainly by means of computer programs or the like. The division of the apparatus according to the embodiment corresponds to the method steps described in the first embodiment, and is merely a logic function division, and there may be another division manner in actual implementation, for example, multiple apparatuses may be combined or integrated into another apparatus, or some apparatuses may be omitted or not executed.
The embodiments of the physical units as the device-carrying entities in this embodiment have a variety of embodiments, and all devices may be distributed in one physical unit, or one or several devices may be distributed in different physical units. The physical units of the bearing device can be electrically connected in a cable, wireless network or other modes, and do not necessarily have direct physical contact or mechanical connection relation.
Embodiment III:
fig. 4 is a schematic hardware structure of the electronic device according to the present embodiment. As shown in fig. 4, the electronic device 40 includes: at least one processor 41 and a memory 42. Optionally, the electronic device 40 further comprises a bus 43, and the processor 41 and the memory 42 are connected by the bus 43.
During operation of the electronic device, the memory 42 stores computer instructions that the at least one processor 41 executes to cause the electronic device 40 to perform the method as described in embodiment one.
The specific implementation process of the electronic device 40 may be described in the first embodiment, and the implementation principle and technical effects are similar, which is not described herein.
In this embodiment, it should be understood that the processor may be a central processing unit (in english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (in english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (in english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. The general purpose processor may be a microprocessor or other conventional processor. The computer instructions stored in the execution memory 42 may be performed directly by a hardware processor or by a combination of hardware and software modules in the processor.
The memory may include high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
Embodiment four:
the present application also provides a computer-readable storage medium having a computer program stored therein, which when executed, implements the method as described in embodiment one.
The above-described computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks, and so forth. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer or similar electronic device.
A computer readable storage medium may be coupled to the processor such that the processor can read information from, and write information to, the medium. In the alternative, the medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in an electronic device.
The technical solution of the present application may be stored in a computer readable storage medium if implemented in the form of software and sold or used as a product. With such understanding, all or part of the technical solution of the present application may be embodied in the form of a software product stored in a storage medium comprising a computer program or several instructions. The computer software product causes a computer device (which may be a personal computer, a server, a network device, or similar electronic device) to perform all or part of the steps of a method according to an embodiment of the application. The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps described in implementing the embodiment one may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer-readable storage medium, which when executed performs all or part of the steps described in the first embodiment. The aforementioned storage medium includes various media that can store program codes such as ROM, RAM, magnetic disk, or optical disk.
Finally, it should be noted that the embodiments of the present application are only used to illustrate the technical solution of the present application, and not to limit it. Although the embodiments have been described in detail, those skilled in the art should understand that they can modify the technical solutions described in the embodiments of the present application or make equivalent substitutions for some or all of the technical features thereof, and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A pattern correction method, characterized in that the method comprises:
screening target needle points in the patterns according to preset indexes;
determining target needle point sections in the pattern and a front section and a rear section of each target needle point section according to the target needle points, and combining the front section, the target needle point sections and the rear section into a section to be corrected;
determining the corrected coordinates of the needle points in the section to be corrected according to the probability distribution of the coordinate difference value between the coordinates before correction and the coordinates after correction of the needle points in the section to be corrected;
the determining the target needle point section in the pattern according to the target needle point comprises the following steps:
traversing the needle points in the pattern according to the number, and finding out the target needle point with the minimum number;
searching whether other target needle points exist in all needle points with the number larger than the reference needle point and the distance between the target needle point and the reference needle point not exceeding a set threshold value by taking the target needle point with the smallest number as the reference needle point, and continuously searching by taking the target needle point with the largest number as the new reference needle point if the other target needle points exist until the other target needle points cannot be found;
and taking the target needle point with the smallest number in all the found target needle points as the starting point of the target needle point section, and taking the target needle point with the largest number as the ending point of the target needle point section.
2. The method of claim 1, wherein the predetermined criteria comprises a discrete second derivative, the definition of the discrete second derivative comprisingh is the distance between two adjacent needle points.
3. The method of claim 1, wherein the start point and the end point of the target needle point segment are both the target needle points, and wherein the pitch of any two adjacent target needle points in the target needle point segment does not exceed a set pitch.
4. A method according to claim 1 or 3, wherein the highest numbered needle point in the preceding segment is adjacent to the start of the target needle point segment and the lowest numbered needle point in the following segment is adjacent to the end of the target needle point segment.
5. The method of claim 1, wherein merging the leading segment, the target needle segment, and the trailing segment into the segment to be modified comprises:
if the number of the needle points with the number smaller than the starting point number of the target needle point section is smaller than the preset number of the needle points of the preamble section, all the needle points with the number smaller than the starting point of the target needle point section are incorporated into the preamble section; and/or the number of the groups of groups,
if the number of the needle points with the number larger than the end point number of the target needle point section is smaller than the preset number of the needle points of the subsequent section, all the needle points with the number larger than the end point number of the target needle point section are incorporated into the subsequent section; and/or the number of the groups of groups,
and if the two sections to be corrected are overlapped or adjacent, merging the two sections to be corrected into one section to be corrected.
6. The method of claim 1, wherein the difference in coordinates between the pre-correction coordinates and the post-correction coordinates of the needle point is N (0, σ) 2 )。
7. A pattern correction device, characterized in that the device comprises a point screening device, a section confirmation device and a point correction device; the point screening device is used for screening target needle points in the patterns according to preset indexes; the segment confirmation device is used for determining target needle point segments in the pattern and a preceding segment and a subsequent segment of each target needle point segment according to the target needle points, and combining the preceding segment, the target needle point segments and the subsequent segments into a segment to be corrected; the point correction device is used for determining the corrected coordinates of the needle points in the section to be corrected according to probability distribution of coordinate difference values of the coordinates before correction and the coordinates after correction of the needle points in the section to be corrected;
the segment confirmation device is specifically used for traversing the needle points in the pattern according to the number to find the target needle point with the minimum number; searching whether other target needle points exist in all needle points with the number larger than the reference needle point and the distance between the target needle point and the reference needle point not exceeding a set threshold value by taking the target needle point with the smallest number as the reference needle point, and continuously searching by taking the target needle point with the largest number as the new reference needle point if the other target needle points exist until the other target needle points cannot be found; and taking the target needle point with the smallest number in all the found target needle points as the starting point of the target needle point section, and taking the target needle point with the largest number as the ending point of the target needle point section.
8. An electronic device comprising a processor and a memory, the memory for storing computer instructions, the processor for executing the computer instructions stored in the memory to cause the electronic device to perform the pattern correction method of any one of claims 1-6.
9. A storage medium storing a computer program which, when executed, implements the pattern correction method according to any one of claims 1 to 6.
CN202010395435.6A 2020-05-12 2020-05-12 Pattern correction method, pattern correction device, electronic equipment and storage medium Active CN113652803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010395435.6A CN113652803B (en) 2020-05-12 2020-05-12 Pattern correction method, pattern correction device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010395435.6A CN113652803B (en) 2020-05-12 2020-05-12 Pattern correction method, pattern correction device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113652803A CN113652803A (en) 2021-11-16
CN113652803B true CN113652803B (en) 2023-08-18

Family

ID=78476947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010395435.6A Active CN113652803B (en) 2020-05-12 2020-05-12 Pattern correction method, pattern correction device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113652803B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114703610B (en) * 2022-04-08 2023-08-18 北京大豪科技股份有限公司 Needle height adjusting method and device for embroidery machine

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001017760A (en) * 1999-07-12 2001-01-23 Brother Ind Ltd Correcting device for and correcting method of sewing data
CN1867723A (en) * 2003-10-15 2006-11-22 株式会社岛精机制作所 Embroidery data creation device, embroidery data creation method, and embroidery data creation program
CN103882630A (en) * 2012-12-20 2014-06-25 北京大豪科技股份有限公司 Pattern editing method of electronic pattern machine
CN104732536A (en) * 2015-03-18 2015-06-24 广东顺德西安交通大学研究院 Sub-pixel edge detection method based on improved morphology
CN106283425A (en) * 2015-05-22 2017-01-04 北京大豪科技股份有限公司 Sewing needle tracking generates method and apparatus
CN109667076A (en) * 2019-01-16 2019-04-23 北京大豪科技股份有限公司 Style method for platemaking, device, electronic equipment and storage medium
CN110390278A (en) * 2019-07-05 2019-10-29 北京大豪科技股份有限公司 Sewing Boundary Recognition method, apparatus, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008022992A (en) * 2006-07-19 2008-02-07 Brother Ind Ltd Embroidery data creating device, embroidery data creating program, and computer-readable recording medium recording embroidery data creating program
JP2009125337A (en) * 2007-11-26 2009-06-11 Brother Ind Ltd Device and program for producing embroidery data and computer-readable memory medium storing its program
US10619278B2 (en) * 2018-06-07 2020-04-14 Zeng Hsing Industrial Co., Ltd. Method of sewing a fabric piece onto another fabric piece based on image detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001017760A (en) * 1999-07-12 2001-01-23 Brother Ind Ltd Correcting device for and correcting method of sewing data
CN1867723A (en) * 2003-10-15 2006-11-22 株式会社岛精机制作所 Embroidery data creation device, embroidery data creation method, and embroidery data creation program
CN103882630A (en) * 2012-12-20 2014-06-25 北京大豪科技股份有限公司 Pattern editing method of electronic pattern machine
CN104732536A (en) * 2015-03-18 2015-06-24 广东顺德西安交通大学研究院 Sub-pixel edge detection method based on improved morphology
CN106283425A (en) * 2015-05-22 2017-01-04 北京大豪科技股份有限公司 Sewing needle tracking generates method and apparatus
CN109667076A (en) * 2019-01-16 2019-04-23 北京大豪科技股份有限公司 Style method for platemaking, device, electronic equipment and storage medium
CN110390278A (en) * 2019-07-05 2019-10-29 北京大豪科技股份有限公司 Sewing Boundary Recognition method, apparatus, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡利梅,王利娟.图像中的噪声.《数字图像处理》.2014, *

Also Published As

Publication number Publication date
CN113652803A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN113652803B (en) Pattern correction method, pattern correction device, electronic equipment and storage medium
CN109667076A (en) Style method for platemaking, device, electronic equipment and storage medium
US8065030B2 (en) Embroidery data generating device and computer-readable medium storing embroidery data generating program
JP2007175087A (en) Embroidery data preparation device and embroidery data preparation program
CN111985459A (en) Table image correction method, device, electronic equipment and storage medium
CN110737603B (en) Method and device for replacing functions in ROM
CN111242966A (en) Image boundary correction method, device, electronic equipment and storage medium
CN112346409B (en) Method for rapidly judging point cloud containing problems
US4691649A (en) Input device for sewing machine
CN110489723A (en) A kind of data error detection and error correction system of dyeing information system
WO2020131046A1 (en) Part packing
CN110580000B (en) Automatic programming method for processing finishing allowance of die
EP2316991B1 (en) Knit design method, knit design device, and design program
CN116520764A (en) Feeding track optimization method for blanking machine
JP2008022992A (en) Embroidery data creating device, embroidery data creating program, and computer-readable recording medium recording embroidery data creating program
CN116700149A (en) Self-adaptive filtering optimization method for numerical control machining tool path
CN116400648A (en) Speed planning method for uncertain interval
CN106757816B (en) Method for adding shape information
CN113814805B (en) Machining method and system for indexable insert of peripheral grinding machine
US7421539B1 (en) Method and system for concurrent garbage collection and mutator execution
CN114463774A (en) Intelligent identification method for picture of engineering drawing
CN113254271A (en) Data sequence recovery method, device, equipment and storage medium
CN114995297B (en) Numerical control machine tool machining method and device, electronic equipment and storage medium
CN111621932A (en) Pattern display method, pattern display device, electronic apparatus, and storage medium
CN113867259B (en) Reconstruction method of cutter track transverse information based on space grid

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 311800 No. 511, Huandong street and Jidong Road, Zhuji City, Shaoxing City, Zhejiang Province

Applicant after: Zhejiang DAHAO Technology Co.,Ltd.

Applicant after: BEIJING DAHAO TECHNOLOGY Co.,Ltd.

Applicant after: Beijing DAHAO industrial sewing Intelligent Control Technology Co.,Ltd.

Address before: 311800 No. 19, Shilipai DAHAO Road, Zhuji City, Shaoxing City, Zhejiang Province

Applicant before: ZHUJI XINGDAHAO TECHNOLOGY DEVELOPMENT Co.,Ltd.

Applicant before: BEIJING DAHAO TECHNOLOGY Co.,Ltd.

Applicant before: Beijing DAHAO industrial sewing Intelligent Control Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant