Stranded wire pitch measuring method based on dynamic gray value under linear array camera
Through the combination of linear array cameras, encoding wheels and encoders, combined with dynamic gray value processing, the actual pitch of the stranded wire is calculated, and the problem of low efficiency and low accuracy of stranded wire pitch measurement in the prior art is solved, and the problem of low accuracy is realized. High accuracy and efficiency measurement.
Patent Information
- Application Number
- CN202411500294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, the measurement efficiency of stranded wire pitch is low, the accuracy is low, and the inconsistent light and darkness of stranded wire raw materials and the discontinuous image acquisition of cameras leads to low measurement accuracy.
The actual pitch of the stranded wire is calculated by combining the linear array camera with the encoding wheel and the encoder.
It improves the accuracy and efficiency of stranded pitch measurement, can measure during normal operation of the production line, and reduces the cost and error of manual measurement.
Smart Images

Figure CN119468953A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a method for measuring twisted wire pitch based on dynamic grayscale value under a linear array camera, and relates to the technical field of computer vision. Background Art
[0002] During the production process of stranded wire, its pitch determines the quality of the stranded wire. At present, most of the pitch measurements of stranded wire are made by manual measurement, which can only be performed when the production line is shut down or the movement speed is slow. There are problems such as low efficiency, low accuracy, and large measurement errors. Computer vision can analyze the uniformity of stranded wire, the distribution of pitch, etc., which plays an important role in quality control, fault diagnosis, process optimization, etc., and effectively makes up for the problems of manual measurement. However, in the existing computer vision method for measuring the pitch of stranded wire, the lightness and darkness of the stranded wire produced are inconsistent due to the limitation of the raw materials of the stranded wire, resulting in low measurement accuracy. In addition, if the camera uses a fixed line frequency to capture images, the captured images cannot be guaranteed to be continuous strands due to the inconsistent movement speed of the stranded wire. There is overlap, and the captured images cannot be used for pitch measurement. Summary of the invention
[0003] In view of the problems in the prior art, the present invention provides a method for measuring the pitch of a stranded wire based on dynamic grayscale values under a linear array camera. The method uses an industrial linear array camera in combination with a coding wheel and an encoder to capture the motion image of the stranded wire, processes the image using dynamic grayscale values, and calculates the actual pitch of the stranded wire in combination with the wire diameter of the stranded wire and the number of twisted single wires, thereby improving the measurement accuracy.
[0004] The specific scheme proposed by the present invention is:
[0005] The present invention provides a method for measuring the pitch of a twisted wire based on a dynamic gray value under a linear array camera, comprising:
[0006] S1: Deploy the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the position of the linear array camera, adjust the encoder and encoding wheel,
[0007] S2: Get the initial information of the linear array camera and the strands.
[0008] S3: Image acquisition: The image is acquired by combining a linear array camera, an encoder, and an encoding wheel. When the strands move, the encoding wheel is driven to rotate, so that the encoder triggers the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency. The change in object distance does not affect the field of view.
[0009] S4: Image stitching: stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, ensuring that the stitched images capture at least one pitch of the twisted wire distance.
[0010] S5: Processing images: Slice expansion and corrosion are used to process the spliced images, and the outline of the stranded wire is cut out. The position of each single wire is detected by using the dynamic gray value measurement method. A line segment is drawn in the stranded wire image, and each pixel point on the line segment whose gray value is less than the threshold is marked. According to the number of single wires in the stranded wire, the starting position and the ending position pixel points are recorded.
[0011] S6: Measurement pitch:
[0012] Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance;
[0013] According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined;
[0014] Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
[0015] The method further described in S1 specifically includes:
[0016] S101: configure the parameters of the line array camera, including adjusting the brightness of the light source of the line array camera and setting the focal length of the camera to obtain the best image clarity;
[0017] S102: Adjust the position of the line array camera, including: adjusting the position of the line array camera for anti-shake, so that the line array camera can run stably on a high-speed production line and avoid image distortion caused by high-speed movement.
[0018] S103: Adjust the encoder and encoder wheel to avoid the line array camera capturing the twisted wires without any overlap or omission.
[0019] In S103 of the method further described, the clamping pressure of the encoding wheel is adjusted so that the encoding wheel can adapt to the strands of different wire diameters, thereby reinforcing the strands and preventing the strands from swinging too much.
[0020] The method further includes obtaining the initial information of the linear array camera and the strand in S2, including:
[0021] S201: Obtain the wire diameter and the number of twisted single wires of the stranded wire;
[0022] S202: Obtain the field of view value of the linear array camera: All important features of the twisted wire captured by the linear array camera are divided into the field of view of the linear array camera.
[0023] S203: Obtaining resolution information of the image taken by the line array camera: ensuring that the resolution setting of the camera matches the actual production requirements.
[0024] In S4 of the method further described, the captured twisted wire images are first compressed, and image stitching is performed according to the number of images required for the maximum number of twisted wires.
[0025] The present invention also provides a twisted wire pitch measurement device based on dynamic grayscale value under a linear array camera, comprising a deployment configuration module, an information acquisition module, a collection module, a splicing module, a processing module and a distance measurement module.
[0026] The deployment configuration module deploys the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the linear array camera position, adjust the encoder and encoding wheel,
[0027] The information acquisition module obtains the initial information of the linear array camera and the stranded wire.
[0028] The acquisition module acquires images: It uses a combination of linear array cameras, encoders, and encoding wheels to acquire images. When the strands move, the encoding wheels rotate, causing the encoder to trigger the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency. Changes in object distance do not affect the field of view.
[0029] Image stitching module stitches images: stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, ensuring that the stitched images capture at least one pitch of the twisted wire distance.
[0030] The processing module processes the image: the spliced image is processed by expansion and corrosion, and the outline of the stranded wire is cut out. The dynamic gray value measurement method is used to detect the position of each single wire. A line segment is drawn in the stranded wire image, and each pixel point on the line segment with a gray value less than the threshold is marked. According to the number of single wires in the stranded wire, the starting and ending position pixels are recorded.
[0031] Distance measurement module measures pitch:
[0032] Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance;
[0033] According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined;
[0034] Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
[0035] The specific steps performed by the deployment configuration module of the further described device include:
[0036] S101: configure the parameters of the line array camera, including adjusting the brightness of the light source of the line array camera and setting the focal length of the camera to obtain the best image clarity;
[0037] S102: Adjust the position of the line array camera, including: adjusting the position of the line array camera for anti-shake, so that the line array camera can run stably on a high-speed production line and avoid image distortion caused by high-speed movement.
[0038] S103: Adjust the encoder and encoder wheel to avoid the line array camera capturing the twisted wires without any overlap or omission.
[0039] The deployment configuration module of the device further controls and adjusts the clamping pressure of the encoding wheel so that the encoding wheel can adapt to strands of different wire diameters, thereby reinforcing the strands and preventing the strands from swinging too much.
[0040] The information acquisition module of the further device acquires the initial information of the linear array camera and the stranded wire, including:
[0041] S201: Obtain the wire diameter and the number of twisted single wires of the stranded wire;
[0042] S202: Obtain the field of view value of the linear array camera: All important features of the twisted wire captured by the linear array camera are divided into the field of view of the linear array camera.
[0043] S203: Obtaining resolution information of the image taken by the line array camera: ensuring that the resolution setting of the camera matches the actual production requirements.
[0044] The splicing module of the device further compresses the captured twisted wire images first, and performs image splicing according to the number of images required for the maximum number of twisted wires actually twisted.
[0045] The benefits of the present invention are:
[0046] Different from the manual measurement method, the method of the present invention can adaptively adjust the strand pitch measurement time according to the different production line speeds when the production line is running normally, thus solving the problems of low manual measurement efficiency, low measurement accuracy, and high labor costs, ensuring production quality and efficiency, and achieving cost reduction and efficiency improvement for the enterprise.
[0047] In addition, the method of the present invention adopts a combination of a linear array camera, an encoder, and an encoder wheel to solve the problem of difficulty in pitch measurement caused by changes in object distance and discontinuous camera photography;
[0048] The present invention is based on dynamic gray value measurement, which solves the problem of computer vision recognition difficulties caused by different light and dark degrees of the produced strands due to uneven quality of production raw materials, and improves image recognition capabilities;
[0049] The method of the invention has scalability and can be quickly deployed in the pitch measurement of frame-stranded wires, etc., thereby improving the efficiency of pitch measurement and reducing the complexity of measuring the pitches of different strands. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a schematic flow chart of the method of the present invention.
[0051] Figure 2 This is a schematic diagram of the deployment of the code wheel and encoder.
[0052] Figure 3 It is a grayscale schematic diagram of twisted wire processing.
[0053] Figure 4 This is a schematic diagram of the measurement of stranded wire pitch.
[0054] Figure 5 It is a line comparison chart of the measurement effect of the method of the present invention and manual measurement.
[0055] Figure 6 It is a schematic diagram of the measurement accuracy of the method of the present invention. DETAILED DESCRIPTION
[0056] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0057] Example 1
[0058] The present invention provides a method for measuring the pitch of a twisted wire based on a dynamic gray value under a linear array camera, comprising:
[0059] S1: Deploy the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the position of the linear array camera, and adjust the encoder and encoding wheel.
[0060] S1 may further specifically include:
[0061] S101: Configure the parameters of the line scan camera, including adjusting the brightness of the light source of the line scan camera and setting the focal length of the camera to obtain the best image clarity.
[0062] S102: Adjust the position of the line scan camera, including: adjusting the position of the line scan camera for anti-shake, so that the line scan camera can run stably on a high-speed production line and avoid image distortion caused by high-speed movement. This ensures the reliability and accuracy of the line scan camera in a dynamic environment.
[0063] S103: Adjust the encoder and encoder wheel to avoid the line array camera capturing the twisted wires without any overlap or omission.
[0064] In S103, the clamping pressure of the encoding wheel is adjusted so that the encoding wheel can adapt to the stranded wires of different wire diameters, thereby reinforcing the stranded wires and preventing the stranded wires from swinging too much.
[0065] S2: Obtain the initial information of the linear array camera and the stranded wire. During the information initialization stage, multiple key parameters need to be obtained and recorded in detail to ensure that the quality and performance of the stranded wire meet the production standards.
[0066] The obtaining of the initial information of the linear array camera and the stranded wire may further include:
[0067] S201: Obtain the wire diameter and the number of twisted single wires of the stranded wire;
[0068] S202: Obtain the field of view value of the linear array camera: All important features of the twisted wire captured by the linear array camera are divided into the field of view of the linear array camera.
[0069] S203: Obtaining resolution information of the image taken by the line array camera: ensuring that the resolution setting of the camera matches the actual production requirements.
[0070] S3: Image acquisition: The image is acquired by combining a linear array camera, an encoder, and an encoding wheel. When the strands move, the encoding wheel rotates, and the encoder triggers the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency, and the change in object distance does not affect the field of view. That is, the actual measured pitch is not affected by the change in object distance.
[0071] S4: stitching images: compress the captured wire images first, and stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, to ensure that the stitched images capture at least one pitch of the wire distance.
[0072] S5: Processing the image: The spliced image is processed by piece expansion and corrosion, and the outline of the stranded wire is cut out. The position of each single wire is detected by using the dynamic gray value measurement method. A line segment is drawn in the stranded wire image, and each pixel point on the line segment whose gray value is less than the threshold is marked. According to the number of single wires in the stranded wire, the starting position and the ending position pixel points are recorded.
[0073] S6: Measure pitch, where the pixel value of the pixel point in S5 provides the pixel distance occupied by the twisted wire pitch in the image. The actual length of each pitch will occupy a certain number of pixels in the image. By measuring these pixel distances, the proportional relationship between pixels and actual pitch can be obtained.
[0074] According to the field of view information of the linear array camera in S2, the actual area covered by the camera during shooting can be obtained, including the width and height of the camera's field of view, which can be used to further calculate the actual size of the pitch.
[0075] The resolution information of the stitched image provided in S4 determines the number of pixels per unit length. Therefore, the specific measurement calculation process can be:
[0076] Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance;
[0077] According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined;
[0078] Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
[0079] Example 2
[0080] Based on Example 1, the practical operation process is described by taking GL3 / G1A-400 / 35-48 / 7 frame stranded wire as an example. Please refer to the following:
[0081] S1: Deployment and configuration phase: Select appropriate encoders, encoder wheels, linear array cameras, lenses, and light source equipment based on actual production conditions on site.
[0082] Configure the line scan camera parameters, adjust the line scan camera position, and adjust the encoder and encoder wheel.
[0083] S2: Information initialization stage: Obtain the basic information of GL3 / G1A-400 / 35-48 / 7 frame stranded wire. The stranding diameter of the third strand is 26.8±0.27mm. The third strand is made of 22 strands. A linear array camera is used, and its measurement field of view is C view =81.68mm, and the image resolution is 2048x2048.
[0084] S3: Image acquisition stage: Figure 2 The coding wheel and encoder shown in the figure, the present invention uses the coding wheel to adjust the spring pressure according to the rear knob to adapt to the twisted wires of different wire diameters, and can also reinforce the twisted wires to prevent the twisted wires from swinging too much. In the case of the present invention, the twisted wire moves at a constant speed of 31m / min, driving the coding wheel to rotate, and the rear encoder rotates with the coding wheel, thereby triggering the linear array camera to take pictures of the twisted wires. The actual line frequency of the camera is greater than the input frequency of the encoder, so there will be no image compression and expansion to affect the pitch measurement, and the field of view will not be affected by the change of object distance.
[0085] S4: Image stitching stage: compress the captured twisted wire images into 1280x1280 pixel images, and stitch 7 consecutive images into one image to ensure that enough single wires can be obtained in one image to calculate the twisted wire pitch value.
[0086] S5: Image processing stage: The stitched image is converted into a grayscale image. Due to the inconsistency of local brightness of the image, adaptive threshold processing is required, and then expansion and corrosion processing are performed. The processing results are as follows Figure 3As shown, a list of contours of the twisted wires in the original image is obtained based on the processed image.
[0087] S5: Pitch measurement stage: The distance between every two marking points is the thickness of a strand of wire. According to the number of strands of wire obtained in S1, which is 22, the distance between 23 points of the strand of wire is calculated, which is the pixel distance d occupied by the pitch of the strand. px =4666.17px, the actual pitch d of the stranded wire is obtained after calculation pitch =297.76mm. The actual measurement results are as follows Figure 4 As shown, it can be seen that the method of the present invention can accurately identify the position of each single wire, the pixel distance occupied by it is the distance marked by the red line segment, and the actual pitch measurement value is 297.76 mm as marked by the number in the figure.
[0088] Figure 5 This is a comparison chart of the method of the present invention and manual measurement. The method of the present invention and manual measurement measure the pitch at the same position. Figure 5 It can be seen that the measurement error between the present invention and the manual measurement method is within 3 mm. In the production process of GL3 / G1A-400 / 35-48 / 7 frame stranded wire, the standard pitch range of the third stranded layer is 275-315 mm.
[0089] Considering the error of manual measurement, the method of the present invention is compared with the measurement data of the standard scale. The comparison method is to use the method of the present invention to measure a certain scale spacing of the scale, and take the average value of the measurement results ten times. The measurement error is as follows: Figure 6 As shown, it can be seen that when measuring the actual distance of the scale 170-250mm, the error between the measured scale of the method of the present invention and the actual scale of the standard scale can be within 0.5mm. This shows that the method of the present invention improves the efficiency of pitch measurement, reduces the complexity of measuring the pitch of different strands, and improves the accuracy.
[0090] Example 3
[0091] The present invention also provides a twisted wire pitch measurement device based on dynamic grayscale value under a linear array camera, comprising a deployment configuration module, an information acquisition module, a collection module, a splicing module, a processing module and a distance measurement module.
[0092] The deployment configuration module deploys the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the linear array camera position, adjust the encoder and encoding wheel,
[0093] The information acquisition module obtains the initial information of the linear array camera and the stranded wire.
[0094] The acquisition module acquires images: It uses a combination of linear array cameras, encoders, and encoding wheels to acquire images. When the strands move, the encoding wheels rotate, causing the encoder to trigger the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency. Changes in object distance do not affect the field of view.
[0095] Image stitching module stitches images: stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, ensuring that the stitched images capture at least one pitch of the twisted wire distance.
[0096] The processing module processes the image: the spliced image is processed by expansion and corrosion, and the outline of the stranded wire is cut out. The dynamic gray value measurement method is used to detect the position of each single wire. A line segment is drawn in the stranded wire image, and each pixel point on the line segment with a gray value less than the threshold is marked. According to the number of single wires in the stranded wire, the starting and ending position pixels are recorded.
[0097] Distance measurement module measures pitch:
[0098] Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance;
[0099] According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined;
[0100] Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
[0101] As the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0102] Similarly, the device of the present invention is different from the manual measurement method. The method of the present invention can adaptively adjust the measurement time of the strand pitch according to the different production line speeds when the production line is running normally, thereby solving the problems of low manual measurement efficiency, low measurement accuracy, and high labor costs, ensuring production quality and efficiency, and achieving cost reduction and efficiency improvement for the enterprise.
[0103] In addition, the method of the present invention adopts a combination of a linear array camera, an encoder, and an encoder wheel to solve the problem of difficulty in pitch measurement caused by changes in object distance and discontinuous camera photography;
[0104] The present invention is based on dynamic gray value measurement, which solves the problem of computer vision recognition difficulties caused by different light and dark degrees of the produced strands due to uneven quality of production raw materials, and improves image recognition capabilities;
[0105] The method of the invention has scalability and can be quickly deployed in the pitch measurement of frame-stranded wires, etc., thereby improving the efficiency of pitch measurement and reducing the complexity of measuring the pitches of different strands.
[0106] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0107] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A method for measuring the pitch of a stranded wire based on dynamic grayscale values under a linear array camera, characterized in that include: S1: Deploy the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the position of the linear array camera, adjust the encoder and encoding wheel, S2: Get the initial information of the linear array camera and the strands. S3: Image acquisition: The image is acquired by combining a linear array camera, an encoder, and an encoding wheel. When the strands move, the encoding wheel is driven to rotate, so that the encoder triggers the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency. The change in object distance does not affect the field of view. S4: Image stitching: stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, ensuring that the stitched images capture at least one pitch of the twisted wire distance. S5: Processing images: Slice expansion and corrosion are used to process the spliced images, and the outline of the stranded wire is cut out. The position of each single wire is detected by using the dynamic gray value measurement method. A line segment is drawn in the stranded wire image, and each pixel point on the line segment whose gray value is less than the threshold is marked. According to the number of single wires in the stranded wire, the starting position and the ending position pixel points are recorded. S6: Measurement pitch: Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance; According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined; Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
2. The method according to claim 1, characterized in that S1 specifically includes: S101: configure the parameters of the line array camera, including adjusting the brightness of the light source of the line array camera and setting the focal length of the camera to obtain the best image clarity; S102: Adjust the position of the line array camera, including: adjusting the position of the line array camera for anti-shake, so that the line array camera can run stably on a high-speed production line and avoid image distortion caused by high-speed movement. S103: Adjust the encoder and encoder wheel to avoid the line array camera capturing the twisted wires without any overlap or omission.
3. The method according to claim 1, characterized in that In S103, the clamping pressure of the encoding wheel is adjusted so that the encoding wheel can adapt to the stranded wires of different wire diameters, thereby reinforcing the stranded wires and preventing the stranded wires from swinging too much.
4. The method according to claim 1, The characteristic is that S2 obtains the initial information of the linear array camera and the strand, including: S201: Obtain the wire diameter and the number of twisted single wires of the stranded wire; S202: Obtain the field of view value of the linear array camera: All important features of the twisted wire captured by the linear array camera are divided into the field of view of the linear array camera. S203: Obtaining resolution information of the image taken by the line array camera: ensuring that the resolution setting of the camera matches the actual production requirements.
5. The method according to claim 1, characterized in that In S4, the captured twisted wire images are first compressed, and image stitching is performed according to the number of images required for the maximum number of twisted wires.
6. A twisted wire pitch measurement device based on dynamic grayscale value under a linear array camera, characterized in that It includes deployment configuration module, information acquisition module, collection module, splicing module, processing module and ranging module. The deployment configuration module deploys the linear array camera, encoder and encoding wheel according to the wire diameter and production method of the stranded wire: configure the linear array camera parameters, adjust the linear array camera position, adjust the encoder and encoding wheel, The information acquisition module obtains the initial information of the linear array camera and the stranded wire. The acquisition module acquires images: It uses a combination of linear array cameras, encoders, and encoding wheels to acquire images. When the strands move, the encoding wheels rotate, causing the encoder to trigger the linear array camera to take pictures of the strands. When the strands move at a constant speed, the linear array camera takes pictures of the strands at a fixed frequency. Changes in object distance do not affect the field of view. Image stitching module stitches images: stitch the images captured by the linear array camera according to the number of images required for the maximum number of twisted wires, ensuring that the stitched images capture at least one pitch of the twisted wire distance. The processing module processes the image: the spliced image is processed by expansion and corrosion, and the outline of the stranded wire is cut out. The dynamic gray value measurement method is used to detect the position of each single wire. A line segment is drawn in the stranded wire image, and each pixel point on the line segment with a gray value less than the threshold is marked. According to the number of single wires in the stranded wire, the starting and ending position pixels are recorded. Distance measurement module measures pitch: Calculate pixel distance: According to the pixel points marked in S5, determine the pixel length of the twisted wire pitch in the image as the pixel distance; According to the field of view of the linear array camera and the resolution of the stitched image, the actual length represented by each pixel is determined; Calculate the actual pitch: Convert the pixel distance to the ratio of the actual length of each pixel to obtain the actual pitch of the twisted wire.
7. The device according to claim 6, characterized in that The specific steps performed by the deployment configuration module include: S101: configure the parameters of the line array camera, including adjusting the brightness of the light source of the line array camera and setting the focal length of the camera to obtain the best image clarity; S102: Adjust the position of the line array camera, including: adjusting the position of the line array camera for anti-shake, so that the line array camera can run stably on a high-speed production line and avoid image distortion caused by high-speed movement. S103: Adjust the encoder and encoder wheel to avoid the line array camera capturing the twisted wires without any overlap or omission.
8. The device according to claim 6, characterized in that The deployment configuration module controls and adjusts the clamping pressure of the encoding wheel so that the encoding wheel can adapt to the stranded wires of different wire diameters, reinforce the stranded wires, and prevent the stranded wires from swinging too much.
9. The device according to claim 6, characterized in that The information acquisition module obtains the initial information of the linear array camera and the stranded wire, including: S201: Obtain the wire diameter and the number of twisted single wires of the stranded wire; S202: Obtain the field of view value of the linear array camera: All important features of the twisted wire captured by the linear array camera are divided into the field of view of the linear array camera. S203: Obtaining resolution information of the image taken by the line array camera: ensuring that the resolution setting of the camera matches the actual production requirements.
10. The device according to claim 9, characterized in that The splicing module compresses the captured twisted wire images first, and then performs image splicing according to the number of images required for the maximum number of twisted wires.
Citation Information
Cited By
Cage stranded wire pitch measurement method and system based on line-scan digital camera
CN120672821A