Cloth deviation rectifying method and device, electronic equipment and storage medium
By obtaining the cloth image taken by the camera and determining the coordinates of the center point at different positions, and adjusting the position of the winding correction mechanism, the problem of insufficient cloth correction accuracy in the prior art is solved, and the precise alignment of the cloth is achieved.
Patent Information
- Application Number
- CN202411807070.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-09
AI Technical Summary
The prior art can only achieve rough alignment when correcting the fabric, but cannot achieve accurate alignment.
By obtaining the cloth image taken by the camera, determine the coordinates of the center point of different positions on the cloth, and adjust the position of the winding and deviation correction mechanism according to these coordinates to achieve accurate alignment of the cloth.
The precise alignment of the first and second positions of the cloth is achieved, and the deviation correction accuracy is improved.
Smart Images

Figure CN119774352A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of deviation correction control, and in particular to a cloth deviation correction method, a cloth deviation correction device, an electronic device and a computer-readable storage medium. Background Art
[0002] At present, when correcting the deflection of cloth, a correction sensor is used. The correction sensor is a photoelectric sensor that senses the change in edge position of the cloth. The sensor is fixed on the winding mechanism and can move left and right laterally with the winding and correcting mechanical mechanism. It is used to sense the position of the edge of the cloth in real time. However, this method of alignment can only achieve rough alignment and cannot achieve precise alignment. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a cloth deviation correction method, a cloth deviation correction device, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problems, an embodiment of the present invention discloses a cloth deviation correction method, which is applied to a controller; the controller is respectively connected to a camera and a winding deviation correction mechanism, and the method includes:
[0005] Acquire a cloth image taken by the camera, and determine the coordinates of a center point on the cloth corresponding to the first position according to the cloth image;
[0006] Determine the coordinates of the center point on the cloth corresponding to a second position; the second position is the next position of the first position;
[0007] Respectively determining the time when the first position and the second position arrive at the winding and correcting mechanism;
[0008] The position of the winding and correcting mechanism is adjusted according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
[0009] Optionally, determining the coordinates of a center point corresponding to the first position on the cloth according to the cloth image includes:
[0010] 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 respectively two side coordinates corresponding to the first position on the cloth;
[0011] The coordinates of the center point on the cloth corresponding to the first position are determined according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0012] Optionally, determining the coordinates of the center point corresponding to the second position on the cloth includes:
[0013] Determining whether a second position on the cloth is damaged;
[0014] When the second position on the cloth is not damaged, obtaining a third coordinate and a fourth coordinate on the cloth corresponding to the second position; the third coordinate and the fourth coordinate are the coordinates on both sides of the cloth corresponding to the second position;
[0015] Determining the coordinates of the center point on the cloth corresponding to the second position according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth;
[0016] When damage occurs at a second position on the cloth, the coordinates of the center point of the second position are determined according to the coordinates of the center point on the cloth corresponding to the first position.
[0017] Optionally, the determining whether the cloth is damaged includes:
[0018] Determining the position where the width of the cloth changes;
[0019] When the width change corresponding to the position where the width of the cloth changes is within a preset range, it is determined that the cloth is damaged;
[0020] When the width change corresponding to the position where the width change of the cloth occurs is not within a preset range, it is determined that the cloth is not damaged.
[0021] Optionally, determining the coordinates of the center point of the second position according to the coordinates of the center point on the cloth corresponding to the first position includes:
[0022] 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 respectively two side coordinates corresponding to the first position on the cloth;
[0023] Determining the coordinates of the center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth;
[0024] The coordinates of the center point on the cloth corresponding to the first position are determined as the coordinates of the center point of the second position.
[0025] Optionally, the determining the time when the first position and the second position arrive at the winding and correcting mechanism respectively includes:
[0026] Acquire the distance between the first position and the winding and correcting mechanism;
[0027] Acquire shooting times corresponding to the first position and the second position respectively;
[0028] Obtaining the running speed of the winding and correcting mechanism;
[0029] The time when the first position and the second position arrive at the winding and correcting mechanism is determined respectively 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.
[0030] Optionally, adjusting the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position includes:
[0031] When the time from the current time to the first position to the winding and correcting mechanism is a preset time, adjusting the position of the winding and correcting mechanism according to the center point coordinates corresponding to the first position;
[0032] When the time from the current time to the second position to the winding and correcting mechanism is the preset time, the position of the winding and correcting mechanism is adjusted according to the center point coordinates corresponding to the second position.
[0033] The embodiment of the present invention further discloses a cloth deviation correction device, which is applied to a controller; the controller is respectively connected to a camera and a winding deviation correction mechanism, and the device comprises:
[0034] A first determination module, used for acquiring a cloth image taken by the camera, and determining the coordinates of a center point on the cloth corresponding to a first position according to the cloth image;
[0035] A second determination module is used to determine the coordinates of a center point on the cloth corresponding to a second position; the second position is the next position of the first position;
[0036] A third determination module, used to respectively determine the time when the first position and the second position arrive at the winding and correcting mechanism;
[0037] An adjustment module is used to adjust the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
[0038] Optionally, the first determining module includes:
[0039] A first acquisition submodule is used to 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 respectively two side coordinates corresponding to the first position on the cloth;
[0040] The first determining submodule is used to determine the coordinates of the center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth.
[0041] Optionally, the second determining module includes:
[0042] A judging submodule, used for judging whether the second position on the cloth is damaged;
[0043] A second acquisition submodule is used to acquire a third coordinate and a fourth coordinate corresponding to the second position on the cloth when the second position on the cloth is not damaged; the third coordinate and the fourth coordinate are the coordinates on both sides corresponding to the second position on the cloth respectively;
[0044] A second determining submodule, configured to determine the coordinates of a center point on the cloth corresponding to the second position according to a third coordinate and a fourth coordinate corresponding to the second position on the cloth;
[0045] The third determination submodule is used to determine the coordinates of the center point of the second position on the cloth according to the coordinates of the center point corresponding to the first position on the cloth when the second position on the cloth is damaged.
[0046] Optionally, the judgment submodule includes:
[0047] A first determining unit is used to determine the position where the width of the cloth changes;
[0048] A second determining unit is used to determine that the cloth is damaged when the width change corresponding to the position where the cloth width changes is within a preset range;
[0049] The third determining unit is used to determine that the cloth is not damaged when the width change corresponding to the position where the width change occurs on the cloth is not within a preset range.
[0050] Optionally, the third determining submodule includes:
[0051] An acquisition unit, configured to 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 respectively two side coordinates corresponding to the first position on the cloth;
[0052] A fourth determining unit, configured to determine the coordinates of a center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth;
[0053] The fifth determining unit is used to determine the coordinates of the center point on the cloth corresponding to the first position as the coordinates of the center point of the second position.
[0054] Optionally, the third determining module includes:
[0055] A third acquisition submodule is used to acquire the distance between the first position and the winding and correcting mechanism;
[0056] A fourth acquisition submodule, used to acquire the shooting time corresponding to the first position and the second position respectively;
[0057] A fifth acquisition submodule is used to acquire the operating speed of the winding and correcting mechanism;
[0058] The fifth determination submodule is used to determine the time when the first position and the second position arrive at 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.
[0059] Optionally, the adjustment module includes:
[0060] A first adjustment submodule, configured to adjust the position of the winding and correcting mechanism according to the coordinates of the center point corresponding to the first position when the time from the current time to the first position to the winding and correcting mechanism is a preset time;
[0061] The second adjustment submodule is used to adjust the position of the winding and correcting mechanism according to the center point coordinates corresponding to the second position when the time from the current time to the second position to the winding and correcting mechanism is a preset time.
[0062] The present invention also discloses a device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the cloth deviation correction method as described above are implemented.
[0063] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cloth deviation correction method as described above are implemented.
[0064] The embodiments of the present invention include the following advantages:
[0065] In an embodiment of the present invention, a cloth image taken by a camera is first obtained, and based on the cloth image, the coordinates of the center point on the cloth corresponding to a first position are determined, and then the coordinates of the center point on the cloth corresponding to a second position are determined, wherein the second position is the next position of the first position, and then the time when the first position and the second position arrive at a winding and correcting mechanism are respectively determined, and finally the position of the winding and correcting mechanism is adjusted according to the time when the first position and the second position arrive at the winding and correcting mechanism, the coordinates of the center point corresponding to the first position, and the coordinates of the center point corresponding to the second position, so that the coordinates of the center point corresponding to the first position and the coordinates of the center point corresponding to the second position are determined according to the camera shooting, the position of the winding and correcting mechanism is adjusted, and then the position of the cloth entering the winding and correcting mechanism is adjusted, so that the first position and the second position of the cloth can be accurately aligned. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a flow chart of the steps of a cloth deviation correction method provided by an embodiment of the present invention;
[0067] Figure 2 is a structural block diagram of another deviation correction device provided by an embodiment of the present invention;
[0068] Figure 3 is a schematic diagram of camera shooting provided by an embodiment of the present invention;
[0069] Figure 4 is a schematic diagram of a cloth position provided by an embodiment of the present invention;
[0070] Figure 5 is a schematic diagram of another cloth position provided by an embodiment of the present invention;
[0071] Figure 6 is a schematic diagram of another cloth position provided by an embodiment of the present invention;
[0072] Figure 7 It is a structural block diagram of a cloth deviation correction device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0074] At present, when correcting the deviation of cloth, a correction sensor is used, but this type of alignment can only achieve rough alignment and cannot achieve precise alignment. In order to solve the above technical problems, the present invention provides a method for correcting the deviation of cloth, the core concept of which is to first obtain a cloth image taken by a camera, and determine the center point coordinates corresponding to a first position on the cloth according to the cloth image, and then determine the center point coordinates corresponding to a second position on the cloth, 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 arrive at the winding correction mechanism respectively, and finally adjust the position of the winding correction mechanism according to the time when the first position and the second position arrive at the winding correction mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position, so that the center point coordinates corresponding to the first position and the center point coordinates corresponding to the second position are determined according to the camera shooting, and the position of the winding correction mechanism is adjusted, and then the position of the cloth entering the winding correction mechanism is adjusted, so that the first position and the second position of the cloth can be accurately aligned.
[0075] Reference Figure 1 , shows a flowchart of the steps of a cloth deviation correction method provided by an embodiment of the present invention, the method is applied to a controller; the controller is respectively connected to the winding deviation correction mechanism of the camera, and the method may specifically include the following steps:
[0076] Step 101, obtaining a cloth image taken by the camera, and determining the coordinates of a center point on the cloth corresponding to a first position based on the cloth image.
[0077] In the embodiment of the present invention, Figure 2 As shown, a structural block diagram of a web-correcting device provided by an embodiment of the present invention is shown, a camera is provided above point E, point K is a winding web-correcting structure, and an encoder is provided above point G. The cloth can pass through points E, F, G, H, I, and J in sequence, and then reach the winding web-correcting mechanism at point K. The encoder is used to control the camera to collect images.
[0078] In the embodiment of the present invention, the camera can take a picture of point E in real time, the controller can obtain the cloth image taken by the camera, and then determine the coordinates of the center point on the cloth corresponding to the first position based on the cloth image.
[0079] In the present invention, the lateral resolution of the camera can reach 0.06mm, and the longitudinal resolution is consistent with the resolution of the encoder and is also 0.06mm. Through the collected cloth image, a roll of cloth is annotated with longitudinal coordinates according to the direction of cloth movement, and a point is selected as the starting point. The center point corresponding to the first position can be used as the starting point. According to customer needs, 0.06mm can be selected as the data recording interval, that is, in the direction of cloth movement, the coordinates of the two edges of the cloth and the coordinates of the alignment center point are calculated once every 0.06mm. If the speed is not fast, the interval can be modified to 10mm as needed to improve efficiency and reduce the amount of data.
[0080] like Figure 3 FIG. 1 is a schematic diagram of a camera shooting method provided by an embodiment of the present invention. The cloth in the picture taken by the camera is Figure 2 For the cloth at point E, since the camera is fixed, a coordinate system can be set in advance for the camera shooting configuration. Then, after the camera takes a picture of the cloth, the coordinates of both sides of the cloth can be determined.
[0081] In one embodiment, determining the coordinates of the center point corresponding to the first position on the cloth based on the cloth image may 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 respectively the two side coordinates corresponding to the first position on the cloth; and determining the coordinates of the center point corresponding to the first position on the cloth based on the first coordinate and the second coordinate corresponding to the first position on the cloth.
[0082] Specifically, Figure 3 For example, in the obtained cloth image, the first coordinate corresponding to the first position on the cloth is (X a1 , Y m1 ), the second coordinate is (X b1 , Y m1 ), the first coordinate and the second coordinate are the coordinates on both sides of the cloth corresponding to the first position, and then according to the first coordinate (X a1 , Y m1 ), and the second coordinate (X b1 , Y m1 ), the coordinates of the center point on the cloth corresponding to the first position are calculated as (X c1 , Y m1 ).
[0083] Step 102, determining the coordinates of the center point on the cloth corresponding to the second position; the second position is the next position of the first position.
[0084] In an embodiment of the present invention, after determining the coordinates of the center point corresponding to the first position on the cloth, the coordinates of the center point corresponding to the second position on the cloth can be determined. The second position can be the next position of the first position, and can also be understood as the corresponding center position in the next cloth image relative to the cloth image corresponding to the first position. The first position and the second position in the present invention both refer to the position of the cloth in the cloth image.
[0085] In one embodiment, determining the coordinates of the center point corresponding to the second position on the cloth may include: judging whether the second position on the cloth is damaged; when the second position on the cloth is not damaged, obtaining the third coordinate and the fourth coordinate corresponding to the second position on the cloth; the third coordinate and the fourth coordinate are the two side coordinates corresponding to the second position on the cloth, respectively; determining the coordinates of the center point 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 is damaged, determining the coordinates of the center point of the second position according to the coordinates of the center point corresponding to the first position on the cloth.
[0086] Specifically, when determining the center point coordinates corresponding to the second position on the cloth, the present invention will first determine whether the second position on the cloth is damaged. That is, it will first determine whether the cloth is damaged. When the second position on the cloth is not damaged, the center point coordinates corresponding to the second position can be determined in the same manner as described above.
[0087] For example: The third coordinate on the cloth 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 on both sides of the cloth corresponding to the second position, and then according to the third coordinate (X a2 , Y m2 ), and the fourth coordinate (X b2 , Y m2 ), the coordinates of the center point on the cloth corresponding to the second position are calculated as (X c2 , Y m2 ).
[0088] For example, Figure 4 , which is a schematic diagram of a cloth position provided by an embodiment of the present invention, Figure 4 The first coordinate corresponding to the first position in is A 1n (X a1 , Y m1 ), the second coordinate is B 1n (X b1 , Y m1 ), then the coordinates of the center point corresponding to the first position can be calculated as C1n (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 ), then 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 ), then the cloth corresponding to the second position is centered with the cloth corresponding to the first position.
[0089] For example, Figure 5 FIG. 1 is a schematic diagram showing another cloth position provided by an embodiment of the present invention. Figure 5 The first coordinate corresponding to the first position in is A 1n (X a1 , Y m1 ), the second coordinate is B 1n (X b1 , Y m1 ), then 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 ), then 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 ) are not the same, then the cloth corresponding to the second position is not centered with the cloth corresponding to the first position.
[0090] When damage occurs at the second position on the cloth, the coordinates of the center point of the second position can be determined based on the coordinates of the center point on the cloth corresponding to the first position.
[0091] In one embodiment, determining whether the cloth is damaged may include: determining the position where the cloth changes in width; determining that the cloth is damaged when the width change corresponding to the position where the cloth changes in width is within a preset range; and determining that the cloth is not damaged when the width change corresponding to the position where the cloth changes in width is not within the preset range.
[0092] Specifically, when the width of the cloth changes, it indicates that the cloth has changed. There are two possibilities. The first is that there is a new cloth and the position of the new cloth has changed from the position of the previous cloth. The second is that the edge of the cloth is damaged, so the width of the cloth has changed. However, the scope of cloth damage is generally small. When the width change corresponding to the position where the width changes in the layout is within the preset range, it can be determined that the cloth has been damaged. When the width change corresponding to the position where the width changes in the layout is not within the preset range, it can be determined that the cloth has not been damaged.
[0093] For example, Figure 4 and Figure 5 The width of the cloth has changed, but Figure 4 and Figure 5 If a new piece of cloth appears in the picture, the width change at the position where the cloth width changes must be outside the preset range. Then it can be determined that the cloth is not damaged, but a new piece of cloth has been replaced. Figure 6 FIG. 1 is a schematic diagram showing another cloth position provided by an embodiment of the present invention. Figure 6 The width of the cloth has changed, but after a short distance, the width change returns to the original width. Then the width change corresponding to the position where the width change of the cloth occurs is within the preset range. At this time, it can be determined that the cloth is damaged.
[0094] In one embodiment, the center point coordinates of a second position are determined based on the center point coordinates corresponding to the first position on the cloth, including: 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, respectively; determining the center point coordinates corresponding to the first position on the cloth based on the first coordinate and the second coordinate corresponding to the first position on the cloth; determining the center point coordinates corresponding to the first position on the cloth as the center point coordinates of the second position.
[0095] Specifically, if Figure 6 As shown, a schematic diagram of another cloth position provided by an embodiment of the present invention is shown. Figure 6The first coordinate corresponding to the first position in is A 1n (X a1 , Y m1 ), the second coordinate is B 1n (X b1 , Y m1 ), then the coordinates of the center point corresponding to the first position can be calculated as C 1n (X c1 , Y m1 ), Figure 6 The second position in the figure is damaged. At this time, 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 ), then the coordinates of the center point corresponding to the second position can be calculated as C 2n (X c2 , Y m2 ), but because the second position is damaged, it is obvious that the center point coordinates of the second position corresponding to the calculation are C 2n (X c2 , Y m2 ) is not the correct center coordinate corresponding to the second position, because the coordinates of the two sides of the cloth corresponding to the positions after the second position continue to be the same as the coordinates of the two sides corresponding to the first position, so the center coordinate C corresponding to the first position on the cloth can be 1n (X c1 , Y m1 ), which is 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 determining the time when the first position and the second position arrive at the winding and correcting mechanism.
[0097] In the embodiment of the present invention, after determining the center coordinates on the cloth corresponding to the second position, the time when the first position and the second position arrive at the winding and correcting mechanism can be determined respectively.
[0098] In one embodiment, the time when the first position and the second position arrive at the winding and correcting mechanism is respectively determined, including: obtaining the distance between the first position and the winding and correcting mechanism; obtaining the shooting time corresponding to the first position and the second position respectively; obtaining the running speed of 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, the time when the first position and the second position arrive at the winding and correcting mechanism is respectively determined.
[0099] Specifically, the controller can first obtain the distance between the first position and the winding correction mechanism when taking the photo, and the distance is Figure 2 The sum of the distances from point E to point F, point F to point G, point G to point H, point H to point I, point I to point J, and point J to point K is the distance when the cloth in the corresponding area photographed by the camera runs to the winding and correcting mechanism, and then the corresponding shooting times of the first position and the second position are obtained, for example: the shooting time corresponding to the first position is 9:10:10, and the shooting time corresponding to the second position is 9:10:11.
[0100] Then, the running speed of the winding mechanism is obtained. Then, the running time of the cloth from point E to point K can be determined according to the distance between the first position and the winding and correcting mechanism and the running speed of the winding mechanism. For example, the running time from point E to point K is 5 seconds, so it can be determined that the time when the first position arrives at the winding and correcting mechanism is 9 hours, 10 minutes and 15 seconds, and the time when the second position arrives at the winding and correcting mechanism is 9 hours, 10 minutes and 16 seconds.
[0101] Step 104 , adjusting the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
[0102] In an embodiment of the present invention, after respectively determining the time when the first position and the second position arrive at the winding and correcting mechanism, the position of the winding and correcting mechanism can be adjusted accordingly according to the time when the first position and the second position arrive at the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position, so that the first position and the second position of the cloth can be accurately aligned.
[0103] In one embodiment, the position of the winding and correcting mechanism is adjusted according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position, including: when the time from the current time to the first position to reach the winding and correcting mechanism is a preset time, the position of the winding and correcting mechanism is adjusted according to the center point coordinates corresponding to the first position; when the time from the current time to the second position to reach the winding and correcting mechanism is a preset time, the position of the winding and correcting mechanism is adjusted according to the center point coordinates corresponding to the second position.
[0104] Specifically, the preset time is 0.5 seconds, and the time when the first position arrives at the winding and correcting mechanism is 9:10:10 seconds. Then, when there is 0.5 seconds left from the current time to 9:10:10 seconds, the position of the winding and correcting mechanism can be adjusted according to the center point coordinates corresponding to the first position, so that the first position enters the winding and correcting mechanism at the middle position, and the time when the second position arrives at the winding and correcting mechanism is 9:10:11 seconds. Then, when there is 0.5 seconds left from the current time to 9:10:11 seconds, the position of the winding and correcting mechanism can be adjusted according to the center point coordinates corresponding to the second position, so that the second position enters the winding and correcting mechanism at the middle position, thereby allowing the first position and the second position of the cloth to be accurately aligned.
[0105] like Figure 4 As shown, the center coordinate corresponding to the first position is determined to be C 1n (X c1 , Y m1 ), the center coordinates corresponding to the second position are C 2n (X c2 , Y m2 ), and the calculated center coordinates C corresponding to the first position 1n (X c1 , Y m1 ), the center coordinate corresponding to the second position is C 2n (X c2 , Y m2 ), the two coordinate values are the same, therefore, the cloth corresponding to the first position and the cloth corresponding to the second position are aligned. Then, after the first position reaches the winding and correcting mechanism, when the second position reaches the winding and correcting mechanism, there is no need to adjust the winding and correcting mechanism.
[0106] like Figure 5 As shown, the center coordinate corresponding to the first position is determined to be C 1n (X c1 , Y m1 ), the center coordinates corresponding to the second position are C 2n (X c2 , Y m2 ), and the calculated center coordinates C corresponding to the first position 1n (X c1 , Y m1 ), the center coordinate C corresponding to the second position 2n (X c2 , Y m2), the two coordinate values are different. Therefore, the cloth corresponding to the first position and the cloth corresponding to the second position are not aligned. Then, after the first position reaches the winding and correcting mechanism and before the second position reaches the winding and correcting mechanism, it is necessary to adjust the cloth according to the center coordinate C corresponding to the second position. 2n (X c2 , Y m2 ) Adjust the winding and correcting mechanism.
[0107] like Figure 6 As shown in the figure, the cloth corresponding to the second position is damaged, and the center coordinate corresponding to the first position is determined to be C 1n (X c1 , Y m1 ), then according to the center coordinates corresponding to the first position, the coordinates of the two sides corresponding to the second position are the same as the coordinates of the two sides corresponding to the first position, so it can be determined that the center coordinates corresponding to the second position are the center coordinates C corresponding to the first position. 1n (X c1 , Y m1 ), therefore, the cloth corresponding to the first position and the cloth corresponding to the second position are actually aligned. Then, after the first position reaches the winding and correcting mechanism, when the second position reaches the winding and correcting mechanism, there is no need to adjust the winding and correcting mechanism.
[0108] In an embodiment of the present invention, a cloth image captured by a camera is obtained, and based on the cloth image, the coordinates of the center point corresponding to the first position on the cloth are determined; the coordinates of the center point corresponding to the second position on the cloth are determined; the second position is the next position of the first position; the time when the first position and the second position arrive at the winding and correcting mechanism are determined respectively; the position of the winding and correcting mechanism is adjusted according to the time when the first position and the second position arrive at the winding and correcting mechanism, the coordinates of the center point corresponding to the first position, and the coordinates of the center point corresponding to the second position. Thus, the coordinates of the center point corresponding to the first position and the coordinates of the center point corresponding to the second position are determined based on the camera shooting, the position of the winding and correcting mechanism is adjusted, and then the position of the cloth entering the winding and correcting mechanism is adjusted, so that the first position and the second position of the cloth can be accurately aligned.
[0109] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0110] Reference Figure 7, shows a structural block diagram of a cloth deviation correction device provided by an embodiment of the present invention, the device is applied to a controller; the controller is respectively connected to a camera and a winding deviation correction mechanism, and specifically may include the following modules:
[0111] The first determination module 701 is used to obtain the cloth image taken by the camera, and determine the coordinates of the center point corresponding to the first position on the cloth according to the cloth image;
[0112] The second determination module 702 is used to determine the coordinates of the center point on the cloth corresponding to the second position; the second position is the next position of the first position;
[0113] A third determination module 703 is used to respectively determine the time when the first position and the second position arrive at the winding and correcting mechanism;
[0114] The adjustment module 704 is used to adjust the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
[0115] In one embodiment, the first determining module 701 includes:
[0116] A first acquisition submodule is used to 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 respectively two side coordinates corresponding to the first position on the cloth;
[0117] The first determining submodule is used to determine the coordinates of the center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth.
[0118] In one embodiment, the second determining module 702 includes:
[0119] A judging submodule, used for judging whether the second position on the cloth is damaged;
[0120] A second acquisition submodule is used to acquire a third coordinate and a fourth coordinate corresponding to the second position on the cloth when the second position on the cloth is not damaged; the third coordinate and the fourth coordinate are the coordinates on both sides corresponding to the second position on the cloth respectively;
[0121] A second determining submodule, configured to determine the coordinates of a center point on the cloth corresponding to the second position according to a third coordinate and a fourth coordinate corresponding to the second position on the cloth;
[0122] The third determination submodule is used to determine the coordinates of the center point of the second position on the cloth according to the coordinates of the center point corresponding to the first position on the cloth when the second position on the cloth is damaged.
[0123] In one embodiment, the judgment submodule includes:
[0124] A first determining unit is used to determine the position where the width of the cloth changes;
[0125] A second determining unit is used to determine that the cloth is damaged when the width change corresponding to the position where the cloth width changes is within a preset range;
[0126] The third determining unit is used to determine that the cloth is not damaged when the width change corresponding to the position where the width change occurs on the cloth is not within a preset range.
[0127] In one embodiment, the third determining submodule includes:
[0128] An acquisition unit, configured to 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 respectively two side coordinates corresponding to the first position on the cloth;
[0129] A fourth determining unit, configured to determine the coordinates of a center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth;
[0130] The fifth determining unit is used to determine the coordinates of the center point on the cloth corresponding to the first position as the coordinates of the center point of the second position.
[0131] In one embodiment, the third determining module 703 includes:
[0132] A third acquisition submodule is used to acquire the distance between the first position and the winding and correcting mechanism;
[0133] A fourth acquisition submodule, used to acquire the shooting time corresponding to the first position and the second position respectively;
[0134] A fifth acquisition submodule is used to acquire the operating speed of the winding and correcting mechanism;
[0135] The fifth determination submodule is used to determine the time when the first position and the second position arrive at 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.
[0136] In one embodiment, the adjustment module 704 includes:
[0137] A first adjustment submodule, configured to adjust the position of the winding and correcting mechanism according to the coordinates of the center point corresponding to the first position when the time from the current time to the first position to the winding and correcting mechanism is a preset time;
[0138] The second adjustment submodule is used to adjust the position of the winding and correcting mechanism according to the center point coordinates corresponding to the second position when the time from the current time to the second position to the winding and correcting mechanism is a preset time.
[0139] In an embodiment of the present invention, the first determination module is used to obtain the cloth image taken by the camera, and determine the coordinates of the center point corresponding to the first position on the cloth according to the cloth image; the second determination module is used to determine the coordinates of the center point corresponding to the second position on the cloth; the second position is the next position of the first position; the third determination module is used to determine the time when the first position and the second position arrive at the winding and correcting mechanism respectively; the adjustment module is used to adjust the position of the winding and correcting mechanism according to the time when the first position and the second position arrive at the winding and correcting mechanism, the coordinates of the center point corresponding to the first position, and the coordinates of the center point corresponding to the second position. Thus, the coordinates of the center point corresponding to the first position and the coordinates of the center point corresponding to the second position are determined according to the camera shooting, the position of the winding and correcting mechanism is adjusted, and then the position of the cloth entering the winding and correcting mechanism is adjusted, so that the first position and the second position of the cloth can be accurately aligned.
[0140] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0141] An embodiment of the present invention further provides an electronic device, including:
[0142] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each process of the above-mentioned cloth correction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0143] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned cloth correction method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0144] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0145] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0146] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0150] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0151] The above is a detailed introduction to a cloth correction method, a cloth correction device, an electronic device and a computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for correcting the deviation of cloth, characterized in that: The method is applied to a controller; the controller is connected to a camera and a winding and correcting mechanism respectively, and the method comprises: Acquire a cloth image taken by the camera, and determine the coordinates of a center point on the cloth corresponding to the first position according to the cloth image; Determine the coordinates of the center point on the cloth corresponding to a second position; the second position is the next position of the first position; Respectively determining the time when the first position and the second position arrive at the winding and correcting mechanism; The position of the winding and correcting mechanism is adjusted according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
2. The cloth deviation correction method according to claim 1, characterized in that: Determining the coordinates of a center point corresponding to the first position on the cloth according to the cloth image includes: 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 respectively two side coordinates corresponding to the first position on the cloth; The coordinates of the center point on the cloth corresponding to the first position are determined according to the first coordinate and the second coordinate corresponding to the first position on the cloth.
3. The cloth deviation correction method according to claim 1, characterized in that: The step of determining the coordinates of the center point on the cloth corresponding to the second position includes: Determining whether a second position on the cloth is damaged; When the second position on the cloth is not damaged, obtaining a third coordinate and a fourth coordinate on the cloth corresponding to the second position; the third coordinate and the fourth coordinate are the coordinates on both sides of the cloth corresponding to the second position; Determining the coordinates of the center point on the cloth corresponding to the second position according to the third coordinate and the fourth coordinate corresponding to the second position on the cloth; When damage occurs at a second position on the cloth, the coordinates of the center point of the second position are determined according to the coordinates of the center point on the cloth corresponding to the first position.
4. The cloth deviation correction method according to claim 3, characterized in that: The step of judging whether the cloth is damaged comprises: Determining the position where the width of the cloth changes; When the width change corresponding to the position where the width of the cloth changes is within a preset range, it is determined that the cloth is damaged; When the width change corresponding to the position where the width change of the cloth occurs is not within a preset range, it is determined that the cloth is not damaged.
5. The cloth deviation correction method according to claim 3, characterized in that: The step of determining the coordinates of the center point of the second position according to the coordinates of the center point on the cloth corresponding to the first position includes: 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 respectively two side coordinates corresponding to the first position on the cloth; Determining the coordinates of the center point corresponding to the first position on the cloth according to the first coordinates and the second coordinates corresponding to the first position on the cloth; The coordinates of the center point on the cloth corresponding to the first position are determined as the coordinates of the center point of the second position.
6. The cloth deviation correction method according to claim 1, characterized in that: The step of respectively determining the time when the first position and the second position arrive at the winding and correcting mechanism comprises: Acquire the distance between the first position and the winding and correcting mechanism; Acquire shooting times corresponding to the first position and the second position respectively; Obtaining the running speed of the winding and correcting mechanism; The time when the first position and the second position arrive at the winding and correcting mechanism is determined respectively 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.
7. The cloth deviation correction method according to claim 1, characterized in that: The adjusting the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position includes: When the time from the current time to the first position to the winding and correcting mechanism is a preset time, adjusting the position of the winding and correcting mechanism according to the center point coordinates corresponding to the first position; When the time from the current time to the second position to the winding and correcting mechanism is the preset time, the position of the winding and correcting mechanism is adjusted according to the center point coordinates corresponding to the second position.
8. A cloth deviation correction device, characterized in that: The device is applied to a controller; the controller is connected to a camera and a winding and correcting mechanism respectively, and the device comprises: A first determination module, used for acquiring a cloth image taken by the camera, and determining the coordinates of a center point on the cloth corresponding to a first position according to the cloth image; A second determination module is used to determine the coordinates of a center point on the cloth corresponding to a second position; the second position is the next position of the first position; A third determination module, used to respectively determine the time when the first position and the second position arrive at the winding and correcting mechanism; An adjustment module is used to adjust the position of the winding and correcting mechanism according to the time when the first position and the second position reach the winding and correcting mechanism, the center point coordinates corresponding to the first position, and the center point coordinates corresponding to the second position.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the cloth correction method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cloth correction method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Cloth detection system and method
CN111721773A
Curled material deviation rectifying method and device
CN117392218A
Method and system for centering and rectifying deviation of target coating
CN117533861A
Monitoring apparatus
EP1002754A1
Alignment of printheads in printing systems
EP3020555A1