WO2024027225A1 - Optimal-segmentation-based intelligent piece counting method, apparatus, terminal and storage medium - Google Patents

Optimal-segmentation-based intelligent piece counting method, apparatus, terminal and storage medium Download PDF

Info

Publication number
WO2024027225A1
WO2024027225A1 PCT/CN2023/090546 CN2023090546W WO2024027225A1 WO 2024027225 A1 WO2024027225 A1 WO 2024027225A1 CN 2023090546 W CN2023090546 W CN 2023090546W WO 2024027225 A1 WO2024027225 A1 WO 2024027225A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
piece counting
piece
segmentation
optimal
Prior art date
Application number
PCT/CN2023/090546
Other languages
French (fr)
Chinese (zh)
Inventor
曾树杰
韩安太
单一舒
栗硕
曲凯朝
Original Assignee
杰克科技股份有限公司
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 杰克科技股份有限公司 filed Critical 杰克科技股份有限公司
Publication of WO2024027225A1 publication Critical patent/WO2024027225A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M7/00Counting of objects carried by a conveyor
    • G06M7/02Counting of objects carried by a conveyor wherein objects ahead of the sensing element are separated to produce a distinct gap between successive objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • the present invention relates to the technical field of garment piece counting, and in particular to an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation.
  • Piece counting is a very important link for garment factory production management and financial settlement.
  • the wage settlement of most garment factories is based on the piece-rate system.
  • the original piece-rate method was that each worker manually recorded the number of pieces processed, and the factory relied on the number of pieces delivered in the order. During settlement, the number of pieces was often inconsistent between the two parties, and it was difficult to trace. Right or wrong often leads to conflicts between factories and workers.
  • the current solutions mainly fall into two categories: the first is to add a piece counting module to the machine, and record the keystrokes every time a piece is finished (mostly seen in hanging systems); the second is to bundle two pieces on each package of pieces.
  • QR code scan the code with your mobile phone or RFID every time you complete a package.
  • the above method not only increases the operating steps and increases the labor intensity of workers, but also requires the installation of additional equipment outside the sewing machine, which increases production costs.
  • Some existing patents propose counting pieces by determining whether data such as sewing machine thread trimming, needle count, and presser foot lift meet set statistical rules.
  • the piece counting module of patent CN 107345346 B counts pieces based on whether the number of sewing stitches and the number of thread trimmings are within the set target value range.
  • the above method requires resetting the target number of thread trimmings and the number of stitches every time the process is switched, which is complicated to operate; it is not suitable for abnormal stops during the processing (such as thread breakage, bobbin thread replacement), rework, and manual thread trimming, and has poor applicability. ; Because the piece counting rules are too simple and cannot cover complex and changeable processes and processing conditions, the accuracy of piece counting is poor, making it difficult to apply and promote in actual production.
  • the purpose of the present invention is to provide an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation to solve the problems of inaccurate piece counting and low efficiency in the prior art.
  • the first aspect of the present invention provides an intelligent piece counting method based on optimal segmentation, including: obtaining process template data; obtaining sewing equipment operation data of the pieces to be sewn and intercepting the piece counting data window; according to the sewing characteristic parameters in the process template data, set the segmentation points between pieces for the piece counting data window; based on the segmentation points between pieces set in the piece counting data window, use
  • the optimal segmentation algorithm performs optimal piece counting on the piece counting data window, and updates the total number of pieces to be sewn to be counted based on the piece counting results of the optimal piece counting.
  • the method of obtaining process template data includes: during the sample sewing process, obtaining the process template data through a data acquisition module and a human-computer interaction module; or, according to standards Hours database compilation Obtain process template data from edited or exported sewing data.
  • the interception method of the piece counting data window includes any of the following: intercepting data of a fixed time length from the sewing equipment operation data as a piece counting data window; for the previous For the non-whole-piece legacy data after the piece counting is completed in the piece counting data window, the sewing equipment operating data is added and the needle value is accumulated until the total number of needles in the current piece counting data window is a preset integer multiple of the total number of needles in the process template data or a preset Stop signal; wherein, the calculation process of the total number of stitches in the current piece counting data window includes: taking the total number of stitches in the process template data as a benchmark, and dividing the total number of stitches in the current piece counting data window by the total number of stitches in the process template data.
  • the rounded-up value after is the multiplication multiple, which is obtained by multiplying the base and the multiplication multiple.
  • the first aspect of the present invention also includes pre-processing the process template data and the intercepted piece-rate data window data.
  • the pre-processing method includes: based on the time stamp, the process template data and the piece-rate data are pre-processed. Add time interval column data to the window data; delete the data items whose spindle motor stop time is less than the preset time to merge the data of the upper and lower adjacent items of the deleted data items; process the piece data window based on the data in the time interval column in the process template Abnormal data in the time interval column; normalize the process template data and piece counting data window data.
  • setting segmentation points between pieces for the piece counting data window based on sewing characteristic parameters in the process template data includes setting segmentation points between pieces based on the sewing characteristics.
  • Segmenting the material picking and placing time in the parameters includes: using the data item in the time interval column of the piece counting data window that is greater than the product of the material picking and placing time and a preset threshold as the segmentation point.
  • the use of an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window includes: based on the segmentation points between pieces set in the piece counting data window. , divide the data in the piece counting data window into multiple segments of segmented data; calculate the distance between each segmented data and the process template data; calculate the segmentation based on the distance between all segmented data and the process template data. Segment loss function; find the minimum value of the segmentation loss function to obtain the number of segments and segmentation method corresponding to the minimum value; based on the number of segments and segmentation method corresponding to the minimum value, obtain each segmentation loss function.
  • the total number of needles in the segmented data and based on whether the total number of needles is less than the needle number threshold set based on the total number of needles in the process template data, determine whether the segment is included in the number of pieces; output the piece count of the piece counting data window Result information.
  • calculating the segmentation loss function based on the distance between all segmented data and the process template data includes: calculating the distance between each segmented data and the process template data. The sum of distances is the piecewise loss function.
  • the second aspect of the present invention provides an intelligent piece counting device based on optimal segmentation, including: a template module for obtaining process template data; an interception module for obtaining sewing parts to be counted The operating data of the sewing equipment and intercept the piece counting data window; the segmentation module is used to calculate the sewing characteristic parameters based on the process template data.
  • the data window performs optimal piece counting, and updates the total number of pieces to be sewn to be counted based on the piece counting results of the optimal piece counting.
  • a third aspect of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the intelligent piece counting based on optimal segmentation is implemented. method.
  • a fourth aspect of the present invention provides an intelligent piece counting terminal, including: a processor and a memory; the memory is used to store computer programs, and the processor is used to execute the computer stored in the memory.
  • a program is provided to cause the terminal to execute the intelligent piece counting method based on optimal division.
  • the intelligent piece counting method, device, terminal and storage medium based on optimal segmentation of the present invention have the following beneficial effects:
  • the technical solution of the present invention has strong applicability and high piece counting accuracy: accurate piece counting can be obtained by using the most basic operating data of the sewing machine (number of stitches, spindle motor start and stop time), combined with the optimal segmentation algorithm and distance algorithm, so There will be no situation where pieces cannot be counted when there is no thread trimming or when the presser foot is raised.
  • the present invention can identify sewing abnormalities (such as rework, non-compliance with sewing process requirements, etc.) during the piece counting process, and can help workers discover quality problems in time, avoid unnecessary rework, and improve sewing efficiency.
  • sewing abnormalities such as rework, non-compliance with sewing process requirements, etc.
  • the present invention can accurately identify the time point (accurate segmentation) when each piece starts and ends sewing, providing workers with learning curve analysis, efficiency analysis, skill evaluation, and equipment utilization rate analysis. Possibility is provided.
  • Figure 1 shows a schematic flowchart of an intelligent piece counting method based on optimal segmentation in an embodiment of the present invention.
  • FIG. 2 shows a schematic flowchart of intercepting the piece counting data window in an embodiment of the present invention.
  • Figure 3 shows a schematic structural diagram of an intelligent piece counting terminal in an embodiment of the present invention.
  • Figure 4 shows a schematic structural diagram of an intelligent piece counting device based on optimal segmentation in an embodiment of the present invention.
  • connection can be a fixed connection or a fixed connection. It is a detachable connection or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components.
  • connection can be a fixed connection or a fixed connection. It is a detachable connection or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components.
  • A, B or C or "A, B and/or C” means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C” . Exceptions to this definition occur only when a combination of elements, functions, or operations is inherently mutually exclusive in some manner.
  • the present invention proposes a piece counting method based on segmentation of sewing machine operating data.
  • the piece counting is performed by optimally segmenting a section of sewing machine operating data and combining it with a similarity measurement method.
  • the sewing machine operating data used only the spindle motor start and stop, and stitch count data can be used to achieve high piece counting accuracy and segmentation accuracy.
  • Data such as thread trimming and presser foot lifting can also be added to further improve piece counting. accuracy.
  • this method can identify sewing abnormalities (rework, non-compliance with process sewing requirements) during the piece counting process, helping workers discover quality problems in time and avoid unnecessary rework.
  • the intelligent piece counting method in this embodiment mainly includes the following steps:
  • Step S11 Obtain process template data.
  • the method of obtaining process template data includes any of the following:
  • the process template data is obtained through the data collection module and human-computer interaction module.
  • the data collection module includes, but is not limited to, an NFC card reader, a QR code/barcode reader, etc.
  • the human-computer interaction module includes, but is not limited to, a touch screen that implements data collection in response to a user's touch operation or through a Voice interaction modules that analyze speech and realize data collection, etc.
  • Standard working hours refer to the time required to complete a certain operation at a normal speed by qualified and well-trained operators under certain standard conditions and using certain operating methods; standard working hours consist of standard operating time and standard preparation time. , specifically including effective operating time and time consumed in preparation before and during the event.
  • the standard working hours database is a database used to record and store standard working hours. Therefore, sewing data edited or exported from the standard working hours library can be used as process template data.
  • the process template data includes but is not limited to spindle motor start and stop time data, sewing stitch number data, etc.
  • the process template data also includes a time interval column.
  • the first data in the time interval column is the material picking and placing time. This material picking and placing time can also be included in the last data item. This is consistent with the collection of the process template. It is related to the setting of data, which is not limited in this embodiment.
  • Step S12 Obtain the sewing equipment operating data of the piece to be sewn and intercept the piece counting data window.
  • the sewing equipment operation data of the pieces to be sewn is obtained through a data interface; the data interface includes but is not limited to a serial port/COM port, USB interface, RS232 interface, RS485 interface, etc.
  • Common formats of the sewing equipment operating data include (time stamp, event type, value), for example, where the event types include but are not limited to spindle motor start, stop, thread trimming, presser foot lift, seam reinforcement, etc.
  • the piece counting data window refers to the data segment used to analyze the number of processed pieces
  • the interception method of the piece counting data window includes any of the following:
  • Interception method 1 intercept data of a fixed time length from the sewing equipment operation data as a piece counting data window.
  • Interception method 2 For the non-whole-piece legacy data after the piece counting is completed in the previous piece counting data window, add the sewing equipment operating data and accumulate the needle value until the total number of needles in the current piece counting data window is the preset total number of needles in the process template data An integer multiple or a preset stop signal appears; wherein, the calculation process of the total number of stitches in the current piece counting data window includes: taking the total number of stitches in the process template data as a benchmark, and dividing by the total number of stitches in the current piece counting data window The rounded-up value after the total number of stitches in the process template data is used as the multiplication multiple, and is obtained by multiplying the base and the multiplication multiple.
  • the preset stop signal includes but does not include It is limited to signals such as resting, changing processes or shutting down the machine.
  • Level is a storage space. Whether Level is empty indicates whether there is non-whole piece data left in the previous piece counting data window after piece counting is completed.
  • the flag Level is only initialized to empty when switching processes; if the flag Level is empty, it means the above A piece-rate data window has no incomplete piece data left after piece counting is completed; otherwise, it means that the previous piece-rate data window has incomplete piece data left after piece counting is completed.
  • Level is not empty, in the current piece counting data window, first read the data in Level, then read in the additional sewing machine operating data, and accumulate the needle value.
  • the process template data and the intercepted piece data window data are preprocessed.
  • the preprocessing process includes but is not limited to the following:
  • Preprocessing 1 Add time interval column data to the process template data and piece counting data window data according to the timestamp; the time interval column data is one of the main consideration dimensions of piece counting, so it needs to be added to both the process template data and the piece counting data window data. .
  • Preprocessing 2 Delete the data items whose stop time of the spindle motor is less than the preset time to merge the data of the upper and lower adjacent items of the deleted data items; the merged data includes the spindle motor running needle number data, time interval data, etc. Data merging can effectively reduce the amount of data and reduce the amount of calculations.
  • Preprocessing 3 Process the abnormal data in the time interval column in the piece counting data window based on the data in the time interval column in the process template. Specifically, you can first take the maximum value max in the time interval column in the process template, and then replace all values greater than the maximum value max in the time interval column in the piece counting data window with the maximum value max.
  • Preprocessing 4 Normalize the process template data and piece counting data window data.
  • normalization processing is to convert multi-dimensional similarity measures into dimensionless data, usually in the range [0,1]; the normalization processing method used can be min-max linear function normalization, min and max are the minimum and maximum values respectively.
  • min-max linear function normalization is to linearly transform the original data so that the result is mapped to the range of [0,1] to achieve proportional scaling of the original data.
  • Step S13 Set segmentation points between pieces for the piece counting data window according to the sewing characteristic parameters in the process template data.
  • the sewing characteristic parameters include but are not limited to: material picking and unloading time data, presser foot lifting data, thread trimming data or bartack data, etc.
  • pick-and-place time data as an example.
  • the possible segmentation points are set as: data items in the piece counting data window whose time interval column is greater than (pick-and-place time*threshold).
  • the threshold (time_threshold) can be, for example, Set to 0.5, the advantage of this design is to reduce the calculation amount of the optimal split piece counting module, which is especially obvious for long processes (processes with a large amount of data in the last shift).
  • Step S14 Based on the segmentation points between pieces set in the piece counting data window, use an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window.
  • the ordered sample clustering algorithm is also called the optimal segmentation algorithm.
  • samples are mixed together and classified according to distance or similarity coefficient standards, but the order of the original samples cannot be disrupted during clustering.
  • samples at the same stage are required to be connected to each other, that is, when clustering, samples must be sequentially adjacent to be in one category.
  • Step S141 Divide the data in the piece counting data window into multiple pieces of segmented data according to the set segmentation points between pieces in the piece counting data window.
  • Step S142 Calculate the distance between each segmented data and the process template data.
  • a dynamic time warping algorithm may be used to calculate the distance between each piece of segmented data and the process template data.
  • each piece of segmented data and the process template data are separately subjected to one-hot encoding processing based on the sewing characteristic parameters; a dynamic time warping algorithm is used to calculate the relationship between each piece of segmented data and the process based on each sewing characteristic parameter.
  • the distance value between the template data, and the smallest distance value is taken as the distance value between this segment data and the process template data; the larger the distance value, the greater the similarity between the segment data and the process template data The worse it is; on the contrary, it means the similarity between the two is better.
  • the sewing characteristic parameters include but are not limited to: material picking and unloading time data, presser foot lifting data, thread trimming data or bartack seaming data, etc.
  • DTW Dynamic Time Warping
  • the DTW algorithm is widely used in template matching problems and can better solve the problem of two independent time series.
  • the problem of group data being difficult to compare due to different lengths.
  • distance is measured using the Euclidean distance method.
  • the distance is measured using the Euclidean distance method, and the Manhattan distance can also be used for calculation.
  • a Euclidean distance algorithm may be used to calculate the distance between each piece of segmented data and the process template data. Specifically, the statistical features between each segmented data and the process template data are respectively extracted, and the Euclidean distance between each segmented data and the process template data is calculated based on the statistical features; the larger the Euclidean distance value, the greater the segmentation. The worse the similarity between the data and the process template data; conversely, the better the similarity between the two; the statistical characteristics include but are not limited to the total number of needles, data length, pick-and-place time (i.e., the time interval column first data) etc.
  • Step S143 Calculate the segmentation loss function based on the distance between all segmented data and the process template data.
  • the segmentation loss function is the sum of the distances between each segmented data and the process template data, expressed as:
  • P(n,k) represents the segmentation method that divides n ordered data into k categories and makes the segmentation loss function reach the minimum value. The larger the value of the segmentation loss function, the worse the segmentation effect, and vice versa.
  • Step S144 Find the minimum value of the segmentation loss function to obtain the number of segments and the segmentation method corresponding to the minimum value.
  • the minimum value of the piecewise loss function can be solved by solving the minimum loss function matrix L[P(n,k)].
  • n len (possible segmentation point data), and the value range of k is [pieces-2, pieces+2]; the possible segmentation point data is the seam in the process template data in the above step S13.
  • the custom feature parameter sets the segmentation point between pieces in the piece counting data window. Calculate the number of segments k and segmentation method P(n,k) corresponding to the minimum value of L[P(n,k)] in the segmentation loss function matrix.
  • Step S145 Based on the number of segments and the segmentation method corresponding to the minimum value, obtain the total number of needles in each segment of segmented data, and determine whether the total number of needles is less than the needle number threshold set based on the total number of needles in the process template data. , determine whether the segment is included in the number of pieces.
  • the needle number threshold set based on the total number of needles of the process template data can be set to (the total number of needles of the process template data * 0.6), if the total number of needles of the segmented data ⁇ (the total number of needles of the process template data Number of stitches * 0.6), then the segmented data of this section will not be included in the number of pieces, and it will prompt that the products sewn in this time period are most likely to be defective products (there is rework or abnormal sewing).
  • Step S146 Output the piece counting result information of the piece counting data window.
  • the piece counting result information is output, and the last segment of data is assigned to level. Therefore, except for the last segment of data and the data that is judged to be defective and is not included in the piece count, the other segments of data are included in the piece count. .
  • Step S15 Update the total piece number of the sewing parts to be counted according to the optimal piece counting result of the piece counting data window.
  • the piece count obtained in the above step S14 is added to the total piece count; if a preset stop signal (such as a break, process change, or shutdown signal) appears at the end of the piece count window data, the total piece count is added. Increment the number of pieces by 1 and initialize level to empty.
  • a preset stop signal such as a break, process change, or shutdown signal
  • the smart piece counting method provided by the embodiment of the present invention can be implemented on the terminal side or the server side.
  • the hardware structure of the smart piece counting terminal please refer to Figure 3, which is an optional hardware of the smart piece counting terminal 300 provided by the embodiment of the present invention.
  • Structural diagram shows that the terminal 300 can be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory backend processing device, etc.
  • the smart piece counting terminal 300 includes: at least one processor 301, a memory 302, at least one network interface 304 and a user interface 306.
  • the various components in the device are coupled together through bus system 305 .
  • the bus system 305 is used to implement connection communication between these components.
  • the bus system 305 also includes a power bus, a control bus and a status signal bus.
  • various buses are labeled as bus systems in Figure 3.
  • the user interface 306 may include a display, keyboard, mouse, trackball, click gun, keys, buttons, touch pad or touch screen, etc.
  • the memory 302 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory) or a programmable read-only memory (PROM, Programmable Read-Only Memory), which is used as an external cache.
  • ROM Read Only Memory
  • PROM Programmable Read-Only Memory
  • RAM random access memory
  • SSRAM synchronous static random access memory
  • Memories described in embodiments of the present invention are intended to include, but are not limited to, these and any other suitable categories of memory.
  • the memory 302 in the embodiment of the present invention is used to store various types of data to support the operation of the intelligent piece counting terminal 300 .
  • Examples of these data include: any executable program used to operate on the intelligent piecework terminal 300, such as operating system 3021 and application program 3022; operating system 3021 includes various system programs, such as framework layer, core library layer, driver layer, etc. , used to implement various basic services and handle hardware-based tasks.
  • the application program 3022 may include various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. Implementation of the intelligent piece counting method provided by the embodiment of the present invention may be included in the application program 3022.
  • the methods disclosed in the above embodiments of the present invention can be applied to the processor 301 or implemented by the processor 301.
  • the processor 301 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 301 .
  • the above-mentioned processor 301 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSP Digital Signal Processor
  • the processor 301 can implement or execute each method, step and logical block diagram disclosed in the embodiment of the present invention.
  • the general processor 301 may be a microprocessor or any conventional processor, etc.
  • the steps of the accessory optimization method provided by the embodiments of the present invention can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in a memory.
  • the processor reads the information in the memory and completes the steps of the foregoing method in combination with its hardware.
  • the smart piece counting terminal 300 may be configured by one or more Application Specific Integrated Circuits (ASICs, Application Specific Integrated Circuits), DSPs, Programmable Logic Devices (PLDs, Programmable Logic Devices), Complex Programmable Logic Devices (CPLD, Complex Programmable LogicDevice), used to execute the aforementioned method.
  • ASICs Application Specific Integrated Circuits
  • DSPs Digital Signal processors
  • PLDs Programmable Logic Devices
  • CPLD Complex Programmable Logic Devices
  • CPLD Complex Programmable LogicDevice
  • the intelligent piece counting device 400 in this embodiment includes a template module 401, an interception module 402, a segmentation module 403 and a piece counting module 404.
  • a template module 401 is included for obtaining process template data.
  • the template module 401 obtains the process template data by: during the sample sewing process, obtaining the process template data through the data collection module and the human-computer interaction module; or, editing or exporting it according to the standard working hours library
  • the sewing data obtains the process template data.
  • the interception module 402 is used to obtain the sewing equipment operating data of the pieces to be sewn and intercept the piece counting data window.
  • the interception module 402 intercepts the piece counting data window by: intercepting data of a fixed time length from the sewing equipment operating data as the piece counting data window; or, for the piece counting data window after completing the piece counting, For non-whole-piece legacy data, add sewing equipment operating data and accumulate needle values until the total number of needles in the current piece counting data window is a preset integer multiple of the total number of needles in the process template data or a preset stop signal appears; wherein, the The calculation process of the total number of stitches in the current piece-counting data window includes: taking the total number of stitches in the process template data as the benchmark, and dividing the total number of stitches in the current piece-counting data window by the total number of stitches in the process template data, and the rounded-up value is The multiplication factor is obtained by multiplying the base and the multiplication factor.
  • the intelligent piece counting device 400 also includes a preprocessing module 405 for processing the process template data with and intercepted piece-counting data window data for preprocessing.
  • the pre-processing methods include: adding time interval column data to the process template data and piece-counting data window data according to the timestamp; deleting data items whose spindle motor stop time is less than the preset time. To merge the data of the upper and lower adjacent items of the deleted data items; according to the data of the time interval column in the process template, process the abnormal data of the time interval column in the piece-rate data window; classify the process template data and piece-rate data window data Unified processing.
  • the segmentation module 403 is used to set segmentation points between pieces for the piece counting data window according to the sewing characteristic parameters in the process template data.
  • the segmentation method of the segmentation module 403 includes: using the data items in the time interval column of the piece counting data window that are greater than the product of the pick-and-place material time and a preset threshold as segmentation points.
  • the piece counting module 404 is configured to perform optimal piece counting on the piece counting data window using an optimal segmentation algorithm based on the segmentation points between pieces set in the piece counting data window, and update the piece counting results according to the optimal piece counting result. Indicates the total number of pieces to be sewn.
  • the piece counting module 404 uses an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window, including: dividing the piece counting data according to the segmentation points between pieces set in the piece counting data window.
  • the data in the data window is divided into multiple segments of segmented data; the distance between each segmented data and the process template data is calculated; the segmentation loss function is calculated based on the distance between all segmented data and the process template data; and Take the minimum value of the segmentation loss function to obtain the segmentation number and segmentation method corresponding to the minimum value; based on the segmentation number and segmentation method corresponding to the minimum value, obtain the segmentation data of each segment
  • calculating the segmentation loss function based on the distance between all segmented data and the process template data includes: taking the sum of the distances between each segmented data and the process template data as the segmentation loss. function.
  • the present invention also provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the intelligent piece counting method based on optimal segmentation is implemented.
  • the aforementioned computer program can be stored in a computer-readable storage medium.
  • the steps including the above-mentioned method embodiments are executed; and the aforementioned storage media include: ROM, RAM, magnetic disks, optical disks and other media that can store program codes.
  • the computer readable and writable storage medium may include read-only memory, random access memory, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, A USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by the computer. Also, any connection is properly termed a computer-readable medium.
  • coaxial cable fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial Electrical cables, fiber optic cables, twisted pairs, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium.
  • computer readable and writable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, and are instead intended for non-transitory, tangible storage media.
  • Disks and optical disks include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs. Disks typically copy data magnetically, while discs use lasers to optically copy data. Copy the data locally.
  • the present invention provides an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation.
  • the technical solution of the present invention has strong applicability and high piece counting accuracy: using the most basic operating data of the sewing machine (number of needles, spindle motor Start and stop time), combined with the optimal segmentation algorithm and distance algorithm, accurate piece counting can be obtained, so there will be no situation where piece counting cannot occur when there is no thread trimming or presser foot lifting data; the present invention can identify sewing abnormalities during the piece counting process (such as rework, non-compliance with sewing process requirements, etc.), it can help workers find quality problems in time, avoid unnecessary rework, and improve sewing efficiency; the technical solution of the present invention is easy to use, does not require additional operations by workers, and has process template data It can be obtained during sample processing or process decomposition.
  • the entire piece counting process does not require workers to press buttons or scan codes, and is completed automatically; during the piece counting process, the present invention can accurately identify the time points at which each piece starts and ends sewing ( Accurate segmentation) provides the possibility for worker learning curve analysis, efficiency analysis, skill evaluation, and equipment utilization rate analysis. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

Abstract

The present invention provides an optimal-segmentation-based intelligent piece counting method, an apparatus, a terminal and a storage medium. The method comprises: acquiring process template data; acquiring sewing apparatus operation data of sewn pieces to be counted, and cropping a piece counting data window; according to sewing feature parameters in the process template data, setting a segmentation point between pieces for the piece counting data window; on the basis of the set segmentation point between pieces in the piece counting data window, carrying out optimal piece counting on the piece counting data window by using an optimal segmentation algorithm; and updating the total piece counting number of said sewn pieces according to a piece counting result of optimal piece counting. The present invention has high applicability and high piece counting accuracy; abnormal sewing situations can be identified during the piece counting process, thus discovering quality problems promptly; the use is easy, requiring no additional operation of workers; and during the piece counting process, sewing start and sewing end time points of each piece can be accurately recognized, thereby facilitating analysis.

Description

基于最优分割的智能计件方法、装置、终端及存储介质Intelligent piece counting method, device, terminal and storage medium based on optimal segmentation 技术领域Technical field
本发明涉及服装计件技术领域,特别是涉及基于最优分割的智能计件方法、装置、终端及存储介质。The present invention relates to the technical field of garment piece counting, and in particular to an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation.
背景技术Background technique
计件对于服装厂生产管理、财务结算是一个非常重要的环节。绝大部分服装厂的工资结算都是计件制,最初的计件方式是每个工人手动记录自己的加工件数,工厂以订单交付件数为准,结算时经常出现双方件数不一致的情况,加上难以追溯对错,往往导致工厂与工人的矛盾。针对该问题,目前的解决方案主要有2类:第一类是机器加装计件模块,每做完一件,按键记录(多见于吊挂系统);第二类是在每包裁片上捆绑二维码,每完成一包就用手机或者RFID扫码。上述方式不仅增加了操作步骤,加大了工人的劳动强度,而且需要在缝纫机外部加装设备,又增加了生产成本。Piece counting is a very important link for garment factory production management and financial settlement. The wage settlement of most garment factories is based on the piece-rate system. The original piece-rate method was that each worker manually recorded the number of pieces processed, and the factory relied on the number of pieces delivered in the order. During settlement, the number of pieces was often inconsistent between the two parties, and it was difficult to trace. Right or wrong often leads to conflicts between factories and workers. In response to this problem, the current solutions mainly fall into two categories: the first is to add a piece counting module to the machine, and record the keystrokes every time a piece is finished (mostly seen in hanging systems); the second is to bundle two pieces on each package of pieces. QR code, scan the code with your mobile phone or RFID every time you complete a package. The above method not only increases the operating steps and increases the labor intensity of workers, but also requires the installation of additional equipment outside the sewing machine, which increases production costs.
现有的一些专利提出,通过判定缝纫机剪线、针数、抬压脚等数据是否符合设定的统计规则来计件。例如专利CN 107345346 B的计件模块根据缝制针数、剪线次数是否在设定目标值范围计件。上述方法,每次切换工序都要重新设定目标剪线次数、针数,操作复杂;对于加工过程中异常停止(如断线、换底线)、返工、手动剪线的情况不适用,适用性差;由于计件规则过于简单,不能覆盖复杂多变的工序、加工情况,计件准确率差,在实际的生产中难以应用、推广。Some existing patents propose counting pieces by determining whether data such as sewing machine thread trimming, needle count, and presser foot lift meet set statistical rules. For example, the piece counting module of patent CN 107345346 B counts pieces based on whether the number of sewing stitches and the number of thread trimmings are within the set target value range. The above method requires resetting the target number of thread trimmings and the number of stitches every time the process is switched, which is complicated to operate; it is not suitable for abnormal stops during the processing (such as thread breakage, bobbin thread replacement), rework, and manual thread trimming, and has poor applicability. ; Because the piece counting rules are too simple and cannot cover complex and changeable processes and processing conditions, the accuracy of piece counting is poor, making it difficult to apply and promote in actual production.
发明内容Contents of the invention
鉴于以上所述现有技术的缺点,本发明的目的在于提供基于最优分割的智能计件方法、装置、终端及存储介质,用于解决现有技术中计件不准确且效率较低等问题。In view of the above shortcomings of the prior art, the purpose of the present invention is to provide an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation to solve the problems of inaccurate piece counting and low efficiency in the prior art.
为实现上述目的及其他相关目的,本发明的第一方面提供一种基于最优分割的智能计件方法,包括:获取工序模板数据;获取待计件缝制件的缝制设备运行数据并截取计件数据窗口;根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点;基于所述计件数据窗口中设置的件与件之间的分段点,使用最优分割算法对所述计件数据窗口进行最优计件,并根据最优计件的计件结果更新所述待计件缝制件的总计件数。In order to achieve the above objectives and other related objectives, the first aspect of the present invention provides an intelligent piece counting method based on optimal segmentation, including: obtaining process template data; obtaining sewing equipment operation data of the pieces to be sewn and intercepting the piece counting data window; according to the sewing characteristic parameters in the process template data, set the segmentation points between pieces for the piece counting data window; based on the segmentation points between pieces set in the piece counting data window, use The optimal segmentation algorithm performs optimal piece counting on the piece counting data window, and updates the total number of pieces to be sewn to be counted based on the piece counting results of the optimal piece counting.
于本发明的第一方面的一些实施例中,所述获取工序模板数据的方式包括:在样衣缝制过程中,通过数据采集模块和人机交互模块来获取工序模板数据;或者,根据标准工时库编 辑或导出的缝制数据获取工序模板数据。In some embodiments of the first aspect of the present invention, the method of obtaining process template data includes: during the sample sewing process, obtaining the process template data through a data acquisition module and a human-computer interaction module; or, according to standards Hours database compilation Obtain process template data from edited or exported sewing data.
于本发明的第一方面的一些实施例中,所述计件数据窗口的截取方式包括如下任一种:从所述缝制设备运行数据中截取固定时间长度的数据作为计件数据窗口;对于上一个计件数据窗口完成计件后的非整件遗留数据,追加缝制设备运行数据并累加针数值,直至当前计件数据窗口的总针数是工序模板数据总针数的预设整数倍或者出现预设的停止信号;其中,所述当前计件数据窗口的总针数的计算过程包括:以所述工序模板数据总针数为基准,并以当前计件数据窗口的总针数除以工序模板数据总针数后的向上取整值为相乘倍数,将基准和相乘倍数相乘得到。In some embodiments of the first aspect of the present invention, the interception method of the piece counting data window includes any of the following: intercepting data of a fixed time length from the sewing equipment operation data as a piece counting data window; for the previous For the non-whole-piece legacy data after the piece counting is completed in the piece counting data window, the sewing equipment operating data is added and the needle value is accumulated until the total number of needles in the current piece counting data window is a preset integer multiple of the total number of needles in the process template data or a preset Stop signal; wherein, the calculation process of the total number of stitches in the current piece counting data window includes: taking the total number of stitches in the process template data as a benchmark, and dividing the total number of stitches in the current piece counting data window by the total number of stitches in the process template data. The rounded-up value after is the multiplication multiple, which is obtained by multiplying the base and the multiplication multiple.
于本发明的第一方面的一些实施例中,还包括对所述工序模板数据以及截取到的计件数据窗口数据做预处理,预处理方式包括:根据时间戳为所述工序模板数据以及计件数据窗口数据添加时间间隔列数据;将主轴电机停止时间小于预设时间的数据项删除以合并被删除数据项的上、下相邻项数据;根据工序模板中时间间隔列的数据,处理计件数据窗口中时间间隔列的异常数据;将所述工序模板数据和计件数据窗口数据做归一化处理。In some embodiments of the first aspect of the present invention, it also includes pre-processing the process template data and the intercepted piece-rate data window data. The pre-processing method includes: based on the time stamp, the process template data and the piece-rate data are pre-processed. Add time interval column data to the window data; delete the data items whose spindle motor stop time is less than the preset time to merge the data of the upper and lower adjacent items of the deleted data items; process the piece data window based on the data in the time interval column in the process template Abnormal data in the time interval column; normalize the process template data and piece counting data window data.
于本发明的第一方面的一些实施例中,所述根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点,包括基于所述缝制特征参数中的取放料时间进行分段,包括:以所述计件数据窗口的时间间隔列中大于所述取放料时间与一预设阈值的乘积的数据项作为分段点。In some embodiments of the first aspect of the present invention, setting segmentation points between pieces for the piece counting data window based on sewing characteristic parameters in the process template data includes setting segmentation points between pieces based on the sewing characteristics. Segmenting the material picking and placing time in the parameters includes: using the data item in the time interval column of the piece counting data window that is greater than the product of the material picking and placing time and a preset threshold as the segmentation point.
于本发明的第一方面的一些实施例中,所述使用优分割算法对所述计件数据窗口进行最优计件,包括:根据所述计件数据窗口中设置的件与件之间的分段点,将所述计件数据窗口中的数据分割为多段分段数据;计算各分段数据与所述工序模板数据之间的距离;基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数;求取所述分段损失函数的最小值以获取所述最小值所对应的分段数及分段方式;基于所述最小值所对应的分段数及分段方式,得到每段分段数据的总针数,并根据总针数是否小于基于工序模板数据的总针数设置的针数阈值,判断该分段是否被计入件数;输出所述所述计件数据窗口的计件结果信息。In some embodiments of the first aspect of the present invention, the use of an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window includes: based on the segmentation points between pieces set in the piece counting data window. , divide the data in the piece counting data window into multiple segments of segmented data; calculate the distance between each segmented data and the process template data; calculate the segmentation based on the distance between all segmented data and the process template data. Segment loss function; find the minimum value of the segmentation loss function to obtain the number of segments and segmentation method corresponding to the minimum value; based on the number of segments and segmentation method corresponding to the minimum value, obtain each segmentation loss function. The total number of needles in the segmented data, and based on whether the total number of needles is less than the needle number threshold set based on the total number of needles in the process template data, determine whether the segment is included in the number of pieces; output the piece count of the piece counting data window Result information.
于本发明的第一方面的一些实施例中,所述基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数,包括:以各段分段数据与工序模板数据之间的距离之和为所述分段损失函数。In some embodiments of the first aspect of the present invention, calculating the segmentation loss function based on the distance between all segmented data and the process template data includes: calculating the distance between each segmented data and the process template data. The sum of distances is the piecewise loss function.
为实现上述目的及其他相关目的,本发明的第二方面提供一种基于最优分割的智能计件装置,包括:模板模块,用于获取工序模板数据;截取模块,用于获取待计件缝制件的缝制设备运行数据并截取计件数据窗口;分段模块,用于根据工序模板数据中的缝制特征参数, 为所述计件数据窗口设置件与件之间的分段点;计件模块,用于基于所述计件数据窗口中设置的件与件之间的分段点,使用最优分割算法对所述计件数据窗口进行最优计件,并根据最优计件的计件结果更新所述待计件缝制件的总计件数。In order to achieve the above objects and other related objects, the second aspect of the present invention provides an intelligent piece counting device based on optimal segmentation, including: a template module for obtaining process template data; an interception module for obtaining sewing parts to be counted The operating data of the sewing equipment and intercept the piece counting data window; the segmentation module is used to calculate the sewing characteristic parameters based on the process template data. Set segmentation points between pieces for the piece counting data window; a piece counting module is configured to use an optimal segmentation algorithm to segment the piece counting based on the segmentation points between pieces set in the piece counting data window. The data window performs optimal piece counting, and updates the total number of pieces to be sewn to be counted based on the piece counting results of the optimal piece counting.
为实现上述目的及其他相关目的,本发明的第三方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述基于最优分割的智能计件方法。In order to achieve the above objects and other related objects, a third aspect of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the intelligent piece counting based on optimal segmentation is implemented. method.
为实现上述目的及其他相关目的,本发明的第四方面提供一种智能计件终端,包括:处理器及存储器;所述存储器用于存储计算机程序,所述处理器用于执行所述存储器存储的计算机程序,以使所述终端执行所述基于最优分割的智能计件方法。In order to achieve the above objects and other related objects, a fourth aspect of the present invention provides an intelligent piece counting terminal, including: a processor and a memory; the memory is used to store computer programs, and the processor is used to execute the computer stored in the memory. A program is provided to cause the terminal to execute the intelligent piece counting method based on optimal division.
如上所述,本发明的基于最优分割的智能计件方法、装置、终端及存储介质,具有以下有益效果:As mentioned above, the intelligent piece counting method, device, terminal and storage medium based on optimal segmentation of the present invention have the following beneficial effects:
(1)本发明技术方案适用性强且计件准确度高:使用缝纫机最基础的运行数据(针数、主轴电机启停时间),结合最优分割算法和距离算法即可得到准确的计件,因此不会出现无剪线、抬压脚数据时无法计件的情况。(1) The technical solution of the present invention has strong applicability and high piece counting accuracy: accurate piece counting can be obtained by using the most basic operating data of the sewing machine (number of stitches, spindle motor start and stop time), combined with the optimal segmentation algorithm and distance algorithm, so There will be no situation where pieces cannot be counted when there is no thread trimming or when the presser foot is raised.
(2)本发明在计件过程中可以识别缝制异常(如返工、不符合缝制工艺要求等)的情况,能够帮助工人及时发现质量问题,避免不必要的返工,提高缝制效率。(2) The present invention can identify sewing abnormalities (such as rework, non-compliance with sewing process requirements, etc.) during the piece counting process, and can help workers discover quality problems in time, avoid unnecessary rework, and improve sewing efficiency.
(3)本发明的技术方案易于使用,无需工人额外操作,且工序模板数据可以在样衣加工或者工序分解过程中获得,整个计件过程无需工人按键或扫码,全自动完成。(3) The technical solution of the present invention is easy to use and does not require additional operations by workers, and the process template data can be obtained during sample processing or process decomposition. The entire piece counting process does not require workers to press buttons or scan codes, and is fully automated.
(4)本发明在计件过程中,能够准确的识别每件开始缝制、结束缝制的时间点(准确的分段),为工人学习曲线分析、效率分析、技能评价、设备稼动率分析提供了可能。(4) In the piece counting process, the present invention can accurately identify the time point (accurate segmentation) when each piece starts and ends sewing, providing workers with learning curve analysis, efficiency analysis, skill evaluation, and equipment utilization rate analysis. Possibility is provided.
附图说明Description of drawings
图1显示为本发明一实施例中基于最优分割的智能计件方法的流程示意图。Figure 1 shows a schematic flowchart of an intelligent piece counting method based on optimal segmentation in an embodiment of the present invention.
图2显示为本发明一实施例中计件数据窗口的截取流程示意图。FIG. 2 shows a schematic flowchart of intercepting the piece counting data window in an embodiment of the present invention.
图3显示为本发明一实施例中智能计件终端的结构示意图。Figure 3 shows a schematic structural diagram of an intelligent piece counting terminal in an embodiment of the present invention.
图4显示为本发明一实施例中基于最优分割的智能计件装置的结构示意图。Figure 4 shows a schematic structural diagram of an intelligent piece counting device based on optimal segmentation in an embodiment of the present invention.
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精 神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The following describes the embodiments of the present invention through specific examples. 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 based on different viewpoints and applications without departing from the spirit of the present invention. God makes various modifications or changes. It should be noted that, as long as there is no conflict, the following embodiments and the features in the embodiments can be combined with each other.
需要说明的是,在下述描述中,参考附图,附图描述了本发明的若干实施例。应当理解,还可使用其他实施例,并且可以在不背离本发明的精神和范围的情况下进行机械组成、结构、电气以及操作上的改变。下面的详细描述不应该被认为是限制性的,并且本发明的实施例的范围仅由公布的专利的权利要求书所限定。这里使用的术语仅是为了描述特定实施例,而并非旨在限制本发明。空间相关的术语,例如“上”、“下”、“左”、“右”、“下面”、“下方”、“下部”、“上方”、“上部”等,可在文中使用以便于说明图中所示的一个元件或特征与另一元件或特征的关系。It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It is to be understood that other embodiments may be utilized and mechanical, structural, electrical, as well as operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description is not to be considered limiting, and the scope of embodiments of the present invention is limited only by the claims of the published patent. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "bottom", "above", "upper", etc., may be used in the text to facilitate explanation The relationship of one element or feature to another illustrated in the figures.
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”、“固持”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly stated and limited, the terms "installation", "connection", "connection", "fixing", "holding" and other terms should be understood in a broad sense. For example, it can be a fixed connection or a fixed connection. It is a detachable connection or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合。因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”。仅当元件、功能或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。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" and "including" indicate the presence of stated features, operations, elements, components, items, categories, and/or groups, but do not exclude one or more other features, operations, elements, components, The presence, occurrence, or addition of items, categories, and/or groups. The terms "or" and "and/or" as used herein are to be construed as inclusive or to mean any one or any combination. Therefore, "A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C" . Exceptions to this definition occur only when a combination of elements, functions, or operations is inherently mutually exclusive in some manner.
针对上述背景技术中计件存在的问题,本发明提出了一种基于缝纫机运行数据分割的计件方法,通过对一段缝纫机运行数据进行最优分割,结合相似性度量方法,进行计件。用到的缝纫机运行数据中,只需主轴主轴电机启停、针数数据,即可有很高的计件准确率和分段准确率,也可增加剪线、抬压脚等数据来进一步提升计件的准确度。与此同时,该方法在计件过程中可以识别缝制异常(返工、不符合工艺缝制要求)的情况,帮助工人及时发现质量问题,避免不必要的返工。In view of the problems of piece counting in the above background technology, the present invention proposes a piece counting method based on segmentation of sewing machine operating data. The piece counting is performed by optimally segmenting a section of sewing machine operating data and combining it with a similarity measurement method. Among the sewing machine operating data used, only the spindle motor start and stop, and stitch count data can be used to achieve high piece counting accuracy and segmentation accuracy. Data such as thread trimming and presser foot lifting can also be added to further improve piece counting. accuracy. At the same time, this method can identify sewing abnormalities (rework, non-compliance with process sewing requirements) during the piece counting process, helping workers discover quality problems in time and avoid unnecessary rework.
为了使本发明的目的、技术方案及优点更加清楚明白,通过下述实施例并结合附图,对本发明实施例中的技术方案的进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定发明。 In order to make the purpose, technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are further described in detail through the following embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the invention and are not intended to limit the invention.
如图1所示,展示了本发明实施例中的一种基于最优分割的智能计件方法的流程示意图。本实施例中的智能计件方法主要包括如下各步骤:As shown in Figure 1, a schematic flow chart of an intelligent piece counting method based on optimal segmentation in an embodiment of the present invention is shown. The intelligent piece counting method in this embodiment mainly includes the following steps:
步骤S11:获取工序模板数据。Step S11: Obtain process template data.
在一些示例中,所述获取工序模板数据的方式包括如下任一种:In some examples, the method of obtaining process template data includes any of the following:
获取方式1)在样衣缝制过程中,通过数据采集模块和人机交互模块来获取工序模板数据。所述数据采集模块包括但不限于如NFC读卡器、二维码/条形码读码器等;所述人机交互模块包括但不限于如通过响应于用户触摸操作而实现数据采集的触摸屏或通过解析语音而实现数据采集的语音交互模块等。Acquisition method 1) During the sample sewing process, the process template data is obtained through the data collection module and human-computer interaction module. The data collection module includes, but is not limited to, an NFC card reader, a QR code/barcode reader, etc.; the human-computer interaction module includes, but is not limited to, a touch screen that implements data collection in response to a user's touch operation or through a Voice interaction modules that analyze speech and realize data collection, etc.
获取方式2)根据标准工时库编辑或导出的缝制数据获取工序模板数据。标准工时是指在一定标准条件下,以一定的作业方法,由合格且受有良好训练的作业员以正常的速度完成某项作业所需的时间;标准工时由标准作业时间和标准准备时间构成,具体包括有效的作业时间以及事前和事中准备所消耗的时间。标准工时库是用以记录并存储标准工时的数据库。因此,由标准工时库编辑或导出的缝制数据可作为工序模板数据。Obtaining method 2) Obtain the process template data based on the sewing data edited or exported from the standard working hours library. Standard working hours refer to the time required to complete a certain operation at a normal speed by qualified and well-trained operators under certain standard conditions and using certain operating methods; standard working hours consist of standard operating time and standard preparation time. , specifically including effective operating time and time consumed in preparation before and during the event. The standard working hours database is a database used to record and store standard working hours. Therefore, sewing data edited or exported from the standard working hours library can be used as process template data.
在一些示例中,所述工序模板数据包括但不限于主轴电机启停时间数据、缝制针数数据等。通常来说,工序模板数据还包括时间间隔列,所述时间间隔列的首个数据为取放料时间,该取放料时间也可防在最后一个数据项中,这与采集所述工序模板数据时的设定有关,本实施例不做限定。In some examples, the process template data includes but is not limited to spindle motor start and stop time data, sewing stitch number data, etc. Generally speaking, the process template data also includes a time interval column. The first data in the time interval column is the material picking and placing time. This material picking and placing time can also be included in the last data item. This is consistent with the collection of the process template. It is related to the setting of data, which is not limited in this embodiment.
步骤S12:获取待计件缝制件的缝制设备运行数据并截取计件数据窗口。Step S12: Obtain the sewing equipment operating data of the piece to be sewn and intercept the piece counting data window.
在一些示例中,通过数据接口获取待计件缝制件的缝制设备运行数据;所述数据接口包括但不限于串口/COM口、USB接口、RS232接口、RS485接口等。所述缝制设备运行数据的常用格式例如有(时间戳,事件类型,值),其中事件类型包括但不限于如主轴电机启动、停止、剪线、抬压脚、加固缝等。In some examples, the sewing equipment operation data of the pieces to be sewn is obtained through a data interface; the data interface includes but is not limited to a serial port/COM port, USB interface, RS232 interface, RS485 interface, etc. Common formats of the sewing equipment operating data include (time stamp, event type, value), for example, where the event types include but are not limited to spindle motor start, stop, thread trimming, presser foot lift, seam reinforcement, etc.
在一些示例中,所述计件数据窗口是指用于分析加工件数的数据段,计件数据窗口的截取方式包括如下任一种:In some examples, the piece counting data window refers to the data segment used to analyze the number of processed pieces, and the interception method of the piece counting data window includes any of the following:
截取方式1)从所述缝制设备运行数据中截取固定时间长度的数据作为计件数据窗口。Interception method 1) intercept data of a fixed time length from the sewing equipment operation data as a piece counting data window.
截取方式2)对于上一个计件数据窗口完成计件后的非整件遗留数据,追加缝制设备运行数据并累加针数值,直至当前计件数据窗口的总针数是工序模板数据总针数的预设整数倍或者出现预设的停止信号;其中,所述当前计件数据窗口的总针数的计算过程包括:以所述工序模板数据总针数为基准,并以当前计件数据窗口的总针数除以工序模板数据总针数后的向上取整值为相乘倍数,将基准和相乘倍数相乘得到。其中,所述预设的停止信号包括但不 限于休息、换工序或关机等信号等。Interception method 2) For the non-whole-piece legacy data after the piece counting is completed in the previous piece counting data window, add the sewing equipment operating data and accumulate the needle value until the total number of needles in the current piece counting data window is the preset total number of needles in the process template data An integer multiple or a preset stop signal appears; wherein, the calculation process of the total number of stitches in the current piece counting data window includes: taking the total number of stitches in the process template data as a benchmark, and dividing by the total number of stitches in the current piece counting data window The rounded-up value after the total number of stitches in the process template data is used as the multiplication multiple, and is obtained by multiplying the base and the multiplication multiple. Wherein, the preset stop signal includes but does not include It is limited to signals such as resting, changing processes or shutting down the machine.
以图2中的流程图举例来说,上述截取方式2的实现流程如下:Taking the flow chart in Figure 2 as an example, the implementation process of the above interception method 2 is as follows:
1)开始。1) Start.
2)缓存缝纫机运行数据,pieces=5。2) Cache sewing machine operating data, pieces=5.
3)Level是否为空?3) Is Level empty?
应理解,pieces为预设整数倍。Level是一段存储空间,Level是否为空表示的是上一个计件数据窗口在完成计件后是否有非整件遗留数据,标志Level只在切换工序时初始化为空;若标志Level为空,则说明上一个计件数据窗口在完成计件后没有非整件遗留数据;否则说明上一个计件数据窗口在完成计件后有非整件遗留数据。It should be understood that pieces are preset integer multiples. Level is a storage space. Whether Level is empty indicates whether there is non-whole piece data left in the previous piece counting data window after piece counting is completed. The flag Level is only initialized to empty when switching processes; if the flag Level is empty, it means the above A piece-rate data window has no incomplete piece data left after piece counting is completed; otherwise, it means that the previous piece-rate data window has incomplete piece data left after piece counting is completed.
4)若Level为空,在当前计件数据窗口中,读入缝纫机运行数据并累加针数值。4) If Level is empty, in the current piece counting data window, read the sewing machine operating data and accumulate the needle value.
5)若Leve不为空,在当前计件数据窗口中,先读入Level中的数据,再读入追加的缝纫机运行数据,并累加针数值。5) If Level is not empty, in the current piece counting data window, first read the data in Level, then read in the additional sewing machine operating data, and accumulate the needle value.
6)是否满足pieces=5或者出现预设的停止信号?6) Does it satisfy pieces=5 or does a preset stop signal appear?
7)若不满足,则继续在当前计件数据窗口中读入数据。7) If not satisfied, continue reading data in the current piece counting data window.
8)若满足,则 8) If satisfied, then
9)输出当前计件数据窗口数据,pieces值。9) Output the current piece counting data window data and pieces value.
在一些示例中,对所述工序模板数据以及截取到的计件数据窗口数据做预处理,预处理过程包括但不限于如下:In some examples, the process template data and the intercepted piece data window data are preprocessed. The preprocessing process includes but is not limited to the following:
预处理1)根据时间戳为所述工序模板数据以及计件数据窗口数据添加时间间隔列数据;时间间隔列数据是计件的主要考量维度之一,因此需要为工序模板数据和计件数据窗口数据都添加。Preprocessing 1) Add time interval column data to the process template data and piece counting data window data according to the timestamp; the time interval column data is one of the main consideration dimensions of piece counting, so it needs to be added to both the process template data and the piece counting data window data. .
预处理2)将主轴电机停止时间小于预设时间的数据项删除以合并被删除数据项的上、下相邻项数据;合并的数据包括主轴电机运行针数数据、时间间隔数据等。数据合并可以有效减少数据量并减少计算量。Preprocessing 2) Delete the data items whose stop time of the spindle motor is less than the preset time to merge the data of the upper and lower adjacent items of the deleted data items; the merged data includes the spindle motor running needle number data, time interval data, etc. Data merging can effectively reduce the amount of data and reduce the amount of calculations.
预处理3)根据工序模板中时间间隔列的数据,处理所述计件数据窗口中时间间隔列的异常数据。具体而言,可先取工序模板中时间间隔列中的最大值max,再将所述计件数据窗口中时间间隔列中所有大于最大值max的值统一替换为最大值max。Preprocessing 3) Process the abnormal data in the time interval column in the piece counting data window based on the data in the time interval column in the process template. Specifically, you can first take the maximum value max in the time interval column in the process template, and then replace all values greater than the maximum value max in the time interval column in the piece counting data window with the maximum value max.
预处理4)将所述工序模板数据和计件数据窗口数据做归一化处理。具体而言,归一化处理是将多维度相似性度量转换为无量纲数据,通常范围是[0,1];采用的归一化处理方式可以是min-max线性函数归一化,min和max分别是最小值和最大值。 Preprocessing 4) Normalize the process template data and piece counting data window data. Specifically, normalization processing is to convert multi-dimensional similarity measures into dimensionless data, usually in the range [0,1]; the normalization processing method used can be min-max linear function normalization, min and max are the minimum and maximum values respectively.
具体而言,min-max线性函数归一化是对原始数据做线性转换,使其结果映射到[0,1]的范围,实现对原始数据的等比缩放,归一化的公式如下:Xnom=(X-Xmin)/(Xmax-Xmin);其中,X表示原始数据,Xmax表示最小值,Xmax表示最大值,Xnom表示归一化值。Specifically, min-max linear function normalization is to linearly transform the original data so that the result is mapped to the range of [0,1] to achieve proportional scaling of the original data. The normalization formula is as follows: Xnom =(X-Xmin)/(Xmax-Xmin); where X represents the original data, Xmax represents the minimum value, Xmax represents the maximum value, and Xnom represents the normalized value.
步骤S13:根据所述工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点。Step S13: Set segmentation points between pieces for the piece counting data window according to the sewing characteristic parameters in the process template data.
在本实施例中,所述缝制特征参数包括但不限于:取放料时间数据、抬压脚数据、剪线数据或者加固缝数据等。为便于理解,以取放料时间数据为例进行说明,将可能的分段点设置为:计件数据窗口中时间间隔列大于(取放料时间*阈值)的数据项,阈值(time_threshold)例如可设为0.5,这样设计的优势在于减小最优分割计件模块的计算量,对于长工序(末班中数据量较多的工序)尤为明显。In this embodiment, the sewing characteristic parameters include but are not limited to: material picking and unloading time data, presser foot lifting data, thread trimming data or bartack data, etc. For ease of understanding, take the pick-and-place time data as an example. The possible segmentation points are set as: data items in the piece counting data window whose time interval column is greater than (pick-and-place time*threshold). The threshold (time_threshold) can be, for example, Set to 0.5, the advantage of this design is to reduce the calculation amount of the optimal split piece counting module, which is especially obvious for long processes (processes with a large amount of data in the last shift).
步骤S14:基于所述计件数据窗口中所设置的件与件之间的分段点,使用优分割算法对所述计件数据窗口进行最优计件。Step S14: Based on the segmentation points between pieces set in the piece counting data window, use an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window.
需说明的是,所述有序样本聚类算法又称为最优分割算法,聚类时将样品混在一起按照距离或者相似系数的标准进行分类,但聚类时不能打乱原来样品的排列顺序,同一个阶段的样品要求互相连接,即聚类时要求必须是次序相邻的样品才能在一类。It should be noted that the ordered sample clustering algorithm is also called the optimal segmentation algorithm. During clustering, samples are mixed together and classified according to distance or similarity coefficient standards, but the order of the original samples cannot be disrupted during clustering. , samples at the same stage are required to be connected to each other, that is, when clustering, samples must be sequentially adjacent to be in one category.
具体于本实施例中,使用有序样本聚类算法对所述计件数据窗口进行最优计件的过程陈述如下:Specifically in this embodiment, the process of using the ordered sample clustering algorithm to perform optimal piece counting on the piece counting data window is stated as follows:
步骤S141:根据设置的所述计件数据窗口中件与件之间的分段点,将所述计件数据窗口中的数据分割为多段分段数据。Step S141: Divide the data in the piece counting data window into multiple pieces of segmented data according to the set segmentation points between pieces in the piece counting data window.
步骤S142:计算各分段数据与所述工序模板数据之间的距离。Step S142: Calculate the distance between each segmented data and the process template data.
在一些示例中,可使用动态时间规整算法来计算每段分段数据与所述工序模板数据之间的距离。具体而言,基于缝制特征参数将每段分段数据和工序模板数据分别进行独热编码处理;利用动态时间规整算法,基于每个缝制特征参数分别计算每段分段数据与所述工序模板数据之间的距离值,并取其中的最小距离值作为这段分段数据与所述工序模板数据之间的距离值;距离值越大表示分段数据与工序模板数据之间的相似性越差;反之则说明两者的相似性越好。其中,所述缝制特征参数包括但不限于:取放料时间数据、抬压脚数据、剪线数据或者加固缝数据等。In some examples, a dynamic time warping algorithm may be used to calculate the distance between each piece of segmented data and the process template data. Specifically, each piece of segmented data and the process template data are separately subjected to one-hot encoding processing based on the sewing characteristic parameters; a dynamic time warping algorithm is used to calculate the relationship between each piece of segmented data and the process based on each sewing characteristic parameter. The distance value between the template data, and the smallest distance value is taken as the distance value between this segment data and the process template data; the larger the distance value, the greater the similarity between the segment data and the process template data The worse it is; on the contrary, it means the similarity between the two is better. Among them, the sewing characteristic parameters include but are not limited to: material picking and unloading time data, presser foot lifting data, thread trimming data or bartack seaming data, etc.
需说明的是,DTW(Dynamic Time Warping)是指动态时间归整算法,可用于度量两个独立时间序列之间的相似度;DTW算法广泛应用于模板匹配问题中,并且能够较好地解决两组数据由于长度不同而难以对比的问题。在DTW中,距离的测定使用的是欧氏距离法。另 需说明的是,在DTW方法中,距离的测定使用的是欧氏距离法,也可以采取曼哈顿距离进行计算。It should be noted that DTW (Dynamic Time Warping) refers to the dynamic time warping algorithm, which can be used to measure the similarity between two independent time series; the DTW algorithm is widely used in template matching problems and can better solve the problem of two independent time series. The problem of group data being difficult to compare due to different lengths. In DTW, distance is measured using the Euclidean distance method. Other It should be noted that in the DTW method, the distance is measured using the Euclidean distance method, and the Manhattan distance can also be used for calculation.
在一些示例中,可使用欧式距离算法来计算每段分段数据与所述工序模板数据之间的距离。具体而言,分别提取每段分段数据与工序模板数据之间的统计特征,基于所述统计特征计算每段分段数据与工序模板数据之间的欧式距离;欧式距离值越大表示分段数据与工序模板数据之间的相似性越差;反之则说明两者的相似性越好;所述统计特征包括但不限于如总针数、数据长度、取放料时间(即时间间隔列的首个数据)等。In some examples, a Euclidean distance algorithm may be used to calculate the distance between each piece of segmented data and the process template data. Specifically, the statistical features between each segmented data and the process template data are respectively extracted, and the Euclidean distance between each segmented data and the process template data is calculated based on the statistical features; the larger the Euclidean distance value, the greater the segmentation. The worse the similarity between the data and the process template data; conversely, the better the similarity between the two; the statistical characteristics include but are not limited to the total number of needles, data length, pick-and-place time (i.e., the time interval column first data) etc.
进一步地,欧式距离的计算公式如下:
Furthermore, the calculation formula of Euclidean distance is as follows:
步骤S143:基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数。Step S143: Calculate the segmentation loss function based on the distance between all segmented data and the process template data.
在本实施例中,分段损失函数为各段分段数据与工序模板数据之间的距离之和,表示为:其中,P(n,k)表示将n个有序数据分为k类的分段方式,且使分段损失函数达到最小值的分段方式。分段损失函数的值越大,说明分段效果越差,反之说明分段效果越好。In this embodiment, the segmentation loss function is the sum of the distances between each segmented data and the process template data, expressed as: Among them, P(n,k) represents the segmentation method that divides n ordered data into k categories and makes the segmentation loss function reach the minimum value. The larger the value of the segmentation loss function, the worse the segmentation effect, and vice versa.
步骤S144:求取所述分段损失函数的最小值以获取所述最小值所对应的分段数及分段方式。Step S144: Find the minimum value of the segmentation loss function to obtain the number of segments and the segmentation method corresponding to the minimum value.
在本实施例中,可通过求解最小损失函数矩阵L[P(n,k)]来求解分段损失函数的最小值,求解公式如下:
L[P(n,2)]=min2<=j<=n(D(1,j-1)+D(j,n));
L[P(n,k)]=mink<=j<=n(L[P(j-1,k-1)]+D(j,n));
In this embodiment, the minimum value of the piecewise loss function can be solved by solving the minimum loss function matrix L[P(n,k)]. The solution formula is as follows:
L[P(n,2)]=min 2<=j<=n (D(1,j-1)+D(j,n));
L[P(n,k)]=min k<=j<=n (L[P(j-1,k-1)]+D(j,n));
其中,n=len(可能的分段点数据),k的取值范围是[pieces-2,pieces+2];可能的分段点数据即上述步骤S13中根据所述工序模板数据中的缝制特征参数设置所述计件数据窗口中件与件之间的分段点。计算分段损失函数矩阵中L[P(n,k)]取最小值时对应的分段数k及分段方式P(n,k)。Among them, n = len (possible segmentation point data), and the value range of k is [pieces-2, pieces+2]; the possible segmentation point data is the seam in the process template data in the above step S13. The custom feature parameter sets the segmentation point between pieces in the piece counting data window. Calculate the number of segments k and segmentation method P(n,k) corresponding to the minimum value of L[P(n,k)] in the segmentation loss function matrix.
步骤S145:基于所述最小值所对应的分段数及分段方式,得到每段分段数据的总针数,并根据总针数是否小于基于工序模板数据的总针数设置的针数阈值,判断该分段是否被计入件数。Step S145: Based on the number of segments and the segmentation method corresponding to the minimum value, obtain the total number of needles in each segment of segmented data, and determine whether the total number of needles is less than the needle number threshold set based on the total number of needles in the process template data. , determine whether the segment is included in the number of pieces.
举例来说,所述基于工序模板数据的总针数设置的针数阈值例如可设置为(工序模板数据的总针数*0.6),若分段数据的总针数<(工序模板数据的总针数*0.6),则不将该段分段数据计入件数,并提示该时间段缝纫的极有可能是次品(存在返工或者异常缝制的情况)。 For example, the needle number threshold set based on the total number of needles of the process template data can be set to (the total number of needles of the process template data * 0.6), if the total number of needles of the segmented data < (the total number of needles of the process template data Number of stitches * 0.6), then the segmented data of this section will not be included in the number of pieces, and it will prompt that the products sewn in this time period are most likely to be defective products (there is rework or abnormal sewing).
步骤S146:输出所述所述计件数据窗口的计件结果信息。Step S146: Output the piece counting result information of the piece counting data window.
具体而言,在计件结束后输出计件结果信息,并将最后一段数据赋值给level,因此除了最后一段数据及被判断为次品的不计入件数的数据,其它段的数据都被算入计件数。Specifically, after the piece counting is completed, the piece counting result information is output, and the last segment of data is assigned to level. Therefore, except for the last segment of data and the data that is judged to be defective and is not included in the piece count, the other segments of data are included in the piece count. .
步骤S15:根据所述计件数据窗口的最优计件结果更新所述待计件缝制件的总计件数。Step S15: Update the total piece number of the sewing parts to be counted according to the optimal piece counting result of the piece counting data window.
具体而言,是将上述步骤S14得到的计件数累加到总的计件数中;若计件窗口数据的末尾出现预设的停止信号(如休息、换工序或关机等信号),则将总的计件数加1并将level初始化为空。Specifically, the piece count obtained in the above step S14 is added to the total piece count; if a preset stop signal (such as a break, process change, or shutdown signal) appears at the end of the piece count window data, the total piece count is added. Increment the number of pieces by 1 and initialize level to empty.
本发明实施例提供的智能计件方法可以采用终端侧或服务器侧实施,就智能计件终端的硬件结构而言,请参阅图3,为本发明实施例提供的智能计件终端300的一个可选的硬件结构示意图,该终端300可以是移动电话、计算机设备、平板设备、个人数字处理设备、工厂后台处理设备等。智能计件终端300包括:至少一个处理器301、存储器302、至少一个网络接口304和用户接口306。装置中的各个组件通过总线系统305耦合在一起。可以理解的是,总线系统305用于实现这些组件之间的连接通信。总线系统305除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图3中将各种总线都标为总线系统。The smart piece counting method provided by the embodiment of the present invention can be implemented on the terminal side or the server side. As for the hardware structure of the smart piece counting terminal, please refer to Figure 3, which is an optional hardware of the smart piece counting terminal 300 provided by the embodiment of the present invention. Structural diagram shows that the terminal 300 can be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory backend processing device, etc. The smart piece counting terminal 300 includes: at least one processor 301, a memory 302, at least one network interface 304 and a user interface 306. The various components in the device are coupled together through bus system 305 . It can be understood that the bus system 305 is used to implement connection communication between these components. In addition to the data bus, the bus system 305 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus systems in Figure 3.
其中,用户接口306可以包括显示器、键盘、鼠标、轨迹球、点击枪、按键、按钮、触感板或者触摸屏等。The user interface 306 may include a display, keyboard, mouse, trackball, click gun, keys, buttons, touch pad or touch screen, etc.
可以理解,存储器302可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,StaticRandom Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static RandomAccess Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类别的存储器。It can be understood that the memory 302 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory) or a programmable read-only memory (PROM, Programmable Read-Only Memory), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (SRAM, StaticRandom Access Memory), synchronous static random access memory (SSRAM, Synchronous Static RandomAccess Memory). Memories described in embodiments of the present invention are intended to include, but are not limited to, these and any other suitable categories of memory.
本发明实施例中的存储器302用于存储各种类别的数据以支持智能计件终端300的操作。这些数据的示例包括:用于在智能计件终端300上操作的任何可执行程序,如操作系统3021和应用程序3022;操作系统3021包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序3022可以包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例提供的智能计件方法可以包含在应用程序3022中。 The memory 302 in the embodiment of the present invention is used to store various types of data to support the operation of the intelligent piece counting terminal 300 . Examples of these data include: any executable program used to operate on the intelligent piecework terminal 300, such as operating system 3021 and application program 3022; operating system 3021 includes various system programs, such as framework layer, core library layer, driver layer, etc. , used to implement various basic services and handle hardware-based tasks. The application program 3022 may include various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. Implementation of the intelligent piece counting method provided by the embodiment of the present invention may be included in the application program 3022.
上述本发明实施例揭示的方法可以应用于处理器301中,或者由处理器301实现。处理器301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器301可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器301可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器301可以是微处理器或者任何常规的处理器等。结合本发明实施例所提供的配件优化方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention can be applied to the processor 301 or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 301 . The above-mentioned processor 301 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 301 can implement or execute each method, step and logical block diagram disclosed in the embodiment of the present invention. The general processor 301 may be a microprocessor or any conventional processor, etc. The steps of the accessory optimization method provided by the embodiments of the present invention can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in a memory. The processor reads the information in the memory and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,智能计件终端300可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable LogicDevice),用于执行前述方法。In an exemplary embodiment, the smart piece counting terminal 300 may be configured by one or more Application Specific Integrated Circuits (ASICs, Application Specific Integrated Circuits), DSPs, Programmable Logic Devices (PLDs, Programmable Logic Devices), Complex Programmable Logic Devices ( CPLD, Complex Programmable LogicDevice), used to execute the aforementioned method.
如图4所示,展示了本发明实施例中的一种基于最优分割的智能计件装置的结构示意图。本实施例中的智能计件装置400包括模板模块401、截取模块402、分段模块403及计件模块404。As shown in Figure 4, a schematic structural diagram of an intelligent piece counting device based on optimal segmentation in an embodiment of the present invention is shown. The intelligent piece counting device 400 in this embodiment includes a template module 401, an interception module 402, a segmentation module 403 and a piece counting module 404.
包括模板模块401用于获取工序模板数据。A template module 401 is included for obtaining process template data.
在一些示例中,所述模板模块401获取工序模板数据的方式包括:在样衣缝制过程中,通过数据采集模块和人机交互模块来获取工序模板数据;或者,根据标准工时库编辑或导出的缝制数据获取工序模板数据。In some examples, the template module 401 obtains the process template data by: during the sample sewing process, obtaining the process template data through the data collection module and the human-computer interaction module; or, editing or exporting it according to the standard working hours library The sewing data obtains the process template data.
截取模块402用于获取待计件缝制件的缝制设备运行数据并截取计件数据窗口。The interception module 402 is used to obtain the sewing equipment operating data of the pieces to be sewn and intercept the piece counting data window.
在一些示例中,所述截取模块402截取计件数据窗口的方式包括:从所述缝制设备运行数据中截取固定时间长度的数据作为计件数据窗口;或者,对于上一个计件数据窗口完成计件后的非整件遗留数据,追加缝制设备运行数据并累加针数值,直至当前计件数据窗口的总针数是工序模板数据总针数的预设整数倍或者出现预设的停止信号;其中,所述当前计件数据窗口的总针数的计算过程包括:以所述工序模板数据总针数为基准,并以当前计件数据窗口的总针数除以工序模板数据总针数后的向上取整值为相乘倍数,将基准和相乘倍数相乘得到。In some examples, the interception module 402 intercepts the piece counting data window by: intercepting data of a fixed time length from the sewing equipment operating data as the piece counting data window; or, for the piece counting data window after completing the piece counting, For non-whole-piece legacy data, add sewing equipment operating data and accumulate needle values until the total number of needles in the current piece counting data window is a preset integer multiple of the total number of needles in the process template data or a preset stop signal appears; wherein, the The calculation process of the total number of stitches in the current piece-counting data window includes: taking the total number of stitches in the process template data as the benchmark, and dividing the total number of stitches in the current piece-counting data window by the total number of stitches in the process template data, and the rounded-up value is The multiplication factor is obtained by multiplying the base and the multiplication factor.
进一步地,所述智能计件装置400还包括预处理模块405,用于对所述工序模板数据以 及截取到的计件数据窗口数据做预处理,预处理方式包括:根据时间戳为所述工序模板数据以及计件数据窗口数据添加时间间隔列数据;将主轴电机停止时间小于预设时间的数据项删除以合并被删除数据项的上、下相邻项数据;根据工序模板中时间间隔列的数据,处理计件数据窗口中时间间隔列的异常数据;将所述工序模板数据和计件数据窗口数据做归一化处理。Further, the intelligent piece counting device 400 also includes a preprocessing module 405 for processing the process template data with and intercepted piece-counting data window data for preprocessing. The pre-processing methods include: adding time interval column data to the process template data and piece-counting data window data according to the timestamp; deleting data items whose spindle motor stop time is less than the preset time. To merge the data of the upper and lower adjacent items of the deleted data items; according to the data of the time interval column in the process template, process the abnormal data of the time interval column in the piece-rate data window; classify the process template data and piece-rate data window data Unified processing.
分段模块403用于根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点。The segmentation module 403 is used to set segmentation points between pieces for the piece counting data window according to the sewing characteristic parameters in the process template data.
在一些示例中,所述分段模块403的分段方式包括:以所述计件数据窗口的时间间隔列中大于所述取放料时间与一预设阈值的乘积的数据项作为分段点。In some examples, the segmentation method of the segmentation module 403 includes: using the data items in the time interval column of the piece counting data window that are greater than the product of the pick-and-place material time and a preset threshold as segmentation points.
计件模块404用于基于所述计件数据窗口中设置的件与件之间的分段点,使用最优分割算法对所述计件数据窗口进行最优计件,并根据最优计件的计件结果更新所述待计件缝制件的总计件数。The piece counting module 404 is configured to perform optimal piece counting on the piece counting data window using an optimal segmentation algorithm based on the segmentation points between pieces set in the piece counting data window, and update the piece counting results according to the optimal piece counting result. Indicates the total number of pieces to be sewn.
在一些示例中,所述计件模块404使用优分割算法对所述计件数据窗口进行最优计件,包括:根据所述计件数据窗口中设置的件与件之间的分段点,将所述计件数据窗口中的数据分割为多段分段数据;计算各分段数据与所述工序模板数据之间的距离;基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数;求取所述分段损失函数的最小值以获取所述最小值所对应的分段数及分段方式;基于所述最小值所对应的分段数及分段方式,得到每段分段数据的总针数,并根据总针数是否小于基于工序模板数据的总针数设置的针数阈值,判断该分段是否被计入件数;输出所述所述计件数据窗口的计件结果信息。In some examples, the piece counting module 404 uses an optimal segmentation algorithm to perform optimal piece counting on the piece counting data window, including: dividing the piece counting data according to the segmentation points between pieces set in the piece counting data window. The data in the data window is divided into multiple segments of segmented data; the distance between each segmented data and the process template data is calculated; the segmentation loss function is calculated based on the distance between all segmented data and the process template data; and Take the minimum value of the segmentation loss function to obtain the segmentation number and segmentation method corresponding to the minimum value; based on the segmentation number and segmentation method corresponding to the minimum value, obtain the segmentation data of each segment The total number of stitches, and based on whether the total number of stitches is less than the stitch number threshold set based on the total stitch number of the process template data, determine whether the segment is included in the number of pieces; output the piece counting result information of the piece counting data window.
进一步地,所述基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数,包括:以各段分段数据与工序模板数据之间的距离之和为所述分段损失函数。Further, calculating the segmentation loss function based on the distance between all segmented data and the process template data includes: taking the sum of the distances between each segmented data and the process template data as the segmentation loss. function.
本发明还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述基于最优分割的智能计件方法。The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the intelligent piece counting method based on optimal segmentation is implemented.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过计算机程序相关的硬件来完成。前述的计算机程序可以存储于一计算机可读存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Persons of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to computer programs. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above-mentioned method embodiments are executed; and the aforementioned storage media include: ROM, RAM, magnetic disks, optical disks and other media that can store program codes.
于本发明提供的实施例中,所述计算机可读写存储介质可以包括只读存储器、随机存取存储器、EEPROM、CD-ROM或其它光盘存储装置、磁盘存储装置或其它磁存储设备、闪存、U盘、移动硬盘、或者能够用于存储具有指令或数据结构形式的期望的程序代码并能够由计算机进行存取的任何其它介质。另外,任何连接都可以适当地称为计算机可读介质。例如, 如果指令是使用同轴电缆、光纤光缆、双绞线、数字订户线(DSL)或者诸如红外线、无线电和微波之类的无线技术,从网站、服务器或其它远程源发送的,则所述同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线电和微波之类的无线技术包括在所述介质的定义中。然而,应当理解的是,计算机可读写存储介质和数据存储介质不包括连接、载波、信号或者其它暂时性介质,而是旨在针对于非暂时性、有形的存储介质。如申请中所使用的磁盘和光盘包括压缩光盘(CD)、激光光盘、光盘、数字多功能光盘(DVD)、软盘和蓝光光盘,其中,磁盘通常磁性地复制数据,而光盘则用激光来光学地复制数据。In the embodiments provided by the present invention, the computer readable and writable storage medium may include read-only memory, random access memory, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, A USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by the computer. Also, any connection is properly termed a computer-readable medium. For example, If instructions are sent from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial Electrical cables, fiber optic cables, twisted pairs, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, and are instead intended for non-transitory, tangible storage media. Disks and optical disks, as used in the application, include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs. Disks typically copy data magnetically, while discs use lasers to optically copy data. Copy the data locally.
综上所述,本发明提供基于最优分割的智能计件方法、装置、终端及存储介质,本发明技术方案适用性强且计件准确度高:使用缝纫机最基础的运行数据(针数、主轴电机启停时间),结合最优分割算法和距离算法即可得到准确的计件,因此不会出现无剪线、抬压脚数据时无法计件的情况;本发明在计件过程中可以识别缝制异常(如返工、不符合缝制工艺要求等)的情况,能够帮助工人及时发现质量问题,避免不必要的返工,提高缝制效率;本发明的技术方案易于使用,无需工人额外操作,且工序模板数据可以在样衣加工或者工序分解过程中获得,整个计件过程无需工人按键或扫码,全自动完成;本发明在计件过程中,能够准确的识别每件开始缝制、结束缝制的时间点(准确的分段),为工人学习曲线分析、效率分析、技能评价、设备稼动率分析提供了可能。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。To sum up, the present invention provides an intelligent piece counting method, device, terminal and storage medium based on optimal segmentation. The technical solution of the present invention has strong applicability and high piece counting accuracy: using the most basic operating data of the sewing machine (number of needles, spindle motor Start and stop time), combined with the optimal segmentation algorithm and distance algorithm, accurate piece counting can be obtained, so there will be no situation where piece counting cannot occur when there is no thread trimming or presser foot lifting data; the present invention can identify sewing abnormalities during the piece counting process ( Such as rework, non-compliance with sewing process requirements, etc.), it can help workers find quality problems in time, avoid unnecessary rework, and improve sewing efficiency; the technical solution of the present invention is easy to use, does not require additional operations by workers, and has process template data It can be obtained during sample processing or process decomposition. The entire piece counting process does not require workers to press buttons or scan codes, and is completed automatically; during the piece counting process, the present invention can accurately identify the time points at which each piece starts and ends sewing ( Accurate segmentation) provides the possibility for worker learning curve analysis, efficiency analysis, skill evaluation, and equipment utilization rate analysis. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。 The above embodiments only illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed in the present invention shall still be covered by the claims of the present invention.

Claims (10)

  1. 一种基于最优分割的智能计件方法,其特征在于,包括:An intelligent piece counting method based on optimal segmentation, which is characterized by including:
    获取工序模板数据;Get process template data;
    获取待计件缝制件的缝制设备运行数据并截取计件数据窗口;Obtain the sewing equipment operating data of the pieces to be sewn and intercept the piece counting data window;
    根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点;Set segmentation points between pieces for the piece counting data window according to the sewing characteristic parameters in the process template data;
    基于所述计件数据窗口中设置的件与件之间的分段点,使用最优分割算法对所述计件数据窗口进行最优计件,并根据最优计件的计件结果更新所述待计件缝制件的总计件数。Based on the segmentation points between pieces set in the piece counting data window, use the optimal segmentation algorithm to perform optimal piece counting on the piece counting data window, and update the sewing of the pieces to be counted based on the piece counting results of the optimal piece counting The total number of pieces.
  2. 根据权利要求1所述的基于最优分割的智能计件方法,其特征在于,所述获取工序模板数据的方式包括:在样衣缝制过程中,通过数据采集模块和人机交互模块来获取工序模板数据;或者,根据标准工时库编辑或导出的缝制数据获取工序模板数据。The intelligent piece counting method based on optimal segmentation according to claim 1, characterized in that the method of obtaining process template data includes: during the sample sewing process, obtaining the process through a data acquisition module and a human-computer interaction module. Template data; or, obtain process template data based on sewing data edited or exported from the standard working hours library.
  3. 根据权利要求1所述的基于最优分割的智能计件方法,其特征在于,所述计件数据窗口的截取方式包括如下任一种:The intelligent piece counting method based on optimal segmentation according to claim 1, characterized in that the interception method of the piece counting data window includes any of the following:
    从所述缝制设备运行数据中截取固定时间长度的数据作为计件数据窗口;Intercept data of a fixed length of time from the sewing equipment operating data as a piece counting data window;
    对于上一个计件数据窗口完成计件后的非整件遗留数据,追加缝制设备运行数据并累加针数值,直至当前计件数据窗口的总针数是工序模板数据总针数的预设整数倍或者出现预设的停止信号;其中,所述当前计件数据窗口的总针数的计算过程包括:以所述工序模板数据总针数为基准,并以当前计件数据窗口的总针数除以工序模板数据总针数后的向上取整值为相乘倍数,将基准和相乘倍数相乘得到。For the non-whole piece data left after the piece counting is completed in the previous piece counting data window, add the sewing equipment operating data and accumulate the needle value until the total number of needles in the current piece counting data window is the preset integer multiple of the total number of needles in the process template data or an Preset stop signal; wherein, the calculation process of the total number of stitches in the current piece counting data window includes: taking the total number of stitches in the process template data as a benchmark, and dividing the total number of stitches in the current piece counting data window by the process template data The rounded-up value after the total number of stitches is the multiplication factor, which is obtained by multiplying the base and the multiplication factor.
  4. 根据权利要求1所述的基于最优分割的智能计件方法,其特征在于,还包括对所述工序模板数据以及截取到的计件数据窗口数据做预处理,预处理方式包括:The intelligent piece counting method based on optimal segmentation according to claim 1, characterized in that it also includes preprocessing the process template data and the intercepted piece counting data window data, and the preprocessing method includes:
    根据时间戳为所述工序模板数据以及计件数据窗口数据添加时间间隔列数据;Add time interval column data to the process template data and piece counting data window data according to the timestamp;
    将主轴电机停止时间小于预设时间的数据项删除以合并被删除数据项的上、下相邻项数据;Delete the data items whose spindle motor stop time is less than the preset time to merge the data of the upper and lower adjacent items of the deleted data items;
    根据工序模板中时间间隔列的数据,处理计件数据窗口中时间间隔列的异常数据;Process the abnormal data in the time interval column in the piece counting data window based on the data in the time interval column in the process template;
    将所述工序模板数据和计件数据窗口数据做归一化处理。The process template data and piece counting data window data are normalized.
  5. 根据权利要求1所述的基于最优分割的智能计件方法,其特征在于,所述根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点,包括基于所述缝制特征参数中的取放料时间进行分段,包括:以所述计件数据窗口的时间间隔列中大于所述 取放料时间与一预设阈值的乘积的数据项作为分段点。The intelligent piece counting method based on optimal segmentation according to claim 1, wherein the segmentation points between pieces are set for the piece counting data window according to the sewing characteristic parameters in the process template data, Including segmenting based on the picking and placing time in the sewing characteristic parameters, including: dividing the time interval column in the piece counting data window by greater than the The data item that is the product of the discharging time and a preset threshold is taken as the segmentation point.
  6. 根据权利要求1所述的基于最优分割的智能计件方法,其特征在于,所述使用优分割算法对所述计件数据窗口进行最优计件,包括:The intelligent piece counting method based on optimal segmentation according to claim 1, characterized in that the use of the optimal segmentation algorithm to perform optimal piece counting on the piece counting data window includes:
    根据所述计件数据窗口中设置的件与件之间的分段点,将所述计件数据窗口中的数据分割为多段分段数据;According to the segmentation points between pieces set in the piece counting data window, divide the data in the piece counting data window into multiple segments of segmented data;
    计算各分段数据与所述工序模板数据之间的距离;Calculate the distance between each segmented data and the process template data;
    基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数;Calculate a segmentation loss function based on the distance between all segmented data and the process template data;
    求取所述分段损失函数的最小值以获取所述最小值所对应的分段数及分段方式;Find the minimum value of the segmentation loss function to obtain the number of segments and the segmentation method corresponding to the minimum value;
    基于所述最小值所对应的分段数及分段方式,得到每段分段数据的总针数,并根据总针数是否小于基于工序模板数据的总针数设置的针数阈值,判断该分段是否被计入件数;Based on the number of segments and the segmentation method corresponding to the minimum value, the total number of stitches in each segment of segmented data is obtained, and based on whether the total number of stitches is less than the stitch number threshold set based on the total number of stitches in the process template data, the number of stitches is determined. Whether segments are counted in the piece count;
    输出所述所述计件数据窗口的计件结果信息。Output the piece counting result information of the piece counting data window.
  7. 根据权利要求6所述的基于最优分割的智能计件方法,其特征在于,所述基于所有分段数据与所述工序模板数据之间的距离计算分段损失函数,包括:以各段分段数据与工序模板数据之间的距离之和为所述分段损失函数。The intelligent piece counting method based on optimal segmentation according to claim 6, wherein calculating the segmentation loss function based on the distance between all segmented data and the process template data includes: segmenting each segment into The sum of the distances between the data and the process template data is the piecewise loss function.
  8. 一种基于最优分割的智能计件装置,其特征在于,包括:An intelligent piece counting device based on optimal segmentation, characterized by including:
    模板模块,用于获取工序模板数据;Template module, used to obtain process template data;
    截取模块,用于获取待计件缝制件的缝制设备运行数据并截取计件数据窗口;The interception module is used to obtain the sewing equipment operating data of the pieces to be sewn and intercept the piece counting data window;
    分段模块,用于根据工序模板数据中的缝制特征参数,为所述计件数据窗口设置件与件之间的分段点;A segmentation module, used to set segmentation points between pieces for the piece counting data window based on the sewing characteristic parameters in the process template data;
    计件模块,用于基于所述计件数据窗口中设置的件与件之间的分段点,使用最优分割算法对所述计件数据窗口进行最优计件,并根据最优计件的计件结果更新所述待计件缝制件的总计件数。The piece counting module is configured to use the optimal segmentation algorithm to perform optimal piece counting on the piece counting data window based on the segmentation points between pieces set in the piece counting data window, and update the piece counting results according to the optimal piece counting. Indicates the total number of pieces to be sewn.
  9. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述基于最优分割的智能计件方法。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the intelligent piece counting method based on optimal segmentation described in any one of claims 1 to 7 is implemented.
  10. 一种智能计件终端,其特征在于,包括:处理器及存储器;An intelligent piece counting terminal is characterized by including: a processor and a memory;
    所述存储器用于存储计算机程序;The memory is used to store computer programs;
    所述处理器用于执行所述存储器存储的计算机程序,以使所述终端执行如权利要求1 至7中任一项所述基于最优分割的智能计件方法。 The processor is used to execute the computer program stored in the memory, so that the terminal executes the method of claim 1 The intelligent piece counting method based on optimal segmentation described in any one of to 7.
PCT/CN2023/090546 2022-08-02 2023-04-25 Optimal-segmentation-based intelligent piece counting method, apparatus, terminal and storage medium WO2024027225A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210921956.X 2022-08-02
CN202210921956.XA CN117556861A (en) 2022-08-02 2022-08-02 Intelligent counting method, device, terminal and storage medium based on optimal segmentation

Publications (1)

Publication Number Publication Date
WO2024027225A1 true WO2024027225A1 (en) 2024-02-08

Family

ID=89817173

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/090546 WO2024027225A1 (en) 2022-08-02 2023-04-25 Optimal-segmentation-based intelligent piece counting method, apparatus, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN117556861A (en)
WO (1) WO2024027225A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010035893A (en) * 2008-08-07 2010-02-18 Brother Ind Ltd Sewing machine, and sewing machine control program
CN109146266A (en) * 2018-08-03 2019-01-04 浙江汉脑数码科技有限公司 A kind of Internet of Things sewing machine system
CN110162552A (en) * 2019-05-09 2019-08-23 山东科技大学 Time series feature extracting method and system based on confidence interval
CN110373818A (en) * 2019-07-09 2019-10-25 杰克缝纫机股份有限公司 Sewing machine is reckoned by the piece method, apparatus, sewing machine and computer readable storage medium
CN114355855A (en) * 2022-01-10 2022-04-15 北京宜通华瑞科技有限公司 Automatic AI piece counting system of sewing mechanical equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010035893A (en) * 2008-08-07 2010-02-18 Brother Ind Ltd Sewing machine, and sewing machine control program
CN109146266A (en) * 2018-08-03 2019-01-04 浙江汉脑数码科技有限公司 A kind of Internet of Things sewing machine system
CN110162552A (en) * 2019-05-09 2019-08-23 山东科技大学 Time series feature extracting method and system based on confidence interval
CN110373818A (en) * 2019-07-09 2019-10-25 杰克缝纫机股份有限公司 Sewing machine is reckoned by the piece method, apparatus, sewing machine and computer readable storage medium
CN114355855A (en) * 2022-01-10 2022-04-15 北京宜通华瑞科技有限公司 Automatic AI piece counting system of sewing mechanical equipment

Also Published As

Publication number Publication date
CN117556861A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US11461294B2 (en) System for importing data into a data repository
US20200301945A1 (en) System for data management in a large scale data repository
US7797356B2 (en) Dynamically detecting exceptions based on data changes
WO2020253066A1 (en) Page management method and apparatus, and computer device and storage medium
US20210366055A1 (en) Systems and methods for generating accurate transaction data and manipulation
WO2018228049A1 (en) Database performance index monitoring method, apparatus and device, and storage medium
CN114461644A (en) Data acquisition method and device, electronic equipment and storage medium
WO2023125032A1 (en) Scientific research data change review method based on data snapshot, and server
CN108241925A (en) A kind of discrete manufacture mechanical product quality source tracing method based on outlier detection
WO2024027225A1 (en) Optimal-segmentation-based intelligent piece counting method, apparatus, terminal and storage medium
CN115221143A (en) Cross-type migration operator-based multi-source big data processing method
CN110287114B (en) Method and device for testing performance of database script
CN112596851A (en) Multi-source heterogeneous data batch extraction method and analysis method of simulation platform
CN105573984A (en) Socio-economic indicator identification method and device
CN111583394B (en) Knowledge technology inspection method and system based on feature recognition
CN114912866A (en) Information association method, device, equipment and storage medium
CN114328452A (en) Data auditing method, device, platform, electronic equipment and storage medium
WO2024027227A1 (en) Sewing device intelligent process identification and piece counting method and system, and terminal, and medium
CN117556860A (en) Intelligent counting method, intelligent counting device, terminal and storage medium
CN116126873B (en) Data summarization method and device based on nonstandard data table and storage medium
CN113505934B (en) TMS intelligent logistics time management method and device
CN116431698B (en) Data extraction method, device, equipment and storage medium
CN114416060B (en) Complex event processing method and system of time sequence data suitable for data security field
CN110879722B (en) Method and device for generating logic schematic diagram and computer storage medium
CN117112285A (en) Data processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23848936

Country of ref document: EP

Kind code of ref document: A1