An automatic parameter determination method and system for products on an assembly line

Through edge detection and convolution kernel weight setting methods, the problem of insufficient digitalization and intelligence in assembly line product parameters is solved, and the quality inspection efficiency and accuracy are improved.

CN120219768BActive Publication Date: 2025-08-01深圳市利和兴股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510692403.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-01
Estimated Expiration
2045-05-27

AI Technical Summary

Technical Problem

In the prior art, the degree of digitalization and intelligence determination of assembly line product parameters is low, resulting in insufficient quality inspection efficiency and accuracy.

Method used

By acquiring the image to be calibrated on the pipeline, using an edge detection algorithm to identify the edge profile, determine the error mapping area and edge reference mapping area, perform noise filtering and convolution kernel weight setting, and realize edge recognition and dimension calibration.

Benefits of technology

The efficiency and accuracy of assembly line product parameter determination have been improved, and a higher degree of digitalization and intelligence have been achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120219768B_ABST
    Figure CN120219768B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method for automatically determining parameters of pipeline products, including: performing edge recognition on a first image to be calibrated based on a first edge detection algorithm to obtain a first edge contour of the object to be calibrated, and performing size calibration of the object to be calibrated based on the first edge contour; determining an error mapping region and an edge reference mapping region of the first image to be calibrated based on the first edge contour; obtaining a second image to be calibrated in the current batch, and performing noise filtering on the second image to be calibrated based on the error mapping region to obtain a noise-filtered image; setting the convolution kernel weights of the noise-filtered image based on the edge reference mapping region; performing edge recognition on the noise-filtered image based on the set convolution kernel weights using a second edge detection algorithm to obtain a second edge contour of the object to be calibrated in the second image to be calibrated, and performing corresponding size calibration based on the second edge contour. This solution improves the efficiency and accuracy of product parameter determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular, to a method and system for automatically determining parameters of pipeline products. Background Art

[0002] The digital economy refers to a new economic form with digital technology as the core driving force, and its foundation is the production, distribution, and use of digital information. With the development of the digital economy and artificial intelligence technology, it is the current mainstream technology development direction to rationally utilize and develop them to improve the production efficiency of enterprises.

[0003] In the field of intelligent manufacturing, in order to improve the production efficiency of products, a production method based on an assembly line is mostly adopted. For the products produced on the assembly line, quality inspection needs to be carried out to ensure that they meet the factory requirements. In the related art, quality inspection is mostly carried out by equipping manual quality inspectors, and its degree of digitization and intelligence is significantly insufficient, and the quality inspection efficiency is low. Summary of the Invention

[0004] The embodiments of the present application provide a method and system for automatically determining parameters of pipeline products, which solve the problem of low digitization and intelligence in determining pipeline product parameters in the prior art, and improve the efficiency and accuracy of product parameter determination.

[0005] In a first aspect, the embodiments of the present application provide a method for automatically determining parameters of pipeline products, and the method includes:

[0006] Obtain a first calibration image containing a to-be-calibrated object in the current batch collected on the assembly line, perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the to-be-calibrated object, and perform size calibration on the to-be-calibrated object based on the first edge contour;

[0007] Determine an error mapping region and an edge reference mapping region of the first calibration image based on the first edge contour, and the edge reference mapping region covers the first edge contour;

[0008] Obtain a second calibration image in the current batch, and perform noise filtering on the second calibration image based on the error mapping region to obtain a noise-filtered image;

[0009] Set the convolution kernel weights of the noise-filtered image based on the edge reference mapping region;

[0010] Perform edge recognition on the noise-filtered image based on a second edge detection algorithm based on the set convolution kernel weights to obtain a second edge contour of the to-be-calibrated object in the second calibration image, and perform corresponding size calibration based on the second edge contour.

[0011] Optionally, determining the error mapping region and the edge reference mapping region of the first image to be calibrated based on the first edge contour includes:

[0012] Determining the error mapping region of the first image to be calibrated based on the first edge contour and a preset calibration object standard contour template;

[0013] Determining the edge reference mapping region of the first image to be calibrated based on the first edge contour and a set region dilation coefficient.

[0014] Optionally, determining the error mapping region of the first image to be calibrated based on the first edge contour and a preset calibration object standard contour template includes:

[0015] Performing a matching process between the first edge contour and the contours in the preset calibration object standard contour template;

[0016] Determining the contour regions with mismatches as the error mapping region of the first image to be calibrated.

[0017] Optionally, before determining the edge reference mapping region of the first image to be calibrated based on the first edge contour and a set region dilation coefficient, further includes:

[0018] Determining the corresponding region dilation coefficient according to the accuracy of the first edge contour.

[0019] Optionally, setting the convolution kernel weights of the noise-filtered image based on the edge reference mapping region includes:

[0020] Determining the horizontal sub-region and the vertical sub-region of the edge reference mapping region;

[0021] Respectively adjusting the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contours in the horizontal sub-region and the vertical sub-region.

[0022] Optionally, determining the horizontal sub-region and the vertical sub-region of the edge reference mapping region includes:

[0023] Performing region division according to the region trend of the edge reference mapping region to obtain a horizontal sub-region and a vertical sub-region.

[0024] Optionally, respectively adjusting the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contours in the horizontal sub-region and the vertical sub-region includes:

[0025] Adjust the weight value of the central row of the horizontal convolution kernel for identifying the edge contour in the horizontal sub-region from the initial value to the corresponding preset value;

[0026] Adjust the weight value of the central column of the vertical convolution kernel for identifying the edge contour in the vertical sub-region from the initial value to the corresponding preset value.

[0027] In a second aspect, an embodiment of the present application further provides a parameter automatic determination system for pipeline products, and the system includes:

[0028] An acquisition module, configured to acquire a first calibration image including an object to be calibrated in the current batch collected on the pipeline;

[0029] A first contour determination module, configured to perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the object to be calibrated;

[0030] A calibration module, configured to perform size calibration of the object to be calibrated based on the first edge contour;

[0031] A region mapping module, configured to determine an error mapping region and an edge reference mapping region of the first calibration image based on the first edge contour, and the edge reference mapping region covers the first edge contour;

[0032] The acquisition module is further configured to acquire a second calibration image in the current batch;

[0033] A filtering module, configured to perform noise filtering on the second calibration image based on the error mapping region to obtain a noise-filtered image;

[0034] A second contour determination module, configured to set the convolution kernel weight of the noise-filtered image based on the edge reference mapping region, and perform edge recognition on the noise-filtered image based on the set convolution kernel weight using a second edge detection algorithm to obtain a second edge contour of the object to be calibrated in the second calibration image;

[0035] The calibration module is further configured to perform corresponding size calibration based on the second edge contour.

[0036] In a third aspect, an embodiment of the present application further provides a parameter automatic determination device for pipeline products, and the device includes:

[0037] One or more processors;

[0038] A storage device configured to store one or more programs,

[0039] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically determining parameters of pipeline products according to the embodiments of the present application.

[0040] In a fourth aspect, an embodiment of the present application further provides a non-volatile storage medium storing computer-executable instructions, and the computer-executable instructions are configured to execute the method for automatically determining parameters of pipeline products according to the embodiments of the present application when executed by a computer processor.

[0041] In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium, and at least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device executes the method for automatically determining parameters of pipeline products according to the embodiments of the present application.

[0042] In the embodiments of the present application, by obtaining a first calibration image containing a to-be-calibrated object in the current batch collected on the production line, performing edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the to-be-calibrated object, and performing dimension calibration on the to-be-calibrated object based on the first edge contour; determining an error mapping region and an edge reference mapping region of the first calibration image based on the first edge contour, where the edge reference mapping region covers the first edge contour; obtaining a second calibration image in the current batch, and performing noise filtering on the second calibration image based on the error mapping region to obtain a noise-filtered image; setting convolution kernel weights of the noise-filtered image based on the edge reference mapping region; performing edge recognition on the noise-filtered image based on a second edge detection algorithm based on the set convolution kernel weights to obtain a second edge contour of the to-be-calibrated object in the second calibration image, and performing corresponding dimension calibration based on the second edge contour, the problem that the determination of pipeline product parameters in the prior art is low in digitization and intelligence is solved, and the efficiency and accuracy of product parameter determination are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flowchart of a method for automatically determining parameters of pipeline products provided by an embodiment of the present application;

[0044] Figure 2 It is a schematic diagram of the interface of a dimension calibration software provided by an embodiment of the present application;

[0045] Figure 3 It is a flowchart of a method for determining an error mapping region and an edge reference mapping region provided by an embodiment of the present application;

[0046] Figure 4 A schematic diagram provided by an embodiment of the present application, including the edge of the object to be calibrated, the error mapping region, and the edge reference mapping region;

[0047] Figure 5 A flowchart of a method for setting the convolution kernel weights of a noise-filtered image provided by an embodiment of the present application;

[0048] Figure 6 A structural block diagram of a parameter automatic determination system for pipeline products provided by an embodiment of the present application;

[0049] Figure 7 A structural schematic diagram of a parameter automatic determination device for pipeline products provided by an embodiment of the present application. Detailed implementation manners

[0050] The following further elaborates on the embodiments of the present application in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than limiting the embodiments of the present application. Additionally, it should be noted that for the sake of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all structures.

[0051] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.

[0052] The parameter automatic determination method for pipeline products provided by the embodiments of the present application can be used to determine the parameters of products in an intelligent manufacturing production pipeline. For the parameter automatic determination method for pipeline products provided by the embodiments of the present application, the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing, and storage capabilities, such as terminal devices like mobile phones, PCs (Personal Computers), and tablet computers. The embodiments of the present application do not make limitations in this regard.

[0053] Figure 1 A flowchart of a parameter automatic determination method for pipeline products provided by an embodiment of the present application. As Figure 1 shown, it includes the following steps:

[0054] Step S101: Obtain a first calibration image containing the object to be calibrated in the current batch collected on the production line. Perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain the first edge contour of the object to be calibrated, and perform size calibration on the object to be calibrated based on the first edge contour.

[0055] Among them, the production line can be a production line used for product production and transportation in intelligent manufacturing. Products that require automatic determination of parameters are placed on this production line. Among them, the object to be calibrated can be understood as the product that requires parameter calibration. Optionally, the automatically determined parameter can be the size of the object to be calibrated. Correspondingly, subsequent quality inspections can be carried out according to the determined size to judge whether there are defects or whether it meets the factory requirements, etc.

[0056] In one embodiment, when calibrating the size of the production line product, that is, the object to be calibrated, it is achieved by means of image processing. An image of each passing object to be calibrated is taken by a camera installed on the production line. For example, the camera shooting time interval is calculated according to the moving speed of the production line, and the camera is controlled to take pictures at every such time interval to capture an image containing the object to be calibrated, and then it is transmitted and stored for subsequent batch processing. Each image contains one object to be calibrated, and the specific item referred to by the object to be calibrated is not limited, such as an outer packaging box, a metal or plastic bottle body, or a specific component, etc. As the production line moves, the camera takes pictures at a fixed position. Each time a picture is taken, a picture of an object to be calibrated flows in. Optionally, by matching the shooting interval and the moving speed of the production line, each time a picture is taken, the object to be calibrated is controlled to be located at the center of the current captured image frame for subsequent batch processing. The image taken is a front view of the object to be calibrated. Of course, for a three-dimensional object to be calibrated, a top view can also be taken by another camera for size calibration of the corresponding volume surface.

[0057] Optionally, the collected images can be divided into batches based on a specific quantity. For example, when the number of collected and stored images reaches a preset quantity (such as 10, 20, or 50, etc.), it is regarded as a batch for batch processing. Among them, the current batch being processed is the current batch described in step S101.

[0058] Among them, the first calibration image can be the first image in the current batch. The images for each batch are stored in sequence based on the shooting order. Each image in each batch contains one object to be calibrated.

[0059] In one embodiment, for the first image to be calibrated, edge recognition based on the first edge detection algorithm is performed to obtain the first edge contour of the object to be calibrated, and the size calibration of the object to be calibrated is performed based on the first edge contour. Among them, the first edge detection algorithm, by way of example, can be the Canny edge detection algorithm. Its algorithm complexity is relatively high, the edge detection accuracy is high, but the computational amount is relatively large. By using the first edge detection algorithm to identify the edge contour of the first object to be calibrated, after obtaining the edge contour, the size calibration of the calibration object is correspondingly performed based on the edge contour. Optionally, when performing size calibration, it can be realized by using the integrated automatic size calibration software. Taking the object to be calibrated as a cuboid as an example, for the collected front view, its width and height need to be calibrated. After obtaining the edge contour in the front view of the cuboid, the image distance between the upper and lower two sides, and the image distance between the left and right two sides can be determined. The image distance can be, for example, the specific number of pixel points, or the size distance in the actual image; then based on the pre-calibrated scale, the actual length and width dimensions of the calibration object can be obtained. For example, if the actual distance size corresponding to each pixel point obtained by pre-calibration is L, and the number of image pixels between the two sides at this time is m, then the actual size of this side is L*m. By way of example, as Figure 2 shown Figure 2 is a schematic diagram of the interface of a size calibration software provided by an embodiment of the present application. It records the pre-calibrated and set scale, as well as other software functions, which will not be elaborated here.

[0060] Step S102, determine the error mapping region and the edge reference mapping region of the first image to be calibrated based on the first edge contour, and the edge reference mapping region covers the first edge contour.

[0061] In one embodiment, after determining the first edge contour of the calibration object in the first image to be calibrated, the error mapping region and the edge reference mapping region are correspondingly determined for use in the edge contour recognition of the calibration objects in other images of the same batch.

[0062] Among them, the error mapping region refers to the region where errors exist during edge recognition. The generation of this error can be due to errors in the image background, the camera used for shooting, and the specific recognition process. For example, if a non-edge contour part is recognized as an edge, the misrecognized part is the error part, and the corresponding region where it is located is the error mapping region. The edge reference mapping region is a region determined based on the current first edge contour and can be used as a reference for edge recognition of other images in the same batch. Due to the fixed position of the camera shooting position and the fixed moving speed of the assembly line, the frame range of each captured image is fixed. Only the objects to be calibrated in different images are different, and there is a certain spatial correlation between the images in the same batch. That is, there is a certain image correlation at the same image position between different images.

[0063] Optionally, Figure 3 is a flowchart of a method for determining an error mapping region and an edge reference mapping region provided by an embodiment of the present application. As Figure 3 shown, a way to determine the error mapping region and the edge reference mapping region of the first image to be calibrated based on the first edge contour can be:

[0064] Step S1011: Determine the error mapping region of the first image to be calibrated based on the first edge contour and a preset standard contour template of the calibration object.

[0065] Among them, when determining the error mapping region, a preset standard contour template of the calibration object can be obtained. The standard contour template of the calibration object records the basic contour shape of the calibration object. For example, for a calibration object in the shape of a cuboid, the contour recorded in its standard contour template of the calibration object is also a cuboid. At this time, when determining the error mapping region of the first image to be calibrated based on the first edge contour and the preset standard contour template of the calibration object, the first edge contour can be matched with the contour recorded in the standard contour template of the calibration object, and the part recognized as an edge outside the matching region is determined as the unmatched contour region, that is, the error edge. The unmatched contour region where the error edge is located is determined as the error mapping region. Optionally, the region surrounded by extending a preset number of pixel counts at the position of the error edge can be determined as the error mapping region. The specific size value of the preset number can be adjusted according to the actual situation. For example, it is initially set to 3.

[0066] Step S1012: Determine the edge reference mapping region of the first image to be calibrated based on the first edge contour and the set region dilation coefficient.

[0067] In one embodiment, after obtaining the first edge contour, the edge reference mapping area of the first image to be calibrated can be determined by using the set regional expansion coefficient. The regional expansion coefficient characterizes the expansion range of the pixel points of the edge contour. For example, when the value of the regional expansion coefficient is 5, it means that for the pixel points on the first edge contour, the area enclosed by each pixel point extending 5 pixels outward along the surrounding area is the edge reference mapping area. That is, the pixel points where the first edge contour is located, and the area enclosed by extending the number of pixels of the regional expansion coefficient outward for each pixel point is determined as the edge reference mapping area.

[0068] Optionally, before determining the edge reference mapping area of the first image to be calibrated based on the first edge contour and the set regional expansion coefficient, it further includes: determining the corresponding regional expansion coefficient according to the accuracy of the first edge contour. Exemplarily, the accuracy of the first edge contour can be determined to be three accuracy levels: high, medium, and low according to the actual edge recognition situation. Specifically, different edge recognition algorithms can be used to pre-set the accuracy of the recognized edge contours. For the three accuracy levels of high, medium, and low, the corresponding regional expansion coefficients are different. For example, the regional expansion coefficient corresponding to the high-precision edge contour is large, the regional expansion coefficient corresponding to the medium-precision edge contour is the second, and the regional expansion coefficient corresponding to the low-precision edge contour is the smallest.

[0069] Figure 4 A schematic diagram of an object to be calibrated edge, an error mapping area, and an edge reference mapping area provided by an embodiment of the present application is shown as Figure 4 As shown, in the first image 001 to be calibrated, the first edge contour 002 and the error contour 003 of the object to be calibrated are recognized. The corresponding dotted areas 004 and 005 are the determined error mapping area and the edge reference mapping area respectively.

[0070] Step S103: Obtain the second image to be calibrated in the current batch, and perform noise filtering on the second image to be calibrated based on the error mapping area to obtain a noise-filtered image.

[0071] In one embodiment, after determining the size of the object to be calibrated, the error mapping region, and the edge reference mapping region for the first image to be calibrated in the current batch, when performing the automatic parameter determination process for the second image to be calibrated in this batch, first, noise filtering of the second image to be calibrated is performed based on the error mapping region to obtain a noise-filtered image. Here, the second image to be calibrated is an image other than the first image to be calibrated in the current batch. For a batch containing 20 images, 19 images other than the first image to be calibrated can all be defined as the second images to be calibrated. When performing noise filtering of the second image to be calibrated based on the error mapping region to obtain a noise-filtered image, first, the error mapping region is mapped from the position where the first image to be calibrated is located to the same position in the second image to be calibrated. At this time, the process of performing noise filtering on it can be to perform smoothing processing on this position region to avoid its being repeatedly recognized as an incorrect edge.

[0072] Step S104: Set the convolution kernel weights of the noise-filtered image based on the edge reference mapping region.

[0073] In one embodiment, after performing noise filtering on the second image to be calibrated to obtain a noise-filtered image, the convolution kernel weights of the noise-filtered image are set based on the determined edge reference mapping region. Here, the convolution kernel weights are the specific weight values used in the convolution kernel corresponding to the operator used in the edge recognition algorithm.

[0074] Taking the Sobel operator used in the edge detection algorithm as an example, its gradient calculation is based on the first derivative. It detects edges by measuring the gray-scale changes of the image in the horizontal and vertical directions. Edges usually appear at positions with a large gradient magnitude. It includes convolution kernels in two directions, represented in the form of an n*n matrix. For example, the convolution kernels of the conventional Sobel operator in the horizontal and vertical directions are respectively represented as:

[0075] And .

[0076] By convolving the converted grayscale image with this convolution kernel, the horizontal direction gradient and the vertical direction gradient are obtained, and then the gradients in the two directions are combined to obtain the gradient magnitude of each pixel point. Using a set threshold, the pixel points with a gradient magnitude lower than the threshold are determined as non-edge pixel points, and the pixel points higher than this threshold are retained, that is, the edge contour part is retained.

[0077] Optionally, as Figure 5 shown, Figure 5 is a flowchart of a method for setting the convolution kernel weights of a noise-filtered image provided by an embodiment of the present application, including:

[0078] Step S1041: Determine a horizontal sub-region and a vertical sub-region of the edge reference mapping region.

[0079] Among them, for the edge reference mapping area, a relatively rough division into horizontal sub-areas and vertical sub-areas will be performed to adjust the convolution kernel weights used for edge recognition in the area accordingly. Optionally, a division method may be: perform regional division according to the regional trend of the edge reference mapping area to obtain horizontal sub-areas and vertical sub-areas. Among them, the regional trend, for example, includes horizontal regional trends and vertical regional trends. Taking the outline of a rectangle as an example, the outline direction of its upper and lower sides is the direction of the horizontal coordinate axis, which is determined to be a horizontal trend. Similarly, the outline direction of the left and right sides is the direction of the vertical coordinate axis, which is determined to be a vertical trend. Correspondingly, the corresponding regional ranges are respectively delineated as horizontal sub-areas and vertical sub-areas. Of course, when there is no obvious trend or it cannot be easily judged, it can be determined as a fuzzy area, and the initial convolution kernel weights are used for edge recognition.

[0080] Step S1042: Adjust the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying edge contours in the horizontal sub-region and the vertical sub-region respectively.

[0081] In one embodiment, after determining the horizontal sub-region and the vertical sub-region, the horizontal convolution kernel weight and the vertical convolution kernel weight used to identify the edge contour in the horizontal sub-region and the vertical sub-region are adjusted respectively. Optionally, the initially set convolution kernel weights can be used for other regions in the image, such as the aforementioned:

[0082] as well as .

[0083] The convolution kernel weight adjustment method for the horizontal sub-region and the vertical sub-region may optionally be: adjusting the weight value of the center row of the horizontal convolution kernel that identifies the edge contour in the horizontal sub-region from the initial value to the corresponding preset value; adjusting the weight value of the center column of the vertical convolution kernel that identifies the edge contour in the vertical sub-region from the initial value to the corresponding preset value, wherein the absolute value of the preset value is greater than the absolute value of the initial value, except for the value of 0, that is, the preset value corresponding to the value of 0 is 0, that is, it remains unchanged. The specific numerical value of the preset value corresponding to the initial value can be adjusted and set. Taking the 3*3 convolution kernel as an example, the preset values corresponding to the specific numerical values in the center row and center column can be -2 corresponding to -3; 0 corresponding to 0; +2 corresponding to +3. That is, the adjusted horizontal convolution kernel and vertical convolution kernel are exemplified as follows:

[0084] as well as .

[0085] As described above, by increasing the numerical weight values of the convolutional kernels in the central row and central column (the positive and negative values remain unchanged, and the 0 values remain unchanged), more accurate and efficient corresponding edge recognition is achieved.

[0086] Of course, in another embodiment, the convolutional kernel weight adjustment method can also be to directly set the convolutional kernel weights for different regions, namely the horizontal sub-regions and the vertical sub-regions, without using the method of adjusting the original convolutional kernel weights. For example, it can be directly set as:

[0087] And .

[0088] Step S105: Based on the set convolutional kernel weights, perform edge recognition on the noise-filtered image based on the second edge detection algorithm to obtain the second edge contour of the object to be calibrated in the second image to be calibrated, and perform corresponding dimension calibration based on the second edge contour.

[0089] As can be seen from the above, by obtaining the first image to be calibrated containing the object to be calibrated in the current batch collected on the production line, performing edge recognition on the first image to be calibrated based on the first edge detection algorithm to obtain the first edge contour of the object to be calibrated, and performing dimension calibration of the object to be calibrated based on the first edge contour; determining the error mapping region and the edge reference mapping region of the first image to be calibrated based on the first edge contour, the edge reference mapping region covering the first edge contour; obtaining the second image to be calibrated in the current batch, performing noise filtering on the second image to be calibrated based on the error mapping region to obtain a noise-filtered image; setting the convolutional kernel weights of the noise-filtered image based on the edge reference mapping region; performing edge recognition on the noise-filtered image based on the set convolutional kernel weights based on the second edge detection algorithm to obtain the second edge contour of the object to be calibrated in the second image to be calibrated, and performing corresponding dimension calibration based on the second edge contour, the problem that the determination of pipeline product parameters in the prior art is low in digital and intelligent levels is solved, and the efficiency and accuracy of product parameter determination are improved.

[0090] Figure 6 FIG. is a structural block diagram of a system for automatically determining parameters of pipeline products provided by an embodiment of the present application. The system is configured to execute the method for automatically determining parameters of pipeline products provided by the above embodiment, and has functional modules and beneficial effects corresponding to the execution of the method. As Figure 6 shown, the system includes:

[0091] An acquisition module 101, configured to acquire a first image to be calibrated containing an object to be calibrated in the current batch collected on the production line;

[0092] The first contour determination module 102 is configured to perform edge recognition on the first image to be calibrated based on a first edge detection algorithm to obtain a first edge contour of the object to be calibrated;

[0093] The calibration module 103 is configured to perform dimension calibration of the object to be calibrated based on the first edge contour;

[0094] The region mapping module 104 is configured to determine an error mapping region and an edge reference mapping region of the first image to be calibrated based on the first edge contour, and the edge reference mapping region covers the first edge contour;

[0095] The acquisition module 101 is further configured to acquire a second image to be calibrated in the current batch;

[0096] The filtering module 105 is configured to perform noise filtering on the second image to be calibrated based on the error mapping region to obtain a noise-filtered image;

[0097] The second contour determination module 106 is configured to set convolution kernel weights of the noise-filtered image based on the edge reference mapping region, and perform edge recognition on the noise-filtered image based on the set convolution kernel weights using a second edge detection algorithm to obtain a second edge contour of the object to be calibrated in the second image to be calibrated;

[0098] The calibration module 103 is further configured to perform corresponding dimension calibration based on the second edge contour.

[0099] As described above, by acquiring a first image to be calibrated in the current batch containing an object to be calibrated on the production line, performing edge recognition on the first image to be calibrated based on a first edge detection algorithm to obtain a first edge contour of the object to be calibrated, and performing dimension calibration of the object to be calibrated based on the first edge contour; determining an error mapping region and an edge reference mapping region of the first image to be calibrated based on the first edge contour, and the edge reference mapping region covers the first edge contour; acquiring a second image to be calibrated in the current batch, performing noise filtering on the second image to be calibrated based on the error mapping region to obtain a noise-filtered image; setting convolution kernel weights of the noise-filtered image based on the edge reference mapping region; performing edge recognition on the noise-filtered image based on the set convolution kernel weights using a second edge detection algorithm to obtain a second edge contour of the object to be calibrated in the second image to be calibrated, and performing corresponding dimension calibration based on the second edge contour, the problem that the determination of product parameters in the prior art is low in digitalization and intelligence is solved, and the efficiency and accuracy of product parameter determination are improved.

[0100] In a possible embodiment, the calibration module is configured as:

[0101] Determine the error mapping region of the first image to be calibrated based on the first edge contour and a preset calibration object standard contour template;

[0102] Determine the edge reference mapping region of the first image to be calibrated based on the first edge contour and a set regional dilation coefficient.

[0103] In a possible embodiment, the calibration module is configured to:

[0104] Match the first edge contour with the contours in a preset calibration object standard contour template;

[0105] Determine the contour region with a mismatch as the error mapping region of the first image to be calibrated.

[0106] In a possible embodiment, the calibration module is further configured to:

[0107] Before determining the edge reference mapping region of the first image to be calibrated based on the first edge contour and a set regional dilation coefficient, determine the corresponding regional dilation coefficient according to the accuracy of the first edge contour.

[0108] In a possible embodiment, the second contour determination module is configured to:

[0109] Determine the horizontal sub-region and the vertical sub-region of the edge reference mapping region;

[0110] Adjust the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contours in the horizontal sub-region and the vertical sub-region respectively.

[0111] In a possible embodiment, the second contour determination module is configured to:

[0112] Perform regional division according to the regional trend of the edge reference mapping region to obtain a horizontal sub-region and a vertical sub-region.

[0113] In a possible embodiment, the second contour determination module is configured to:

[0114] Adjust the weight value of the central row of the horizontal convolution kernel for identifying the edge contour in the horizontal sub-region from the initial value to the corresponding preset value;

[0115] Adjust the weight value of the central column of the vertical convolution kernel for identifying the edge contour in the vertical sub-region from the initial value to the corresponding preset value.

[0116] Figure 7 This is a schematic structural diagram of a parameter automatic determination device for pipeline products provided by an embodiment of the present application, asFigure 7 As shown in the figure, the device includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of processors 201 in the device can be one or more, Figure 7 and one processor 201 is taken as an example herein; the processor 201, the memory 202, the input device 203, and the output device 204 in the device can be connected through a bus or other means, Figure 7 and connection through a bus is taken as an example herein. The memory 202, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the parameter automatic determination method for pipeline products in the embodiments of the present application. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 202, that is, implements the above-mentioned parameter automatic determination method for pipeline products. The input device 203 can be configured to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the device. The output device 204 can include a display device such as a display screen.

[0117] The embodiments of the present application also provide a non-volatile storage medium containing computer-executable instructions, and the computer-executable instructions are configured to execute a parameter automatic determination method for pipeline products described in the above embodiments when executed by a computer processor, wherein, including:

[0118] Obtain a first calibration image containing a to-be-calibrated object in the current batch collected on the pipeline, perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the to-be-calibrated object, and perform size calibration on the to-be-calibrated object based on the first edge contour;

[0119] Determine an error mapping region and an edge reference mapping region of the first calibration image based on the first edge contour, and the edge reference mapping region covers the first edge contour;

[0120] Obtain a second calibration image in the current batch, and perform noise filtering on the second calibration image based on the error mapping region to obtain a noise-filtered image;

[0121] Set the convolution kernel weights of the noise-filtered image based on the edge reference mapping region;

[0122] Perform edge recognition on the noise-filtered image based on a second edge detection algorithm based on the set convolution kernel weights to obtain a second edge contour of the to-be-calibrated object in the second calibration image, and perform corresponding size calibration based on the second edge contour.

[0123] It should be noted that in the above embodiments of the parameter automatic determination system for pipeline products, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and are not configured to limit the protection scope of the embodiments of the present application.

[0124] In some possible implementation manners, each aspect of the method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a computer device, the program code is configured to enable the computer device to execute the steps in the methods according to various exemplary embodiments of the present application described above in this specification. For example, the computer device can execute the parameter automatic determination method for pipeline products recorded in the embodiments of the present application. The program product can be implemented by any combination of one or more readable media.

Claims

1. An automated parameter determination method for pipeline products, characterized in that, Including: Obtain a first calibration image including a to-be-calibrated object in the current batch collected on the assembly line, perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the to-be-calibrated object, and perform size calibration of the to-be-calibrated object based on the first edge contour; Match the first edge contour with the contour in a pre-set standard contour template of the calibration object, determine the contour area with a mismatch situation as the error mapping area of the first calibration image, and determine the edge reference mapping area of the first calibration image based on the first edge contour and a set area dilation coefficient, where the edge reference mapping area covers the first edge contour; Obtain a second calibration image in the current batch, and perform noise filtering on the second calibration image based on the error mapping area to obtain a noise-filtered image; Determine a horizontal sub-region and a vertical sub-region of the edge reference mapping area, and respectively adjust the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contours in the horizontal sub-region and the vertical sub-region; Perform edge recognition on the noise-filtered image based on a second edge detection algorithm based on the set convolution kernel weights to obtain a second edge contour of the to-be-calibrated object in the second calibration image, and perform corresponding size calibration based on the second edge contour.

2. The method for automatically determining parameters for pipeline products according to claim 1, wherein Before determining the edge reference mapping area of the first calibration image based on the first edge contour and the set area dilation coefficient, it further includes: Determine a corresponding area dilation coefficient according to the accuracy of the first edge contour.

3. The method for automatically determining parameters for products on an assembly line according to claim 1, characterized in that The determining the horizontal sub-region and the vertical sub-region of the edge reference mapping area includes: Perform area division according to the area trend of the edge reference mapping area to obtain a horizontal sub-region and a vertical sub-region.

4. The method for automatically determining parameters for pipeline products according to claim 1, characterized in that The respectively adjusting the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contours in the horizontal sub-region and the vertical sub-region includes: Adjust the weight value of the central row of the horizontal convolution kernel for identifying the edge contour in the horizontal sub-region from the initial value to a corresponding preset value; Adjust the weight value of the central column of the vertical convolution kernel for identifying the edge contour in the vertical sub-region from the initial value to a corresponding preset value, where the absolute value of the preset value is greater than the absolute value of the initial value.

5. An automated parameter determination system for pipeline products, characterized in that, Including: An acquisition module, configured to obtain a first calibration image including a to-be-calibrated object in the current batch collected on the assembly line; A first contour determination module, configured to perform edge recognition on the first calibration image based on a first edge detection algorithm to obtain a first edge contour of the to-be-calibrated object; A calibration module, configured to perform size calibration of the to-be-calibrated object based on the first edge contour; The area mapping module is used to match the first edge contour with the contour in a preset calibration object standard contour template, determine the contour area with a mismatch as the error mapping area of the first image to be calibrated, and determine the edge reference mapping area of the first image to be calibrated based on the first edge contour and the set area dilation coefficient, where the edge reference mapping area covers the first edge contour; The obtaining module is further configured to obtain a second image to be calibrated in the current batch; The filtering module is used to filter the noise of the second image to be calibrated based on the error mapping area to obtain a noise-filtered image; The second contour determination module is used to determine the horizontal sub-region and the vertical sub-region of the edge reference mapping area, respectively adjust the horizontal convolution kernel weight and the vertical convolution kernel weight for identifying the edge contour in the horizontal sub-region and the vertical sub-region, and perform edge recognition based on the second edge detection algorithm on the noise-filtered image based on the set convolution kernel weights to obtain the second edge contour of the object to be calibrated in the second image to be calibrated; The calibration module is further configured to perform corresponding dimension calibration based on the second edge contour.

6. An automated parameter determination device for pipeline products, characterized in that, The device includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatically determining parameters for pipeline products according to any one of claims 1-4.

7. A storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the method for automatically determining parameters for pipeline products according to any one of claims 1-4 when executed by a computer processor.

Citation Information

Patent Citations

  • Automatic assembly line control system and control method based on computer vision

    CN117234165A

  • Methods and systems for generating models for image analysis pipeline prediction

    WO2023001940A1