Methods, apparatus, devices and systems for identifying band-shaped fasteners
Through image processing technology, including reception, pre-processing, edge extraction and line segment fusion, the presence of strip fasteners in vehicle manufacturing is identified, which solves the problem of difficulty in identifying irregular shapes and installation conditions in the existing technology, and achieves low-cost , efficient automatic identification.
Patent Information
- Application Number
- CN202010422757.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-05-19
AI Technical Summary
In vehicle manufacturing, it is difficult for existing technologies to effectively identify and detect irregular shapes and installation conditions of strip fasteners, resulting in high manual inspection costs and low production efficiency.
Using image processing methods, including receiving images of strip-shaped fasteners, preprocessing into grayscale images, edge extraction, line segment fusion and eigenvalue calculation, a simple algorithm is used to determine whether the strip-shaped fasteners exist, reducing the amount of calculation and improving recognition accuracy. sex.
It realizes the rapid and accurate identification of strip fasteners in vehicle manufacturing, reduces labor costs, improves production efficiency, and avoids the high requirements of complex algorithms on computer performance.
Smart Images

Figure CN113689447B
Abstract
Description
Technical Field
[0001] The present invention relates to a method for identifying a belt-shaped fastener in vehicle manufacturing, a device for identifying a belt-shaped fastener in vehicle manufacturing, a computer-readable storage medium, an apparatus for identifying a belt-shaped fastener in vehicle manufacturing, a system for identifying a belt-shaped fastener in vehicle manufacturing, and a vehicle production line including the system. Background Art
[0002] In vehicle manufacturing, vehicles usually go through stamping, welding, painting, and assembly before passing inspection and leaving the factory. Among them, the painting process is an important process before vehicle assembly. The body after stamping and welding is called the body in white. When the body in white enters the paint shop, the doors and the vehicle chassis cover are not fixed. In the paint shop, electrophoresis spraying and drying and other processes are carried out. After the entire production process is completed, the body will enter the stereoscopic warehouse and wait for the assembly line to be called. In the process of the body in white passing through the painting line, in order to ensure that the paint on the body in white is evenly applied, some brackets will be used to fix the doors and support the vehicle chassis cover. Before entering the stereoscopic warehouse, there is a production point on the production line where the bracket used for fixing is removed, and the corresponding parts are fixed with strip-shaped fixings. For example, Velcro straps for fixing the front and rear doors are tied to the B-pillars on the left and right sides of the vehicle to prevent the doors from loosening before entering the assembly workshop and causing unnecessary scratches. This process is completed by two operators standing on the left and right sides of the vehicle body, and another operator needs to perform manual inspection at the next point. This still cannot ensure that the strip-shaped fixings are all installed in place. If the strap fastener is not installed, the door may become loose, causing safety risks and affecting subsequent production processes. Summary of the invention
[0003] The object of the present invention is to provide a possibility for simply and reliably automatically identifying belt-shaped fasteners in vehicle manufacturing, thereby replacing traditional manual inspection, quickly and accurately identifying belt-shaped fasteners with the lowest possible calculation amount, reducing labor costs and improving production efficiency.
[0004] In order to solve the above-mentioned task, the present invention provides a method, an apparatus, a computer-readable storage medium, a device, a system for identifying a belt-shaped fastener in vehicle manufacturing, and a vehicle production line including the system.
[0005] A first aspect of the present invention relates to a method for identifying a strap-like fastener in vehicle manufacturing, the method comprising:
[0006] - receiving an image of a specified area of the belt-like fastener;
[0007] - pre-processing the captured image to produce a grayscale image;
[0008] -Edge extraction of grayscale images:
[0009] - calculating the grayscale gradient between pixels in the image, and selecting the edge straight line segment that conforms to the specified direction of the strip-shaped fixing member based on the grayscale gradient;
[0010] - Perform line segment fusion on the selected edge straight line segments;
[0011] - calculate the eigenvalues of the fused line segments, and
[0012] - judging whether the belt-shaped fastener exists according to the characteristic value.
[0013] In vehicle manufacturing, a strip-shaped fixing is used, which is flexible and can be a hook-and-loop closure, an adhesive tape, a self-locking cable tie or a rope. The strip-shaped fixing extends longitudinally and has continuous parallel edges. When the strip-shaped fixing is imaged, the strip-shaped fixing can be distinguished from the fixed part in color so that its longitudinally extending parallel edges can be presented in the image.
[0014] It should be noted that when a strip-shaped fastener is used in vehicle manufacturing, it is usually bound, surrounded or wrapped with the parts or structures of the vehicle body to be fixed. First, this makes the strip-shaped fastener at least partially coincide with the contour of the parts or structures of the vehicle body or integrate into its direction, so that the image taken of the strip-shaped fastener will not present a strict rectangle. Secondly, the fixed part is usually not planar, which causes the strip-shaped fastener to not stretch straight in the longitudinal extension direction. Therefore, there are also certain bends, bends or twists in the longitudinal extension of the strip-shaped fastener. Thirdly, when using some strip-shaped fasteners such as Velcro, there may be incomplete overlap of the mutually engaged parts. Moreover, since the captured image inevitably involves other parts of the vehicle, this also brings a lot of noise and interference in edge extraction and image recognition. For this reason, the strip-shaped fasteners in the vehicle manufacturing process may not be detected by contour discovery and geometric figure recognition in the prior art. According to the prior art, in order to identify the strip-shaped fasteners with such irregular shapes, it may be necessary to use algorithms with very large computational loads such as fuzzy recognition, neural network recognition and support vector machine for irregular shapes.
[0015] In view of the above situation, the present invention provides a simple, reliable and low-computation strip fastener identification method. In order to identify the strip fastener in vehicle manufacturing, first, an image can be captured corresponding to the area where the strip fastener is set. The captured image can be a grayscale image or a color image, especially an RGB image. Then the captured image can be preprocessed to generate a grayscale image. Here, the preprocessing can not only include grayscale conversion to generate the required grayscale image, but also include image interception, scaling, rotation, adjustment of brightness, contrast, resolution and saturation, etc. Next, edge extraction is performed on the grayscale image. The edge extraction may include: calculating the grayscale gradient between pixels in the image, selecting edge straight line segments that meet the specified direction of the strip fastener based on the grayscale gradient; and performing line segment fusion on the selected edge straight line segments. In vehicle manufacturing, there are usually certain installation requirements for the strip fastener, such as installation in a certain direction (horizontally, vertically or at a certain angle) and the need to ensure that the strip fastener is tensioned. Therefore, if the strip fastener is installed according to regulations, the line segments of continuous edges within a certain orientation range should be able to be identified in its image. In order to finally determine the belt-shaped fastener, the feature values of the fused line segments are calculated, and whether the belt-shaped fastener exists is determined based on the feature values.
[0016] According to the present invention, a computer-implemented recognition method is provided, which can recognize such a strip-shaped fastener through a specially designed image processing process, without using a complex algorithm of irregular shapes, and thus without placing high requirements on the computing performance of the computer. Therefore, the present invention can be deployed in a vehicle production line at a low cost, effectively saving the labor cost originally required and optimizing the production process.
[0017] According to one embodiment of the present invention, the image of the specified area of the strip-shaped fixing is an RGB image, and when the captured image is preprocessed to generate a grayscale image, the weights of each color channel are adapted according to the color of the fixed part. On a vehicle production line, vehicles with different body colors are usually produced, and the body colors may be different in depth, and some body colors may be similar to the strip-shaped fixing. In order to better identify, in the preprocessing process, the weights of each color channel are adapted according to the color of the fixed part, such as the body, so as to obtain a grayscale image that is easier to extract the edge later. Here, in particular, information about the color of the fixed part, such as the body, can be obtained from the vehicle manufacturing system. Based on this information, the preset RGB color channel weights are called, and the RGB values of each pixel in the RGB image are weighted and calculated according to each color channel to generate an optimized grayscale value, thereby generating an optimized grayscale image. Table 1 shows an exemplary list of the relationship between the color of the fixed part and the weights of each RGB channel.
[0018] Table 1 List of RGB channel weights corresponding to different fixed parts colors
[0019] Color of fixed parts <![CDATA[R-channel weight R w > <![CDATA[G-channel weight G w > <![CDATA[Weight B of Channel B w > White / Default 0.299 0.587 0.114 red 1 0 0 blue 0 0 1 yellow 0.5 0.5 0 gold 0.6 0.2 0.2 black 0.299 0.587 0.114
[0020] According to this embodiment, when converting an RGB image into a grayscale image according to the present invention, each component R(i,j), G(i,j), and B(i,j) in the RGB value of the pixel point (i,j) in the RGB image is weighted according to the weights preset according to the corresponding color of the fixed part to obtain the following optimized grayscale value I(i,j):
[0021] I(i,j)=R(i,j)·R w +G(i,j)·G w +B(i,j)·B w .
[0022] According to one embodiment of the present invention, for a strip-shaped fastener that is specified to be installed approximately horizontally, an edge straight line segment within a range of ±30° to the horizontal direction is selected. In vehicle manufacturing, for example, in order to fix the doors of a painted body-in-white, a strip-shaped fastener (here a Velcro strap) is used to horizontally wrap the front and rear doors at the B-pillar. As a result, in the image to be identified, the edge of the strap will extend horizontally. However, due to certain operating tolerances during installation, the strip-shaped fastener may not be absolutely horizontal. For this reason, when performing edge extraction on the preprocessed grayscale image, an edge straight line segment within a range of ±30° to the horizontal direction is selected so as to filter out other interfering edge straight line segments in the image while taking into account the installation tolerance.
[0023] According to one embodiment of the present invention, when the selected edge straight line segments are merged, the absolute distance and relative distance between the separated edge straight line segments are calculated, and the separated edge straight line segments are connected to each other when at least one of the absolute distance and the relative distance is less than the corresponding threshold. Due to interference factors such as image noise, structural lines of the fixed part or bending of the strip-shaped fixed part, the selected edge straight line segments are not connected to each other but may be discontinuous. In order to determine whether there is an edge representing the strip-shaped fixed part, it is necessary to merge the edge straight line segments to restore the edge of the strip-shaped fixed part as much as possible. Here, each separated edge straight line segment is measured one by one to determine whether there is a fusion condition, and the distance between the two edge straight line segments is used as the judgment standard. Here, the absolute distance and the relative distance between them are calculated. Here, the absolute distance is defined as the closest distance between the projection of a straight line segment on the straight line where the other straight line segment is located and the other straight line segment; the relative distance is defined as the quotient of the closest distance divided by the absolute value of the minimum length of the two edge straight line segments. Here, the absolute distance is provided with an absolute distance threshold, and the relative distance is provided with a relative distance threshold. For two separated edge straight line segments, if the absolute distance is less than the absolute distance threshold or the relative distance is less than the relative distance threshold, it can be determined that the two edge straight line segments can be connected to each other. Through this embodiment, even if the strip-shaped fixing member is not completely straight or has a certain degree of bending, bending or twisting, its edge can be identified. In addition, the information loss caused by the previous processing and selection can be restored to a certain extent.
[0024] According to one embodiment of the present invention, the characteristic value is the length, the sum of the squares of the lengths, the square root of the lengths, the horizontality, the verticality or the density of the fused line segments. In the present invention, the existence of the strip-shaped fastener is determined numerically, without using recognition methods such as shapes and color blocks. This reduces the amount of calculation and avoids the use of complex algorithms. Here, the characteristic values, especially the values related to the length, are used as the judgment criteria for the edge of the strip-shaped fastener, so that such judgment can be achieved simply and effectively. In addition, based on the installation regulations of the strip-shaped fastener, the use of horizontality or verticality can also be considered. In addition, it is also possible to judge based on the density of the fused line segments in the image area or the proportion in the image area.
[0025] According to one embodiment of the present invention, a window in which the characteristic value is higher than the corresponding characteristic value threshold is found by a sliding window algorithm; and when such a window appears, it is determined that a strip fastener exists, and when such a window does not appear, it is determined that a strip fastener does not exist. Since the installation of the strip fastener can be carried out in a certain area of the vehicle, there may also be certain differences in position, for example, the strip fastener (here is a Velcro strap) used to wrap around and fix the door of the painted white body may be installed at the upper edge of the door or in the middle of the door. In order to accurately find the representative strip fastener in a large range and avoid misjudgment due to noise, a sliding window algorithm is used here. In order to determine the existence of the strip fastener, it is necessary to find a window in the image in which the characteristic value is higher than the corresponding characteristic value threshold. Preferably, such a window is additionally marked for archiving and tracing. In addition, the use of the sliding window algorithm can further reduce the amount of calculation, so that the identification of the strip fastener can be achieved quickly and accurately.
[0026] A second aspect of the present invention relates to a device for identifying a strap-like fastener in vehicle manufacturing, the device comprising:
[0027] - a receiving module, for receiving an image of a specified area of the strip-shaped fixing member;
[0028] - a preprocessing module, used for preprocessing the captured image to generate a grayscale image;
[0029] - an edge extraction module, used to extract the edge of the grayscale image, the edge extraction module comprising:
[0030] - a straight line segment selection unit, used for calculating the gray gradient between pixels in the image and selecting the edge straight line segment that conforms to the specified direction of the strip-shaped fixing member based on the gray gradient;
[0031] - a line segment fusion unit, used for performing line segment fusion on the selected edge straight line segments;
[0032] - an eigenvalue calculation module, for calculating the eigenvalues of the fused line segments, and
[0033] - A determination module, for determining whether a belt-shaped fastener exists according to the characteristic value.
[0034] The device for identifying belt-like fasteners in vehicle manufacturing according to the present invention can replace traditional manual inspection, quickly and accurately identify belt-like fasteners with the lowest possible calculation amount, reduce labor costs and improve production efficiency.
[0035] According to one embodiment of the present invention, the image of the specified area of the strip-shaped fixing is an RGB image, and the pre-processing module adapts the weights of each color channel according to the color of the fixing.
[0036] According to one embodiment of the present invention, for a strip-shaped fixing member that is required to be installed approximately horizontally, the straight line segment selection unit selects an edge straight line segment within a range of ±30° with the horizontal direction.
[0037] According to one embodiment of the present invention, the line segment fusion unit is configured to calculate an absolute distance and a relative distance between separate edge straight line segments and connect the separate edge straight line segments to each other when at least one of the absolute distance and the relative distance is smaller than a correspondingly assigned threshold value.
[0038] According to one embodiment of the present invention, the determination module is configured to: find a window in which the eigenvalue is higher than the corresponding eigenvalue threshold through a sliding window algorithm; and determine that a strip fastener exists when such a window appears, and determine that a strip fastener does not exist when such a window does not appear.
[0039] A third aspect of the present invention relates to a computer-readable storage medium having executable instructions, which, when executed, cause a computer to perform a method according to the present invention.
[0040] A fourth aspect of the present invention relates to a device for identifying a belt-shaped fastener in vehicle manufacturing, the device comprising:
[0041] - a memory storing computer executable instructions; and
[0042] - a processor configured to execute computer executable instructions, wherein said computer executable instructions, when executed by said processor, implement the method according to the present invention.
[0043] According to a fifth aspect of the present invention, a system for identifying a belt-shaped fastener in vehicle manufacturing is provided, the system comprising:
[0044] - an industrial camera for capturing an image of a defined area of the strip fastener;
[0045] - a device according to the invention for detecting a strap-like fastening element in vehicle construction;
[0046] - an alarm device for outputting an alarm signal when it is determined that the belt-shaped fastener is not present.
[0047] By using the device and system for identifying the belt-shaped fastener in vehicle manufacturing according to the present invention, it is possible to replace the traditional manual inspection, quickly and accurately identify the belt-shaped fastener with the lowest possible calculation amount, reduce labor costs and improve production efficiency. In the system according to the present invention, the belt-shaped fastener can be automatically detected and an alarm is issued to the operator through the alarm device when the belt-shaped fastener is missing.
[0048] According to one embodiment of the present invention, the system includes a flash lamp for increasing the exposure when the light is too dark. As mentioned above, vehicles with different body colors are usually produced on a vehicle production line, and the body colors may be different shades. When the body color is dark, the flash lamp can be used to increase the exposure and improve the recognition accuracy.
[0049] According to one embodiment of the present invention, the system includes a data interface, which is configured to: obtain information about the fixed part from the vehicle manufacturing system; and / or receive a signal from the vehicle manufacturing system that the fixed part is in place; and / or send the strip fastener recognition result to the vehicle manufacturing system. Here, information about the fixed part, such as the body color, vehicle model, etc., can be obtained from the vehicle manufacturing system, so that adaptive matching can be performed during recognition, such as calling the weights of each color channel, etc. A signal that the fixed part is in place can be received from the vehicle manufacturing system to trigger the shooting of the industrial camera and the subsequent recognition process. The strip fastener recognition result can also be sent to the vehicle manufacturing system, such as a signal whether the strip fastener exists, an image with an identified window, etc.
[0050] According to one embodiment of the present invention, the strip-shaped fixing member is a hook and loop fastener, an adhesive tape, a self-locking tie or a rope, and / or the fixed member is a vehicle body door.
[0051] According to one embodiment of the present invention, the information about the fixed component at least includes the color of the vehicle body.
[0052] According to a sixth aspect of the present invention, a vehicle production line is provided, which comprises the system according to the present invention for identifying a strap-like fastener in vehicle production.
[0053] It should be noted that the features, functions, effects and advantages of one aspect of the present invention can also refer to the above description of other aspects of the present invention. In addition, the various aspects described in this document can be combined with each other in a variety of ways. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A flow chart showing one specific embodiment of the method according to the present invention for identifying a strap-like fastening element in vehicle construction;
[0055] Figure 2a to Figure 2d The grayscale image preprocessed according to the present invention, the selected approximately horizontal edge straight line segment, the fused line segment and the found window where the strip-shaped fixing member exists are respectively shown;
[0056] Figure 3 Calculation of absolute distance and relative distance defined in accordance with the present invention is shown;
[0057] Figure 4a and Figure 4b shows a comparison of line segment fusion according to the present invention;
[0058] Figure 5 A block diagram showing an embodiment of a device according to the present invention for identifying a strap-like fastening element in vehicle construction;
[0059] Figure 6 A schematic diagram shows an embodiment of a system according to the invention for detecting a strap-like fastening element in vehicle construction. DETAILED DESCRIPTION
[0060] Figure 1 A flow chart of an embodiment of the method according to the present invention is shown. A method 100 for identifying a strap-like fastener in vehicle manufacturing comprises:
[0061] - Step 101: receiving an image of a specified area of a strip-shaped fixing member;
[0062] - Step 102: pre-processing the captured image to generate a grayscale image;
[0063] -Step 103: Extract the edge of the grayscale image:
[0064] - Step 103a: Calculate the grayscale gradient between pixels in the image, and select the edge straight line segment that conforms to the specified direction of the strip-shaped fixing member based on the grayscale gradient;
[0065] - Step 103b: performing line segment fusion on the selected edge straight line segments;
[0066] - Step 104: Calculate the eigenvalues of the fused line segments, and
[0067] - Step 105: Determine whether the belt-shaped fastener exists according to the characteristic value.
[0068] In step 101, the image of the specified area of the strip-shaped fixing member is preferably an RGB image. In particular, the weights of each color channel are adapted according to the color of the fixing member in step 102. Here, the weights of the color channels can refer to the values in Table 1 above.
[0069] In step 103a, for the strip-shaped fixing member that is required to be installed approximately horizontally, it is advantageous to select edge straight line segments within a range of ±30° with respect to the horizontal direction.
[0070] In step 103b, the absolute distance and the relative distance between the separated edge straight line segments are preferably calculated, and the separated edge straight line segments are connected to each other when at least one of the absolute distance and the relative distance is smaller than a correspondingly assigned threshold value.
[0071] The feature value used in step 104 is preferably the length, the sum of the squares of the lengths, the square root of the lengths, the horizontality, the verticality or the density of the merged line segments.
[0072] In step 105, preferably, a window in which the eigenvalue is higher than the corresponding eigenvalue threshold is found by a sliding window algorithm; and if such a window appears, it is determined that a strip fastener exists, and if such a window does not appear, it is determined that no strip fastener exists.
[0073] Figure 2a to Figure 2d The distribution diagram shows the grayscale image preprocessed according to the present invention, the selected approximately horizontal edge straight line segments, the fused line segments and the found windows where the strip-shaped fasteners exist.
[0074] Figure 2a The grayscale image preprocessed in step 102 is shown. Here, the image of the specified area of the strip-shaped fixing member received in step 101 may be an RGB image, which may be converted by weighting according to the present invention, wherein the weight of each color channel is adapted in particular according to the color of the fixing member. Figure 2a The grayscale image shown in is the door area of the painted white body at the B-pillar. Here, the front and rear doors should be horizontally tied with a strip-shaped fixing, that is, the Velcro here, to prevent the doors from loosening and causing unnecessary scratches before the body enters the final assembly workshop. It should be noted that the preprocessing of step 102 may include not only the above-mentioned grayscale conversion, but also image capture, scaling, rotation, adjustment of brightness, contrast, resolution and saturation, etc. It can be seen from Figure 2 that the captured image will inevitably involve other parts of the vehicle. For this reason, Figure 2a A relatively bright parallelogram region is marked in , which extends in accordance with the direction of the door B-pillar and represents a possible position region of the strip-shaped fastening element. In order to simplify the calculation process, this region can be advantageously selected as the implementation object of the subsequent method steps.
[0075] Having experienced Figure 2a After the preprocessing shown, edge extraction is performed on the grayscale image. The edge extraction may include: calculating the grayscale gradient between pixels in the image. Here, the grayscale gradient is calculated according to the following formula:
[0076] G x (x,y)=I(x+1,y)-I(x-1,y)
[0077] G y (x,y)=I(x,y+1)-I(x,y-1)
[0078]
[0079]
[0080] Here, I represents a grayscale value, in particular, an optimized grayscale value as described above. x (x, y) is the grayscale difference in the horizontal direction, G x (x, y) is the grayscale difference in the longitudinal direction, G(x, y) represents the grayscale gradient value, and α(x, y) represents the grayscale gradient direction. By calculating the grayscale gradient value of each pixel in the grayscale image, especially the selected area, the edge straight line segment with large grayscale change in the image and in accordance with the specified direction of the strip fastener can be selected according to a certain gradient threshold and gradient direction threshold.
[0081] Figure 2b The selected approximately horizontal edge straight line segment is shown, wherein the angle between the selected edge straight line segment and the horizontal direction is within the range of ±30°. Figure 2b It can be seen from the figure that the selected edge straight line segment does not contain Figure 1 The edge of the door extending in the longitudinal direction is shown in the image. Thus, the interference and noise of other irrelevant lines are effectively eliminated. In addition, it can be seen that due to the shooting angle and the non-planarity of the fixed part, that is, the door B-pillar, the strip-shaped fixing part does not extend straight in the longitudinal extension direction, but extends in a curved arc. For this reason, the strip-shaped fixing part may not be easily detected by contour discovery and geometric figure recognition in the prior art. In order to detect it, it may be necessary to use algorithms with very large computational loads such as fuzzy recognition for irregular shapes, neural network recognition and support vector machine in the prior art.
[0082] Figure 2c Show Figure 2b The line segment after the edge straight line segments selected in fused. Figure 2b The edge straight line segments in are not continuous due to bending and noise. Based on certain criteria, these edge straight line segments are merged to obtain Figure 2c The continuous line segments in the image are effectively represented by the edge of the strip-shaped fixing member. The line segment fusion will be described in detail below.
[0083] Figure 2d The window where the belt-shaped fastener is found is shown. Figure 2cThe sliding window algorithm is used to find the window where the eigenvalue is higher than the corresponding eigenvalue threshold. Figure 2d The gray boxes in the figure represent the windows found in which the characteristic value is above the characteristic value threshold. It can be determined that there is a strip-shaped fastener. Preferably, the length square sum is used as the characteristic value to calculate:
[0084] T=∑L 2 (Line Segment)
[0085] Among them, T represents the eigenvalue, and L (line segment) is the total length of the fused line segment.
[0086] Figure 3 The calculation of the absolute distance and the relative distance defined according to the present invention is shown. Figure 3 It is shown that two edge straight line segments s1 and s2 are selected. Here, the absolute distance is defined as the shortest distance between the projection of a straight line segment s2 on the straight line where another straight line segment s1 is located and the other straight line segment s1. Here, the endpoint of the edge straight line segment s1 is AB, the endpoint of the edge straight line segment s2 is CD, and point E is the foot of the perpendicular of point C on the extension line of AB. Therefore, point E is the projection of the endpoint C of the edge straight line segment s2 on the extension line of the edge straight line segment s1. According to the present invention, the length of the edge straight line segment BE is defined as the distance between the edge straight line segments s1 and s2. In addition, if point E falls between AB, the distance is defined as 0. The relative distance is defined as the quotient of the shortest distance divided by the absolute value of the minimum length of the two edge straight line segments, that is, BE / min(|s1|,|s2|). According to the present invention, when the absolute distance < the absolute distance threshold or the relative distance < the relative distance threshold, we believe that the two edge straight line segments can be merged.
[0087] Figure 4a and Figure 4b A comparison of line segment fusion according to the present invention is shown. Figure 4a , multiple selected edge straight line segments are shown, wherein the endpoints of each segment are marked with 1 to 10. Figure 4b The line segments after fusion according to the present invention are shown. It can be seen that due to interference factors such as image noise, structural lines of the fixed part or bending of the strip-shaped fixing part, the selected edge straight line segments are not connected to each other but may be discontinuous. In order to determine whether there is an edge representing the strip-shaped fixing part, the edge straight line segments are fused according to the above standards in the present invention to restore the edge of the strip-shaped fixing part as much as possible.
[0088] Figure 5 A block diagram of an embodiment of a device for identifying a belt-shaped fastener in vehicle manufacturing according to the present invention is shown. The device 200 for identifying a belt-shaped fastener in vehicle manufacturing comprises:
[0089] - A receiving module 201, for receiving an image of a specified area of a strip-shaped fixing member;
[0090] - A preprocessing module 202, used for preprocessing the captured image to generate a grayscale image;
[0091] - An edge extraction module 203 is used to extract edges from a grayscale image. The edge extraction module includes:
[0092] - a straight line segment selection unit 203a, used to calculate the gray gradient between pixels in the image and select edge straight line segments that conform to the specified direction of the strip-shaped fixing member based on the gray gradient;
[0093] - a line segment fusion unit 203b, used for performing line segment fusion on the selected edge straight line segments;
[0094] - an eigenvalue calculation module 204, for calculating the eigenvalues of the fused line segments, and
[0095] - A determination module 205, which determines whether a belt-shaped fastener exists according to the characteristic value.
[0096] Figure 6 A schematic diagram of an embodiment of a system for identifying a strap-like fastener in vehicle manufacturing according to the present invention is shown. A system 300 for identifying a strap-like fastener in vehicle manufacturing comprises:
[0097] - industrial cameras 301a and 301b for capturing images of a defined area 402 of the strip-shaped fastener;
[0098] - Device 302 for identifying a strap-type fastener in vehicle manufacturing;
[0099] - an alarm device for outputting an alarm signal when it is determined that the belt-shaped fastener is not present.
[0100] The device 302 for identifying a belt-shaped fastener in vehicle manufacturing includes:
[0101] - a memory storing computer executable instructions; and
[0102] - a processor configured to execute computer executable instructions, wherein said computer executable instructions, when executed by said processor, implement the method according to the present invention.
[0103] Figure 6In FIG. 4 , it can be seen that the system 300 according to the present invention is schematically arranged on a vehicle conveyor 400. The vehicle conveyor 400 is a production line after a paint shop, on which a painted body-in-white 401 is transported. In order to prevent the doors of the body from loosening before entering the final assembly shop and causing unnecessary scratches, a strip-shaped fixing, here a Velcro strap 403, is fastened to the B-pillars on the left and right sides of the vehicle for fixing the front and rear doors. When the body-in-white is transported to the identification point, a trigger signal is preferably sent to the industrial cameras 301a and 301b arranged on both sides of the production line through the vehicle manufacturing system IPS to capture an image of a specified area 402 of the strip-shaped fixing. In particular, when it is known through the vehicle manufacturing system IPS that the body-in-white 401 is dark in color, the flash lamps 304a and 304b are triggered at the same time to increase the exposure when the light is too dark. The device 302 for identifying the belt-like fasteners in vehicle manufacturing receives an image, in particular an RGB image, of a specified area 402 of the belt-like fasteners and executes the above method according to the present invention to identify whether the straps 403 are tied at the B-pillars on both sides of the body-in-white 401 .
[0104] Preferably, the system 300 includes a data interface, and the data interface is configured to: obtain information about the fixed part from the vehicle manufacturing system IPS; and / or receive a signal from the vehicle manufacturing system IPS that the fixed part is in place; and / or send a strip fastener identification result to the vehicle manufacturing system IPS. The information about the fixed part includes at least the vehicle body color. The vehicle body color can be used as a criterion for whether the flash lights 304a and 304b are used, and when the captured image is preprocessed, the weights of each color channel can be adapted according to the vehicle body color to obtain an optimized grayscale image.
[0105] Figure 6 The alarm device shown includes a warning light 303a and a speaker 303b, which are used to output an alarm signal when it is determined that the belt-shaped fastener is not present, thereby visually and audibly alerting the operator of the absence of the hook and loop fastener 403.
[0106] The system of the present invention can replace traditional manual inspection and quickly and accurately identify the belt-shaped fastener with the lowest possible amount of calculation, thereby reducing labor costs and improving production efficiency.
[0107] The present invention is not limited to the embodiments shown, but includes or extends to all technical equivalents that fall within the effective scope of the attached claims. The features disclosed in the present application document can be implemented not only individually but also in any combination. In addition, it should be noted that the various drawings of the present invention are schematic and may not be shown to scale. In various embodiments, the methods, devices, equipment, systems and vehicle production lines are also not limited to the examples shown. The situations listed in the specification are only exemplary reference situations. In the specific application of the present invention, other implementation methods, process sequences, layout structures and connection relationships can be designed as needed.
Claims
1. A method for identifying a strap-type fastener in vehicle manufacturing, the method comprising: - receiving an image of a specified area of the belt-like fastener; - pre-processing the captured image to produce a grayscale image; -Edge extraction of grayscale images: - calculating the grayscale gradient between pixels in the image, and selecting the edge straight line segment that conforms to the specified direction of the strip-shaped fixing member based on the grayscale gradient; - Perform line segment fusion on the selected edge straight line segments; - calculating a feature value of the merged line segments, the feature value being the length, the sum of the squares of the lengths, the square root of the lengths, the horizontality, the verticality or the density of the merged line segments, and - judging whether the belt-shaped fastener exists according to the characteristic value, When the selected edge straight line segments are subjected to line segment fusion, the absolute distance and relative distance between the separated edge straight line segments are calculated, wherein the absolute distance is defined as the closest distance between the projection of one edge straight line segment on the straight line where another edge straight line segment is located and the other edge straight line segment, and the relative distance is defined as the quotient of the closest distance divided by the absolute value of the shortest length of the two edge straight line segments, and the separated edge straight line segments are connected to each other when at least one of the absolute distance and the relative distance is less than the correspondingly configured threshold value.
2. The method according to claim 1, characterized in that The image of the specified area of the strip-shaped fixing is an RGB image, and when the captured image is preprocessed to generate a grayscale image, the weight of each color channel is adapted according to the color of the fixing.
3. The method according to claim 1 or 2, characterized in that For strip-shaped fixings that are required to be installed approximately horizontally, select edge straight line segments within the range of ±30° to the horizontal direction.
4. The method according to claim 1 or 2, characterized in that: A window in which the eigenvalue is higher than the corresponding eigenvalue threshold is found by a sliding window algorithm; and if such a window appears, it is determined that the band-shaped fastener exists, and if such a window does not appear, it is determined that the band-shaped fastener does not exist.
5. A device for identifying a strap-like fastener in vehicle manufacturing, the device comprising: - a receiving module, for receiving an image of a specified area of the strip-shaped fixing member; - a preprocessing module, used for preprocessing the captured image to generate a grayscale image; - an edge extraction module, used to extract the edge of the grayscale image, the edge extraction module comprising: - a straight line segment selection unit, used for calculating the gray gradient between pixels in the image and selecting the edge straight line segment that conforms to the specified direction of the strip-shaped fixing member based on the gray gradient; - a line segment fusion unit, used for performing line segment fusion on the selected edge straight line segments; - an eigenvalue calculation module, for calculating the eigenvalues of the merged line segments, wherein the eigenvalues are the length, the sum of the squares of the lengths, the square root of the lengths, the horizontality, the verticality or the density of the merged line segments, and - a determination module, for determining whether a belt-shaped fastener exists according to the characteristic value, The line segment fusion unit is configured to calculate the absolute distance and relative distance between edge straight line segments separated from each other, wherein the absolute distance is defined as the closest distance between the projection of one edge straight line segment on the straight line where another edge straight line segment is located and the other edge straight line segment, and the relative distance is defined as the quotient of the closest distance divided by the absolute value of the shortest length of the two edge straight line segments, and the edge straight line segments separated from each other are connected to each other when at least one of the absolute distance and the relative distance is less than a correspondingly configured threshold.
6. The device according to claim 5, characterized in that The image of the specified area of the strip-shaped fixing is an RGB image, and the preprocessing module adapts the weight of each color channel according to the color of the fixing.
7. The device according to claim 5 or 6, characterized in that For a strip-shaped fixing member that is required to be installed approximately horizontally, the straight line segment selection unit selects an edge straight line segment within a range of ±30° with the horizontal direction.
8. The device according to claim 5 or 6, characterized in that The determination module is configured to: find a window in which the eigenvalue is higher than a corresponding eigenvalue threshold through a sliding window algorithm; and determine that a strip-shaped fastener exists when such a window appears, and determine that no strip-shaped fastener exists when such a window does not appear. 9 . A computer-readable storage medium having executable instructions, which, when executed, cause a computer to perform the method according to claim 1 .
10. A device for identifying a strap-like fastener in vehicle manufacturing, the device comprising: - a memory storing computer executable instructions; as well as - a processor configured to execute computer executable instructions, wherein the computer executable instructions, when executed by the processor, implement the method according to any one of claims 1 to 4.
11. A system for identifying a strap fastener in vehicle manufacturing, the system comprising: - an industrial camera for capturing an image of a defined area of the strip fastener; - Device for identifying a strap-like fastener in vehicle construction according to claim 10; - an alarm device for outputting an alarm signal when it is determined that the belt-shaped fastener is not present.
12. The system according to claim 11, characterized in that The system includes a flash to increase the exposure when the light is too low.
13. The system according to claim 11 or 12, characterized in that The system comprises a data interface configured to: Obtaining information about the fastened component from the vehicle manufacturing system; and / or Receiving a signal from a vehicle manufacturing system that a fastened part is in position; and / or The strip fastener recognition result is sent to the vehicle manufacturing system.
14. The system according to claim 13, characterized in that The strip-shaped fixing member is a Velcro strap, and / or the fixed member is a door of a vehicle.
15. The system according to claim 13, characterized in that The information about the fixed component at least includes the vehicle body color.
16. A vehicle production line comprising a system for identifying strap-like fasteners in vehicle production according to any one of claims 11 to 15.
Citation Information
Patent Citations
Line segment detector and line segment detecting method
CN101001307A
Laser outer diameter detecting instrument
CN101013026A
Uneven checking method and device and recording medium
CN101082592A
Processing method and processing device of image graying
CN104200431A
Seatbelt detection method and seatbelt detection device
CN106650567A
