A deformation matching method, device, computer equipment and storage medium

By identifying and matching the deformation of the fabric and adjusting the processing process, the problem of low accuracy in traditional fabric processing methods is solved, and more efficient fabric processing is achieved.

CN113283425BActive Publication Date: 2025-02-28SHENZHEN RUIDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110402337.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-14
Publication Date
2025-02-28
Estimated Expiration
2041-04-14

AI Technical Summary

Technical Problem

Traditional fabric processing methods have the problem of low processing accuracy, especially when the fabric is elastic, slight stretching will cause deformation of 3-5mm, affecting the processing accuracy.

Method used

By identifying the current data and standard fabric data of the fabric to be processed, establishing the current fabric vector and standard fabric vector, building an alignment transformation model, obtaining the mapping relationship of the data, performing deformation matching operations, and adjusting the processing process to adapt to the actual deformation of the fabric.

Benefits of technology

Accurate processing of fabrics is achieved, processing accuracy is improved, material scrapping is reduced, and production efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113283425B_ABST
    Figure CN113283425B_ABST
Patent Text Reader

Abstract

The embodiments of the present application belong to the field of image processing technology in artificial intelligence, and relate to a deformation matching method, device, computer equipment and storage medium applied to fabric processing. In addition, the present application also relates to blockchain technology, and the user's current fabric data and target processing procedures can be stored in the blockchain. The present application obtains the actual deformed fabric to be processed and compares it with the default standard fabric, and establishes an alignment transformation model for obtaining the mapping relationship between the fabric to be processed and the standard fabric in real time, and matches and adjusts the standard processing procedure based on the mapping data of each point of the fabric to be processed, so as to obtain the target processing procedure that meets the current actual deformation of the fabric, and finally the target processing procedure is used to process the fabric to be processed, thereby effectively solving the problem of low processing accuracy in traditional fabric processing methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology in artificial intelligence, and in particular to a deformation matching method, device, computer equipment and storage medium applied to cloth processing. Background Art

[0002] Fabric is a commonly used material in decoration. It includes chemical fiber carpet, non-woven wall cloth, linen, nylon, colored tape, flannel and other fabrics. Fabric plays a significant role in decoration and display, and is often the main force that cannot be ignored in the entire sales space. Using a large amount of fabric for wall decoration, partitions, and background processing can also form a good commercial space display style.

[0003] There is a cloth processing method, which places the cloth to be processed on a processing table, identifies the cloth to be processed, and finally processes the cloth to be processed according to the identified cloth to be processed and a pre-set processing procedure, thereby achieving the purpose of cloth processing.

[0004] However, the applicant found that the traditional cloth processing method is generally not intelligent. In cloth processing and production, due to the elasticity of cloth, a slight stretch may cause a deformation of 3-5mm or even larger in the coordinate system. In the production process, even if the target can be identified, the processing will be inaccurate in the deformed area. This will lead to the scrapping of the processed material. It can be seen that the traditional cloth processing method has the problem of low processing accuracy. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a deformation matching method, device, computer equipment and storage medium applied to cloth processing, so as to solve the problem of low processing accuracy in traditional cloth processing methods.

[0006] In order to solve the above technical problems, the embodiment of the present application provides a deformation matching method applied to cloth processing, which adopts the following technical solution:

[0007] After the feeding device delivers the fabric to be processed to the processing area, an identification operation is performed on the fabric to be processed to obtain current fabric data;

[0008] Acquire standard cloth data, and establish a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data;

[0009] Building an alignment transformation model based on the current cloth vector and the standard cloth vector;

[0010] Acquire a mapping relationship between the current fabric data and the standard fabric data based on the alignment transformation model;

[0011] Performing a deformation matching operation on the processing procedure based on the mapping relationship to obtain a target processing procedure;

[0012] The cloth to be processed is processed based on the target processing procedure.

[0013] In order to solve the above technical problems, the embodiment of the present application further provides a deformation matching device applied to cloth processing, which adopts the following technical solution:

[0014] An image acquisition module is used to identify the fabric to be processed after the feeding device delivers the fabric to be processed to the processing area, and obtain current fabric data;

[0015] A cloth vector establishing module, used for acquiring standard cloth data, and establishing a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data;

[0016] A model building module, used for building an alignment transformation model based on the current cloth vector and the standard cloth vector;

[0017] A mapping relationship acquisition module, used for acquiring a mapping relationship between the current cloth data and the standard cloth data based on the alignment transformation model;

[0018] A deformation matching module, used for performing a deformation matching operation on the processing procedure based on the mapping relationship to obtain a target processing procedure;

[0019] The cloth processing module is used to perform a processing operation on the cloth to be processed based on the target processing procedure.

[0020] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0021] The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the deformation matching method applied to cloth processing as described above are implemented.

[0022] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0023] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the deformation matching method applied to cloth processing as described above are implemented.

[0024] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0025] The present application provides a deformation matching method for cloth processing, comprising: after a feeding device delivers a cloth to be processed to a processing area, the cloth to be processed is identified to obtain current cloth data; standard cloth data is obtained, and a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data are established; an alignment transformation model is constructed based on the current cloth vector and the standard cloth vector; a mapping relationship between the current cloth data and the standard cloth data is obtained based on the alignment transformation model; a deformation matching operation is performed on a processing procedure based on the mapping relationship to obtain a target processing procedure; and a processing operation is performed on the cloth to be processed based on the target processing procedure. The present application obtains the actual deformed cloth to be processed and compares it with the default standard cloth, and establishes an alignment transformation model for obtaining the mapping relationship between the cloth to be processed and the standard cloth in real time, matches and adjusts the standard processing procedure based on the mapping data of each point of the cloth to be processed, thereby obtaining a target processing procedure that meets the current actual deformation of the cloth, and finally the target processing procedure is used to process the cloth to be processed, thereby effectively solving the problem of low processing accuracy in traditional cloth processing methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0027] Figure 1 is a flow chart of the implementation of the deformation matching method applied to cloth processing provided in the first embodiment of the present application;

[0028] Figure 2 yes Figure 1 Implementation flow chart of step S102;

[0029] Figure 3 yes Figure 1 Implementation flow chart of step S103;

[0030] Figure 4 This is a schematic diagram of the structure of a deformation matching device for cloth processing provided in Example 2 of the present application:

[0031] Figure 5 yes Figure 4 A schematic diagram of the structure of the cloth vector establishment module 120;

[0032] Figure 6 yes Figure 4 A schematic diagram of the structure of the model building module 130;

[0033] Figure 7 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0037] like Figure 1 As shown, a flowchart of the implementation of the deformation matching method applied to cloth processing provided in the first embodiment of the present application is shown. For the sake of convenience of explanation, only the part related to the present application is shown.

[0038] The above-mentioned deformation matching method applied to cloth processing comprises the following steps:

[0039] Step S101: After the feeding device delivers the fabric to be processed to the processing area, the fabric to be processed is identified to obtain current fabric data.

[0040] In the embodiment of the present application, the feeding equipment is mainly used for the automated, numerically controlled and precise conveying of the above-mentioned fabrics to be processed, which is an indispensable transmission equipment for both light industry and heavy industry.

[0041] In an embodiment of the present application, in an embodiment of the present application, a photographing device for taking photos of the processing area is provided in the processing area. The photographing device may be a camera, a surveillance camera, etc. When the photographing device receives a signal from the feeding device to stop feeding (indicating that the target material has completed one conveying), the processing area is photographed to obtain relevant photos of the positional relationship between the fabric to be processed and the processing area, i.e., the above-mentioned current fabric data.

[0042] Step S102: Acquire standard cloth data, and establish a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data.

[0043] In the embodiment of the present application, the standard fabric data refers to the fabric shape of the fabric to be processed without any deformation. The standard fabric data is mainly used to compare the deformation of the current fabric to be processed so as to adjust the processing procedure later.

[0044] In the embodiment of the present application, the following operations may be performed to establish the current cloth vector corresponding to the current cloth data and the standard cloth vector corresponding to the standard cloth data:

[0045] 1) Roughly align the contour points of the current fabric data with those of the standard fabric data, and perform affine transformation on the current fabric data so that the current fabric data roughly overlaps with the standard fabric data;

[0046] 2) Resample the contours of the current fabric data and the standard fabric data, and then adjust the scale of contour points and make the contour point series evenly distributed;

[0047] 3) performing a cropping transformation on the contour point sequence, thereby mapping the contour point sequence into the smallest common square area;

[0048] 4) performing a normalization transformation on the contour point sequence in the minimum common square area, that is, mapping the point sequence to the [0,1]x[0,1] space to form two-dimensional spatial data;

[0049] 5) By comparing the three-dimensional spatial data of the standard fabric data and the current fabric data, the corresponding relationship between the current fabric data and the standard fabric data can be obtained.

[0050] Step S103: constructing an alignment transformation model based on the current cloth vector and the standard cloth vector.

[0051] In the embodiment of the present application, the process of constructing the alignment transformation model may be:

[0052] 1) Initialize the grid, let n be the number of divisions on each edge, and calculate the regularization term;

[0053] 2) Initialize the B-spline basis space;

[0054] 3) Calculate the curvature, tangent slope, and external normal direction at each point of the contour;

[0055] 4) Calculate the distance error between the contour points of the current fabric data and the standard fabric data;

[0056] 5) In order to minimize the error, calculate the error derivative and update the grid coefficient;

[0057] 6) Update the grid points, calculate the error, and determine whether to return to step 5), otherwise exit the calculation to obtain the alignment transformation model.

[0058] Step S104: obtaining a mapping relationship between current cloth data and standard cloth data based on the alignment transformation model.

[0059] In the embodiment of the present application, the alignment transformation model can obtain a mapping relationship between the change of current cloth data and the change of standard cloth data.

[0060] Step S105: performing a deformation matching operation on the standard processing procedure based on the mapping relationship to obtain a target processing procedure.

[0061] In the embodiment of the present application, the standard processing procedure is mainly used to process standard fabric images. The standard processing procedure is suitable for processing fabrics without any deformation. When it is necessary to process the fabric after the current deformation, it is necessary to adjust the corresponding processing position of the processing procedure according to the mapping relationship obtained above, so that the adjusted processing procedure can be applicable to the fabric in the current deformation condition.

[0062] Step S106: performing processing operations on the fabric to be processed based on the target processing procedure.

[0063] In an embodiment of the present application, a deformation matching method for cloth processing is provided, comprising: after a feeding device delivers a cloth to be processed to a processing area, the cloth to be processed is identified to obtain current cloth data; standard cloth data is obtained, and a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data are established; an alignment transformation model is constructed based on the current cloth vector and the standard cloth vector; a mapping relationship between the current cloth data and the standard cloth data is obtained based on the alignment transformation model; a deformation matching operation is performed on the processing procedure based on the mapping relationship to obtain a target processing procedure; and a processing operation is performed on the cloth to be processed based on the target processing procedure. The present application obtains the actual deformed cloth to be processed and compares it with the default standard cloth, and establishes an alignment transformation model for obtaining the mapping relationship between the cloth to be processed and the standard cloth in real time, matches and adjusts the standard processing procedure based on the mapping data of each point of the cloth to be processed, thereby obtaining a target processing procedure that meets the current actual deformation of the cloth, and finally the target processing procedure is used to process the cloth to be processed, thereby effectively solving the problem of low processing accuracy in traditional cloth processing methods.

[0064] Continue reading Figure 2 , showing Figure 1 For the sake of convenience, only the part related to the present application is shown in the implementation flow chart of step S102.

[0065] In some optional implementations of this embodiment, step S102 specifically includes:

[0066] Step S201: constructing a processing space vector based on the processing area;

[0067] Step S202: performing vector conversion on the current cloth data based on the processing space vector to obtain the current cloth vector;

[0068] Step S203: vectorizing the standard cloth data based on the processing space vector to obtain a standard cloth vector.

[0069] In an embodiment of the present application, the current cloth data refers to three-dimensional image data obtained based on three-dimensional spatial scanning, and the three-dimensional image data can describe the three-dimensional image information of each contour point of the cloth to be processed. Based on the three-dimensional image information, the current cloth data can be used to identify the specific position information of each cloth point in the above-mentioned processing space through a three-dimensional vector.

[0070] Continue reading Figure 3 , showing Figure 1 For the sake of convenience, only the part related to the present application is shown in the implementation flow chart of step S103.

[0071] In some optional implementations of this embodiment, step S103 specifically includes:

[0072] Step S301: Initialize the original alignment transformation model and the B-spline basis space;

[0073] Step S302: Calculate the current cloth curvature, the current cloth tangent slope and the current cloth external normal direction of each contour point of the cloth to be processed based on the current cloth vector;

[0074] Step S303: based on the curvature of the current cloth, the slope of the current cloth tangent and the direction of the current cloth outer normal, the distance error value between each contour point of the cloth to be processed and each contour point of the standard cloth;

[0075] Step S304: performing a model update operation on the original alignment transformation model based on the distance error value, and obtaining a constructed alignment transformation model when the distance error value meets a preset error threshold.

[0076] In the embodiment of the present application, the core formula derivation process of the alignment transformation model is:

[0077] 1) Assume that the existing contour data are recorded as data and template, s i is any point in the data, t j is the corresponding point associated with it in the template, τ is the entire model, and T j and N j Respectively represent the unit vectors of the tangent and normal directions of the unit; d is the Euclidean distance, and ρ is the radius of curvature; then the quadratic distance calculation formula is:

[0078]

[0079] The grid formula is:

[0080]

[0081] Among them, B i ,B j Indicates that it has C 2 Continuous B-spline basis function; P represents the coordinate point at position (i, j), L represents the grid coordinate. M and N represent the number of horizontal and vertical divisions of the grid.

[0082] 2) Let m(x) represent the monomial form {B i (x)B j (y)} vector, then:

[0083]

[0084] In practice, the following hybrid function form is often used:

[0085]

[0086]

[0087] So there are:

[0088]

[0089] 3) There is the following relationship between XY space and UV space:

[0090]

[0091]

[0092] 4) In order to avoid overfitting, a regularization term is introduced:

[0093] T(P)=∫∫ XY ||L xx || 2 +2||L xy || 2 +||L yy || 2 dxdy.

[0094] Or it can be converted into matrix form

[0095]

[0096] in:

[0097]

[0098] 5) The model problem is transformed into solving the minimum value of the following objective function:

[0099]

[0100] Right now:

[0101]

[0102] Eliminating partial derivatives and You can get:

[0103]

[0104]

[0105] The calculation formulas for Ay and by can be obtained in the same way.

[0106] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned current fabric data and target processing procedures, the above-mentioned current fabric data and target processing procedures can also be stored in a node of a blockchain.

[0107] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0108] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0110] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0111] Embodiment 2

[0112] Further references Figure 4 , as a response to the above Figure 1 The present application provides an embodiment of a deformation matching device for cloth processing, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0113] like Figure 4 As shown, the deformation matching device 100 applied to cloth processing of this embodiment includes: an image acquisition module 110, a cloth vector establishment module 120, a model construction module 130, a mapping relationship acquisition module 140, a deformation matching module 150 and a cloth processing module 160. Among them:

[0114] The image acquisition module 110 is used to identify the fabric to be processed after the feeding device delivers the fabric to be processed to the processing area, and obtain the current fabric data;

[0115] A cloth vector establishing module 120, for acquiring standard cloth data, and establishing a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data;

[0116] A model building module 130, for building an alignment transformation model based on the current cloth vector and the standard cloth vector;

[0117] A mapping relationship acquisition module 140, used to acquire a mapping relationship between current cloth data and standard cloth data based on an alignment transformation model;

[0118] A deformation matching module 150 is used to perform a deformation matching operation on the processing procedure based on the mapping relationship to obtain a target processing procedure;

[0119] The cloth processing module 160 is used to perform processing operations on the cloth to be processed based on the target processing procedure.

[0120] In the embodiment of the present application, the feeding equipment is mainly used for the automated, numerically controlled and precise conveying of the above-mentioned fabrics to be processed, which is an indispensable transmission equipment for both light industry and heavy industry.

[0121] In an embodiment of the present application, in an embodiment of the present application, a photographing device for taking photos of the processing area is provided in the processing area. The photographing device may be a camera, a surveillance camera, etc. When the photographing device receives a signal from the feeding device to stop feeding (indicating that the target material has completed one conveying), the processing area is photographed to obtain relevant photos of the positional relationship between the fabric to be processed and the processing area, i.e., the above-mentioned current fabric data.

[0122] In the embodiment of the present application, the standard fabric data refers to the fabric shape of the fabric to be processed without any deformation. The standard fabric data is mainly used to compare the deformation of the current fabric to be processed so as to adjust the processing procedure later.

[0123] In the embodiment of the present application, the following operations may be performed to establish the current cloth vector corresponding to the current cloth data and the standard cloth vector corresponding to the standard cloth data:

[0124] 1) Roughly align the contour points of the current fabric data with those of the standard fabric data, and perform affine transformation on the current fabric data so that the current fabric data roughly overlaps with the standard fabric data;

[0125] 2) Resample the contours of the current fabric data and the standard fabric data, and then adjust the scale of contour points and make the contour point series evenly distributed;

[0126] 3) performing a cropping transformation on the contour point sequence, thereby mapping the contour point sequence into the smallest common square area;

[0127] 4) performing a normalization transformation on the contour point sequence in the minimum common square area, that is, mapping the point sequence to the [0,1]x[0,1] space to form two-dimensional spatial data;

[0128] 5) By comparing the three-dimensional spatial data of the standard fabric data and the current fabric data, the corresponding relationship between the current fabric data and the standard fabric data can be obtained.

[0129] In the embodiment of the present application, the process of constructing the alignment transformation model may be:

[0130] 1) Initialize the grid, let n be the number of divisions on each edge, and calculate the regularization term;

[0131] 2) Initialize the B-spline basis space;

[0132] 3) Calculate the curvature, tangent slope, and external normal direction at each point of the contour;

[0133] 4) Calculate the distance error between the contour points of the current fabric data and the standard fabric data;

[0134] 5) In order to minimize the error, calculate the error derivative and update the grid coefficient;

[0135] 6) Update the grid points, calculate the error, and determine whether to return to step 5), otherwise exit the calculation to obtain the alignment transformation model.

[0136] In the embodiment of the present application, the alignment transformation model can obtain a mapping relationship between the change of current cloth data and the change of standard cloth data.

[0137] In the embodiment of the present application, the standard processing procedure is mainly used to process standard fabric images. The standard processing procedure is suitable for processing fabrics without any deformation. When it is necessary to process the fabric after the current deformation, it is necessary to adjust the corresponding processing position of the processing procedure according to the mapping relationship obtained above, so that the adjusted processing procedure can be applicable to the fabric in the current deformation condition.

[0138] In an embodiment of the present application, a deformation matching device for cloth processing is provided, including: an image acquisition module, which is used to identify the cloth to be processed after the feeding device conveys the cloth to be processed to the processing area to obtain current cloth data; a cloth vector establishment module, which is used to obtain standard cloth data, and establish a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data; a model construction module, which is used to construct an alignment transformation model based on the current cloth vector and the standard cloth vector; a mapping relationship acquisition module, which is used to obtain a mapping relationship between the current cloth data and the standard cloth data based on the alignment transformation model; a deformation matching module, which is used to perform a deformation matching operation on the processing procedure based on the mapping relationship to obtain a target processing procedure; and a cloth processing module, which is used to perform a processing operation on the cloth to be processed based on the target processing procedure. The present application obtains the actual deformed fabric to be processed and compares it with the default standard fabric, and establishes in real time an alignment transformation model for obtaining the mapping relationship between the fabric to be processed and the standard fabric, and matches and adjusts the standard processing procedure based on the mapping data of each point of the fabric to be processed, so as to obtain a target processing procedure that meets the current actual deformation of the fabric, and finally performs processing operations on the fabric to be processed using the target processing procedure, thereby effectively solving the problem of low processing accuracy in traditional fabric processing methods.

[0139] Continue reading Figure 5 , showing Figure 4 The structural diagram of the cloth vector establishment module 120 in FIG. 1 only shows the part related to the present application for the convenience of explanation.

[0140] In some optional implementations of this embodiment, the cloth vector establishment module 120 includes: a space vector construction submodule 121, a current cloth vector acquisition submodule 122 and a standard cloth vector acquisition submodule 123. Among them:

[0141] A space vector construction submodule 121 is used to construct a processing space vector based on a processing area;

[0142] The current cloth vector acquisition submodule 122 is used to perform vectorization conversion on the current cloth data based on the processing space vector to obtain the current cloth vector;

[0143] The standard cloth vector acquisition submodule 123 is used to perform vector conversion on the standard cloth data based on the processing space vector to obtain the standard cloth vector.

[0144] In an embodiment of the present application, the current cloth data refers to three-dimensional image data obtained based on three-dimensional spatial scanning, and the three-dimensional image data can describe the three-dimensional image information of each contour point of the cloth to be processed. Based on the three-dimensional image information, the current cloth data can be used to identify the specific position information of each cloth point in the above-mentioned processing space through a three-dimensional vector.

[0145] Continue reading Figure 6 , showing Figure 4 The structural diagram of the model building module 130 in FIG. 1 only shows the part related to the present application for the convenience of explanation.

[0146] In some optional implementations of this embodiment, the model building module 130 includes: an initialization submodule 131, a contour point data calculation submodule 132, a distance error calculation submodule 133 and a model update submodule 134. Among them:

[0147] Initialization submodule 131, used to initialize the original alignment transformation model and the B-spline basis space;

[0148] The contour point data calculation submodule 132 is used to calculate the current cloth curvature, the current cloth tangent slope and the current cloth external normal direction of each contour point of the cloth to be processed based on the current cloth vector;

[0149] The distance error calculation submodule 133 is used to calculate the distance error value between each contour point of the to-be-processed fabric and each contour point of the standard fabric based on the curvature of the current fabric, the slope of the current fabric tangent and the direction of the current fabric outer normal;

[0150] The model updating submodule 134 is used to perform a model updating operation on the original alignment transformation model based on the distance error value, and obtain a constructed alignment transformation model when the distance error value meets a preset error threshold.

[0151] In the embodiment of the present application, the core formula derivation process of the alignment transformation model is:

[0152] 1) Assume that the existing contour data are recorded as data and template, s i is any point in the data, t j is the corresponding point associated with it in the template, τ is the entire model, and T j and N j Respectively represent the unit vectors of the tangent and normal directions of the unit; d is the Euclidean distance, and ρ is the radius of curvature; then the quadratic distance calculation formula is:

[0153]

[0154] The grid formula is:

[0155]

[0156] Among them, B i ,B j Indicates that it has C 2 Continuous B-spline basis function; P represents the coordinate point at position (i, j), L represents the grid coordinate. M and N represent the number of horizontal and vertical divisions of the grid.

[0157] 2) Let m(x) represent the monomial form {B i (x)B j (y)} vector, then:

[0158]

[0159] In practice, the following hybrid function form is often used:

[0160]

[0161]

[0162] So there are:

[0163]

[0164] 3) There is the following relationship between XY space and UV space:

[0165]

[0166]

[0167] 4) In order to avoid overfitting, a regularization term is introduced:

[0168] T(P)=∫∫ XY||L xx || 2 +2||L xy || 2 +||L yy || 2 dxdy.

[0169] Or it can be converted into matrix form

[0170]

[0171] in:

[0172]

[0173] 5) The model problem is transformed into solving the minimum value of the following objective function:

[0174]

[0175] Right now:

[0176]

[0177] Eliminating partial derivatives and You can get:

[0178]

[0179]

[0180] The calculation formulas for Ay and by can be obtained in the same way.

[0181] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.

[0182] The computer device 200 includes a memory 210, a processor 220, and a network interface 230 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 200 having components 210-230, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0183] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0184] The memory 210 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 210 can be an internal storage unit of the computer device 200, such as a hard disk or memory of the computer device 200. In other embodiments, the memory 210 can also be an external storage device of the computer device 200, such as a plug-in hard disk equipped on the computer device 200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 210 can also include both the internal storage unit of the computer device 200 and its external storage device. In this embodiment, the memory 210 is generally used to store an operating system and various application software installed on the computer device 200, such as computer-readable instructions for a deformation matching method for cloth processing, etc. In addition, the memory 210 can also be used to temporarily store various data that have been output or are to be output.

[0185] The processor 220 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 220 is generally used to control the overall operation of the computer device 200. In this embodiment, the processor 220 is used to run the computer-readable instructions or process data stored in the memory 210, such as running the computer-readable instructions of the deformation matching method applied to cloth processing.

[0186] The network interface 230 may include a wireless network interface or a wired network interface. The network interface 230 is generally used to establish a communication connection between the computer device 200 and other electronic devices.

[0187] The computer device provided by the present application obtains the actual deformed fabric to be processed and compares it with the default standard fabric, and establishes in real time an alignment transformation model for obtaining the mapping relationship between the fabric to be processed and the standard fabric, and matches and adjusts the standard processing procedure based on the mapping data of each point of the fabric to be processed, so as to obtain a target processing procedure that meets the current actual deformation of the fabric, and finally the target processing procedure performs processing operations on the fabric to be processed, thereby effectively solving the problem of low processing accuracy in traditional fabric processing methods.

[0188] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the deformation matching method applied to cloth processing as described above.

[0189] The computer-readable instructions provided by the present application obtain the actual deformed fabric to be processed and compare it with the default standard fabric, and establish in real time an alignment transformation model for obtaining the mapping relationship between the fabric to be processed and the standard fabric, and match and adjust the standard processing procedure based on the mapping data of each point of the fabric to be processed, so as to obtain a target processing procedure that meets the current actual deformation of the fabric, and finally the target processing procedure performs a processing operation on the fabric to be processed, thereby effectively solving the problem of low processing accuracy in traditional fabric processing methods.

[0190] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0191] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A deformation matching method applied to cloth processing, characterized in that: The steps include: After the feeding device delivers the fabric to be processed to the processing area, the fabric to be processed is identified to obtain current fabric data, wherein the current fabric data refers to three-dimensional image data obtained by three-dimensionally scanning the fabric to be processed in space; Acquire standard cloth data, and establish a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data, wherein the standard cloth data refers to the cloth shape of the cloth to be processed in a state without any deformation; Building an alignment transformation model based on the current cloth vector and the standard cloth vector; Acquire a mapping relationship between the current fabric data and the standard fabric data based on the alignment transformation model; Performing a deformation matching operation on the standard processing procedure based on the mapping relationship to obtain a target processing procedure; Performing a processing operation on the fabric to be processed based on the target processing procedure; The step of constructing an alignment transformation model based on the current cloth vector and the standard cloth vector specifically includes: Initialize the original alignment transformation model and B-spline basis space; Calculating the current cloth curvature, the current cloth tangent slope and the current cloth outer normal direction of each contour point of the cloth to be processed based on the current cloth vector; The distance error value between each contour point of the to-be-processed cloth and each contour point of the standard cloth based on the curvature of the current cloth, the slope of the current cloth tangent and the direction of the current cloth outer normal; A model updating operation is performed on the original alignment transformation model based on the distance error value, and when the distance error value meets a preset error threshold, the constructed alignment transformation model is obtained.

2. The deformation matching method for cloth processing according to claim 1, characterized in that: The step of establishing the current cloth vector corresponding to the current cloth data and the standard cloth vector corresponding to the standard cloth data specifically includes: constructing a processing space vector based on the processing area; Performing vector conversion on the current cloth data based on the processing space vector to obtain a current cloth vector; The standard cloth data is vectorized and converted based on the processing space vector to obtain a standard cloth vector.

3. The deformation matching method for cloth processing according to claim 1, characterized in that: After the step of performing a deformation matching operation on the standard processing procedure based on the mapping relationship to obtain a target processing procedure, the method further includes: The current fabric data and target processing steps are stored in the blockchain.

4. A deformation matching device for cloth processing, characterized in that: include: An image acquisition module, used for performing an identification operation on the fabric to be processed to obtain current fabric data after the fabric to be processed is delivered to the processing area by the feeding device, wherein the current fabric data refers to three-dimensional image data obtained by three-dimensionally scanning the fabric to be processed in space; a cloth vector establishing module, used for acquiring standard cloth data, and establishing a current cloth vector corresponding to the current cloth data and a standard cloth vector corresponding to the standard cloth data, wherein the standard cloth data refers to the cloth shape of the cloth to be processed in a state without any deformation; A model building module, used for building an alignment transformation model based on the current cloth vector and the standard cloth vector; A mapping relationship acquisition module, used for acquiring a mapping relationship between the current cloth data and the standard cloth data based on the alignment transformation model; A deformation matching module, used for performing a deformation matching operation on the processing procedure based on the mapping relationship to obtain a target processing procedure; A cloth processing module, used for performing a processing operation on the cloth to be processed based on the target processing procedure; The model building module includes: Initialization submodule, used to initialize the original alignment transformation model and B-spline basis space; A contour point data calculation submodule, used for calculating the current cloth curvature, the current cloth tangent slope and the current cloth external normal direction of each contour point of the cloth to be processed based on the current cloth vector; A distance error calculation submodule, used for calculating the distance error value between each contour point of the to-be-processed cloth and each contour point of the standard cloth based on the curvature of the current cloth, the slope of the current cloth tangent and the direction of the current cloth outer normal; The model updating submodule is used to perform a model updating operation on the original alignment transformation model based on the distance error value, and obtain the constructed alignment transformation model when the distance error value meets a preset error threshold.

5. The deformation matching device for cloth processing according to claim 4, characterized in that: The cloth vector establishment module includes: A space vector construction submodule, used for constructing a processing space vector based on the processing area; A current cloth vector acquisition submodule, used for performing vector conversion on the current cloth data based on the processing space vector to obtain a current cloth vector; The standard cloth vector acquisition submodule is used to perform the vectorization conversion on the standard cloth data based on the processing space vector to obtain a standard cloth vector.

6. The deformation matching device for cloth processing according to claim 4, characterized in that: The device also includes: The data storage module is used to store the current fabric data and the target processing steps in the blockchain.

7. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the deformation matching method applied to cloth processing as described in any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the deformation matching method applied to cloth processing as claimed in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Clothing sketch input cloth material identification simulation method based on deep learning

    CN109961022A

  • Three-dimensional model deformation algorithm based on quasi-conformal mapping

    CN110176079A