Method for identifying product on industrial production line, and related device
By using single-frame long exposure imaging technology to measure the smear length and geometric features of the encoded image in industrial production lines, the equipment coupling and upgrade problems in product identification methods are solved, and efficient product movement speed measurement and identity recognition are achieved, which is suitable for multiple industrial production lines.
Patent Information
- Application Number
- PCT/CN2023/133569
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-09-25
AI Technical Summary
In the prior art, product identification methods in industrial production lines have problems such as the coupling of multiple types of industrial control equipment and poor dynamic upgrade capabilities, making it difficult to achieve efficient product movement speed measurement and identity recognition.
By obtaining the encoded image based on the preset exposure time, measuring the shading length of the encoded image, and determining the product's movement speed and identity information based on geometric features. Single-frame long exposure imaging technology is used to directly solve the product's movement speed using the shading length and exposure time of the encoded pattern, and identifying the product's identity based on image segmentation and geometric features.
It realizes high-precision and real-time product movement speed measurement and identity recognition, improves the accuracy and adaptability of product recognition, and is suitable for multiple industrial production lines and products to be identified, reducing the difficulty of equipment coupling and upgrading.
Smart Images

Figure CN2023133569_25092025_PF_FP_ABST
Abstract
Description
A product identification method and related equipment in an industrial production line Technical Field
[0001] The present disclosure relates to the field of visual industrial inspection, and in particular to a product identification method and related equipment in an industrial production line. Background Art
[0002] Currently, machine vision-based visual inspection technology for industrial production lines has matured and is widely used in fields such as product defect detection and assembly process inspection. For applications that synchronize the production cycle of industrial production lines with the imaging frame rate of the vision system, there is a need to use visual methods to measure the speed of moving objects. This requires solving the problem of measuring the moving speed of objects under test on automated industrial production lines.
[0003] Conventional methods can rely on PLC (Programmable logic controller) and limit sensors to automatically control the moving speed of the conveyor system to achieve speed control of the object being measured, which is equivalent to obtaining the speed information of the object being measured.
[0004] However, the above method has the problems of mutual coupling of multiple types of industrial control equipment and poor dynamic upgrade capability.
[0005] Summary of the Invention
[0006] In order to solve the problem of mutual coupling of multiple types of industrial control equipment and poor dynamic upgrade capabilities, the first aspect of the present disclosure proposes a product identification method in an industrial production line, comprising:
[0007] Acquire a coded image of the product to be identified based on a preset exposure time;
[0008] Obtaining the smear length of the above-mentioned coded image;
[0009] Determining a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time;
[0010] The identity information of the product to be identified is determined based on the geometric features of the coded image.
[0011] In one embodiment, the encoded image includes at least two feature points.
[0012] The determining of the moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time includes:
[0013] Get the smear length of each of the above feature points;
[0014] The moving speed of the product to be identified in the industrial production line is determined based on all the above-mentioned smear lengths and the above-mentioned preset exposure time.
[0015] In one embodiment, determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time includes:
[0016] The moving speed of the product to be identified in the industrial production line is determined based on the median of all the smear lengths and the preset exposure time.
[0017] In one embodiment, determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time includes:
[0018] The moving speed of the product to be identified in the industrial production line is determined based on the average of all the smear lengths and the preset exposure time.
[0019] In one embodiment, the above-mentioned coding image includes a positioning coding image and a speed measurement coding image. The above-mentioned positioning coding image is an image formed by the positioning coding element under the above-mentioned preset exposure time. The above-mentioned speed measurement coding image is an image formed by the speed measurement coding element under the above-mentioned preset exposure time. The above-mentioned positioning coding element is used to distinguish the element areas corresponding to the coding elements corresponding to different products to be identified, and the above-mentioned speed measurement coding element is used to determine the moving speed of the above-mentioned product to be identified in the above-mentioned industrial production line.
[0020] In one embodiment, the above method further comprises:
[0021] In a case where the coded image includes at least two of the positioning coded images, image segmentation is performed based on the positioning coded images to obtain a speed measurement coded image corresponding to a single product to be identified;
[0022] The moving speed corresponding to the single product to be identified is determined based on the smear length of the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
[0023] In one embodiment, the positioning coding element includes a line element, and the speed measurement coding element includes a point element;
[0024] The above method further includes:
[0025] In a case where the coded image includes at least two positioning coded images, image segmentation is performed on the positioning coded image formed by the line elements to obtain the speed measurement coded image formed by the point elements corresponding to a single product to be identified;
[0026] The moving speed corresponding to the single product to be identified is determined based on the smear length formed by the point elements in the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
[0027] In one embodiment, the geometric features include point element arrangement features;
[0028] The above-mentioned determination of the identity information of the product to be identified based on the geometric features of the above-mentioned coded image includes:
[0029] Obtaining the above-mentioned point element arrangement features in the above-mentioned speed measurement code image;
[0030] The identity information of the product to be identified is determined based on the point element arrangement feature and the first corresponding relationship, wherein the first corresponding relationship includes a corresponding relationship between the point element arrangement feature and the product's identity information.
[0031] In one embodiment, the above-mentioned point element arrangement feature includes at least one of a point element quantity feature, a point element position feature, a point element shape feature, and a point element pixel quantity feature.
[0032] In one embodiment, the geometric features include line element arrangement features;
[0033] The above-mentioned determination of the identity information of the product to be identified based on the geometric features of the above-mentioned coded image includes:
[0034] Obtaining the line element arrangement features in the positioning coded image;
[0035] The identity information of the product to be identified is determined based on the line element arrangement feature and the second corresponding relationship, wherein the second corresponding relationship includes the corresponding relationship between the line element arrangement feature and the product's identity information.
[0036] In one embodiment, the point element arrangement feature includes at least one of a line element quantity feature, a line element gap position feature, a line element shape feature, and a line element pixel quantity feature.
[0037] In one embodiment, it is characterized in that the coding element corresponding to the above-mentioned coding image includes at least one of a raised pattern, a recessed pattern, and a pattern with a color different from the background.
[0038] In a second aspect of the present disclosure, a product identification device in an industrial production line is provided, comprising:
[0039] A first acquiring unit, configured to acquire a coded image of a product to be identified based on a preset exposure time;
[0040] A second acquiring unit, configured to acquire a smear length of the encoded image;
[0041] A first determining unit is configured to determine a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time;
[0042] The second determining unit is configured to determine the identity information of the product to be identified based on the geometric features of the coded image.
[0043] In the third aspect of the present disclosure, an electronic device is proposed, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the steps of the method for identifying products in an industrial production line as described in any one of the first aspects above when executing the computer program stored in the memory.
[0044] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for identifying products in an industrial production line according to any one of the above items in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] FIG1 shows a process diagram of a product identification method in an industrial production line in the related art;
[0046] FIG2 shows a schematic diagram of a product identification and coding scenario in an industrial production line in the related art;
[0047] FIG3 shows a schematic diagram of another product identification and coding scenario in an industrial production line in the related art;
[0048] FIG4 shows a schematic diagram of the process of a product identification method in an industrial production line according to the present disclosure;
[0049] FIG5 shows a schematic diagram of a product identification and coding scenario in an industrial production line according to the present disclosure;
[0050] FIG6 shows a schematic diagram of a method for identifying products in an industrial production line according to the present disclosure;
[0051] FIG7 shows a schematic diagram of another method for identifying products in an industrial production line according to the present disclosure.
[0052] FIG8 shows a schematic structural diagram of a product identification device in an industrial production line according to the present disclosure.
[0053] FIG9 shows a schematic structural diagram of a product identification electronic device in an industrial production line according to the present disclosure. DETAILED DESCRIPTION
[0054] Figure 1 is a schematic diagram of the process of a product identification method in an industrial production line in the related art; Figure 2 is a schematic diagram of a product identification and coding scenario in an industrial production line in the related art; Figure 3 is a schematic diagram of another product identification and coding scenario in the related art. In the related art, the process of visual speed measurement is mainly carried out in the manner shown in Figure 1. The text encoding and circular code belt encoding used in Figures 2 and 3 first require taking two digital images of the coding pattern respectively, and then use methods such as text recognition or circular code belt decoding to decode and locate the pattern, and finally output the displacement data of the key points.
[0055] The speed measurement methods in related technologies specifically include:
[0056] S110, at different times t1 and t2, based on the same exposure time te, multiple images of the moving object, such as img1 and img2, are captured, and then a feature matching method is used to obtain key points of the moving object. Finally, feature matching is performed on the key points, and the matched key point pairs p1_1 and P1_2 are used;
[0057] S120: Input the coordinates of the key point pair p1_1 and p1_2 through the feature recognition algorithm. Taking the annular coding band shown in Figure 3 as an example, images img1 and img2 are first preprocessed to remove noise and interference, and the positioning circle contour is detected. The coded marker points are then decoded, the decoded data is preprocessed, and the ROI (Region of Interest) is extracted. The ROI is the annular band. The annular band data is decoded and encoded, and the pixel locations in the image are determined, and the pixel coordinates are output.
[0058] S130 , calculating the moving distance d0 of the key points p1_1 and P1_2 between different images based on the pixel coordinates, and finally taking the quotient with the time taken between images to (t0=t2-t1) to obtain the moving speed of the key points.
[0059] However, the above method requires taking at least two shots of the object to be measured, which causes a ghosting problem during the shooting, thereby affecting the accuracy of obtaining the speed through the two captured images. In addition, two shots require two image operations such as feature extraction, which is relatively time-consuming.
[0060] A first aspect of the present disclosure provides a method for identifying products in an industrial production line. FIG1 is a flow chart of a method for identifying products in an industrial production line according to an embodiment of the present disclosure, comprising:
[0061] S210: Acquire a coded image of the product to be identified based on a preset exposure time;
[0062] For example, the preset exposure time can be set to a longer time, such as 1 second. Under such a long exposure time, the coded pattern of the product to be identified will form a coded image with a smear. It should be noted that the coded pattern can be set on the product to be identified or at a corresponding location in the industrial production line corresponding to the identified product.
[0063] The ghosting problem in photography, also known as the ghosting problem, refers to the phenomenon in which the digital image obtained by capturing a single frame of a moving object will exhibit a ghosting effect due to the long exposure time of the photographic parameters and the high speed of the object's movement when certain conditions are met.
[0064] S220, obtaining the smear length of the encoded image;
[0065] For example, the smear length refers to the length of the blur or smear created by the movement of the product in the image. The smear length can be the smear length of a single feature point, feature line, or feature pattern, or it can be the combined smear lengths of multiple feature points, feature lines, or feature patterns.
[0066] S230: Determine a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time;
[0067] For example, the speed of the product to be identified on the production line is calculated by combining the smear length and the preset exposure time. The quotient of a single smear length and the preset exposure time can be used directly as the speed of the product to be identified on the production line, or the quotient of multiple smear lengths and the preset exposure time can be used as the speed of the product to be identified on the production line.
[0068] S240: Determine the identity information of the product to be identified based on the geometric features of the coded image.
[0069] For example, the geometric features of the coded image are used to determine the identity information of the product to be identified. The geometric features may include the shape, size, logo, or other identification features of the coded image, thereby distinguishing the identified product from other products and identifying its identity.
[0070] In summary, the product identification method in the industrial production line proposed in the embodiment of the present disclosure is based on machine vision technology. By arranging the coding pattern on the surface of the product to be identified or arranging the coding image at the corresponding position in the industrial production line of the product to be identified, based on long exposure single frame imaging, the smear length and exposure time of the coding pattern are used to directly solve the moving speed of the object. It can provide a method for solving the problem of the moving speed of the object to be measured in industrial production line detection, and can well promote the application and development of machine vision technology in the field of visual inspection. Due to the use of camera and image processing technology, the method can capture and process images in real time, quickly determine the moving speed and identity information of the product, and help to achieve real-time production monitoring and control. By using preset exposure time and smear length parameters, a high-quality coded image can be obtained, thereby improving the accuracy of product speed recognition, so that the identity information of the above-mentioned product to be identified can be determined based on the geometric features of the coded image, providing a highly adaptable method for different types of industrial production lines and products to be identified.
[0071] In some examples, the encoded image includes at least two feature points.
[0072] The determining of the moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time includes:
[0073] Get the smear length of each of the above feature points;
[0074] The moving speed of the product to be identified in the industrial production line is determined based on all the above-mentioned smear lengths and the above-mentioned preset exposure time.
[0075] For example, the coded image includes at least two feature points, and the length of the smear formed by each feature point in the coded image is measured. The smear length of each feature point is combined with the preset exposure time to calculate the movement speed of each feature point. The speed information of all feature points can then be used to comprehensively calculate the average movement speed or overall movement speed of the product to be identified on the industrial production line.
[0076] The method proposed in the embodiment of the present disclosure can more accurately determine the moving speed of the product by using multiple feature points and measuring their trailing lengths. Comprehensive consideration of the speed information of all feature points can provide more comprehensive moving speed data, which helps to eliminate errors.
[0077] In some examples, determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time includes:
[0078] The moving speed of the product to be identified in the industrial production line is determined based on the median of all the smear lengths and the preset exposure time.
[0079] For example, the smear length data for all feature points is first collected and the median is calculated. The median is then combined with the preset exposure time to determine the speed of the product being identified. The median is a statistic that sorts all smear lengths by size and finds the middle value. This method reduces the impact of outliers on speed calculations because the median is unaffected by extreme values.
[0080] In some examples, determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time includes:
[0081] The moving speed of the product to be identified in the industrial production line is determined based on the average of all the smear lengths and the preset exposure time.
[0082] For example, the smear length data for all feature points is collected and then averaged. This average is then combined with the preset exposure time to determine the speed of the product being identified. The average is calculated by adding all smear lengths and dividing by the number of feature points. This method gives equal weight to all smear lengths and disregards outliers.
[0083] Figure 5 is a schematic diagram of a product identification coding scenario in an industrial production line provided by an embodiment of the present disclosure; Figure 6 is a schematic diagram of the principle of a product identification method in an industrial production line provided by an embodiment of the present disclosure; Figure 7 is a schematic diagram of the principle of another product identification method in an industrial production line provided by an embodiment of the present disclosure. Taking the dot-line coding in Figures 5 to 7 as an example, the coding tape, that is, the coding pattern, is a combination of dots and lines, and the coding tape is placed at the corresponding position of the product to be tested on the automated conveying device. By arranging 6 groups of line dot matrix coding patterns, on the one hand, the distinction between different coding patterns is achieved, and the positioning of 6 key areas represented by the codes in Figure 4 is achieved. On the other hand, distance measurement and speed calculation can be performed through the coded image of the coding pattern under a preset exposure time.
[0084] It should be noted that each key area can correspond to one product to be identified, and one product to be identified can also correspond to multiple key areas. The number of codes and key areas is not limited to 4 and 6 respectively.
[0085] In the image acquisition stage, the single frame exposure time is set to te. During the exposure process, the coded pattern moves due to the object being measured. The moving direction of the illustrated scheme is horizontally to the right, and a single dot will form a long line of smear. Then, in the image processing stage, the pixel distance from each dot to the line is identified separately.
[0086] Let xM0,xM1,M=(A,B,C,D); use the following formula to calculate the distance: dist(M0,M1)=xM0-xM1 (1)
[0087] Where M = (A, B, C, D)
[0088] Finally, the arithmetic mean of each distance M is calculated, and the speed is calculated as shown in Formula 2: speed = d0 / te = mean(dist(M0,M1)) / te (2)
[0089] The solved speed is recorded as the moving speed of the object under test in the current frame.
[0090] In some examples, the above-mentioned coded image includes a positioning coded image and a speed measurement coded image. The above-mentioned positioning coded image is an image formed by the positioning coded element under the above-mentioned preset exposure time. The above-mentioned speed measurement coded image is an image formed by the speed measurement coded element under the above-mentioned preset exposure time. The above-mentioned positioning coded element is used to distinguish the element areas corresponding to the coded elements corresponding to different products to be identified. The above-mentioned speed measurement coded element is used to determine the moving speed of the above-mentioned product to be identified in the above-mentioned industrial production line.
[0091] For example, a positioning code image is captured using a preset exposure time to capture the positioning code elements. These code elements are typically used to identify different products to be identified and are located on the product to be identified or in the element area corresponding to the product to be identified. The primary function of the positioning code elements is to help the system distinguish between code elements on different products to be identified. For example, in Figure 5, the positioning code elements can be line elements.
[0092] Velocity code images are also captured using a preset exposure time, but their purpose is to capture images of velocity code elements. These code elements are often used to determine the speed of products being identified on industrial production lines. The primary function of a velocity code element is to provide a marker for measuring movement speed. The system can calculate the product's speed by analyzing the position changes of the velocity code element. For example, in Figure 5, the velocity code element can be a dot element.
[0093] The disclosed embodiments utilize two different types of coded images: positioning coded images and speed measurement coded images. Positioning coded images are used to identify the location of different products, while speed measurement coded images are used to measure the speed of products moving along an industrial production line. By embedding different types of coded elements into products or industrial production lines, accurate identification and speed measurement are achieved, facilitating monitoring and control of industrial production processes.
[0094] In some examples, the method further includes:
[0095] In a case where the coded image includes at least two of the positioning coded images, image segmentation is performed based on the positioning coded images to obtain a speed measurement coded image corresponding to a single product to be identified;
[0096] The moving speed corresponding to the single product to be identified is determined based on the smear length of the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
[0097] For example, when the coded image contains at least two positioning coded images, the system performs image segmentation to separate the coded elements of different products to be identified. The purpose of segmentation is to associate each product's positioning coded element with its corresponding velocity coded element to ensure that subsequent speed measurements are made for the correct product. Once image segmentation is complete, the system obtains the velocity coded image corresponding to each product to be identified. For each individual product to be identified, the system uses its velocity coded image to measure the smear length and, based on a preset exposure time, calculates the product's movement speed. This allows each product to independently obtain its own speed information.
[0098] This disclosed embodiment allows for the processing of multiple products within the same image frame. Image segmentation ensures the correct association of each product's coded element and speed information, enabling more precise tracking and control of each product's movement and providing more accurate speed measurement data. By introducing image segmentation and analyzing the speed-coded image of a single product, the accuracy and reliability of product identification and movement speed measurement are improved, making it suitable for industrial production scenarios requiring simultaneous processing of multiple products.
[0099] In some examples, the positioning coding element includes a line element, and the speed measurement coding element includes a point element;
[0100] The above method further includes:
[0101] In a case where the coded image includes at least two positioning coded images, image segmentation is performed on the positioning coded image formed by the line elements to obtain the speed measurement coded image formed by the point elements corresponding to a single product to be identified;
[0102] The moving speed corresponding to the single product to be identified is determined based on the smear length formed by the point elements in the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
[0103] For example, as shown in Figure 5, the positioning code elements can be line elements, and the speed code elements can be point elements. When the coded image contains at least two positioning code images, an image segmentation operation is performed to separate the positioning code elements of each product to be identified. A speed code image formed by the point elements is then extracted from the positioning code image of each individual product to be identified. The point elements in these speed code images are used to measure the product's movement speed. For each individual product to be identified, the system uses the point elements in its speed code image to measure the smear length and, combined with the preset exposure time, calculates the product's movement speed.
[0104] By introducing line elements and point elements, the position and movement speed of products can be more accurately identified and measured. Image segmentation ensures that the coding elements of each product are correctly separated, making speed measurement more reliable. This method is suitable for industrial production scenarios that require high-precision product identification and speed measurement.
[0105] In some examples, the geometric features include point element arrangement features;
[0106] The above-mentioned determination of the identity information of the product to be identified based on the geometric features of the above-mentioned coded image includes:
[0107] Obtaining the above-mentioned point element arrangement features in the above-mentioned speed measurement code image;
[0108] The identity information of the product to be identified is determined based on the point element arrangement feature and the first corresponding relationship, wherein the first corresponding relationship includes a corresponding relationship between the point element arrangement feature and the product's identity information.
[0109] For example, geometric features refer to features extracted from the coded image that are related to the product's shape, layout, or structure. Point element arrangement features, among other things, represent the arrangement or distribution pattern of point elements in the velocitometer coded image. For example, in Figure 5, a point element arrangement feature can be the difference in the arrangement position of one or more points relative to the entire coded area.
[0110] The disclosed embodiments obtain dot element arrangement features from a velocitometer-coded image. Using a first correspondence, these dot element arrangement features are associated with the product's identity information to determine the identity of the product to be identified. This first correspondence is a pre-established mapping between dot element arrangement features and product identity information, allowing the features to be interpreted as the identity of a specific product.
[0111] The disclosed embodiments utilize point element arrangement features and associate them with product identity information through a first correspondence. This improves the accuracy of product identity and reduces potential confusion. By analyzing point element arrangement features, the system can more reliably determine the identity of each product.
[0112] In some examples, the above-mentioned point element arrangement features include at least one of point element quantity features, point element position features, point element shape features, and point element pixel quantity features.
[0113] For example, the point element quantity feature refers to the number of point elements in the velocimetric coded image. The point element position feature describes the position and arrangement of point elements in the velocimetric coded image. The point element shape feature describes the shape or outline of the point elements. The point element pixel count feature indicates the number of pixels occupied by the point elements in the image, that is, the size or density of the point elements.
[0114] By comprehensively considering features such as the number, position, shape, and pixel count of point elements, the system can more accurately determine the identity information of the product to be identified and adapt to the characteristics and requirements of different products.
[0115] In some examples, the geometric features include line element arrangement features;
[0116] The above-mentioned determination of the identity information of the product to be identified based on the geometric features of the above-mentioned coded image includes:
[0117] Obtaining the line element arrangement features in the positioning coded image;
[0118] The identity information of the product to be identified is determined based on the line element arrangement feature and the second corresponding relationship, wherein the second corresponding relationship includes the corresponding relationship between the line element arrangement feature and the product's identity information.
[0119] For example, the linear element arrangement features are extracted from the positioning code image. These features may include information such as the arrangement, relative position, or shape of the linear elements. The linear element arrangement features are then associated with the product's identity information using a second correspondence. The second correspondence records the mapping between the linear element arrangement features and the product's identity information.
[0120] In some examples, the point element arrangement feature includes at least one of a line element quantity feature, a line element gap position feature, a line element shape feature, and a line element pixel quantity feature.
[0121] For example, the line element quantity feature refers to the number of line elements in the positioning code image. By comparing the line element quantity features of different products, different products can be distinguished.
[0122] The line element can be a discontinuous line, and the line element gap position feature describes the position and distribution of gaps or gaps between line elements.
[0123] The line element shape feature describes the shape or outline of a line element.
[0124] The line element pixel quantity feature represents the number of pixels occupied by the line element in the image, which can be the size or density of the line element.
[0125] In some examples, it is characterized in that the coding element corresponding to the above-mentioned coding image includes at least one of a raised pattern, a recessed pattern, and a pattern with a color different from the background.
[0126] For example, if the coding element adopts a raised pattern, that is, on the surface of the product or on an industrial production line, the coding element may be a physically protruding or raised part, and these raised patterns can be used to form obvious features in the image for product identification.
[0127] If the coding element adopts a recessed pattern, that is, the coding element is a recessed area on the surface of the product, the recessed pattern may form a shadow or change in the image, which can also be used to identify the product.
[0128] The coding element can also adopt a pattern that is clearly different from the background color, making it clearly visible in the image through color difference even in poor lighting conditions.
[0129] Regardless of the type of coding element used, corresponding image processing technology can be used to recognize and confirm the identity information of the product, thereby achieving product identification.
[0130] Referring to FIG8 , an embodiment of a product identification device in an industrial production line according to the present disclosure may include:
[0131] A first acquiring unit 21 is configured to acquire a coded image of a product to be identified based on a preset exposure duration;
[0132] A second acquiring unit 22 is configured to acquire the smear length of the encoded image;
[0133] A first determining unit 23 is configured to determine a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time;
[0134] The second determining unit 24 is configured to determine the identity information of the product to be identified based on the geometric features of the coded image.
[0135] As shown in Figure 9, an embodiment of the present disclosure also provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor. When the processor 320 executes the computer program 311, the steps of any of the above-mentioned methods for product identification in the industrial production line are implemented.
[0136] Since the electronic device introduced in this embodiment is a device used to implement a product identification device in an industrial production line in the embodiment of the present disclosure, based on the method introduced in the embodiment of the present disclosure, technical personnel in this field can understand the specific implementation of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present disclosure will not be introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present disclosure falls within the scope of protection to be protected by this disclosure.
[0137] During specific implementation, the computer program 311 can implement any implementation method in the embodiment corresponding to FIG. 1 when executed by a processor.
[0138] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0139] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0140] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0141] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0143] The present disclosure also provides a computer program product comprising computer software instructions. When the computer software instructions are executed on a processing device, the processing device executes the product identification process in the industrial production line in the corresponding embodiment.
[0144] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0145] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0146] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0147] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0148] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0149] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.
[0150] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present disclosure.
Claims
1. A method for identifying products in an industrial production line, comprising: Acquire a coded image of the product to be identified based on a preset exposure time; Obtaining a smear length of the encoded image; Determining a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time; The identity information of the product to be identified is determined based on the geometric features of the coded image.
2. The method for identifying products in an industrial production line according to claim 1, wherein the coded image comprises at least two feature points. The determining the moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time includes: Obtaining the smear length of each feature point; The moving speed of the product to be identified in the industrial production line is determined based on all the smear lengths and the preset exposure time.
3. The method for identifying products in an industrial production line according to claim 2, wherein determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time comprises: The moving speed of the product to be identified in the industrial production line is determined based on the median of all the smear lengths and the preset exposure time.
4. The method for identifying products in an industrial production line according to claim 2, wherein determining the moving speed of the product to be identified in the industrial production line based on all the smear lengths and the preset exposure time comprises: The moving speed of the product to be identified in the industrial production line is determined based on the average of all the smear lengths and the preset exposure time.
5. The method for identifying products in an industrial production line according to claim 1, The coding image includes a positioning coding image and a speed measurement coding image. The positioning coding image is an image formed by the positioning coding element under the preset exposure time, and the speed measurement coding image is an image formed by the speed measurement coding element under the preset exposure time. The positioning coding element is used to distinguish the element areas corresponding to the coding elements corresponding to different products to be identified, and the speed measurement coding element is used to determine the moving speed of the product to be identified in the industrial production line.
6. The method for identifying products in an industrial production line according to claim 5, further comprising: In the case where the coded image includes at least two of the positioning coded images, based on the Position the coded image and perform image segmentation to obtain a speed measurement coded image corresponding to a single product to be identified; The moving speed corresponding to the single product to be identified is determined based on the smear length of the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
7. The product identification method in an industrial production line according to claim 5, wherein the positioning coding element comprises a line element, and the speed measurement coding element comprises a point element; The method further comprises: When the coded image includes at least two positioning coded images, image segmentation is performed on the positioning coded image formed by the line elements to obtain the speed measurement coded image formed by the point elements corresponding to a single product to be identified; The moving speed corresponding to the single product to be identified is determined based on the smear length formed by the point elements in the speed measurement coded image corresponding to the single product to be identified and the preset exposure time.
8. The method for identifying products in an industrial production line according to claim 7, wherein the geometric features include point element arrangement features; The determining the identity information of the product to be identified based on the geometric features of the coded image includes: Acquiring the point element arrangement feature in the speed measurement coded image; The identity information of the product to be identified is determined based on the dot element arrangement feature and a first corresponding relationship, wherein the first corresponding relationship includes a corresponding relationship between the dot element arrangement feature and the identity information of the product.
9. The product identification method in an industrial production line as claimed in claim 1, wherein the point element arrangement feature includes at least one of a point element quantity feature, a point element position feature, a point element shape feature and a point element pixel quantity feature.
10. The method for identifying products in an industrial production line according to claim 7, wherein the geometric features include line element arrangement features; The determining the identity information of the product to be identified based on the geometric features of the coded image includes: Acquiring the line element arrangement feature in the positioning coding image; The identity information of the product to be identified is determined based on the line element arrangement feature and a second corresponding relationship, wherein the second corresponding relationship includes a corresponding relationship between the line element arrangement feature and the identity information of the product.
11. The product identification method in an industrial production line according to claim 10, wherein the point element arrangement feature comprises at least one of a line element quantity feature, a line element gap position feature, a line element shape feature, and a line element pixel quantity feature.
12. The product identification method in an industrial production line according to any one of claims 1 to 10, wherein the coding element corresponding to the coded image includes at least one of a raised pattern, a recessed pattern, and a pattern having a color different from the background.
13. A product identification device in an industrial production line, comprising: A first acquiring unit, configured to acquire a coded image of a product to be identified based on a preset exposure time; A second acquiring unit, configured to acquire a smear length of the encoded image; A first determining unit is configured to determine a moving speed of the product to be identified in the industrial production line based on the smear length and the preset exposure time; The second determining unit is configured to determine the identity information of the product to be identified based on the geometric features of the coded image.
14. An electronic device comprising: A memory and a processor, wherein the processor is configured to implement the steps of the product identification method in an industrial production line as described in any one of claims 1 to 12 when executing a computer program stored in the memory.
15. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the product identification method in an industrial production line according to any one of claims 1 to 12 are implemented.