A cloth deviation correction method and device, electronic equipment and storage medium
By acquiring images of the fabric captured by a camera, determining the coordinates of the fabric's center point, and adjusting the position of the winding and straightening mechanism, the problem of the fabric straightening sensor's inability to achieve precise alignment in existing technologies is solved, thus achieving precise fabric alignment.
Patent Information
- Application Number
- CN202411807070.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2044-12-09
AI Technical Summary
In existing technologies, fabric alignment sensors can only achieve coarse alignment, not precise alignment.
By acquiring images of the fabric captured by a camera, the coordinates of the center points on the fabric relative to the first and second positions are determined. Based on these coordinates and the time it takes for the fabric to reach the winding and straightening mechanism, the position of the winding and straightening mechanism is adjusted to achieve precise alignment.
It achieves precise alignment of the first and second positions of the fabric, improving the accuracy of the deviation correction.
Smart Images

Figure CN119774352B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of deviation correction control, in particular to a cloth deviation correction method, a cloth deviation correction device, an electronic device and a computer readable storage medium. BACKGROUND
[0002] At present, when the cloth is corrected, a deviation correction sensor is used. The deviation correction sensor is an optical sensor for sensing the change of the edge position of the cloth edge. The sensor is fixed on the winding mechanism and can move left and right with the winding deviation correction mechanism to sense the position of the cloth edge in real time. However, this method can only achieve rough alignment and cannot achieve accurate alignment. SUMMARY
[0003] In view of the above problems, the present application is proposed to provide a cloth deviation correction method, a cloth deviation correction device, an electronic device and a computer readable storage medium which overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problems, the present application discloses a cloth deviation correction method, which is applied to a controller. The controller is connected with a camera and a winding deviation correction mechanism respectively. The method comprises the following steps:
[0005] Obtaining a cloth image photographed by the camera, and determining a center point coordinate corresponding to a first position on the cloth according to the cloth image;
[0006] Determining a center point coordinate corresponding to a second position on the cloth; the second position is a next position of the first position;
[0007] Respectively determining the time when the first position and the second position reach the winding deviation correction mechanism;
[0008] Adjusting the position of the winding deviation correction mechanism according to the time when the first position and the second position reach the winding deviation correction mechanism, the center point coordinate corresponding to the first position and the center point coordinate corresponding to the second position.
[0009] Optionally, the step of determining the center point coordinate corresponding to the first position on the cloth according to the cloth image comprises the following steps:
[0010] Obtaining a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth respectively;
[0011] Determining the center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0012] Optionally, the determining the center point coordinate corresponding to the second position on the cloth comprises:
[0013] judging whether the second position on the cloth has a damage phenomenon;
[0014] when the second position on the cloth does not have a damage phenomenon, obtaining a third coordinate and a fourth coordinate corresponding to the second position on the cloth; the third coordinate and the fourth coordinate are two side coordinates corresponding to the second position on the cloth, respectively;
[0015] determining the center point coordinate corresponding to the second position on the cloth according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth;
[0016] when the second position on the cloth has a damage phenomenon, determining the center point coordinate of the second position according to the center point coordinate corresponding to the first position on the cloth.
[0017] Optionally, the judging whether the cloth has a damage phenomenon comprises:
[0018] determining a position where the cloth has a width change;
[0019] when the width change corresponding to the position where the cloth has a width change is within a preset range, determining that the cloth has a damage phenomenon;
[0020] when the width change corresponding to the position where the cloth has a width change is not within the preset range, determining that the cloth does not have a damage phenomenon.
[0021] Optionally, the determining the center point coordinate of the second position according to the center point coordinate corresponding to the first position on the cloth comprises:
[0022] obtaining a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth, respectively;
[0023] determining the center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth;
[0024] determining the center point coordinate corresponding to the first position on the cloth as the center point coordinate of the second position.
[0025] Optionally, the determining the time when the first position and the second position reach the winding and rectifying mechanism comprises:
[0026] obtaining a distance between the first position and the winding and rectifying mechanism;
[0027] acquire photographing time corresponding to the first position and the second position respectively;
[0028] acquire running speed of the winding and rectifying mechanism;
[0029] determine time when the first position and the second position reach the winding and rectifying mechanism respectively according to distance between the first position and the winding and rectifying mechanism, the photographing time corresponding to the first position and the second position respectively, and the running speed of the winding and rectifying mechanism.
[0030] Optionally, the adjusting the position of the winding and rectifying mechanism according to the time when the first position and the second position reach the winding and rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position comprises:
[0031] when the time interval between the current time and the time when the first position reaches the winding and rectifying mechanism is a preset time, adjusting the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the first position;
[0032] when the time interval between the current time and the time when the second position reaches the winding and rectifying mechanism is a preset time, adjusting the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the second position.
[0033] The embodiment of the application further discloses a rectifying device of cloth, which is applied to a controller; the controller is connected with a camera and a winding and rectifying mechanism respectively, and the device comprises:
[0034] a first determining module, which is used for acquiring cloth images shot by the camera, and determining a center point coordinate corresponding to a first position on the cloth according to the cloth images;
[0035] a second determining module, which is used for determining a center point coordinate corresponding to a second position on the cloth; the second position is a next position of the first position;
[0036] a third determining module, which is used for determining time when the first position and the second position reach the winding and rectifying mechanism respectively;
[0037] an adjusting module, which is used for adjusting the position of the winding and rectifying mechanism according to the time when the first position and the second position reach the winding and rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position.
[0038] Optionally, the first determining module comprises:
[0039] The first obtaining sub-module is configured to obtain a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image, wherein the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth, respectively.
[0040] The first determining sub-module is configured to determine a center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0041] Optionally, the second determining module comprises:
[0042] The judging sub-module is configured to judge whether a damage phenomenon occurs at the second position on the cloth.
[0043] The second obtaining sub-module is configured to obtain a third coordinate and a fourth coordinate corresponding to the second position on the cloth when the damage phenomenon does not occur at the second position on the cloth, wherein the third coordinate and the fourth coordinate are two side coordinates corresponding to the second position on the cloth, respectively.
[0044] The second determining sub-module is configured to determine a center point coordinate corresponding to the second position on the cloth according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth.
[0045] The third determining sub-module is configured to determine the center point coordinate of the second position according to the center point coordinate corresponding to the first position on the cloth when the damage phenomenon occurs at the second position on the cloth.
[0046] Optionally, the judging sub-module comprises:
[0047] The first determining unit is configured to determine a position where the width of the cloth changes.
[0048] The second determining unit is configured to determine that the damage phenomenon occurs on the cloth when the width change corresponding to the position where the width of the cloth changes is within a preset range.
[0049] The third determining unit is configured to determine that the damage phenomenon does not occur on the cloth when the width change corresponding to the position where the width of the cloth changes is not within the preset range.
[0050] Optionally, the third determining sub-module comprises:
[0051] The obtaining unit is configured to obtain a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image, wherein the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth, respectively.
[0052] The fourth determining unit is configured to determine a center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0053] The fifth determining unit is configured to determine the center point coordinate corresponding to the first position on the cloth as the center point coordinate of the second position.
[0054] Optionally, the third determining module comprises:
[0055] The third obtaining sub-module is configured to obtain a distance between the first position and the winding and rectifying mechanism.
[0056] The fourth obtaining sub-module is configured to obtain shooting times corresponding to the first position and the second position respectively.
[0057] The fifth obtaining sub-module is configured to obtain a running speed of the winding and rectifying mechanism.
[0058] The fifth determining sub-module is configured to determine times when the first position and the second position reach the winding and rectifying mechanism respectively according to the distance between the first position and the winding and rectifying mechanism, the shooting times corresponding to the first position and the second position respectively, and the running speed of the winding and rectifying mechanism.
[0059] Optionally, the adjusting module comprises:
[0060] The first adjusting sub-module is configured to adjust the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the first position when a current time is separated from the time when the first position reaches the winding and rectifying mechanism by a preset time.
[0061] The second adjusting sub-module is configured to adjust the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the second position when a current time is separated from the time when the second position reaches the winding and rectifying mechanism by a preset time.
[0062] The present application also discloses a device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the cloth rectifying method as described above when executing the computer program.
[0063] The present application also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executable on a processor to implement the steps of the cloth rectifying method as described above.
[0064] The present application has the following advantages:
[0065] The embodiment of the present application first acquires a cloth image photographed by a camera, and determines a center point coordinate corresponding to a first position on the cloth according to the cloth image, then determines a center point coordinate corresponding to a second position on the cloth, wherein the second position is a next position of the first position, then respectively determines the time when the first position and the second position reach a winding rectification mechanism, and finally adjusts the position of the winding rectification mechanism according to the time when the first position and the second position reach the winding rectification mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position, so as to determine the center point coordinate corresponding to the first position and the center point coordinate corresponding to the second position according to the camera photographing, and adjust the position of the winding rectification mechanism, and then adjust the position of the cloth entering the winding rectification mechanism, so that the first position and the second position of the cloth can be accurately aligned. BRIEF DESCRIPTION OF DRAWINGS
[0066] Figure 1 is a step flow chart of a cloth rectification method provided by the embodiment of the present application;
[0067] Figure 2 is a structural block diagram of another rectification device provided by the embodiment of the present application;
[0068] Figure 3 is a schematic diagram of camera photographing provided by the embodiment of the present application;
[0069] Figure 4 is a schematic diagram of cloth position provided by the embodiment of the present application;
[0070] Figure 5 is another schematic diagram of cloth position provided by the embodiment of the present application;
[0071] Figure 6 is another schematic diagram of cloth position provided by the embodiment of the present application;
[0072] Figure 7 is a structural block diagram of a cloth rectification device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the above objectives, characteristics and advantages of the present application more apparent, comprehensible and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0074] At present, when the cloth is rectified, the rectification sensor is adopted, but the alignment of this way can only be roughly aligned and cannot be accurately aligned. The present application provides a cloth rectification method to solve the above technical problems, the core idea of which is to first obtain the cloth image shot by the camera, and then determine the center point coordinates on the cloth corresponding to the first position according to the cloth image, and then determine the center point coordinates on the cloth corresponding to the second position, wherein the second position is the next position of the first position, and then determine the time when the first position and the second position reach the winding rectification mechanism, and finally adjust the position of the winding rectification mechanism according to the time when the first position and the second position reach the winding rectification mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position, so as to determine the center point coordinates corresponding to the first position and the center point coordinates corresponding to the second position according to the camera shooting, and adjust the position of the winding rectification mechanism, and then adjust the position of the cloth entering the winding rectification mechanism, so that the first position and the second position of the cloth can be accurately aligned.
[0075] Referring to Figure 1 , a step flow chart of a cloth rectification method provided by an embodiment of the present application is shown, the method is applied to a controller; the controller is connected with a winding rectification mechanism of a camera respectively, and the method can specifically include the following steps:
[0076] Step 101, obtaining the cloth image shot by the camera, and determining the center point coordinates on the cloth corresponding to the first position according to the cloth image.
[0077] In the embodiment of the present application, as Figure 2 shown, a structural block diagram of a rectification device provided by an embodiment of the present application is shown, a camera is arranged above the E point, the K point is a winding rectification mechanism structure, and an encoder is arranged above the G point. The cloth can pass through the E, F, G, H, I and J points in turn, and then reach the winding rectification mechanism at the K point. The encoder is used for controlling the camera to take pictures.
[0078] In the embodiment of the present application, the camera can shoot the E point in real time, the controller can obtain the cloth image shot by the camera, and then determine the center point coordinates on the cloth corresponding to the first position according to the cloth image.
[0079] In the present application, the lateral resolution of the camera can reach 0.06mm, and the longitudinal resolution and the resolution of the encoder are also 0.06mm. Through the collected image of the cloth, a roll of cloth is marked with longitudinal coordinates according to the movement direction of the cloth, and a point is selected as the starting point. The center point corresponding to the first position can be selected as the starting point. According to the needs of the customer, 0.06mm can be selected as the data recording interval, that is, the movement direction of the cloth. Every 0.06mm, the coordinates of the two edges of the cloth and the coordinates of the alignment center point are calculated. According to the needs, if the speed is not fast, the interval can be modified to 10mm, which can improve the efficiency and reduce the data amount.
[0080] As shown in Figure 3 , a schematic diagram of camera shooting is shown. The cloth in the picture shot by the camera is Figure 2 the cloth at the position of E point in the middle. Because the camera is fixed, a coordinate system can be set in advance for the camera shooting configuration. Then, after the camera shoots the picture of the cloth, the coordinates of the two sides of the cloth can be determined.
[0081] In an embodiment, according to the cloth image, the center point coordinates corresponding to the first position on the cloth can include: obtaining the first coordinate and the second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are the two side coordinates corresponding to the first position on the cloth; and determining the center point coordinates corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0082] Specifically, taking Figure 3 for example, the first coordinate corresponding to the first position on the cloth in the cloth image is (X a1 , Y m1 ), and the second coordinate is (X b1 , Y m1 ). The first coordinate and the second coordinate are the two side coordinates corresponding to the first position on the cloth. Then, according to the first coordinate (X a1 , Y m1 ) and the second coordinate (X b1 , Y m1 ), the center point coordinates corresponding to the first position on the cloth are calculated as (X c1 , Y m1 ).
[0083] Step 102, determining the center point coordinates corresponding to the second position on the cloth; the second position is the next position of the first position.
[0084] In this embodiment of the invention, after determining the coordinates of the center point on the fabric corresponding to the first position, the coordinates of the center point on the fabric corresponding to the second position can be determined. The second position can be the next position after the first position, or it can be understood as the corresponding center position in the next fabric image relative to the fabric image corresponding to the first position. In this invention, the first position and the second position both refer to the position of the fabric in the fabric image.
[0085] In one embodiment, determining the coordinates of the center point on the fabric corresponding to the second position may include: determining whether there is damage at the second position on the fabric; when there is no damage at the second position on the fabric, obtaining the third and fourth coordinates on the fabric corresponding to the second position; the third and fourth coordinates are the coordinates of the two sides on the fabric corresponding to the second position, respectively; determining the coordinates of the center point on the fabric corresponding to the second position based on the third and fourth coordinates on the fabric; and when there is damage at the second position on the fabric, determining the coordinates of the center point of the second position based on the coordinates of the center point on the fabric corresponding to the first position.
[0086] Specifically, when determining the center point coordinates corresponding to the second position on the fabric, the present invention first determines whether there is any damage to the second position on the fabric. That is, it first determines whether there is any damage to the fabric. If there is no damage to the second position on the fabric, the center point coordinates corresponding to the second position can be determined in the same way as the center point coordinates corresponding to the first position.
[0087] For example: the third coordinate on the fabric corresponding to the second position is (X... a2 Y m2 The fourth coordinate is (X). b2 Y m2 The third and fourth coordinates are the coordinates of the two sides of the fabric corresponding to the second position. Then, based on the third coordinate (X... a2 Y m2 ), and the fourth coordinate (X) b2 Y m2 The coordinates of the center point on the fabric corresponding to the second position are calculated as (X...). c2 Y m2 ).
[0088] For example, such as Figure 4 The diagram shown illustrates the position of a piece of fabric according to an embodiment of the present invention. Figure 4 The first coordinate corresponding to the first position in the middle is A. 1n (X a1 Y m1 The second coordinate is B. 1n (X b1 Y m1 Therefore, the coordinates of the center point corresponding to the first position can be calculated as C.1n (X c1 Y m1 The third coordinate corresponding to the second position is A. 2n (X a2 Y m2 The fourth coordinate is B. 2n (X b2 Y m2 Therefore, the coordinates of the center point corresponding to the second position can be calculated as C. 2n (X c2 Y m2 After calculation, the coordinates of the center point corresponding to the first position can be obtained as C. 1n (X c1 Y m1 The coordinates of the center point corresponding to the second position are C. 2n (X c2 Y m2 If the two positions are the same, then the fabric corresponding to the second position is centered and aligned with the fabric corresponding to the first position.
[0089] For example, such as Figure 5 The diagram illustrates another fabric position provided by an embodiment of the present invention. Figure 5 The first coordinate corresponding to the first position in the middle is A. 1n (X a1 Y m1 The second coordinate is B. 1n (X b1 Y m1 Therefore, the coordinates of the center point corresponding to the first position can be calculated as C. 1n (X c1 Y m1 The third coordinate corresponding to the second position is A. 2n (X a2 Y m2 The fourth coordinate is B. 2n (X b2 Y m2 Therefore, the coordinates of the center point corresponding to the second position can be calculated as C. 2n (X c2 Y m2 After calculation, the coordinates of the center point corresponding to the first position can be obtained as C. 1n (X c1 Y m1 The coordinates of the center point corresponding to the second position are C. 2n (X c2 Y m2 If they are not the same, then the fabric corresponding to the second position is not centered with the fabric corresponding to the first position.
[0090] When the second position on the cloth has a damage phenomenon, the center point coordinate of the second position can be determined according to the center point coordinate of the first position on the cloth.
[0091] In an embodiment, determining whether the cloth has a damage phenomenon can include: determining a position where the cloth has a width change; determining that the cloth has a damage phenomenon when the width change corresponding to the position where the cloth has the width change is within a preset range; and determining that the cloth does not have a damage phenomenon when the width change corresponding to the position where the cloth has the width change is not within the preset range.
[0092] Specifically, when the cloth has a width change, it indicates that the cloth has a change, at this time, there are two possibilities, the first is that there is new cloth, and the position of the new cloth has changed from the position of the previous cloth, and the second is that the edge of the cloth has a damage phenomenon, so the width of the cloth changes. However, the damage range of the cloth is generally small, when the width change corresponding to the position where the cloth has the width change is within a preset range, it can be determined that the cloth has a damage phenomenon, and when the width change corresponding to the position where the cloth has the width change is not within the preset range, it can be determined that the cloth does not have a damage phenomenon.
[0093] For example, Figure 4 and Figure 5 The width of the cloth changes in both Figure 4 and Figure 5 However, new cloth appears in Figure 6 and Figure 5 , at this time, the width change corresponding to the position where the cloth has the width change is certainly not within the preset range, so it can be determined that the cloth does not have a damage phenomenon, but is replaced by new cloth. For another example, as shown in Figure 6 , another schematic diagram of a cloth position provided by an embodiment of the present application is shown. Figure 6 The width of the cloth changes in both Figure 4 and Figure 5 , but the width change changes back to the original width after a short distance, so the width change corresponding to the position where the cloth has the width change is within the preset range, at this time, it can be determined that the cloth has a damage phenomenon.
[0094] In an embodiment, determining the center point coordinate of the second position according to the center point coordinate of the first position on the cloth includes: obtaining a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth; determining the center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth; and determining the center point coordinate corresponding to the first position on the cloth as the center point coordinate of the second position.
[0095] Specifically, as shown in Figure 6 , another schematic diagram of a cloth position provided by an embodiment of the present application is shown. Figure 6The first coordinate corresponding to the first position is A 1n (X a1 , Y m1 ), and the second coordinate is B 1n (X b1 , Y m1 ). Then the center coordinate C 1n (X c1 , Y m1 ) corresponding to the first position can be calculated. Figure 6 The second position has a damage phenomenon. At this time, the third coordinate corresponding to the second position is A 2n (X a2 , Y m2 ), and the fourth coordinate is B 2n (X b2 , Y m2 ). Then the center coordinate C 2n (X c2 , Y m2 ) corresponding to the second position can be calculated. However, because the second position has a damage phenomenon, the center coordinate C 2n (X c2 , Y m2 ) corresponding to the second position calculated is obviously not correct. Because the two side coordinates corresponding to the positions after the second position are the same as the two side coordinates corresponding to the first position, the center coordinate C 1n (X c1 , Y m1 ) corresponding to the first position can be determined as the center coordinate of the second position. That is, the correct center coordinate of the second position is C 2n (X c1 , Y m1 ).
[0096] Step 103, respectively determine the time when the first position and the second position reach the winding and correcting mechanism.
[0097] In the embodiment of the present application, after the center coordinate corresponding to the second position on the cloth is determined, the time when the first position and the second position reach the winding and correcting mechanism can be respectively determined.
[0098] In an embodiment, respectively determining the time when the first position and the second position reach the winding and correcting mechanism comprises: acquiring the distance between the first position and the winding and correcting mechanism; acquiring the shooting time corresponding to the first position and the second position respectively; acquiring the running speed of the winding and correcting mechanism; and respectively determining the time when the first position and the second position reach the winding and correcting mechanism according to the distance between the first position and the winding and correcting mechanism, the shooting time corresponding to the first position and the second position respectively, and the running speed of the winding and correcting mechanism.
[0099] Specifically, the controller can first acquire the distance between the first position and the winding and rectifying mechanism when the photo is taken, which is the distance from E point to K point. Figure 2 The sum of the distances from E point to F point, F point to G point, G point to H point, H point to I point, I point to J point and J point to K point, that is, the distance of the cloth running to the winding and rectifying mechanism when the corresponding area is photographed by the camera, and then the corresponding photographing time of the first position and the second position is acquired, for example, the photographing time corresponding to the first position is 10:10, and the photographing time corresponding to the second position is 10:11.
[0100] Then, the running speed of the winding mechanism is acquired, and then the running time of the cloth from E point to K point can be determined according to the distance between the first position and the winding and rectifying mechanism and the running speed of the winding mechanism, for example, the running time from E point to K point is 5 seconds, and then the time when the first position reaches the winding and rectifying mechanism is determined as 10:15, and the time when the second position reaches the winding and rectifying mechanism is determined as 10:16.
[0101] In step 104, the position of the winding and rectifying mechanism is adjusted according to the time when the first position and the second position reach the winding and rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position.
[0102] In the embodiment of the present application, after the time when the first position and the second position reach the winding and rectifying mechanism is determined, the position of the winding and rectifying mechanism can be adjusted according to the time when the first position and the second position reach the winding and rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position, so that the first position and the second position of the cloth can be accurately aligned.
[0103] In an embodiment, adjusting the position of the winding and rectifying mechanism according to the time when the first position and the second position reach the winding and rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position includes: when the current time is separated from the time when the first position reaches the winding and rectifying mechanism by a preset time, adjusting the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the first position; and when the current time is separated from the time when the second position reaches the winding and rectifying mechanism by a preset time, adjusting the position of the winding and rectifying mechanism according to the center point coordinate corresponding to the second position.
[0104] Specifically, the preset time is 0.5 seconds, the first position reaches the winding deviation correction mechanism at 9:10:10, and thus when the current time is 0.5 seconds away from 9:10:10, the position of the winding deviation correction mechanism can be adjusted according to the center point coordinates corresponding to the first position, so that the first position enters the winding deviation correction mechanism at the middle position when entering the winding deviation correction mechanism. The second position reaches the winding deviation correction mechanism at 9:10:11, and thus when the current time is 0.5 seconds away from 9:10:11, the position of the winding deviation correction mechanism can be adjusted according to the center point coordinates corresponding to the second position, so that the second position enters the winding deviation correction mechanism at the middle position when entering the winding deviation correction mechanism, so that the first position and the second position of the cloth can be accurately aligned.
[0105] As shown in Figure 4 , the center coordinates corresponding to the first position are determined as C 1n (X c1 , Y m1 ), the center coordinates corresponding to the second position are C 2n (X c2 , Y m2 ), the calculated center coordinates corresponding to the first position are C 1n (X c1 , Y m1 ), and the center coordinates corresponding to the second position are C 2n (X c2 , Y m2 ), and the two coordinate values are the same, so the cloth corresponding to the first position and the cloth corresponding to the second position are in an aligned state, and thus when the second position reaches the winding deviation correction mechanism after the first position reaches the winding deviation correction mechanism, the winding deviation correction mechanism does not need to be adjusted.
[0106] As shown in Figure 5 , the center coordinates corresponding to the first position are determined as C 1n (X c1 , Y m1 ), the center coordinates corresponding to the second position are C 2n (X c2 , Y m2 ), the calculated center coordinates corresponding to the first position are C 1n (X c1 , Y m1 ), and the center coordinates corresponding to the second position are C 2n (X c2 , Y m2Since the two coordinate values are different, the fabric at the first position and the fabric at the second position are not aligned. Therefore, after the first position reaches the winding and straightening mechanism but before the second position reaches the winding and straightening mechanism, the fabric needs to be aligned according to the center coordinate C corresponding to the second position. 2n (X c2 Y m2 Adjustments were made to the winding and correction mechanism.
[0107] like Figure 6 As shown, the fabric at the second position is damaged, and the center coordinate of the first position is determined to be C. 1n (X c1 Y m1 Based on the center coordinates corresponding to the first position, and considering that the coordinates corresponding to the two sides of the second position are the same as those corresponding to the two sides of the first position, we can determine that the center coordinates corresponding to the second position are the same as the center coordinates C of the first position. 1n (X c1 Y m1 Therefore, the fabric corresponding to the first position and the fabric corresponding to the second position are actually aligned. So, after the first position reaches the winding and straightening mechanism, when the second position reaches the winding and straightening mechanism, there is no need to adjust the winding and straightening mechanism.
[0108] In this embodiment of the invention, an image of the fabric captured by a camera is acquired, and based on the image, the coordinates of the center point on the fabric corresponding to a first position are determined; the coordinates of the center point on the fabric corresponding to a second position are also determined; the second position is the next position after the first position; the arrival times of the first and second positions at the winding and straightening mechanism are determined respectively; and the position of the winding and straightening mechanism is adjusted based on the arrival times of the first and second positions, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position. Thus, by adjusting the position of the winding and straightening mechanism based on the center point coordinates corresponding to the first and second positions determined by the camera, the position of the fabric entering the winding and straightening mechanism is adjusted, ensuring precise alignment of the first and second positions of the fabric.
[0109] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0110] Reference Figure 7, a structural block diagram of a cloth deviation rectifying device is shown, the device is applied to a controller; the controller is connected with a camera and a winding deviation rectifying mechanism respectively, and specifically can include the following modules:
[0111] A first determining module 701 is configured to acquire a cloth image captured by the camera, and determine a center point coordinate corresponding to a first position on the cloth according to the cloth image.
[0112] A second determining module 702 is configured to determine a center point coordinate corresponding to a second position on the cloth; the second position is a next position of the first position.
[0113] A third determining module 703 is configured to determine times when the first position and the second position reach the winding deviation rectifying mechanism respectively.
[0114] An adjusting module 704 is configured to adjust a position of the winding deviation rectifying mechanism according to the times when the first position and the second position reach the winding deviation rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position.
[0115] In an embodiment, the first determining module 701 includes:
[0116] A first acquiring sub-module is configured to acquire a first coordinate and a second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth respectively.
[0117] A first determining sub-module is configured to determine the center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0118] In an embodiment, the second determining module 702 includes:
[0119] A judging sub-module is configured to judge whether a damage phenomenon occurs at the second position on the cloth.
[0120] A second acquiring sub-module is configured to acquire a third coordinate and a fourth coordinate corresponding to the second position on the cloth when the damage phenomenon does not occur at the second position on the cloth; the third coordinate and the fourth coordinate are two side coordinates corresponding to the second position on the cloth respectively.
[0121] A second determining sub-module is configured to determine the center point coordinate corresponding to the second position on the cloth according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth.
[0122] The third determining sub-module is configured to determine the center point coordinate of the second position according to the center point coordinate of the first position on the cloth when the damage phenomenon occurs at the second position on the cloth.
[0123] In an embodiment, the judging sub-module comprises:
[0124] The first determining unit is configured to determine the position where the cloth has the width variation.
[0125] The second determining unit is configured to determine that the cloth has the damage phenomenon when the width variation corresponding to the position where the cloth has the width variation is within the preset range.
[0126] The third determining unit is configured to determine that the cloth does not have the damage phenomenon when the width variation corresponding to the position where the cloth has the width variation is not within the preset range.
[0127] In an embodiment, the third determining sub-module comprises:
[0128] The acquiring unit is configured to acquire the first coordinate and the second coordinate corresponding to the first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth, respectively.
[0129] The fourth determining unit is configured to determine the center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0130] The fifth determining unit is configured to determine the center point coordinate corresponding to the first position on the cloth as the center point coordinate of the second position.
[0131] In an embodiment, the third determining module 703 comprises:
[0132] The third acquiring sub-module is configured to acquire the distance between the first position and the winding and rectifying mechanism.
[0133] The fourth acquiring sub-module is configured to acquire the shooting time corresponding to the first position and the second position, respectively.
[0134] The fifth acquiring sub-module is configured to acquire the running speed of the winding and rectifying mechanism.
[0135] The fifth determining sub-module is configured to determine the time when the first position and the second position reach the winding and rectifying mechanism according to the distance between the first position and the winding and rectifying mechanism, the shooting time corresponding to the first position and the second position, respectively, and the running speed of the winding and rectifying mechanism.
[0136] In an embodiment, the adjusting module 704 comprises:
[0137] a first adjusting sub-module, configured to adjust the position of the winding rectifying mechanism according to the center point coordinate corresponding to the first position when the time interval between the current time and the time when the first position reaches the winding rectifying mechanism is preset time;
[0138] a second adjusting sub-module, configured to adjust the position of the winding rectifying mechanism according to the center point coordinate corresponding to the second position when the time interval between the current time and the time when the second position reaches the winding rectifying mechanism is preset time.
[0139] In the embodiment of the present application, the first determining module is configured to acquire the cloth image captured by the camera and determine the center point coordinate on the cloth corresponding to the first position according to the cloth image; the second determining module is configured to determine the center point coordinate on the cloth corresponding to the second position; the second position is the next position of the first position; the third determining module is configured to determine the time when the first position and the second position reach the winding rectifying mechanism, respectively; and the adjusting module is configured to adjust the position of the winding rectifying mechanism according to the time when the first position and the second position reach the winding rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position. Thus, the center point coordinate corresponding to the first position and the center point coordinate corresponding to the second position are determined according to the camera shooting, the position of the winding rectifying mechanism is adjusted, and then the position of the cloth entering the winding rectifying mechanism is adjusted, so that the first position and the second position of the cloth can be accurately aligned.
[0140] For the device embodiment, it is basically similar to the method embodiment, so the description is relatively simple, and the related parts refer to the part of the method embodiment.
[0141] The embodiment of the present application further provides an electronic device, comprising:
[0142] The electronic device comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize each process of the cloth rectifying method embodiment and achieve the same technical effects. To avoid repetition, no further description is given here.
[0143] The embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize each process of the cloth rectifying method embodiment and achieve the same technical effects. To avoid repetition, no further description is given here.
[0144] The various embodiments described in this specification are intended to be illustrative only and in no way limit the scope of the application. One skilled in the art will readily recognize from the disclosure herein, possible alternative techniques within the scope of the application. Accordingly, the embodiments described in this specification are set forth without any loss of generality to, and without imposing limitations upon, the claimed invention.
[0145] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, apparatus, or computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects all generally referred to herein as a "circuit" or "module." Furthermore, the present application can take the form of a computer program product on a computer-readable storage medium having computer program code embodied in the medium.
[0146] Embodiments of the present application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing system or other programmable data processing terminal apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0147] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal apparatus to cause a series of operational steps to be performed on the computer or other programmable terminal apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal apparatus provide steps for implementing the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.
[0149] While the preferred embodiments of the application have been described above, it should be understood that many modifications and variations to these embodiments will be apparent to those skilled in the art once they learn of the basic inventive concepts. Therefore, the attached claims are intended to cover all such modifications and variations.
[0150] Finally, it is to be understood that the phraseology or terminology employed herein, such as "first" and "second", etc., are for descriptive purposes only and should not be construed to imply or incorporate any kind of ordering, unless and except for the order of method steps or process steps as expressly and implicitly defined by the preceding disclosure. Moreover, the use of the terms "first" and "second" to describe the elements of the present application are not intended to denote a physical order or precedence, but to distinguish the different elements of the present application. Furthermore, the use of the terms "including", "containing", or "comprising" and variations thereof does not imply or incorporate a limitation on the number of elements comprised in a process, method, article, or apparatus, but rather, any implementation of such process, method, article, or apparatus is intended to include an indefinite number of additional elements, whether or not such additional elements are expressly listed or otherwise disclosed. Further, the use of the term "comprising" or "including" to describe the elements of the present application is not intended to require or imply that additional elements are not present in the process, method, article, or apparatus, unless expressly stated otherwise. The use of the term "comprising" or "including" to describe the elements of the present application does not exclude the presence of additional elements, unless expressly stated otherwise.
[0151] The above provides a cloth deviation rectifying method, a cloth deviation rectifying device, an electronic device and a computer readable storage medium. The principles and implementation manners of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges can be changed. The above description of the present application should not be understood as a limitation.
Claims
1. A method of correcting a deviation of a cloth, characterized by, The method is applied to a controller connected with a camera and a winding deviation rectifying mechanism respectively, and the method comprises: acquiring a cloth image captured by the camera, and acquiring a first coordinate and a second coordinate corresponding to a first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth respectively; and determining a center point coordinate corresponding to the first position on the cloth according to the first coordinate and the second coordinate corresponding to the first position on the cloth; judging whether a second position on the cloth has a damage phenomenon; when the second position on the cloth does not have the damage phenomenon, acquiring a third coordinate and a fourth coordinate corresponding to the second position on the cloth; the third coordinate and the fourth coordinate are two side coordinates corresponding to the second position on the cloth respectively; determining a center point coordinate corresponding to the second position on the cloth according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth; when the second position on the cloth has the damage phenomenon, determining the center point coordinate corresponding to the first position on the cloth as the center point coordinate of the second position; the second position is a next position of the first position; respectively determining a time when the first position and the second position reach the winding deviation rectifying mechanism; adjusting a position of the winding deviation rectifying mechanism according to the time when the first position and the second position reach the winding deviation rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position.
2. The method of correcting the deviation of cloth according to claim 1, wherein, The judgment of whether the cloth has a damage phenomenon comprises: determining a position where the cloth has a width change; when a width change corresponding to the position where the cloth has the width change is within a preset range, determining that the cloth has the damage phenomenon; when the width change corresponding to the position where the cloth has the width change is not within the preset range, determining that the cloth does not have the damage phenomenon.
3. The method of correcting the deviation of cloth according to claim 1, wherein, The respective determination of the time when the first position and the second position reach the winding deviation rectifying mechanism comprises: acquiring a distance between the first position and the winding deviation rectifying mechanism; acquiring a shooting time corresponding to the first position and the second position respectively; acquiring a running speed of the winding deviation rectifying mechanism; respectively determining the time when the first position and the second position reach the winding deviation rectifying mechanism according to the distance between the first position and the winding deviation rectifying mechanism, the shooting time corresponding to the first position and the second position respectively, and the running speed of the winding deviation rectifying mechanism.
4. The method of correcting the deviation of cloth according to claim 1, wherein, The adjustment of the position of the winding deviation rectifying mechanism according to the time when the first position and the second position reach the winding deviation rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position comprises: when a current time is separated from the time when the first position reaches the winding deviation rectifying mechanism by a preset time, adjusting the position of the winding deviation rectifying mechanism according to the center point coordinate corresponding to the first position; and when the current time is not separated from the time when the first position reaches the winding deviation rectifying mechanism by the preset time, adjusting the position of the winding deviation rectifying mechanism according to the center point coordinate corresponding to the second position. When a time interval between the current time and a time when the second position reaches the winding deviation rectifying mechanism is a preset time, a position of the winding deviation rectifying mechanism is adjusted according to the center point coordinate corresponding to the second position.
5. A fabric correction device characterized by comprising: The device is applied to a controller, and the controller is connected with a camera and a winding deviation rectifying mechanism respectively. The first determining module is configured to acquire a cloth image captured by the camera, and acquire a first coordinate and a second coordinate corresponding to a first position on the cloth in the cloth image; the first coordinate and the second coordinate are two side coordinates corresponding to the first position on the cloth respectively; and a center point coordinate corresponding to the first position on the cloth is determined according to the first coordinate and the second coordinate corresponding to the first position on the cloth. The second determining module is configured to determine whether a damage phenomenon occurs at a second position on the cloth; when the damage phenomenon does not occur at the second position on the cloth, a third coordinate and a fourth coordinate corresponding to the second position on the cloth are acquired; the third coordinate and the fourth coordinate are two side coordinates corresponding to the second position on the cloth respectively; a center point coordinate corresponding to the second position on the cloth is determined according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth; when the damage phenomenon occurs at the second position on the cloth, the center point coordinate corresponding to the first position on the cloth is determined as the center point coordinate of the second position; and the second position is a next position of the first position. The third determining module is configured to determine times when the first position and the second position reach the winding deviation rectifying mechanism respectively. The adjusting module is configured to adjust the position of the winding deviation rectifying mechanism according to the times when the first position and the second position reach the winding deviation rectifying mechanism, the center point coordinate corresponding to the first position, and the center point coordinate corresponding to the second position.
6. An electronic device, comprising: The device comprises: A processor, a memory, and a computer program stored on the memory and capable of running on the processor, wherein the computer program is executed by the processor to implement steps of the cloth deviation rectifying method according to any one of claims 1-4.
7. A computer readable storage medium characterized in that, A computer program is stored on the computer readable storage medium, and the computer program is executed by the processor to implement steps of the cloth deviation rectifying method according to any one of claims 1-4.
Citation Information
Patent Citations
Cloth detection system and method
CN111721773A
Curled material deviation rectifying method and device
CN117392218A