Identification tag generation method and device, electronic equipment and storage medium

By automatically identifying material images and comparing them with reference images, identification tags are generated, which solves the problems of high labor intensity and high error rate when manually identifying materials, and improves the accuracy of identification tags.

CN119169321APending Publication Date: 2024-12-20BEIJING SIEMENS CERBERUS ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411204165.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the production industry, manual identification of materials is high and error-prone, resulting in errors in the identification label generation and affecting the production process.

Method used

By collecting material images, identifying information and product information are obtained, and comparing them with the reference image. If matched, an identification tag will be generated to achieve automated identification and verification.

Benefits of technology

It reduces the intensity of manual labor, improves the accuracy of identification tags, prevents identification tag generation errors caused by label matching errors, and ensures that the information corresponds to the material.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119169321A_ABST
    Figure CN119169321A_ABST
Patent Text Reader

Abstract

The invention provides an identification tag generation method and apparatus, an electronic device and a storage medium. The identification tag generation method comprises the steps of collecting a first image of a material; obtaining identification information and product information of the material according to the first image; acquiring a corresponding reference image according to the identification information; comparing the first image with the reference image to obtain a comparison result; and if the comparison result indicates that the identification information is matched with the material, generating an identification tag of the material at least according to the product information. According to the identification tag generation method provided by the invention, the manual labor intensity can be reduced, and the accuracy of generating the identification tag corresponding to the material can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for generating an identification tag. Background Art

[0002] In the manufacturing industry, it is necessary to purchase materials from suppliers, and the same material may come from multiple suppliers, each of which has its own label. The supplier name, material number, and production date on the label are important information for material production management. In order to facilitate unified management, the supplier labels in the materials need to be converted into a unified label style.

[0003] Currently, materials are identified manually, and the identification results are manually entered into a management system to generate identification tags.

[0004] However, manual material identification is labor-intensive and may result in errors in identification or input of identification results, leading to errors in the generation of identification labels, which in turn may cause errors in material loading during production and result in economic losses. Summary of the invention

[0005] In view of this, the identification tag generation method, device, electronic device and storage medium provided in the present application can improve the utilization rate of identification tag generation.

[0006] According to a first aspect of an embodiment of the present application, a method for generating an identification label is provided, comprising: capturing a first image of a material; obtaining identification information and product information of the material based on the first image; obtaining a corresponding reference image based on the identification information; comparing the first image with the reference image to obtain a comparison result; if the comparison result indicates that the identification information matches the material, generating an identification label for the material based on at least the product information.

[0007] In one possible implementation, obtaining identification information and product information of the material based on the first image includes: obtaining an order number for purchasing the material; obtaining an order including the material based on the order number; identifying the first image to obtain identification information of the material; and determining product information of the material from the order based on the identification information.

[0008] In a possible implementation, the identifying the first image to obtain the identification information of the material includes: identifying a barcode or a two-dimensional code included in the first image to obtain a recognition result; and parsing the recognition result to obtain the identification information of the material.

[0009] In a possible implementation, the identifying the first image to obtain the identification information of the material includes: performing optical character recognition on the first image to obtain the identification information of the material from text information included in the first image.

[0010] In a possible implementation, comparing the first image with the reference image to obtain a comparison result includes: determining recognition angle compensation and recognition position compensation based on the first image; performing image compensation on the first image based on the recognition angle compensation and the recognition position compensation to obtain a second image; and comparing the second image with the reference image to obtain a comparison result.

[0011] In a possible implementation, the method further includes: if the second image fails to match with each of the reference images, issuing a matching failure reminder, and upon receiving an image adding instruction, adding the second image as the reference image, and associating the second image with the identification information and saving it.

[0012] In one possible implementation, the method further includes: in response to a packing completion instruction, generating a packaging box label according to an identification label corresponding to at least one material between the packing start instruction and the packaging completion instruction, and printing the packaging box label, wherein the packaging box label is at least used to indicate product information of the at least one material.

[0013] In a possible implementation, comparing the first image with the reference image to obtain a comparison result includes: extracting a first contour of the material image in the first image, and extracting a second contour of the material image in the reference image; comparing the first contour with the second contour to obtain the comparison result; or, determining a plurality of first reference areas in the first image, and determining a plurality of second reference areas in the reference image, wherein the first reference areas correspond one-to-one to the second reference areas; comparing the first reference areas with the corresponding second reference areas, and respectively determining a plurality of sub-similarity corresponding to the plurality of first reference areas; and obtaining the comparison result according to the plurality of sub-similarity.

[0014] According to a second aspect of an embodiment of the present application, there is provided an identification label generating device, comprising: an acquisition unit, for acquiring a first image of a material; a first acquisition unit, for acquiring identification information and product information of the material based on the first image; a second acquisition unit, for acquiring a corresponding reference image based on the identification information; a comparison unit, for comparing the first image with the reference image to obtain a comparison result; and a generation unit, for generating an identification label for the material based on at least the product information if the comparison result indicates that the identification information matches the material.

[0015] According to the third aspect of the embodiment of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the identification tag generation method provided in the first aspect above.

[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor performs operations corresponding to the identification tag generation method provided in the first aspect above.

[0017] According to the fifth aspect of an embodiment of the present application, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform the identification tag generation method provided in the first aspect above.

[0018] According to the above technical solution, the first image of the material is collected, and the identification information and product information of the material are determined according to the first image, so that the material can be identified and the specific information of the material can be determined, so that the identification label corresponding to the material can be generated, and the generation of the identification label of the material is realized. Compared with the prior art in which the identification label corresponding to the material is generated by manually identifying the material and manually inputting information, the manual labor intensity is low. And because the corresponding reference image is obtained according to the identification information, and the first image is compared with the reference image, if the identification information matches the material, the identification label of the material is generated at least according to the product information, so that the identification of the material can be verified, and the identification error leading to the generation error of the identification label can be prevented, and the situation that the manufacturer's manufacturer label does not match the material (for example: the material shipped by the manufacturer is labeled incorrectly, etc.) can be prevented. Therefore, the information indicated in the identification label corresponds to the material, and compared with the prior art, the situation that the error of the identification label generated manually can be prevented, and the accuracy of the identification label is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a method for generating an identification tag provided in an embodiment of the present application;

[0020] Figure 2 is a flow chart of a material information acquisition method provided in an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a first image provided in an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an identification tag generating device provided in an embodiment of the present application;

[0023] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application.

[0024] List of reference numerals:

[0025] 101: Capture the first image of the material

[0026] 102: Acquire material identification information and product information according to the first image

[0027] 103: Obtain the corresponding reference image according to the identification information

[0028] 104: Compare the first image with the reference image to obtain a comparison result

[0029] 105: If the comparison result indicates that the identification information matches the material, an identification label for the material is generated based on at least the product information.

[0030] 201: Get the order number of the purchased material

[0031] 202: Get the order including materials according to the order number

[0032] 203: Identify the first image and obtain the identification information of the material

[0033] 204: Determine the product information of the material from the order based on the identification information

[0034] 100: Identification label generation method 200: Material information acquisition method 400: Identification label generation device

[0035] 301: first image 401: acquisition unit 402: first acquisition unit

[0036] 403: Second acquisition unit 404: Comparison unit 405: Generation unit

[0037] 500: electronic device 502: processor 504: communication interface

[0038] 506: memory 508: communication bus 510: program

[0039] 302: Second Image DETAILED DESCRIPTION

[0040] As mentioned above, in the manufacturing industry, it is necessary to purchase materials from suppliers, and the same material may come from multiple suppliers, each of which has its own label. The supplier name, material number, and production date on the label are important information for material production management. In order to facilitate unified management, it is necessary to convert the supplier's label in the material into a unified label style. At present, materials are identified manually, and the identification results are manually entered into the management system to generate identification labels. However, when materials are identified manually, the labor intensity is high, and there will be errors in identification or errors in the entry of identification results, resulting in errors in the generation of identification labels, which in turn lead to errors in feeding during production and cause economic losses.

[0041] In the embodiment of the present application, the first image of the material is collected, and the identification information and product information of the material are determined according to the first image, thereby the material can be identified, and the specific information of the material can be determined, thereby generating an identification label corresponding to the material, and realizing the generation of the identification label of the material. Compared with the prior art in which the identification label corresponding to the material is generated by manually identifying the material and manually inputting information, the manual labor intensity is low. And because the corresponding reference image is obtained according to the identification information, and the first image is compared with the reference image, if the identification information matches the material, the identification label of the material is generated at least according to the product information, thereby the identification of the material can be verified, and the identification error leading to the generation error of the identification label can be prevented, and the situation that the manufacturer's manufacturer label does not match the material (for example: the material shipped by the manufacturer is labeled incorrectly, etc.) can be prevented from causing the generation error of the identification label, thereby ensuring that the information indicated in the identification label corresponds to the material, and compared with the prior art, the situation that the error of the identification label generated by the manual generation can be prevented, and the accuracy of the identification label is improved.

[0042] The identification tag generation method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0043] Figure 1 is a flow chart of a method 100 for generating an identification tag provided in an embodiment of the present application. Figure 1 As shown, the identification tag generation method 100 includes the following steps 101 to 105:

[0044] Step 101: Capture a first image of a material.

[0045] Capture the first image of the material located in the image acquisition area. In one example, the material can be placed in the image acquisition area by a loading mechanism. In another example, the material can be manually placed in the image acquisition area and then the start command can be clicked to start image acquisition. During the image acquisition process, the first image of the material can be captured by an image acquisition device, which can be an industrial camera.

[0046] It should be noted that the materials in the present application may be unpackaged materials, packaged materials and materials located in a tray. For unpackaged materials, the first image includes an image of the material; for packaged materials, the first image includes an image of the packaged material, such as an image of the material packaging box, an image of the material packaging tape, etc. For materials located in a tray, the first image may include an image of the tray and an image of the material. For the sake of convenience of explanation, in the present application, the image of the packaged material, the image of the material, the image of the tray and the image of the material included in the first image are collectively referred to as the material image included in the first image.

[0047] Step 102: Acquire material identification information and product information based on the first image.

[0048] According to the first image, the identification information and product information of the material are obtained. The identification information of the material can indicate the unique identification of the material, for example, the identification information can be the manufacturer part number (MPN) of the material. The product information of the material can indicate the material type, material quantity, material production date, etc. of the material.

[0049] Step 103: Acquire a corresponding reference image according to the identification information.

[0050] Based on the identification information of the material, a reference image corresponding to the identification information stored in the system is obtained. It should be understood that since the same material from the same manufacturer may change, different batches of the same material from the same manufacturer may be different. For example, different batches of the same material from the same manufacturer may have different laser etching positions for the material names, different positions for the labels on the trays used to hold the materials, and changes in the outer packaging of the materials, etc. Therefore, there may be multiple reference images.

[0051] It should be noted that the materials in the embodiments of the present application can be a single part or a collection of multiple parts. The materials in the embodiments of the present application can be parts, semi-finished products, and outsourced parts, such as: circuit breakers, gears, grinding heads, liners, mechanical seals, instruments, etc. The same material in the embodiments of the present application can refer to materials of the same model, or materials of the same specification, such as: circuit breakers with the same maximum current, semi-finished products that can achieve the same function and can be replaced with each other, etc. The same material can come from the same manufacturer or different manufacturers, for example: only circuit breakers produced by one manufacturer can be purchased, or circuit breakers of the same specification produced by multiple manufacturers can be purchased. It should be understood that when purchasing materials, a material package can include multiple materials, for example: when purchasing a circuit breaker, a box includes multiple circuit breakers, or a material package can include only one material.

[0052] In one example, if the corresponding reference image is not found and an image adding instruction is received, the captured first image is stored in the system as a reference image so that the corresponding reference image can be found when an identification label is subsequently generated for the same material.

[0053] Step 104: compare the first image with the reference image to obtain a comparison result.

[0054] The first image is compared with the reference image. For example, the outline of the material in the first image and the reference image can be compared, and the key information points, reference areas, etc. in the image can be compared to obtain a comparison result. The comparison result can be a match or a mismatch. In one example, if the comparison result is a mismatch, the comparison is continued with other reference images obtained until the first image matches the reference image, or until the first image does not match any reference image.

[0055] Step 105: If the comparison result indicates that the identification information matches the material, an identification label for the material is generated based at least on the product information.

[0056] When the first image matches the reference image, for example, the first image and the reference image overlap, or the similarity between the first image and the reference image is greater than or equal to the similarity threshold, or the first image and the reference image have the same reference area, at least an identification label of the material is generated based on the product information. In one example, the identification label may include a unique identifier of the material. Optionally, the identification label may include at least one of a barcode, a QR code, and text information.

[0057] Optionally, after the identification tag is generated, the information corresponding to the identification tag can be saved in the system, for example: the product information of the material and the unique identification of the material can be associated and saved in the system. In one example, the storage location of the preset material can be associated with the unique identification and saved in the system.

[0058] Optionally, after the identification label is generated, the identification label can be printed, and the printed identification label can be automatically affixed to the material, for example, by a robotic arm affixing it to a material tray, or it can be manually affixed to the material, which is not limited here.

[0059] In the embodiment of the present application, the first image of the material is collected, and the identification information and product information of the material are determined according to the first image, thereby the material can be identified, and the specific information of the material can be determined, thereby generating an identification label corresponding to the material, and realizing the generation of the identification label of the material. Compared with the prior art in which the identification label corresponding to the material is generated by manually identifying the material and manually inputting information, the manual labor intensity is low. And because the corresponding reference image is obtained according to the identification information, and the first image is compared with the reference image, if the identification information matches the material, the identification label of the material is generated at least according to the product information, thereby the identification of the material can be verified, and the identification error leading to the generation error of the identification label can be prevented, and the situation that the manufacturer's manufacturer label does not match the material (for example: the material shipped by the manufacturer is labeled incorrectly, etc.) can be prevented from causing the generation error of the identification label, thereby ensuring that the information indicated in the identification label corresponds to the material, and compared with the prior art, the situation that the error of the identification label generated by the manual generation can be prevented, and the accuracy of the identification label is improved.

[0060] Figure 2 is a flow chart of a material information acquisition method 200 provided in an embodiment of the present application, such as Figure 2 As shown, when obtaining the identification information and product information of the material according to the first image, the material information obtaining method 200 may be executed including steps 201 to 204:

[0061] Step 201: Get the order number of the purchased material.

[0062] The order number is obtained, which may be the order number entered by the user. In one example, the purchase order number (PO) entered by the user or the advance shipping notice number (ASN) sent by the manufacturer entered by the user may be obtained.

[0063] Step 202: Get the order including the materials according to the order number.

[0064] According to the order number, determine the order corresponding to the order number, which includes one or more purchased materials.

[0065] Step 203: Identify the first image and obtain identification information of the material.

[0066] The first image is recognized, and identification information of the material is determined based on the recognition result of the first image. For example, the MPN corresponding to the material is determined based on the recognition result of the first image. In one example, the manufacturer label attached to the material can be recognized based on the first image to determine the identification information of the material.

[0067] Step 204: Determine the product information of the material from the order based on the identification information.

[0068] Search for the order according to the identification information, and obtain the product information of the material corresponding to the identification information. The product information may include the material type, material quantity, material production date, etc. of the material.

[0069] Optionally, if the recognition result of identifying the first image includes product information of the material, the identified product information can be directly determined as the product information of the material, without querying the order through the material identification information, thereby improving the efficiency of obtaining product information. Optionally, when the recognition result of identifying the first image includes product information of the material, the product information corresponding to the material in the order can be queried according to the material identification information, and the product information in the recognition result can be compared with the product information queried in the order to determine whether the product information is correct, and more accurate and complete product information of the material can be determined by complementing the identified product information and the product information in the order.

[0070] In an embodiment of the present application, the order number of the purchased material is obtained, and the order of the purchased material is queried based on the order number, the first image is recognized, and the identification information of the material is obtained, thereby obtaining the product information of the material in the order through the identification information. Since the product information of the material is queried from the order through the identification information, compared with querying the product information of the material from the system, the efficiency of obtaining the product information is higher, and more detailed product information of the material can be obtained by querying the order to obtain the product information of the material.

[0071] In a possible implementation, when identifying the first image and obtaining the identification information of the material, the barcode or QR code included in the first image can be identified to obtain the identification result, and the identification result can be analyzed to obtain the identification information of the material.

[0072] When identifying the first image, the barcode or QR code included in the first image can be identified to determine the information contained in the barcode or QR code, for example, identifying the barcode or QR code in the manufacturer label affixed to the material. It should be understood that the barcode or QR code in the manufacturer label of different manufacturers includes different content, or includes the same content in different formats. For example, the barcode or QR code may include the manufacturer's identification, that is, the manufacturer, and may also include the production date of the material, etc. The identification result is parsed to obtain the identification information of the material. In one example, the identification result can be parsed according to pre-set parsing rules, and different manufacturers may correspond to different parsing rules.

[0073] In an embodiment of the present application, the barcode or QR code included in the first image can be identified, and the identification result can be analyzed to obtain the identification information of the material. Since the barcode or QR code in the first image is identified, and there is no recognition angle restriction for the barcode and QR code during the recognition process, the recognition process will not be affected by the placement position and placement angle of the material in the first image. Since the recognition success rate of the barcode or QR code is relatively high, the success rate of obtaining the identification information of the material can be improved.

[0074] In a possible implementation, when the first image is recognized and the identification information of the material is obtained, optical character recognition may be performed on the first image to obtain the identification information of the material from text information included in the first image.

[0075] Since some manufacturers do not have barcodes or QR codes on their materials, optical character recognition (OCR) can be performed on the first image to identify text information included in the first image, and the text information can be parsed to obtain the identification information of the material. The text information can be the text information on the manufacturer label affixed by the manufacturer to the material, or the text information laser-printed by the manufacturer on the material, which is not limited here.

[0076] In one example, the text information recognized by OCR can be parsed using pre-set parsing rules to obtain identification information. It should be understood that since the format and meaning of the text information on materials from different manufacturers may be different, different manufacturers may correspond to different parsing rules.

[0077] In an embodiment of the present application, optical character recognition can be performed on the first image to obtain the identification information of the material from the text information included in the first image. Compared with the identification of barcodes or QR codes in the aforementioned embodiments, this can be applicable to the situation where the first image does not include a barcode or QR code. Therefore, it can be used to obtain the identification information of materials for which the manufacturer has not set a barcode or QR code, and has a higher applicability.

[0078] In one possible implementation, when comparing a first image with a reference image to obtain a comparison result, recognition angle compensation and recognition position compensation can be determined based on the first image, and image compensation can be performed on the first image based on the recognition angle compensation and recognition position compensation to obtain a second image, and the second image can be compared with the reference image to obtain a comparison result.

[0079] Figure 3 is a schematic diagram of a first image 301 provided in an embodiment of the present application, such as Figure 3 As shown, the first image 301 of the material has an angle offset and a position offset. For example, the normal position of the material should be Figure 3At the location of the middle dotted line, the recognition position compensation and recognition angle compensation of the material are determined according to the first image 301. In one example, the recognition position compensation and recognition angle compensation can be determined according to the position and angle of the barcode or QR code included in the first image 301. For example, if the position of the barcode is recognized to be offset and rotated, the recognition angle compensation for the first image 301 is determined according to the rotation angle of the barcode, and the recognition position compensation for the first image 301 is determined according to the offset of the barcode.

[0080] After determining the recognition angle compensation and the recognition position compensation, the first image 301 is compensated according to the recognition angle compensation and the recognition position compensation. Specifically, the first image 301 is rotated according to the recognition angle compensation, the first image 301 is displaced according to the recognition position compensation, and so on, to obtain the second image 302.

[0081] It should be understood that since the reference image is a standard template image, for example, the material in the reference image is located at a standard position (for example, the center of the image), when the first image 301 is compared with the reference image, recognition failure may occur due to the possible angle offset or position offset of the first image 301. Therefore, by comparing the second image 302 obtained after image compensation of the first image 301 with the reference image, the recognition success rate can be improved.

[0082] The second image 302 is compared with the reference image, for example, the contours can be compared, the key information points in the image can be compared, etc., to obtain a comparison result, and the comparison result can be a match or a mismatch. In one example, if the comparison result is a mismatch, the second image 302 continues to be compared with other acquired reference images until the second image 302 matches the reference image, or until the second image 302 does not match any reference image.

[0083] In an embodiment of the present application, recognition angle compensation and recognition position compensation are determined based on the first image, image compensation is performed on the first image based on the recognition angle compensation and recognition position compensation to obtain a second image, and the second image is compared with the reference image to obtain a comparison result, thereby determining whether the material is correct. Since the second image is obtained by performing image compensation on the first image, the first image can be standardized and compared with the reference image, which can prevent failure of matching with the reference image due to position offset and / or angle offset of the material in the first image, and can improve the success rate of comparing with the reference image, thereby improving the success rate of generating identification labels for materials.

[0084] In a possible implementation, if the second image fails to match each reference image, a matching failure reminder is issued, and when an image adding instruction is received, the second image is added as a reference image, and the second image is associated with the identification information and then saved.

[0085] Reference images corresponding to the materials are pre-stored in the system. At least one reference image corresponding to the materials is obtained according to the identification information of the materials, and the second image is compared with at least one reference image. When the second image fails to match with each reference image, it proves that the material in the second image is not recorded in the system. There are many situations at this time. One of them is that the material is wrong, for example: the manufacturer made a mistake in shipping, the manufacturer's label was wrong, etc. Another situation is that the manufacturer has iteratively updated the material, causing the material to change, resulting in mismatch with each reference image stored in the system. At this time, if an image addition instruction is received, the second image is added as a reference image, and the second image is associated with the identification information and saved in the system. When the identification label is generated next time, the new reference image (second image) can be queried according to the identification information and can be compared with the new reference image.

[0086] In one example, when the second image fails to match each reference image, a matching failure reminder can be issued to notify manual inspection. When the manual inspection shows that the material is indeed the material corresponding to the product information, the image adding instruction can be manually input, for example: clicking on the display screen to add it as a reference image, etc. The specific adding process is not limited in this embodiment of the application.

[0087] In an embodiment of the present application, if the second image fails to match each reference image, a matching failure reminder is issued, and when an image adding instruction is received, the second image is added as a reference image, so that when the same material changes, a reference image for the changed material can be added, so that when an identification label for the material is generated next time, the new reference image can be compared with the collected image of the material, and the second image can be associated with the identification information and saved, so that the reference image can be queried through the identification information of the material, thereby improving the efficiency of obtaining the reference image, thereby improving the efficiency of generating the identification label.

[0088] In one possible implementation, in response to a packing completion instruction, a packaging box label can be generated according to an identification label corresponding to at least one material between the packaging start instruction and the packaging completion instruction, and the packaging box label can be printed, wherein the packaging box label is used to at least indicate product information of at least one material.

[0089] After receiving the packing completion instruction, a packaging box label is generated according to the identification labels of all materials generated between the packing start instruction and the packing completion instruction. The packaging box label can be at least one of a one-dimensional barcode, a two-dimensional barcode and text. Each packaging box label has a unique identifier. In one example, a single packaging box includes only one material. In another example, a single packaging box may include multiple materials. In one example, after receiving the packing start instruction, the identification label generation process can be started, and the identification label generation process can be stopped after receiving the packing completion instruction. Specifically, the packaging start button can be manually clicked to send the packaging start instruction to the system, and then the system starts to collect the first image. When the packaging is completed, the packaging completion button can be manually clicked to send the packaging completion instruction to the system. In this way, the identification labels of all materials generated between the packaging start instruction and the packaging completion instruction can be recorded, and the corresponding packaging box labels can be generated.

[0090] When loading materials during the production process, you can query the storage location of the packaging box containing the required materials in the system. After obtaining the packaging box according to the storage location, you can scan the packaging box label on the packaging box to determine whether the packaging box includes the required materials. Then you can scan the identification labels corresponding to each material in the packaging box to determine whether the materials in the packaging box are the required materials, thereby realizing the loading of materials during the production process.

[0091] In an embodiment of the present application, in response to a packing completion instruction, a packaging box label is generated according to an identification label corresponding to at least one material between the packing start instruction and the packaging completion instruction, thereby allowing the material to be stored in the packaging box, and the product information of each material packaged in the packaging box can be indicated by the packaging box label, and the location of the packaging box can be queried through the unique identifier corresponding to the packaging box when in use, thereby allowing the material to be packed in the packaging box and the packaging box to be stored in the warehouse, thereby realizing the storage of the material.

[0092] In a possible implementation, when comparing the first image with the reference image to obtain the comparison result, the first contour of the material image in the first image can be extracted, and the second contour of the material image in the reference image can be extracted, and the first contour is compared with the second contour to obtain the comparison result, or, multiple first reference areas in the first image are determined, and multiple second reference areas in the reference image are determined, wherein the first reference area corresponds to the second reference area one-to-one, and the first reference area is compared with the corresponding second reference area, and multiple sub-similarity corresponding to the multiple first reference areas is determined respectively, and the comparison result is obtained according to the multiple sub-similarity.

[0093] When obtaining the comparison result, the first contour of the material image in the first image and the second contour of the material image in the reference image can be compared to see whether the first contour and the second contour overlap. This comparison method can be applied to a single part or to situations where the contours of the same batch of purchased materials are significantly different.

[0094] It is also possible to determine multiple first reference areas in the first image, and to determine multiple second reference areas in the reference image. The first reference area and the second reference area correspond one to one, that is, they are located at the same position of the image, for example: the central area of ​​the image, the four corner areas of the image, etc. The first reference area is compared with the corresponding second reference area to determine the sub-similarity between the first reference area and the second reference area. The sub-similarity can indicate the degree of similarity between the first reference area and the second reference area. For example: if the sub-similarity is 95%, then the degree of similarity between the first reference area and the second reference area is 95%; if the sub-similarity is 50%, then the degree of similarity between the first reference area and the second reference area is 50%, etc. The comparison result is obtained according to the sub-similarities corresponding to all the first reference areas. In one example, the sub-similarities corresponding to each first reference area can be weighted to determine the similarity between the first image and the reference image, and it is determined whether the similarity meets the similarity threshold, thereby obtaining the comparison result. In another example, it is determined whether the sub-similarities corresponding to each first reference area meet the similarity threshold, thereby obtaining the comparison result. This comparison method can be applied to situations where the contour differences of purchased materials are small, for example: purchased materials are all packed in boxes, trays, etc.

[0095] It should be noted that the comparison method in the above embodiment can also be used to compare the second image with the reference image, which will not be described in detail here.

[0096] In an embodiment of the present application, when comparing a first image with a reference image, it is possible to compare whether a first outline of the material image in the first image and a second outline of the material image in the reference image overlap, and it is also possible to compare the sub-similarity between a first reference area in the first image and a second reference area in the second image, thereby obtaining a comparison result between the first image and the reference image. Different comparison methods can be used to compare materials in different situations, thereby being suitable for image comparison of materials in different packaging methods, and can improve the accuracy of the comparison results.

[0097] In the present application, the method operation in any of the above embodiments can be implemented by writing program code. Specifically, the database call and the method operation in any of the above embodiments can be implemented by programming in Python language. The specific programming language is not limited in this application.

[0098] Figure 4Schematic diagram of an identification tag generating device provided in an embodiment of the present application. Figure 4 As shown, the identification label generating device includes: an acquisition unit 401, which is used to acquire a first image of a material, a first acquisition unit 402, which is used to acquire identification information and product information of the material based on the first image, a second acquisition unit 403, which is used to acquire a corresponding reference image based on the identification information, a comparison unit 404, which is used to compare the first image with the reference image to obtain a comparison result, and a generation unit 405, which is used to generate an identification label for the material at least based on the product information if the comparison result indicates that the identification information matches the material.

[0099] In an embodiment of the present application, the acquisition unit 401 can be used to execute step 101 in the above method embodiment, the first acquisition unit 402 can be used to execute step 102 in the above method embodiment, the second acquisition unit 403 can be used to execute step 103 in the above method embodiment, the comparison unit 404 can be used to execute step 104 in the above method embodiment, and the generation unit 405 can be used to execute step 105 in the above method embodiment.

[0100] In a possible implementation, the first acquisition unit 402 can also be used to obtain the order number of the purchased material; obtain the order including the material according to the order number; identify the first image to obtain the identification information of the material; and determine the product information of the material from the order according to the identification information.

[0101] In a possible implementation, the first acquisition unit 402 may also be used to recognize the barcode or the two-dimensional code included in the first image to obtain a recognition result; and to analyze the recognition result to obtain identification information of the material.

[0102] In a possible implementation, the first acquisition unit 402 may also be used to perform optical character recognition on the first image, and acquire identification information of the material from text information included in the first image.

[0103] In a possible implementation, the comparison unit 404 can also be used to determine recognition angle compensation and recognition position compensation based on the first image; perform image compensation on the first image based on the recognition angle compensation and recognition position compensation to obtain a second image; and compare the second image with the reference image to obtain a comparison result.

[0104] In a possible implementation, if the second image fails to match each reference image, a matching failure reminder is issued, and when an image adding instruction is received, the second image is added as a reference image, and the second image is associated with the identification information and then saved.

[0105] In one possible implementation, in response to a packing completion instruction, a packaging box label is generated based on an identification label corresponding to at least one material between the packing start instruction and the packing completion instruction, and the packaging box label is printed, wherein the packaging box label is at least used to indicate product information of at least one material.

[0106] Figure 5 is a schematic diagram of an electronic device provided in an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device. Figure 5 The electronic device 500 provided in the embodiment of the present application includes: a processor 502, a communication interface 504, a memory 506, and a communication bus 508. Among them:

[0107] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .

[0108] The communication interface 504 is used to communicate with other electronic devices or servers.

[0109] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in any of the aforementioned identification tag generation method embodiments.

[0110] Specifically, the program 510 may include program codes, which include computer operation instructions.

[0111] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0112] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0113] The program 510 can be specifically used to enable the processor 502 to execute the identification tag generation method in any of the aforementioned embodiments.

[0114] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in any of the above-mentioned identification tag generation method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.

[0115] By using the electronic device of the embodiment of the present application, the first image of the material is collected, and the identification information and product information of the material are determined according to the first image, so that the material can be identified and the specific information of the material can be determined, so that the identification label corresponding to the material can be generated, and the generation of the identification label of the material is realized. Compared with the prior art in which the identification label corresponding to the material is generated by manually identifying the material and manually inputting information, the manual labor intensity is low. And because the corresponding reference image is obtained according to the identification information, and the first image is compared with the reference image, if the identification information matches the material, the identification label of the material is generated at least according to the product information, so that the identification of the material can be verified, and the identification error leading to the generation error of the identification label can be prevented, and the situation that the manufacturer's manufacturer label does not match the material (for example: the material shipped by the manufacturer is wrongly labeled, etc.) can be prevented from occurring, thereby ensuring that the information indicated in the identification label corresponds to the material, and compared with the prior art, the situation that the error of the identification label generated by the manual generation can be prevented, and the accuracy of the identification label is improved.

[0116] The present application also provides a computer-readable storage medium that stores instructions for a machine to execute the identification tag generation method described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0117] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.

[0118] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0119] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0120] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0121] The embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer executable instructions, which, when executed, cause at least one processor to execute the identification tag generation method provided in the above embodiments. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.

[0122] It should be noted that not all steps and modules in the above-mentioned processes and system structure diagrams are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.

[0123] Nouns and pronouns relating to persons in this patent application are not limited to a specific gender.

[0124] In the above embodiments, the hardware module can be implemented mechanically or electrically. For example, a hardware module can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware module can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. The specific implementation method (mechanical method, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.

[0125] The present application is presented and described in detail above through the accompanying drawings and preferred embodiments; however, the present application is not limited to these disclosed embodiments, and those skilled in the art may know based on the above-mentioned multiple embodiments that the code review methods in the above-mentioned different embodiments may be combined to obtain more embodiments of the present application, and these embodiments are also within the protection scope of the present application.

Claims

1. A method (100) for generating an identification tag, characterized in that: include: capturing a first image of a material; Acquire identification information and product information of the material according to the first image; Acquire a corresponding reference image according to the identification information; Comparing the first image with the reference image to obtain a comparison result; If the comparison result indicates that the identification information matches the material, an identification label for the material is generated based at least on the product information.

2. The method according to claim 1, characterized in that The acquiring identification information and product information of the material according to the first image includes: Get the order number for purchasing the material; Obtain an order including the material according to the order number; Recognize the first image to obtain identification information of the material; According to the identification information, product information of the material is determined from the order.

3. The method according to claim 2, characterized in that The identifying the first image to obtain identification information of the material includes: Recognize the barcode or QR code included in the first image to obtain a recognition result; The recognition result is analyzed to obtain identification information of the material.

4. The method according to claim 2, characterized in that: The identifying the first image to obtain identification information of the material includes: Optical character recognition is performed on the first image to obtain identification information of the material from text information included in the first image.

5. The method according to claim 1, characterized in that The comparing the first image with the reference image to obtain a comparison result includes: Determining recognition angle compensation and recognition position compensation according to the first image; Performing image compensation on the first image according to the recognition angle compensation and the recognition position compensation to obtain a second image; The second image is compared with the reference image to obtain a comparison result.

6. The method according to claim 5, characterized in that The method further comprises: If the second image fails to match with each of the reference images, a matching failure reminder is issued, and when an image adding instruction is received, the second image is added as the reference image, and the second image is associated with the identification information and then saved.

7. The method according to claim 1, characterized in that The method further comprises: In response to a packing completion instruction, a packaging box label is generated according to an identification label corresponding to at least one material between the packing start instruction and the packing completion instruction, and the packaging box label is printed, wherein the packaging box label is at least used to indicate product information of the at least one material.

8. The method according to claim 1, characterized in that The comparing the first image with the reference image to obtain a comparison result includes: Extracting a first contour of the material image in the first image, and extracting a second contour of the material image in the reference image; Comparing the first profile with the second profile to obtain the comparison result; Alternatively, a plurality of first reference regions in the first image are determined, and a plurality of second reference regions in the reference image are determined, wherein the first reference regions correspond to the second reference regions one by one; Comparing the first reference region with the corresponding second reference region, and respectively determining a plurality of sub-similarity corresponding to the plurality of first reference regions; The comparison result is obtained according to the multiple sub-similarity.

9. An identification label generating device (400), characterized in that: include: A collection unit (401), used for collecting a first image of a material; A first acquisition unit (402), configured to acquire identification information and product information of the material according to the first image; A second acquisition unit (403), configured to acquire a corresponding reference image according to the identification information; A comparison unit (404), configured to compare the first image with the reference image to obtain a comparison result; A generating unit (405) is configured to generate an identification label for the material at least based on the product information if the comparison result indicates that the identification information matches the material.

10. An electronic device (500), characterized in that: include: A processor (502), a communication interface (504), a memory (506) and a communication bus (508), wherein the processor (502), the memory (506) and the communication interface (504) communicate with each other via the communication bus (508); The memory (506) is used to store at least one executable instruction, and the executable instruction enables the processor (502) to perform operations corresponding to the identification tag generation method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a processor, cause the processor to execute the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The computer program product is tangibly stored on a computer-readable medium and comprises computer-executable instructions which, when executed, cause at least one processor to perform the method according to any one of claims 1-8.