Intelligent piecework method, system, terminal and medium for sewing machine
By inputting sewing data streams and template data into the sewing machine, calculating the lower bound of segment length and total stitch count, and extracting actual segmentation event points, the problem of inaccurate piece counting in existing technologies is solved, realizing an efficient and accurate piece counting method, and reducing the labor intensity of workers and production costs.
Patent Information
- Application Number
- CN202210923245.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-02
AI Technical Summary
Existing piecework methods for sewing machines cannot accurately count pieces in situations such as continuous sewing, manual thread trimming afterward, and machine malfunctions requiring rework, which increases the labor intensity of workers and production costs.
By inputting sewing data stream and template sewing data, key template data is obtained, the lower bound of segment length and total stitch count is calculated, actual segmentation event points are extracted from the sewing data stream, the sewing data stream is segmented, the start and end times and number of each sewing object are obtained, and the accuracy of piece counting is ensured by using Euclidean distance and segmentation point traversal rules.
It achieves high accuracy in piece counting, reduces operational steps, lowers workers' labor intensity and production costs, and ensures efficient and accurate piece counting even under abnormal conditions.
Smart Images

Figure CN117556862B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sewing machines, and in particular to an intelligent piece counting method, system, terminal, and medium for sewing machines. Background Technology
[0002] Piece-rate payment is a crucial aspect of production management and financial settlement in garment factories. Most garment factories use a piece-rate system for wage settlement. Initially, each worker manually recorded the number of pieces they processed, with the factory using the number delivered from orders as the basis for calculation. This often resulted in discrepancies between the number of pieces recorded and the actual number, and the difficulty in tracing errors frequently led to conflicts between the factory and workers. Factory managers also couldn't monitor the processing progress of each sewing station in real time, hindering timely production line adjustments and resulting in low production efficiency. Current solutions to this problem mainly fall into two categories: ① Adding a piece-rate module to the machine, where workers record each piece completed by pressing a button (common in hanging systems); ② Attaching a QR code to each bundle of cut pieces, where workers scan the code with a mobile phone or RFID tag after completing each bundle. These methods not only increase operational steps and the labor intensity for workers, but also require external equipment to the sewing machines, further increasing production costs.
[0003] The piece-counting method mentioned in patent CN107345346A determines the completion of a garment's sewing based on the difference between the target stitch count and the corrected stitch count, and the number of thread cuts exceeding the target number of thread cuts. This method has two problems: ① It cannot count pieces when sewing is continuous and thread is manually cut afterwards; ② It cannot accurately count pieces when the machine stops abnormally or rework occurs during the sewing process. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a method, system, terminal and medium for intelligent piece counting of sewing machines, so as to solve the above-mentioned technical problems in the prior art.
[0005] To achieve the above and other related objectives, this invention provides an intelligent piece counting method for sewing machines. The method includes: inputting a sewing data stream to be counted and template sewing data corresponding to sewing one sewing object; obtaining template key data corresponding to the template sewing data based on the template sewing data, and calculating the lower bound of the segment length and the lower bound of the total number of stitches; wherein, the template key data includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points included in the template sewing count, and the total number of stitches in the template; extracting one or more actual segmentation event points from the sewing data stream based on the template key data, the lower bound of the segment length, and the lower bound of the total number of stitches; segmenting the sewing data stream by each actual segmentation event point, and obtaining the start and end time of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
[0006] In one embodiment of the present invention, extracting one or more actual segmentation event points from the sewing data stream based on the template key data, the lower bound of the segment length, and the lower bound of the total number of stitches includes: extracting event points from the sewing data stream to be counted that are greater than the template time interval threshold, and using each extracted event point and the last event point as candidate segmentation points arranged in sequence; wherein, the template time interval threshold is half of the template time interval; determining whether the template segment length is equal to 2; if so, then setting each candidate segmentation point as an actual segmentation event point; if so, based on the segmentation point traversal extraction rule, traversing each candidate segmentation point and extracting one or more actual segmentation event points in sequence; wherein, the segmentation point traversal extraction principle is related to the lower bound of the segment length, the lower bound of the total number of stitches, and the calculated Euclidean distance between each corresponding candidate segmentation point and the template.
[0007] In one embodiment of the present invention, the step of traversing each candidate segmentation point and extracting one or more actual segmentation event points in sequence based on the segmentation point traversal extraction rule includes: comparing the segment length and total number of stitches of the sewing object obtained when each candidate segmentation point is used as an actual segmentation event point with the lower bound of the segment length and the lower bound of the total number of stitches, respectively, and comparing the calculated Euclidean distance between each candidate segmentation point and the template with the current standard distance in sequence, thereby obtaining each actual segmentation event point in sequence; wherein, the calculation method of the Euclidean distance between each candidate segmentation point and the template includes: calculating the Euclidean distance between the current candidate segmentation point and the template based on the segment length and total number of stitches of the sewing object obtained when the current candidate segmentation point is used as an actual segmentation event point, and the segment length and total number of stitches of the template.
[0008] In one embodiment of the present invention, the step of sequentially obtaining each actual segmentation event point by comparing the calculated candidate segmentation points with the lower bounds of the segment length and total stitch count of the sewing object obtained when each candidate segmentation point is sequentially used as the actual segmentation event point, and by comparing the calculated Euclidean distance between each candidate segmentation point and the template with the current standard distance, includes: Step 1: Taking the first event point of the sewing data stream to be counted as the starting point and setting the current standard distance to infinity, and taking the first candidate segmentation point as the current candidate point; Step 2: Obtaining the segment length and total stitch count of the sewing object obtained when the current candidate point is used as the actual segmentation event point; Step 3: Determining whether the current candidate point is the last candidate segmentation point; if not... Yes, proceed to step 4; if yes, proceed to step 5; Step 4: Execute the non-end-point piecework process; wherein, the non-end-point piecework process includes: Step 41: Determine whether the segment length and total number of stitches corresponding to the sewing object obtained when the current candidate point is used as the actual segmentation event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 42; if no, proceed to step 43; Step 42: Execute the first piecework process; wherein, the first piecework process includes: Step 421: Calculate the Euclidean distance between the current candidate segmentation point and the template; Step 422: Determine whether the calculated Euclidean distance is less than the current standard distance; if yes, proceed to step 423; if no, proceed to step 424; Step 423: Set the Euclidean distance as the current standard distance. Step 424: Determine the current optimal dividing point and check if there are any easily confused dividing points that need to be replaced at the current optimal dividing point; if so, proceed to step 425; if not, proceed to step 426; Step 425: Use the easily confused dividing point as the actual dividing event point, and use the actual dividing event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece, and set the current standard distance to infinity, and use the next candidate dividing point as the current candidate point, then return to step 2; Step 426: Use the optimal dividing point as the actual dividing event point, and use the actual dividing event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece, and... Set the current standard distance to infinity, and take the next candidate segmentation point as the current candidate point, then return to step 2; Step 43: Select the next candidate segmentation point as the current candidate segmentation point, and return to step 2; Step 5: Execute the end-point piecework process; wherein, the execution of the end-point piecework process includes: Step 51: Calculate the Euclidean distance between the last candidate segmentation point and the template; Step 52: Determine whether the calculated Euclidean distance is greater than the current standard distance; if yes, then execute step 53; if no, execute step 54; Step 53: Execute the second piecework process; wherein, the second piecework process includes: Step 531: Obtain the segment length and total number of stitches corresponding to the sewing object obtained when the last candidate segmentation point is taken as the actual segmentation event point;Step 532: Determine whether the segment length and total number of stitches of the sewing object obtained when the last candidate segment point is used as the actual segment event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 533; if no, proceed to step 534; Step 533: Use the last candidate segment point as the actual segment event point to obtain a sewing object with the previous actual segment event point as the starting point and that actual segment event point as the ending point; Step 534: Use the last candidate segment point as the actual segment event point to obtain a sewing object with the first event point of the sewing data stream as the starting point and that actual segment event point as the ending point; Step 54: Use the last candidate segment point as the actual segment event point to obtain a sewing object with the first event point of the sewing data stream as the starting point and that actual segment event point as the ending point.
[0009] In one embodiment of the present invention, determining the current optimal segmentation point and judging whether the current optimal segmentation point has any easily confused segmentation points that need to be replaced includes: Step 4241: taking the previous candidate segmentation point as the current optimal segmentation point; Step 4242: judging whether the optimal segmentation point has any easily confused points later; if not, proceeding to step 4243; if yes, proceeding to the easily confused point replacement judgment process; wherein, the easily confused point replacement judgment process includes: Step 42421: judging whether there is a tail segmentation point and no head segmentation point in the template sewing data; if yes, proceeding to step 425; if not, proceeding to step 4243. Step 4243: judging whether the optimal segmentation point has any easily confused points earlier; if yes, proceeding to the easily confused point replacement judgment process earlier; if not, proceeding to step 426; wherein, the easily confused point replacement judgment process earlier includes: Step 42431: judging whether there is a head segmentation point and no tail segmentation point in the template sewing data; if yes, proceeding to step 425; if not, proceeding to step 426.
[0010] In one embodiment of the present invention, the calculation method for the lower bound of the segment length and the lower bound of the total number of stitches includes: calculating the lower bound of the segment length by comparing the template segment length with a preset length and based on the corresponding segment length reduction factor; and calculating the lower bound of the total number of stitches based on the preset total number of stitches reduction factor and the total number of stitches of the template.
[0011] In one embodiment of the present invention, the step of comparing the template segment length with a preset length and calculating the lower bound of the segment length according to the corresponding segment length reduction factor includes: determining whether the template segment length is greater than 10; if the template segment length is less than 10, obtaining a segment length reduction factor of 0.5, and multiplying the template segment length by the segment length reduction factor to obtain the lower bound of the segment length; if the template segment length is greater than 10, obtaining a segment length reduction factor of 0.7, and multiplying the template segment length by the segment length reduction factor to obtain the lower bound of the segment length.
[0012] In one embodiment of the present invention, the thyroid-associated ophthalmopathy identification model adopts a VGG-19 network structure.
[0013] To achieve the above and other related objectives, the present invention provides an intelligent piece counting system for sewing machines. The system includes: an input module for inputting a sewing data stream to be counted and template sewing data corresponding to the sewing of one sewing object; a template sewing data processing module connected to the input module for obtaining key template data based on the template sewing data, and calculating the lower bound of the segment length and the lower bound of the total number of stitches; wherein the key template data includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points included in the template sewing count, and the total number of stitches in the template; an actual segmentation point acquisition module connected to the template sewing data processing module for extracting one or more actual segmentation event points from the sewing data stream based on the key template data, the lower bound of the segment length, and the lower bound of the total number of stitches; and a piece count acquisition module connected to the actual segmentation point acquisition module for segmenting the sewing data stream by each actual segmentation event point, and obtaining the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
[0014] To achieve the above and other related objectives, the present invention provides an intelligent piece counting terminal for sewing machines, comprising: one or more memory units and one or more processor units; the one or more memory units are used to store computer programs; the one or more processor units are connected to the memory units and are used to run the computer programs to execute the intelligent piece counting method for sewing machines.
[0015] To achieve the above and other related objectives, the present invention provides a computer storage medium storing a computer program, which, when executed, implements the intelligent piece counting method for sewing machines.
[0016] As described above, this invention provides an intelligent piece counting method, system, terminal, and medium for sewing machines, offering the following advantages: By inputting the sewing data stream to be counted and the template sewing data corresponding to a sewing object, this invention obtains key template data corresponding to the template sewing data, calculates the lower bound of the segment length and the lower bound of the total stitch count, extracts one or more actual segmentation event points from the sewing data stream, and segments the sewing data stream by each actual segmentation event point. This yields the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream. This invention achieves extremely high piece counting accuracy using only stitch count data, reducing operational steps, lowering worker labor intensity and production costs, and ensuring efficient and accurate piece counting even in abnormal situations such as abnormal stops or rework. Attached Figure Description
[0017] Figure 1 The diagram shown is a flowchart illustrating an intelligent piece counting method for sewing machines according to an embodiment of the present invention.
[0018] Figure 2 The diagram shown is a flowchart illustrating an intelligent piece counting method for sewing machines according to an embodiment of the present invention.
[0019] Figure 3 The diagram shown is a flowchart illustrating an intelligent piece counting method for sewing machines according to an embodiment of the present invention.
[0020] Figure 4 The diagram shown is a flowchart illustrating an intelligent piece counting method for sewing machines according to an embodiment of the present invention.
[0021] Figure 5 The diagram shown is a structural schematic of an intelligent piece counting system for sewing machines according to an embodiment of the present invention.
[0022] Figure 6 The diagram shown is a structural schematic of a sewing machine intelligent piece counting terminal according to an embodiment of the present invention. Detailed Implementation
[0023] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.
[0024] It should be noted that in the following description, reference is made to the accompanying drawings, which illustrate several embodiments of the invention. It should be understood that other embodiments may also be used, and changes in mechanical composition, structure, electrical system, and operation may be made without departing from the spirit and scope of the invention. The following detailed description should not be considered limiting, and the scope of the embodiments of the invention is defined only by the claims of the published patents. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. Spatially related terms, such as “upper,” “lower,” “left,” “right,” “below,” “below,” “lower part,” “above,” “upper part,” etc., may be used herein to illustrate the relationship between one element or feature shown in the figures and another element or feature.
[0025] Throughout this specification, when it is said that a part is "connected" to another part, this includes not only "direct connection" but also "indirect connection" by placing other elements in between. Furthermore, when it is said that a part "includes" a certain constituent element, unless otherwise stated otherwise, this does not exclude other constituent elements, but rather means that other constituent elements may also be included.
[0026] The terms "first," "second," and "third," etc., used herein are for the purpose of describing various parts, components, regions, layers, and / or segments, but are not limiting. These terms are used only to distinguish one part, component, region, layer, or segment from others. Therefore, the "first part," "component," "region," "layer," or "segment" described below may refer to a "second part," "component," "region," "layer," or "segment" without departing from the scope of this invention.
[0027] Furthermore, as used herein, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms “comprising,” “including,” indicate the presence of the stated feature, operation, element, component, item, kind, and / or group, but do not preclude the presence, occurrence, or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms “or” and “and / or” as used herein are interpreted as inclusive, or mean any one or any combination thereof. Thus, “A, B, or C” or “A, B, and / or C” means “any one of: A; B; C; A and B; A and C; B and C; A, B, and C.” Exceptions to this definition arise only when combinations of elements, functions, or operations are inherently mutually exclusive in some manner.
[0028] This invention provides an intelligent piece counting method, system, terminal, and medium for sewing machines. By inputting the sewing data stream to be counted and the template sewing data corresponding to a sewing object, the method obtains key template data corresponding to the template sewing data, calculates the lower bound of the segment length and the lower bound of the total stitch count, extracts one or more actual segmentation event points from the sewing data stream, and segments the sewing data stream by each actual segmentation event point. This yields the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream. This invention achieves extremely high piece counting accuracy using only stitch count data, reduces operational steps, lowers worker labor intensity and production costs, and maintains efficient and accurate piece counting even in abnormal situations such as abnormal stops or rework.
[0029] The present invention will now be described in detail with reference to the accompanying drawings, so that those skilled in the art can readily implement it. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.
[0030] like Figure 1 This is a flowchart illustrating an intelligent piece counting method for sewing machines according to an embodiment of the present invention.
[0031] The method includes:
[0032] Step S101: Input the sewing data stream to be counted and the template sewing data for sewing one sewing object.
[0033] Specifically, both the sewing data stream and the template sewing data are generated within the same process. Template sewing data refers to the standard sewing data for making one garment or piece of fabric in a single process. The piece-rate sewing data stream comprises all sewing data from the first piece to the last piece in a single process.
[0034] Furthermore, the template sewing data and sewing data stream each contain multiple event points, and each event point corresponds to a moment; specifically, a start event point corresponding to the start of the sewing machine and a stop event point corresponding to the stop of the sewing machine; the template sewing data and sewing data stream each contain at least one set of event points, and each set contains two event points, namely a start event point and a stop event point, and the order of the event points is one start event point and one stop event point, and then the next set is arranged.
[0035] In one specific embodiment, the sample garment maker sews the sample garment according to the assigned steps. Upon completion of each step, the sewing data for that step is entered, and the template data for that step is collected. After collecting the step templates, they are sent to a specific sewing machine. The sewing machine operator opens the sewing machine panel, sees the assigned steps, selects one, confirms, and then begins sewing the garment. The data during the sewing process is recorded by a data collector, forming the sewing data stream.
[0036] Optionally, the template sewing data is selected from the template sewing data of multiple sewn objects being sewn consecutively, and is guaranteed to be non-first piece, ensuring that the time interval between the current piece and the previous piece can be obtained based on the time of the first event point of the current piece. For example, sewing data of three garments in one process are collected, and the sewing worker presses the piece count button after sewing each piece; the sewing data of the second piece is selected as the template sewing data.
[0037] Step S102: Based on the template sewing data, obtain the template key data corresponding to the template sewing data, and calculate the lower bound of the segment length and the lower bound of the total number of stitches.
[0038] In detail, the key data of the template includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points included in the template sewing count, and the total number of stitches in the template.
[0039] Specifically, the template time interval between sewing two sewing objects is the time interval between finishing sewing one sewing object and starting to sew the next sewing object; in the same process, the total number of stitches for sewing a garment is relatively stable. Here, the segment length refers to the total number of event points generated when sewing a garment, and like the total number of stitches, the segment length is also relatively stable in the same process.
[0040] Optionally, the template time interval between two sewing objects corresponding to the template sewing data, the template segment length corresponding to the number of event points included in the template sewing data, and the total number of template stitches are obtained from the template sewing data; the template segment length and the total number of template stitches are calculated based on the template segment length and the total number of template stitches.
[0041] Optionally, the calculation methods for the lower bound of the segment length and the lower bound of the total number of stitches include:
[0042] By comparing the template segment length with the preset length, the lower bound of the segment length is calculated based on the corresponding segment length reduction factor.
[0043] Based on a preset total needle count reduction factor, the lower bound of the total needle count is calculated according to the total needle count of the template.
[0044] It should be noted that the segment length reduction factor and the total number of stitches reduction factor are set according to requirements.
[0045] Optionally, based on repeated experiments and experience, the preset length is 10. The lower bound of the segment length is calculated by comparing the template segment length with the preset length and using the corresponding segment length reduction factor as follows:
[0046] The preset length is used to determine whether the template segment length is greater than 10.
[0047] If the template segment length is less than 10, then the segment length reduction factor is 0.5, and the template segment length is multiplied by the segment length reduction factor to obtain the lower bound of the segment length, that is, the lower bound of the segment length = template segment length * 0.5;
[0048] If the template segment length is greater than 10, then the segment length reduction factor is 0.7, and the lower bound of the segment length is obtained by multiplying the template segment length by the segment length reduction factor, that is, the lower bound of the segment length = template segment length * 0.7.
[0049] Optionally, based on repeated experiments and experience, the total needle count reduction factor is 0.7. The method for calculating the lower bound of the total needle count based on the template total needle count using the preset total needle count reduction factor is as follows:
[0050] Multiply the total number of stitches in the template by the total number of stitches reduction factor to obtain the lower bound of the total number of stitches, that is, the lower bound of the total number of stitches = the total number of stitches in the template * 0.7.
[0051] Step S103: Based on the template key data, the lower bound of the segment length, and the lower bound of the total number of stitches, extract one or more actual segmentation event points from the sewing data stream.
[0052] Optionally, the main basis for segmenting the sewing data stream to be counted is the time interval, the total number of stitches, and the segment length. The time interval between finishing sewing one garment and starting to sew the next garment is often longer than the time interval during the sewing process of one garment. Therefore, positions with larger time intervals are likely to correspond to the completion of sewing one garment and the start of sewing the next garment.
[0053] Therefore, as Figure 2 As shown, step S103 includes:
[0054] Step S1031: Extract event points greater than the template time interval threshold from the sewing data stream to be counted, and use each extracted event point and the last event point as candidate segmentation points arranged in sequence; wherein, the template time interval threshold is half of the template time interval, that is, 0.5 * template time interval.
[0055] Step S1032: Determine whether the template segment length is equal to 2;
[0056] Step S1033: If so, then each candidate segmentation point is taken as the actual segmentation event point. That is, for a process with a segment length of 2, the point with the larger time interval is directly taken as the actual segmentation point.
[0057] Step S1034: If yes, based on the segmentation point traversal extraction rule, traverse each candidate segmentation point and extract one or more actual segmentation event points in sequence; wherein, the segmentation point traversal extraction principle is related to the lower bound of the segment length, the lower bound of the total number of stitches, and the calculated Euclidean distance between each candidate segmentation point and the template.
[0058] Optionally, step S1034 includes:
[0059] By comparing the calculated candidate segment points with the lower bound of the segment length and the lower bound of the total number of stitches of the sewing object obtained when each candidate segment point is used as the actual segment event point, and by comparing the calculated Euclidean distance between each candidate segment point and the template with the current standard distance, each actual segment event point is obtained in turn.
[0060] Specifically, when each candidate segmentation point is used as the end point of the sewing object of the current piece in turn, the segment length and total number of stitches between the corresponding starting point of the sewing object are obtained, that is, the segment length and total number of stitches of the sewing object of the current piece; it should be noted that the starting point can be the previous actual segmentation event point or the first event point.
[0061] The Euclidean distance between each candidate segment point and the template is calculated. This is based on the segment length and total number of stitches of the sewing object obtained when the current candidate segment point is used as the actual segmentation event point, as well as the segment length and total number of stitches of the template.
[0062] The segment length and total number of stitches of the current sewing object are compared with those of the current sewing object, and the calculated Euclidean distance is compared with the current standard distance. Based on the comparison results, the actual segmentation event points are obtained in sequence.
[0063] Optional, such as Figure 3 As shown, the actual segmentation event points are obtained by comparing the calculated candidate segmentation points with the lower bounds of the segment length and total stitch count of the sewing object, respectively, when each candidate segmentation point is used as an actual segmentation event point, and by comparing the calculated Euclidean distance between each candidate segmentation point and the template with the current standard distance.
[0064] Step 1: Take the first event point of the sewing data stream to be counted as the starting point and set the current standard distance to infinity, and take the first candidate split point as the current candidate point;
[0065] Step 2: Obtain the segment length and total number of stitches of the sewing object obtained when the current candidate point is used as the actual segmentation event point; that is, when each candidate segmentation point is used as the end point of the sewing object of the current piece in turn, obtain the segment length and total number of stitches between the start point of the corresponding sewing object, that is, the segment length and total number of stitches of the sewing object of the current piece.
[0066] Step 3: Determine if the current candidate point is the last candidate split point; if not, proceed to step 4; if yes, proceed to step 5.
[0067] Step 4: Execute the non-final point piecework process;
[0068] The non-final piece counting process includes:
[0069] Step 41: Determine whether the segment length and total number of stitches of the sewing object obtained when the current candidate point is used as the actual segmentation event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 42; if not, proceed to step 43.
[0070] Step 42: Execute the first piecework process;
[0071] The first piecework process includes:
[0072] Step 421: Calculate the Euclidean distance between the current candidate segment point and the template; that is, calculate the Euclidean distance between the current candidate segment point and the template based on the segment length and total number of stitches of the sewing object obtained when the current candidate segment point is used as the actual segmentation event point.
[0073] Step 422: Determine if the calculated Euclidean distance is less than the current standard distance; if yes, proceed to step 423; if no, proceed to step 424.
[0074] Step 423: Set this Euclidean distance as the current standard distance and return to step 43;
[0075] Step 424: Determine the current best split point and determine whether there are any easily confused split points that need to be replaced by the current best split point; if there are, proceed to step 425; if there are no, proceed to step 426; specifically, take the candidate split point before the current candidate point as the current best split point, and determine whether there are any easily confused split points that need to be replaced by the current best split point;
[0076] Step 425: Take the easily confused segmentation point as the actual segmentation event point, and take the actual segmentation event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece. Set the current standard distance to infinity, and take the next candidate segmentation point as the current candidate point. Then return to step 2.
[0077] Step 426: Take the best split point as the actual split event point, and take the actual split event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece. Set the current standard distance to infinity, and take the next candidate split point as the current candidate point. Then return to step 2.
[0078] Step 43: Select the next candidate segmentation point as the current candidate segmentation point, and return to step 2;
[0079] Step 5: Execute the final piecework calculation process; wherein, the execution of the final piecework calculation process includes:
[0080] Step 51: Calculate the Euclidean distance between the last candidate segment point and the template; that is, based on the segment length and total number of stitches of the sewing object obtained when the last candidate segment point is used as the actual segmentation event point, calculate the Euclidean distance between the current candidate segment point and the template.
[0081] Step 52: Determine if the calculated Euclidean distance is greater than the current standard distance; if yes, proceed to step 53; otherwise, proceed to step 54.
[0082] Step 53: Execute the second piecework process;
[0083] The second piecework process includes:
[0084] Step 531: Obtain the segment length and total number of stitches of the sewing object obtained when the last candidate segmentation point is used as the actual segmentation event point;
[0085] Step 532: Determine whether the segment length and total number of stitches of the sewing object obtained when the last candidate segment point is used as the actual segment event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 533; if no, proceed to step 534.
[0086] Step 533: Take the last candidate segmentation point as the actual segmentation event point to obtain a sewing object with the previous actual segmentation event point as the starting point and the previous actual segmentation event point as the ending point.
[0087] Step 534: Take the last candidate split point as the actual split event point to obtain a sewing object with the first event point of the sewing data stream as the starting point and the actual split event point as the ending point.
[0088] Step 54: Use the last candidate split point as the actual split event point to obtain a sewing object that starts with the first event point of the sewing data stream and ends with the actual split event point.
[0089] Preferred, such as Figure 3 As shown, determining the current optimal segmentation point and judging whether there are any easily confused segmentation points that need to be replaced at the current optimal segmentation point includes:
[0090] Step 4241: Take the previous candidate split point as the current best split point;
[0091] Step 4242: Determine whether the optimal segmentation point has a subsequent easily confused point; preferably, if the template segment length is greater than 4, and the second or fourth event point after the optimal segmentation point is also a candidate segmentation point, and the Euclidean distance between this point as the actual segmentation event point and the template is less than twice the current standard distance, that is, although the Euclidean distance is greater than the current standard distance, it is not much larger and the two are very close, then this point is called the subsequent easily confused point of the optimal segmentation point.
[0092] If not, proceed to step 4243; if yes, proceed with the process for replacing easily confused points.
[0093] The process for determining the replacement of easily confused points includes:
[0094] Step 42421: Determine whether there is a tail segmentation point and no head segmentation point in the template sewing data; specifically; preferably, if the time interval between the second-to-last event point or the fourth event point of the template sewing data is greater than the template time interval threshold, and the time interval between the third and fifth event points of the template is not greater than the template time interval threshold, then it is determined that there is a tail segmentation point and no head segmentation point; if yes, then proceed to step 425; if no, then proceed to step 4243.
[0095] Step 4243: Determine whether the optimal dividing point has a pre-confusion point; preferably, if the template segment length is greater than 4, and the second or fourth event point preceding the optimal dividing point is also a candidate dividing point, and the segment length and total number of stitches of the sewing object obtained when using this point as the actual dividing event point are greater than the template segment length and the template total number of stitches respectively, that is, the candidate point meets the minimum requirements for sewing a sewing object, then this point is called the pre-confusion point of the optimal dividing point; if it exists, then execute the pre-confusion point replacement judgment process; if it does not exist, then execute step 426;
[0096] The process for determining the replacement of easily confused points includes:
[0097] Step 42431: Determine whether there is a first parting point and no tail parting point in the template sewing data; preferably, if the previous candidate point has a pre-confusion point, and the time interval between the second-to-last event point and the fourth event point of the template sewing data is not greater than the template time interval threshold, and the time interval between the third or fifth event point of the template is greater than the template time interval threshold, then it is determined that there is a first parting point and no tail parting point; if yes, then proceed to step 425; if no, then proceed to step 426.
[0098] Step 104: Divide the sewing data stream by each actual segmentation event point, and obtain the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
[0099] Specifically, each actual segmentation event point is used as the end point of the current sewing object and the start point of the next sewing object. The data is then segmented at each actual segmentation event point to obtain the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
[0100] To better illustrate the above-mentioned intelligent piece counting method for sewing machines, the present invention provides the following specific embodiments.
[0101] Example 1: A method for intelligent piece counting in sewing machines. For example... Figure 4 The diagram shown is a schematic of intelligent piece counting for sewing machines.
[0102] The method includes:
[0103] 1. Input the data stream to be segmented data and the template template;
[0104] 2. Obtain the time interval of the first point of the template, i.e. the time interval between pieces std_interval, the length of the template std_length and the total number of stitches std_stitches, and calculate the lower bounds of the segment length and the total number of stitches lower_bound_length and lower_bound_stitches. Where lower_bound_length=std_length*len_reduce_factor, len_reduce_factor is the segment length reduction factor, when std_length<10, len_reduce_factor=0.5, std_length>=10, len_reduce_factor=0.7. lower_bound_stitches=std_stitches*0.7.
[0105] 3. For the data stream data, take points with time interval greater than std_interval (time interval)*0.5, plus the last point of data, take these points as candidate segmentation points candidate_points, if std_length (length of template) is equal to 2, then the candidate segmentation points are the actual segmentation points, the segmentation is completed, the piece counting ends, and the start and end time pairs of each piece and the number of pieces are output, otherwise, step 4 is executed;
[0106] 4. The starting point start of the first piece is set to 0, take out the second point of candidate_points, and set min_dis to infinity;
[0107] 5. Take the current candidate point as the end point end of a certain piece, calculate the length length from start to end and the total number of stitches stitches, if the candidate point is the last point of data, execute step 9, otherwise, execute step 6 6. If length is higher than lower_bound_length, and stitches is greater than lower_bound_stitches, . Otherwise, examine the next candidate point and return to step 5;
[0108] 7. If dis<min_dis, then update min_dis=dis, examine the next candidate point, return to step 5, otherwise, execute step 8;
[0109] 8. When the previous candidate point is used as the end, the minimum dis is the most similar to the template, and it is called the optimal split point. If the template length is greater than 4, and the second or fourth point after the optimal split point is also a candidate split point, and the distance dis between the candidate points formed with this point as the end and the template is less than twice min_dis (i.e., although dis is greater than min_dis, the difference is not significant, and the two are very close), then this point is called a later easily confused point of the optimal split point. Similarly, if the template length is greater than 4, and the second or fourth point before the optimal split point is also a candidate split point, and the total number of stitches and the segment length of the candidate points formed with this point as the end are greater than lower_bound_stitches and lower_bound_length respectively, meaning that this candidate point meets the minimum requirements for sewing a garment, then this point is called a earlier easily confused point of the optimal split point.
[0110] If the optimal split point has a subsequent easily confused point, and the time interval between the second-to-last or fourth point of the template is greater than std_interval*0.5 (called the tail split point), while the time interval between the third and fifth points of the template is not greater than std_interval*0.5, then the subsequent easily confused point replaces the optimal split point as the end point of this piece, and the subsequent easily confused point becomes the starting point of the next piece. `start` is updated, `min_dis` is set to infinity, the next candidate point is examined, and the process returns to step 5. Otherwise, if the previous candidate point has a previous easily confused point, and the time interval between the second-to-last and fourth points of the template is not greater than std_interval*0.5, while the time interval between the third or fifth point of the template is greater than std_interval*0.5 (called the head split point), then the previous easily confused point replaces the optimal split point as the end point of this piece, and the previous easily confused point becomes the starting point of the next piece. `start` is updated, `min_dis` is set to infinity, and the process returns to step 5. Otherwise, take the optimal split point as the end point of the current item and the starting point of the next item, update start, set min_dis to infinity, and return to step 5.
[0111] 9. Calculate the Euclidean distance dis between (length, stitches) and (std_length, std_titches). If dis is greater than min_dis, and if the optimal point is used as the start and the last candidate point is used as the end, its length is higher than lower_bound_length, and its stitches are greater than lower_bound_stitches, then use the optimal split point as the split point and divide the segment from start to last candidate point into two pieces. Otherwise, treat the segment from start to last candidate point as one piece. Once the split is complete, end the piece counting and output the start and end time pairs and the number of pieces for each piece.
[0112] Compared with existing intelligent piece counting algorithms, this embodiment has the following advantages:
[0113] 1. This algorithm achieves extremely high piece counting accuracy using only stitch count data. The intelligent piece counting algorithm proposed in patent CN107345346A relies on the presser foot lifting signal as a starting signal and also uses thread trimming data to determine the completion of a garment's sewing. However, the presser foot lifting signal and thread trimming signal might not be switched on, preventing the data acquisition device from collecting these two data points. Furthermore, if the worker trims the thread manually, the data acquisition device cannot collect the thread trimming data. Inaccurate piece counting is impossible when data is missing. This algorithm overcomes these problems.
[0114] 2. For processes with a segment length of 2, the point with the larger time interval is directly used as the actual dividing point, which is simple, efficient and accurate.
[0115] 3. The similarity between the candidate piece and the template is quantitatively measured by the Euclidean distance between the total number of stitches and the segment length of the candidate piece and the total number of stitches and the segment length of the template, which is simple and accurate.
[0116] 4. When determining the final segmentation point, easily confused points at the beginning and end were considered, and the features of the beginning and end of the template were referenced, cleverly solving the problem of the segmentation point being two or four points too far forward or backward.
[0117] Similar in principle to the above embodiments, the present invention provides an intelligent piece counting system for sewing machines.
[0118] The following specific embodiments are provided in conjunction with the accompanying drawings:
[0119] like Figure 5 This invention presents a schematic diagram of the structure of an intelligent piece counting system for sewing machines according to an embodiment of the present invention.
[0120] The system includes:
[0121] Input module 51 is used to input the sewing data stream to be counted and the template sewing data corresponding to sewing one sewing object;
[0122] The template sewing data processing module 52, connected to the upper input module 51, is used to obtain the template key data corresponding to the template sewing data based on the template sewing data, and calculate the lower bound of the segment length and the lower bound of the total number of stitches; wherein, the template key data includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points contained in the template sewing count, and the total number of template stitches;
[0123] The actual segmentation point acquisition module 53 is connected to the template sewing data processing module 52 and is used to extract one or more actual segmentation event points from the sewing data stream based on the template key data, the lower limit of the segment length and the lower limit of the total number of stitches.
[0124] The piece count acquisition module 54 is connected to the actual segmentation point acquisition module 53. It is used to segment the sewing data stream by each actual segmentation event point and obtain the start and end time of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
[0125] It should be noted that, as should be understood Figure 5 The division of modules in the system embodiment is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these units can be implemented entirely in software through processing element calls; they can be implemented entirely in hardware; or some units can be implemented by processing element calls to software, while others are implemented in hardware.
[0126] Since the implementation principle of the intelligent piece counting system for sewing machines has been described in the foregoing embodiments, it will not be repeated here.
[0127] like Figure 6 A schematic diagram of the structure of the intelligent piece counting terminal 10 for sewing machines in an embodiment of the present invention is shown.
[0128] The intelligent piece counting terminal 60 for the sewing machine includes: a memory 61 and a processor 62. The memory 61 is used to store computer programs; the processor 62 runs the computer programs to implement, for example, Figure 1 The aforementioned intelligent piece counting method for sewing machines.
[0129] Optionally, the number of memories 61 can be one or more, and the number of processors 62 can be one or more. Figure 6 Each example is taken as an instance.
[0130] Optionally, the processor 62 in the intelligent piece-counting terminal 60 of the sewing machine will perform the following... Figure 1 The steps described involve loading one or more instructions corresponding to the process of an application into memory 61, and having the processor 62 run the application stored in the first memory 61, thereby achieving the following: Figure 1 The various functions in the intelligent piece counting method for sewing machines.
[0131] Optionally, the memory 61 may include, but is not limited to, high-speed random access memory and non-volatile memory. For example, one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices; the processor 62 may include, but is not limited to, a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0132] Optionally, the processor 62 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0133] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed, implements as follows: Figure 1 The illustrated method for intelligent piece counting in sewing machines. The computer-readable storage medium may include, but is not limited to, floppy disks, optical disks, CD-ROMs (Read-Only Optical Disk Memory), magneto-optical disks, ROMs (Read-Only Memory), RAMs (Random Access Memory), EPROMs (Erasable Programmable Read-Only Memory), EEPROMs (Electrically Erasable Programmable Read-Only Memory), magnetic cards or optical cards, flash memory, or other types of media / machine-readable media suitable for storing machine-executable instructions. The computer-readable storage medium may be a product not connected to a computer device or a component used with a computer device.
[0134] In summary, the intelligent piece-counting system for sewing machines of the present invention, by inputting the sewing data stream to be counted and the template sewing data corresponding to sewing one piece, obtains the template key data corresponding to the template sewing data, calculates the lower bound of the segment length and the lower bound of the total number of stitches, extracts one or more actual segmentation event points from the sewing data stream, and segments the sewing data stream by each actual segmentation event point, thereby obtaining the start and end time of sewing for each piece of sewing in the sewing data stream and the number of sewing pieces corresponding to the sewing data stream. The present invention achieves extremely high piece-counting accuracy using only stitch count data, reduces operational steps, lowers the labor intensity of workers and production costs, and still ensures efficient and accurate piece-counting even in abnormal situations such as abnormal stops or rework. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has high industrial application value.
[0135] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method for intelligent piece counting in sewing machines, characterized in that, The method includes: Input the sewing data stream to be counted and the template sewing data corresponding to sewing one sewing object; Based on the template sewing data, obtain the template key data corresponding to the template sewing data, and calculate the lower bound of the segment length and the lower bound of the total number of stitches; wherein, the template key data includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points contained in the template sewing data, and the total number of template stitches; Based on the template key data, the lower bound of the segment length, and the lower bound of the total number of stitches, one or more actual segmentation event points are extracted from the sewing data stream; this includes: extracting event points greater than the template time interval threshold from the sewing data stream to be counted, and using each extracted event point and the last event point as candidate segmentation points arranged sequentially; wherein, the template time interval threshold is half of the template time interval; determining whether the template segment length is equal to 2; if yes, then setting each candidate segmentation point as an actual segmentation event point; if no, based on the segmentation point traversal extraction rule, traversing each candidate segmentation point and extracting one or more actual segmentation event points sequentially; wherein, the segmentation point traversal extraction rule is related to the lower bound of the segment length, the lower bound of the total number of stitches, and the calculated Euclidean distance between each corresponding candidate segmentation point and the template; The step of extracting one or more actual segmentation event points by traversing each candidate segmentation point according to the segmentation point traversal extraction rule includes: comparing the segment length and total number of stitches of the sewing object obtained when each candidate segmentation point is used as an actual segmentation event point with the lower bound of the segment length and the lower bound of the total number of stitches, respectively; and comparing the calculated Euclidean distance between each candidate segmentation point and the template with the current standard distance, thereby obtaining each actual segmentation event point in turn; wherein, the calculation method of the Euclidean distance between each candidate segmentation point and the template includes: calculating the Euclidean distance between the current candidate segmentation point and the template based on the segment length and total number of stitches of the sewing object obtained when the current candidate segmentation point is used as an actual segmentation event point, and the segment length and total number of stitches of the template. The sewing data stream is segmented by each actual segmentation event point, and the start and end times of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream are obtained.
2. The intelligent piece counting method for sewing machines according to claim 1, characterized in that, The process involves comparing the calculated candidate segmentation points, which are then used as actual segmentation event points, with the corresponding segment length and total stitch count of the sewing object, respectively, against the lower bounds of the segment length and total stitch count. Additionally, the calculated Euclidean distance between each candidate segmentation point and the template is compared sequentially with the current standard distance. This process yields the actual segmentation event points, including: Step 1: Take the first event point of the sewing data stream to be counted as the starting point and set the current standard distance to infinity, and take the first candidate split point as the current candidate point; Step 2: Obtain the segment length and total number of stitches of the sewing object obtained when the current candidate point is used as the actual segmentation event point; Step 3: Determine if the current candidate point is the last candidate split point; if not, proceed to step 4; if yes, proceed to step 5. Step 4: Execute the non-final point piecework process; The non-final piece counting process includes: Step 41: Determine whether the segment length and total number of stitches of the sewing object obtained when the current candidate point is used as the actual segmentation event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 42; if not, proceed to step 43. Step 42: Execute the first piecework process; The first piecework process includes: Step 421: Calculate the Euclidean distance between the current candidate segmentation point and the template; Step 422: Determine if the calculated Euclidean distance is less than the current standard distance; if yes, proceed to step 423; if no, proceed to step 424. Step 423: Set this Euclidean distance as the current standard distance and proceed with step 43; Step 424: Determine the current optimal split point and check if there are any easily confused split points that need to be replaced at the current optimal split point; if there are, proceed to step 425; if not, proceed to step 426. Step 425: Take the easily confused segmentation point as the actual segmentation event point, and take the actual segmentation event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece. Set the current standard distance to infinity, and take the next candidate segmentation point as the current candidate point. Then return to step 2. Step 426: Take the best split point as the actual split event point, and take the actual split event point as the end point of the sewing object of the current piece and the start point of the sewing object of the next piece. Set the current standard distance to infinity, and take the next candidate split point as the current candidate point. Then return to step 2. Step 43: Select the next candidate segmentation point as the current candidate segmentation point, and return to step 2; Step 5: Execute the final piecework calculation process; wherein, the execution of the final piecework calculation process includes: Step 51: Calculate the Euclidean distance between the last candidate split point and the template; Step 52: Determine if the calculated Euclidean distance is greater than the current standard distance; if yes, proceed to step 53; otherwise, proceed to step 54. Step 53: Execute the second piecework process; The second piecework process includes: Step 531: Obtain the segment length and total number of stitches of the sewing object obtained when the last candidate segmentation point is used as the actual segmentation event point; Step 532: Determine whether the segment length and total number of stitches of the sewing object obtained when the last candidate segment point is used as the actual segment event point are greater than the template segment length and the template total number of stitches, respectively; if yes, proceed to step 533; if no, proceed to step 534. Step 533: Take the last candidate segmentation point as the actual segmentation event point to obtain a sewing object with the previous actual segmentation event point as the starting point and the previous actual segmentation event point as the ending point. Step 534: Take the last candidate split point as the actual split event point to obtain a sewing object with the first event point of the sewing data stream as the starting point and the actual split event point as the ending point. Step 54: Use the last candidate split point as the actual split event point to obtain a sewing object that starts with the first event point of the sewing data stream and ends with the actual split event point.
3. The intelligent piece counting method for sewing machines according to claim 2, characterized in that, The process of determining the current optimal segmentation point and judging whether there are any easily confused segmentation points that need to be replaced at the current optimal segmentation point includes: Step 4241: Take the previous candidate split point as the current best split point; Step 4242: Determine whether the optimal segmentation point has any easily confused points; if not, proceed to step 4243; if yes, proceed to the easily confused point replacement judgment process. The process for determining the replacement of easily confused points includes: Step 42421: Determine whether there is a tail cutting point and no head cutting point in the template sewing data; if yes, proceed to step 425; if no, proceed to step 4243. Step 4243: Determine whether the optimal segmentation point has any easily confused points; if it does, execute the easily confused point replacement judgment process; if it does not, execute step 426. The process for determining the replacement of easily confused points includes: Step 42431: Determine whether there is a first part cutting point and no tail part cutting point in the template sewing data; If yes, proceed to step 425; otherwise, proceed to step 426.
4. The intelligent piece counting method for sewing machines according to claim 1, characterized in that, The calculation methods for the lower bound of the segment length and the lower bound of the total number of stitches include: By comparing the template segment length with the preset length, the lower bound of the segment length is calculated based on the corresponding segment length reduction factor. Based on a preset total needle count reduction factor, the lower bound of the total needle count is calculated according to the total needle count of the template.
5. The intelligent piece counting method for sewing machines according to claim 4, characterized in that, The step of calculating the lower bound of the segment length by comparing the template segment length with a preset length and based on the corresponding segment length reduction factor includes: Determine whether the length of the template segment is greater than 10; If the template segment length is less than 10, then the segment length reduction factor is 0.5, and the template segment length is multiplied by the segment length reduction factor to obtain the lower bound of the segment length; If the template segment length is greater than 10, then the segment length reduction factor is 0.7, and the lower bound of the segment length is obtained by multiplying the template segment length by the segment length reduction factor.
6. A smart piece-counting system for sewing machines, characterized in that, The system includes: The input module is used to input the sewing data stream to be counted and the template sewing data corresponding to sewing one sewing object; The template sewing data processing module, connected to the input module, is used to obtain the template key data corresponding to the template sewing data based on the template sewing data, and to calculate the lower bound of the segment length and the lower bound of the total number of stitches; wherein, the template key data includes: the template time interval between sewing two sewing objects, the template segment length corresponding to the number of event points contained in the template sewing data, and the total number of template stitches; The actual segmentation point acquisition module, connected to the template sewing data processing module, is used to extract one or more actual segmentation event points from the sewing data stream based on the template key data, the lower bound of the segment length, and the lower bound of the total number of stitches. This includes: extracting event points greater than the template time interval threshold from the sewing data stream to be counted, and using each extracted event point and the last event point as sequentially arranged candidate segmentation points; wherein the template time interval threshold is half of the template time interval; determining whether the template segment length is equal to 2; if yes, then setting each candidate segmentation point as an actual segmentation event point; if not, based on the segmentation point traversal extraction rule, traversing each candidate segmentation point and sequentially extracting one or more actual segmentation event points; wherein the segmentation point traversal extraction rule is related to the lower bound of the segment length, the lower bound of the total number of stitches, and the calculated Euclidean distance between each corresponding candidate segmentation point and the template. The step of extracting one or more actual segmentation event points by traversing each candidate segmentation point according to the segmentation point traversal extraction rule includes: comparing the segment length and total number of stitches of the sewing object obtained when each candidate segmentation point is used as an actual segmentation event point with the lower bound of the segment length and the lower bound of the total number of stitches, respectively; and comparing the calculated Euclidean distance between each candidate segmentation point and the template with the current standard distance, thereby obtaining each actual segmentation event point in turn; wherein, the calculation method of the Euclidean distance between each candidate segmentation point and the template includes: calculating the Euclidean distance between the current candidate segmentation point and the template based on the segment length and total number of stitches of the sewing object obtained when the current candidate segmentation point is used as an actual segmentation event point, and the segment length and total number of stitches of the template. The number of pieces acquisition module is connected to the actual segmentation point acquisition module. It is used to segment the sewing data stream by each actual segmentation event point and obtain the start and end time of sewing for each sewing object in the sewing data stream and the number of sewing objects corresponding to the sewing data stream.
7. A smart piece-counting terminal for sewing machines, characterized in that, include: One or more memories and one or more processors; The one or more memories are used to store computer programs; The one or more processors are connected to the memory and are used to run the computer program to perform the method as described in any one of claims 1 to 5.
8. A computer storage medium, characterized in that, The device contains a computer program that, when executed, implements the intelligent piece counting method for sewing machines as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent counting method for sewing machine, system, storage and sewing machine
CN107345346A
Real segmentation point judgment method and system, storage medium and electronic equipment
CN113569703A
Sewing machine automatic counting device
CN204608361U
