This application claims priority to Swedish patent application 07018864 filed 21 Aug. 2007.
1. Technical Field
The present invention relates to a method for establishing a sewing order in embroidering at least one embroidery element on a sewing material in a sewing machine according to an algorithm, the invention further encompassing a software product programmed with said algorithm.
2. Prior Art
Executing embroideries by means of a sewing machine, in which the embroidery can be stored in its entirety in a memory that contains stitch data for the embroidery, is already known. An operator has a sewing material, for example, on which the embroidery is to be executed, stretched out on an embroidery frame, which is arranged on the sewing machine in such a way that a control program for the sewing machine mechanically moves the embroidery frame according to the control program and stitch data for executing the embroidery on the sewing material. The operator is free to create or select from a database one or more embroidery elements, which are stored in the memory, in order to build up said embroidery. The sewing material is usually a fabric, which term will henceforward be used as an example to denote all types of sewing material.
An embroidery element forming part of said embroidery is made up of at least one and usually a plurality of basic elements, which comprise at least one stitch of any stitch type executed with a thread of a certain colour and/or with a thread of a certain quality, such as a silk thread, for example. The thread type in different basic elements is usually of the same sort, but various thread types of the same colour could occur in different basic elements.
In planning the embroidery the operator lays out the various embroidery elements over an sub-area of the fabric. This layout of embroidery elements can be performed on a screen, which displays an image of the available embroidery sub-area of the fabric, for example the sub-area of the fabric contained within said embroidery frame.
When embroidering or sewing on a fabric in a sewing machine the embroidery elements are conventionally sewn in the order in which they are laid out on the fabric and hence stored in the memory. The basic elements in each embroidery element are also conventionally sewn in a predefined order, for example in the order in which they are listed in a program that contains data for the embroidery element. A further complication arises when the fabric is stretched on an embroidery frame which is of such a size that the needle for executing the stitches only has access to half of the fabric surface stretched out inside the embroidery frame. With such embroidery frames, which are common nowadays, the embroidery frame must be turned and remounted in an embroidery unit before basic elements in the embroidery element can be embroidered with stitches on the other half of the fabric. The conventional technique for embroidering usually relies on the fact that embroidery elements are embroidered, as stated, in the order in which they are set out. Such a sequence may then necessitate multiple turns of the embroidery frame, which creates difficulties. Some machines can be programmed to ask the operator whether all embroidery elements on one and the same half side of the fabric in the embroidery frame are to be completed before it becomes necessary to turn the embroidery frame. This procedure is not ideal either, since no account will be taken here of the fact that certain parts of embroidery elements can overlie parts of other embroidery elements, something which is undesirable, since the result of the process may not be aesthetically pleasing.
An object of the present invention is to demonstrate a method and an arrangement for determining a sewing order for embroidering on a fabric by means of a sewing machine, which reduces the number of adjustments and operations in performing the embroidery.
In embroidering, an embroidery unit is generally used, which is a part of a sewing machine that is used specifically for embroidery, in which the aforementioned embroidery frame constitutes a part of the embroidery unit for moving the fabric. The sewing machine guides the embroidery frame in two directions, for example in an x direction and in a y direction, via stepper motors, one for each direction. An embroidering machine of this type controls the movements of the embroidery frame for embroidering an embroidery element according to data for stitch coordinates stored in a memory accessible to the sewing machine.
The present document describes a method that can be used when embroidering on sewing machines. One aspect of the method describes an algorithm, which is used for sorting basic elements forming part of the embroidery elements that make up an embroidery, which is to be executed on the sewing machine, in an order in which the basic elements are to be sewn so as to minimize, as far as possible, the number of times the sewing machine has to be reloaded in respect of colour type and thread type when sewing on different sub-areas of the fabric, where said sub-areas are accessible only by adjusting the sewing machine, for example by turning an embroidery frame, in order thereby to minimize the number of colour and/or thread changes whilst maintaining the layout of the embroidery. The order of priority for the stitches in basic elements, which are placed one on top of the other, must therefore be retained.
The algorithm described according to the invention does not guarantee that the optimum placing of stitches will be achieved. The algorithm has been developed through the use of a heuristic procedure, the algorithm having been optimized in order to solve a number of typical examples, and uses examples as described in the present document.
The advantages of the method according to the invention are, as already stated, that the number of thread changes in performing the embroidery are minimized, whilst the number of turns of the embroidery frame and the number of adjustments to the sewing machine for access to sewing sub-areas are considerably reduced compared to the prior art.
The invention utilizes an algorithm, according to which a processor available on the sewing machine executes the stitches, the sewing machine processor using a program which is coded for controlling the embroidery according to said algorithm.
A number of embodiments of the invention are described below with reference to the drawings attached.
As an example of the function,
Accompanying the machine in the prior art is a control program, which is stored in a processor C, for example. The sewing machine also has an accessible memory M, which is preferably located in the sewing machine but which may also be situated externally and accessible from the processor C. When the sewing machine is used for embroidering embroidery elements, the memory M affords the facility for storing sewing patterns for embroideries in the form of stitch data for one or a plurality of such embroidery elements. The sewing pattern comprises at least one and usually a plurality of basic elements, which may have characteristics common to more than one embroidery element. Such basic elements may therefore have a colour common to multiple embroidery elements or a thread type common to multiple embroidery elements.
It has been found according to the invention that the sorting of basic elements in sewing order (the term sewing order is here used to denote the order in which the basic elements are sewn in sequence when embroidering) for a sub-sub-area (for example, one or the other half of the embroidery frame 10, or the equivalent. An embroidery sub-area which is accessible by the sewing machine without adjusting the latter will henceforward be exemplified by the term side in an embroidery frame but the term ‘side’ is to be regarded only as one example of such an embroidery sub-area) for each colour and thread type can be undertaken in the same way, that is to say one and the same algorithm can be used in all cases. The algorithm described below is an abstract algorithm, which sorts different characteristics of the basic elements, the precise characteristics, that is to say the colour of a colour basic element or the position of a basic element on either side of the embroidery frame being of lesser interest, provided that it is possible to compare the different characteristics. Comparison therefore focuses on whether two basic elements have the same colour (or thread type) or whether two basic elements occur on the same side of the embroidery frame 10. It must be noted here that a basic element may have different characteristics in terms of the colour of the thread, for example. Different characteristics might also possibly mean that the basic element has the characteristic that the thread type is silk, for example. In order to simplify the description and the algorithm, the characteristic “thread type” is classified under the characteristic “colour”. A certain thread type in a certain basic element may therefore be treated by identifying the thread type in the basic element and denoting it by the colour characteristic, which consequently means that the algorithm implicitly includes the thread type under the term colour, if different thread types occur in the embroidery, thereby increasing the number of colour characteristics and including all colours and thread types.
The algorithm is based on the following assumptions:
The entire sorting algorithm is divided into two different parts: a first part which performs an analysis of the embroidery and which builds up a structure, which is applicable to a second part, which contains the actual sorting algorithm for the sewing order. The first part, the analysis part, is further divided into three parts, a cluster analysis, a coverage analysis and a characteristics analysis. The algorithm according to one embodiment is described here:
1. Analysis
2 Determine layer order, i.e. identify clusters which are situated on others likewise identified.
1 c. Sort the various clusters according to their characteristics, making it possible to easily select clusters with the same characteristics
2. Sewing Order
Perform the final sorting in order to determine the sewing order, that is to say in what order the basic elements are to be sewn out on the fabric.
The different parts of the algorithm are described in more detail below.
The Cluster Analysis
In the cluster analysis clusters of basic elements are formed which have the same characteristics, each cluster having the following characteristics:
All basic elements in a cluster have been added to the embroidery in a sequence. That is to say the index of the basic element is N . . . N+(k−1), where k is the number of basic elements in the cluster.
All basic elements in a cluster have the same characteristic.
Coverage Analysis
The aim of the coverage analysis is to determine the levels of the basic elements (i.e. the order for layers of the basic elements one on top of another) and which clusters are placed on top of one another. A cluster is defined as lying on top of, that is to say covering another cluster, if at least a part of a basic element in a cluster is situated on top of at least one part of a basic element in another cluster.
The analysis is performed as follows:
For each cluster CN where 1≦N≦the number of clusters, proceed as follows:
The result of the coverage analysis is a list of clusters, in which each cluster has the following inserted information on the basic elements it contains:
The cluster level 0 indicates the lowest level, i.e. that there is no cluster below this one.
Note: Sewing the clusters level by level starting from level 0 maintains the layout, since clusters situated on top of one another never have the same level according to the above algorithm.
The aim of the characteristics analysis is to form a structure which is suitable for the final step, i.e. generating the sewing order. The characteristics analysis creates a structure in which the different clusters are sorted characteristic by characteristic and level by level (layer by layer).
Table 1 below shows the result of a characteristics analysis undertaken for the results shown in
Sorting into Sewing Order
The algorithm finally comprises a sorting to determine the sewing order for the basic elements, using the structure that is built up during the analysis phase and proceeding as follows:
Run through all levels , where 0≦L≦ the number of levels:
1. Run through all characteristics:
Place these clusters into a list for sewing order and remove said clusters, and cross-references relating thereto from the analytical structure.
2. Run through all characteristics (again)
Note (1): The aim of this loop is to minimize the number of changes in characteristics by starting with characteristics that do not build up chains between different levels and which consequently retain these for later use, see Note (2) below.
Note (2) The aim of this loop is to minimize the number of changes in characteristics by keeping to a specific characteristic for as long as possible, i.e. by building up chains between different levels.
Table 2 below shows the result of the sorting of the sewing order performed on the analysis according to Table 1.
The final sewing order is determined by sewing the different clusters, basic element by basic element, whilst maintaining their relative order. Thus, according to the example, the basic elements will be sewn in the following order: {1, 2, 3, 5, 6, 7, 4}.
Combined side and colour sorting (see
The combined side and colour sorting is performed according to the description below (the term side in this case means the side (for example, A or B in the figure) of an embroidery frame or the like on which the basic elements are situated in the overall embroidery).
Side Sorting
A number of examples which further illustrate the outcome of the sewing order according to the algorithm are given below.
Definitions
A stitch consist of the sewing between two consecutively tied knots of upper thread and lower thread.
The term seam relates to a sequence of stitches.
An embroidery element here relates to the pattern for a specific sewing pattern repeatable by the sewing machine and comprising at least one basic element, which in turn comprises at least one stitch.
The term to execute a stitch is equivalent to the term to sew, or sewing.
An embroidery element forming part of an embroidery is made up of at least one and usually a plurality of basic elements.
A basic element consists of at least one stitch of any stitch type executed with a thread of a certain colour and/or with a thread of a certain quality, for example a silk thread.
A sub-area, in this case a sewing sub-area, is a sub-area which is accessible for a sewing machine without adjustments of the sewing machine, such as changing sides of a fabric stretched in an embroidery frame.
Number | Date | Country | Kind |
---|---|---|---|
0701886-4 | Aug 2007 | SE | national |