Label mistake proofing control method and device, storage medium and electronic equipment

By obtaining the device serial number and matching label information, and using preset methods to match and paste labels, the problem of label pasting errors and time-consuming is solved, and the label pasting efficiency and the smoothness of the assembly process are improved.

CN119204063APending Publication Date: 2024-12-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410993260.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

During the assembly process of servers and personal computers, the label pasting process is prone to errors, which leads to excessive time-consuming and affects the normal execution of subsequent processes.

Method used

By obtaining the entire machine serial number of the target device to be pasted, the associated tag material information is obtained from the production execution system, and the tag and target tag are treated with preset matching methods (based on label size, color similarity and content information) Make matching and control the labeling machine for accurate pasting.

Benefits of technology

It reduces the probability of errors in the label pasting process, improves the label pasting efficiency, reduces the time-consuming process of the label process, and ensures the smooth progress of subsequent processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119204063A_ABST
    Figure CN119204063A_ABST
Patent Text Reader

Abstract

The invention provides a label mistake proofing control method and device, a storage medium and electronic equipment, and relates to the technical field of computers.The method comprises the steps that the complete machine serial number of target equipment to be labeled is obtained, and material information of multiple labels associated with the complete machine serial number is obtained from a production execution system; a target label needing to be pasted currently is determined, and the labeling machine is controlled to obtain a to-be-pasted label with the same material code as the target label from a material area; and matching the to-be-pasted label with the target label by using a preset matching method, and controlling the labeling machine to paste the to-be-pasted label to a specified position of the target equipment under the condition of successful matching. According to the label mistake proofing control method and device, the storage medium and the electronic equipment, the probability of errors in the label pasting process is reduced, the label pasting efficiency is improved, and the time consumption of the label procedure is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a label error prevention control method, device, storage medium and electronic device. Background Art

[0002] The assembly process of servers and personal computers involves many processes. Only when one process is completed can the subsequent process be carried out. If a process takes time, it will affect the normal execution of the subsequent process, for example, the labeling process.

[0003] The labeling process requires the pasting of multiple labels. In the related technology, the operator usually relies on experience to identify and paste the labels. However, this labeling method is very likely to cause label pasting errors or omissions. In addition, when label pasting errors occur and need to be reworked, the labels are prone to wrinkles, dirt, etc., which makes the labeling process take too long and affects the subsequent assembly process.

[0004] Based on this, there is an urgent need for a label pasting method to reduce the probability of errors in the label pasting process, improve the efficiency of label pasting, and reduce the time consumption of the labeling process. Summary of the invention

[0005] The purpose of the present application is to provide a label error prevention control method, device, storage medium and electronic device, which are used to reduce the probability of errors in the label pasting process, improve the efficiency of label pasting, and reduce the time consumption of the labeling process.

[0006] The present application provides a label error prevention control method, comprising: Obtain the whole machine serial number of the target device to which the label is to be pasted, and obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; determine the target label that needs to be pasted currently, and control the labeling machine to obtain the label to be pasted with the same material code as the target label from the material area; use a preset matching method to match the label to be pasted with the target label, and if the match is successful, control the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0007] Optionally, the matching of the label to be pasted with the target label using a preset matching method includes: acquiring label size information of the label to be pasted, and judging whether the label to be pasted and the target label are the same based on a comparison result of the label size information of the label to be pasted and the label size information of the target label; when the comparison result indicates that the label to be pasted and the target label are the same, calculating a first color similarity between the label to be pasted and the target label, and judging whether the label to be pasted and the target label are the same based on the first color similarity between the label to be pasted and the target label; when the first color similarity indicates that the label to be pasted and the target label are the same, calculating a second color similarity between the label to be pasted and other labels among the multiple labels except the target label, and judging whether there are the same labels between the label to be pasted and the other labels based on the second color similarity between the label to be pasted and the other labels; when the second color similarity indicates that the label to be pasted and the other labels are not the same, determining that the label to be pasted and the target label are successfully matched.

[0008] Optionally, judging whether the label to be pasted and the target label are the same based on a comparison result of the label size information of the label to be pasted and the label size information of the target label includes: calculating a first difference in length between the label to be pasted and the target label, and calculating a second difference in width between the label to be pasted and the target label; and determining that the label to be pasted and the target label are the same when the first difference is less than a first preset difference threshold, and / or the second difference is less than a second preset difference threshold.

[0009] Optionally, the color similarity of any two labels is obtained based on the following steps: obtaining the color corresponding to each pixel in the first label image of the first label, calculating the number of pixels corresponding to each color, and calculating the pixel ratio corresponding to each color in the first label image based on the number of pixels corresponding to each color; and obtaining the color corresponding to each pixel in the second label image of the second label, calculating the number of pixels corresponding to each color, and calculating the pixel ratio corresponding to each color in the second label image based on the number of pixels corresponding to each color; calculating the difference between the pixel ratios corresponding to each color in the first label image and the second label image to obtain the difference in pixel ratios corresponding to each color; performing weighted summation on the difference in pixel ratios corresponding to each color to obtain the color similarity between the first label and the second label; wherein the first label is one of the any two labels, and the second label is the other of the any two labels.

[0010] Optionally, the use of a preset matching method to match the label to be pasted with the target label includes: when the second color similarity indicates that there is a label to be identified that is the same as the label to be pasted among the other labels, using image recognition technology to identify whether the label content of the label to be pasted and the label to be identified are the same; when the label content of the label to be pasted and the label to be identified are different, determining that the label to be pasted and the target label are successfully matched.

[0011] Optionally, the matching of the label to be pasted with the target label using a preset matching method includes: when the comparison result indicates that the label to be pasted is different from the target label, or the first color similarity indicates that the label to be pasted is different from the target label, or the label content of the label to be pasted and the label to be identified are the same, determining that the label to be pasted fails to match the target label and generating an alarm reminder; wherein the alarm reminder is used to remind the user that an error has occurred in the label currently pasted.

[0012] Optionally, after controlling the labeling machine to paste the label to be pasted to the specified position of the target device, the method further includes: sending a pasting success message to the production execution system; wherein the pasting success message is used for: when each of the multiple labels is pasted to the specified position of the target device, the production execution system allows the user to perform related operations of subsequent processes.

[0013] The present application also provides a label error prevention control device, comprising: An information acquisition module is used to obtain the whole machine serial number of the target device to which the label is to be pasted, and to obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one piece of material information; the material information includes: material code, label size information, and label image; a control module is used to determine the target label that needs to be pasted at present, and control the labeling machine to obtain the label to be pasted with the same material code as the target label from the material area; a matching module is used to match the label to be pasted with the target label using a preset matching method; the control module is also used to control the labeling machine to paste the label to be pasted to the specified position of the target device when the match is successful; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0014] Optionally, the information acquisition module is further used to acquire label size information of the label to be pasted; the matching module is specifically used to determine whether the label to be pasted is the same as the target label based on a comparison result of the label size information of the label to be pasted and the label size information of the target label; the matching module is specifically used to calculate the first color similarity between the label to be pasted and the target label when the comparison result indicates that the label to be pasted is the same as the target label, and determine whether the label to be pasted is the same as the target label based on the first color similarity between the label to be pasted and the target label; the matching module is specifically used to calculate the second color similarity between the label to be pasted and other labels among the multiple labels except the target label when the first color similarity indicates that the label to be pasted is the same as the target label, and determine whether the label to be pasted and the other labels have the same label based on the second color similarity between the label to be pasted and the other labels; the matching module is specifically used to determine that the label to be pasted is successfully matched with the target label when the second color similarity indicates that the label to be pasted is different from the other labels.

[0015] Optionally, the matching module is specifically used to calculate a first difference in length between the label to be pasted and the target label, and to calculate a second difference in width between the label to be pasted and the target label; the matching module is also specifically used to determine that the label to be pasted is the same as the target label when the first difference is less than a first preset difference threshold and / or the second difference is less than a second preset difference threshold.

[0016] Optionally, the matching module is specifically used to obtain the color corresponding to each pixel in the first label image of the first label, calculate the number of pixels corresponding to each color, and calculate the pixel ratio of each color in the first label image based on the number of pixels corresponding to each color; and obtain the color corresponding to each pixel in the second label image of the second label, calculate the number of pixels corresponding to each color, and calculate the pixel ratio of each color in the second label image based on the number of pixels corresponding to each color; the matching module is specifically used to calculate the difference between the pixel ratios corresponding to each color in the first label image and the second label image to obtain the difference in pixel ratios corresponding to each color; the matching module is specifically used to perform weighted summation on the difference in pixel ratios corresponding to each color to obtain the color similarity between the first label and the second label; wherein the first label is one of the two labels, and the second label is the other of the two labels.

[0017] Optionally, the matching module is specifically used to use image recognition technology to identify whether the label to be pasted and the label to be identified have the same label content when the second color similarity indicates that there is a label to be identified that is the same as the label to be pasted among the other labels; the matching module is also specifically used to determine that the label to be pasted and the target label are successfully matched when the label content of the label to be pasted and the label to be identified are different.

[0018] Optionally, the matching module is also used to determine that the label to be pasted fails to match the target label when the similarity indicates that the label to be pasted is different from the target label, or when the label content of the label to be pasted is the same as that of the label to be identified, and generate an alarm reminder; wherein the alarm reminder is used to remind the user that an error has occurred in the label currently pasted.

[0019] Optionally, the device also includes: a sending module; the sending module is used to send a paste success message to the production execution system; wherein the paste success message is used for: when each of the multiple labels is pasted to the specified position of the target device, the production execution system allows the user to perform related operations of subsequent processes.

[0020] The present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned label error prevention control methods.

[0021] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned label error prevention control methods are implemented.

[0022] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned label error prevention control methods are implemented.

[0023] The control method, device, storage medium and electronic device for label error prevention provided by the present application, first, obtain the whole machine serial number of the target device to be labeled, and obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; then, determine the target label that needs to be pasted at present, and control the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; finally, use a preset matching method to match the label to be pasted with the target label, and if the match is successful, control the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the label; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image. In this way, the probability of error in the label pasting process can be reduced, the efficiency of label pasting can be improved, and the time consumption of the labeling process can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 This is one of the flow charts of the label error prevention control method provided by this application; Figure 2 This is the second flow chart of the label error prevention control method provided by the present application; Figure 3 It is a structural schematic diagram of the label error prevention control device provided by the present application; Figure 4 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] In the relevant technical summary, as the number of server machine models and configurations increases, the types of labels used by each model increase. When assembling each model, labels are prone to mis-sticking, missing labels, and other operational omissions. When replacing and reworking wrong labels, it is easy to cause problems such as wrinkles and dirt on the labels, affecting production efficiency and operation quality.

[0029] In response to the above-mentioned technical problems existing in the related technology, an embodiment of the present application provides a control method for label error prevention, which realizes the automatic pasting of the entire label by controlling the labeling machine, and prevents the occurrence of wrong pasting through multi-level identification and judgment during the pasting process, thereby reducing the probability of errors in the label pasting process, improving the efficiency of label pasting, and reducing the time consumption of the labeling process.

[0030] In addition, in the whole process of machine assembly label pasting operation control, the method realizes precise control according to material coding through the Manufacturing Execution System (MES) program, improves the original identification operation mode based on experience, and optimizes the label pasting operation process. The original operation mode cannot accurately control the label pasting, and is prone to problems such as operation omission and assembly misoperation. Now the systematic control method solves the problem of low efficiency and accuracy of manual control, improves the control accuracy of label pasting during the assembly operation, and ensures the smooth and orderly progress of the entire production assembly process. This method improves the efficiency of label pasting and reduces the low production efficiency caused by high employee mobility, unfamiliarity with the labels in the machine model, unskilled operation, large differences in machine model configuration and many labels. This method adds a system anti-fool and anti-error mechanism through the label selection state and the "Confirm" button, avoiding the problem of label pasting errors and omissions during the assembly operation. This method optimizes the material code and the image display of the specification to make the machine label pasting operation process in the production order more reasonable and accurate, and improves the accuracy of label pasting quality and efficiency control. The method uses system control and automatic labeling machine pasting operations to double-check label coding and quantity, thereby reducing the risk of manual operation.

[0031] The label error prevention control method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0032] like Figure 1 As shown, a label error prevention control method provided in an embodiment of the present application may include the following steps 101 to 103: Step 101: obtain the whole machine serial number of the target device to be labeled, and obtain material information of multiple labels associated with the whole machine serial number from a production execution system.

[0033] Among them, one label corresponds to one material information; the material information includes: material code, label size information, and label image.

[0034] For example, in the embodiment of the present application, the serial number on the target device can be identified by a camera or other scanning device provided on the labeling machine to obtain the whole machine serial number of the target device. Afterwards, the material information of multiple labels related to the whole machine serial number is searched in the production execution system MES. For example, the material code of the label, the label size information of the label, the label image of the label, etc.

[0035] Exemplarily, after the material information of each label among the above-mentioned multiple labels is obtained, the pasting operation of each label can be completed based on the material information of each label.

[0036] Step 102: determine the target label that needs to be pasted currently, and control the labeling machine to obtain a label to be pasted with the same material code as that corresponding to the target label from the material area.

[0037] Exemplarily, after determining the multiple labels to be pasted, the multiple labels can be pasted in a preset pasting order or in a random order. The target label is the label that needs to be pasted at the current moment among the multiple labels.

[0038] It should be noted that each of the above-mentioned multiple labels can be pasted according to the label error prevention control method provided in the embodiment of the present application.

[0039] For example, in a production workshop, all labels that need to be pasted are placed in the material area, and labels with different material codes are stored in different containers, and each container stores multiple labels. When a label corresponding to a material code needs to be pasted, the labeling machine can be controlled to find the corresponding container from the material area according to the material code, and a label is clamped from the container and pasted to the position specified by the target device.

[0040] It should be noted that in the embodiment of the present application, the label pasting position has been determined during the product design stage, and the labeling machine can paste the corresponding label to the position indicated by the pasting position information according to the pasting position information indicated by the production process information.

[0041] It is understandable that after determining the target label to be pasted and controlling the labeling machine to obtain the label to be pasted corresponding to the material code of the target label from the material area, it is necessary to determine whether the label to be pasted is the target label to be pasted. In the related art, the label image of the label to be pasted and the label image of the target label can be image recognized and matched by image recognition technology to determine whether the two label images are the same, but such a matching method has a large amount of calculation and consumes more time. Therefore, in the embodiment of the present application, a matching method with a smaller amount of calculation and a faster calculation speed can be used to perform multiple levels of matching, which can not only quickly complete the matching and determine whether the label is correct, but also has lower requirements on the computing power of the labeling machine controller, and can be applied to devices with lower computing power.

[0042] Step 103: Use a preset matching method to match the label to be pasted with the target label, and if the matching is successful, control the labeling machine to paste the label to be pasted to a specified position of the target device.

[0043] Among them, the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0044] Exemplarily, in an embodiment of the present application, firstly, it is determined whether two labels (i.e., the target label and the label to be pasted) are the same based on the label size information. If the label sizes of the two labels are different, it can be directly determined that the label to be pasted is not the label to be pasted at the moment. Otherwise, it is determined whether the two labels are the same based on the color similarity. If the color similarity of the two labels is less than the preset similarity threshold, it can be directly determined that the two labels are different. Otherwise, it is further determined whether there is a label among the above-mentioned multiple labels whose color similarity with the label to be pasted is greater than or equal to the preset similarity threshold. If not, it can be determined that the label to be pasted successfully matches the target label, that is, the label to be pasted is the label that needs to be pasted at the current moment. Otherwise, it is necessary to further use image recognition technology to determine whether the contents of the two labels are the same.

[0045] It can be understood that in the embodiments of the present application, in most cases, it is only necessary to calculate the size of the label and count the pixel colors of the label image to complete the label matching. Compared with the matching method in the related art, the amount of calculation is greatly reduced.

[0046] Specifically, in the above step 103, the step of determining whether the two labels are the same based on the label size information may further include the following steps 103a, 103b, 103c and 103d: Step 103a: Acquire label size information of the label to be pasted, and based on a comparison result between the label size information of the label to be pasted and the label size information of the target label, determine whether the label to be pasted is the same as the target label.

[0047] Exemplarily, the label size information of the label to be pasted can be calculated through the label image captured by a camera arranged on the labeling machine, and the label size information of the target label can be directly obtained from the production execution system.

[0048] Specifically, the above step 103a may further include the following steps 103a1 and 103a2: Step 103a1, calculating a first difference between the length of the label to be pasted and the target label, and calculating a second difference between the width of the label to be pasted and the target label.

[0049] Step 103a2: When the first difference is smaller than a first preset difference threshold, and / or the second difference is smaller than a second preset difference threshold, determine that the label to be attached is the same as the target label.

[0050] Exemplarily, when the lengths and / or widths of two tags are different, it can be directly determined that the two tags are different tags. In this case, it can be directly determined that the two tags fail to match without performing calculations in subsequent steps.

[0051] Step 103b: when the comparison result indicates that the label to be pasted is the same as the target label, calculate the first color similarity between the label to be pasted and the target label, and determine whether the label to be pasted is the same as the target label based on the first color similarity between the label to be pasted and the target label.

[0052] Step 103c: when the first color similarity indicates that the label to be pasted is the same as the target label, calculate the second color similarity between the label to be pasted and other labels among the multiple labels except the target label, and determine whether the label to be pasted and the other labels have the same label based on the second color similarity between the label to be pasted and the other labels.

[0053] Specifically, the color similarity of any two labels in the above steps 103b and 103c is obtained based on the following steps 103b1 to 103b3: Step 103b1, obtain the color corresponding to each pixel in the first label image of the first label, calculate the number of pixels corresponding to each color, and based on the number of pixels corresponding to each color, calculate the proportion of pixels corresponding to each color in the first label image; and obtain the color corresponding to each pixel in the second label image of the second label, calculate the number of pixels corresponding to each color, and based on the number of pixels corresponding to each color, calculate the proportion of pixels corresponding to each color in the second label image.

[0054] Step 103b2: Calculate the difference in pixel proportions corresponding to each color in the first label image and the second label image to obtain the difference in pixel proportions corresponding to each color.

[0055] For example, in the embodiment of the present application, colors can be divided into red, orange, yellow, green, cyan, blue and purple, or red, green and blue, and each color has a corresponding red, green and blue (RGB) value range. When calculating the pixel ratio, the RGB value of each pixel in the label image can be obtained, and the color corresponding to each pixel can be determined according to the RGB value range corresponding to each color. After that, the number of pixels contained in each color is counted, and the pixel ratio corresponding to each color is calculated.

[0056] Step 103b3: Perform a weighted summation on the pixel ratio differences corresponding to each color to obtain the color similarity between the first label and the second label.

[0057] The first tag is one of the two tags, and the second tag is the other of the two tags.

[0058] For example, after calculating the pixel ratio corresponding to each color of the label image, the pixel ratio difference corresponding to each color of the two label images can be calculated, and the color similarity of the two labels can be obtained by weighted summation based on the pixel ratio difference.

[0059] For example, taking the colors red, green and blue as an example, the pixel proportions of each color of label 1 (i.e. the label to be attached) are 10%, 70% and 20% respectively; the pixel proportions of each color of label 2 (i.e. the target label) are 11%, 68% and 21% respectively. The difference in pixel proportions of the two labels are -1%, 2% and -1% respectively. Taking the weight of each color as an example, the weighted sum is 0, and the color similarity of the two labels is 100% after subtracting this value from 100.

[0060] It should be noted that the color similarity calculation method provided in the embodiment of the present application sets an RGB value range for each color, and therefore, the influence of color difference can be ignored to a certain extent.

[0061] Step 103d: When the second color similarity indicates that the label to be pasted is different from the other labels, determine that the label to be pasted is successfully matched with the target label.

[0062] Exemplarily, when the color similarity between the label to be pasted and the target label is calculated to be greater than or equal to a preset similarity threshold based on the color similarity calculation method, it is necessary to further calculate the color similarity between the label to be pasted and other labels among the multiple labels except the target label. If the color similarities with other labels are all less than the preset similarity threshold, it can be determined that the label to be pasted matches the target label successfully. Otherwise, it is necessary to use image recognition technology to determine whether the label contents of the two labels are the same.

[0063] Specifically, the above step 103d may further include the following steps 103d1 and 103d2: Step 103d1: when the second color similarity indicates that there is a label to be identified that is the same as the label to be attached among the other labels, use image recognition technology to identify whether the label content of the label to be attached is the same as that of the label to be identified.

[0064] Step 103d2: When the label contents of the label to be attached and the label to be identified are different, it is determined that the label to be attached is successfully matched with the target label.

[0065] Exemplarily, after it is determined that the label to be pasted matches the target label successfully, the label can be pasted to a designated position of the target device.

[0066] In a possible implementation, the above step 103 may further include the following step 103e: Step 103e: when the comparison result indicates that the label to be pasted is different from the target label, or the first color similarity indicates that the label to be pasted is different from the target label, or the label content of the label to be pasted is the same as that of the label to be identified, it is determined that the label to be pasted fails to match the target label, and an alarm is generated.

[0067] The warning reminder is used to remind the user that an error occurs in the label currently pasted.

[0068] Exemplarily, when it is determined in any of the above steps 103a, 103b, 103c and 103d that the two labels are different, it can be determined that the label to be pasted fails to match the target label, that is, the two labels are different labels, and the label to be pasted is not the label that needs to be pasted currently.

[0069] Optionally, in an embodiment of the present application, in order to prevent the user from erroneously entering the next step before the labels are pasted, it is necessary to prohibit the user from executing the operation of the next step before all the labels are pasted.

[0070] Exemplarily, after the above step 103, the label error prevention control method provided in the embodiment of the present application may further include the following step 104: Step 104: Send a paste success message to the production execution system.

[0071] The paste success message is used to allow the production execution system to allow the user to perform related operations of subsequent processes when each of the multiple labels is pasted to the designated position of the target device.

[0072] For example, after the labeling machine completes the pasting of each label, the labeling machine controller will send a success message to the production execution system, and the production execution system will determine whether the pasting of all labels has been completed. If so, the user can be allowed to perform related operations of subsequent processes.

[0073] Optionally, in an embodiment of the present application, the production execution system can display all labels in the production task list of the current device (i.e., the above-mentioned target device) in the form of images in the front-end window of the production execution system. Each label has a corresponding image and material code. When the label pasting process is operated, one-to-one operations are performed according to the label image and material code displayed in the front-end window of the production execution system. The automatic labeling machine pastes the labels and checks the number of labels in the production task list. When all labels are pasted, click the confirmation button in the window interface to continue with the subsequent process operations. This solves the problem of relying on manual memory recognition and operating based on experience, so that each label has a reference basis for pasting, avoiding the situation of incorrect label pasting, greatly improving the overall assembly efficiency and quality, and meeting the production needs of diversified machine configuration.

[0074] Specifically, Figure 2 As shown, it is a flow chart of the control method for label error prevention provided by the embodiment of the present application. First, when a label is added (for example, a newly coded label CP5901G000000000 is introduced), the product manufacturing MPE engineer initiates the material application notification engineering change notification ECN process, and publishes the coded label to the product lifecycle management PLM system. After the ECN process is reviewed, the PLM system automatically synchronizes the material code (CP5901G000000000) and specification sheet (including label size information, label image, etc.) of the label to the MES background system small piece picture prompt maintenance resource pool. When a label coded with CP5901G000000000 is used in a production order for a certain model, the MES backend system automatically obtains (see Figure 6 for the relevant program implementation) the specification sheet of the label coded with CP5901G000000000 in the order through the material code in the resource pool. The MES backend system pushes (see Figure 7 for the relevant program implementation) the received CP5901G000000000 label and specification sheet to the MES front-end small item picture display window for use in the labeling process.

[0075] When different models and different configuration labels are released, the PLM system will release the coding specification according to the pseudo-noise PN code of the label. After the ECN process review is completed, the PLM system will automatically synchronize the label specification to the MES backend system. When the label is used in the production order, the label code and specification will be available in the MES system (for example, the bill of materials for 2NF5466M7C0002T). During machine production and assembly, after scanning the machine serial number at the label pasting process station, when pasting the label (the production process information indicates the pasting position information), each time the PN code of the label in the production order is scanned, the label becomes selected in the MES front window, and the corresponding label is pasted according to the label code and specification shown in the window icon. The automatic labeling machine pastes the label, checks the number of labels in the task sheet, and when all the label specifications displayed in the front window are selected (that is, when all the labels in the production order have been pasted), the "Confirm" button in the MES front window becomes clickable. Click the "Confirm" button to close the front window, and all the labels in the production order have been pasted, indicating that the label pasting process is completed and the subsequent process is continued. If there are unselected label specifications in the MES front-end window, it means that all labels in the production order have not been pasted. At this time, the "Confirm" button is not clickable, and you cannot click the "Confirm" button to close the front-end window to avoid missing labels. The entire label pasting operation process is controlled by the program, which greatly improves the efficiency and quality of label pasting, and optimizes the problems that affect assembly efficiency and quality, such as label pasting errors and omissions during the assembly process.

[0076] The control method of label error prevention provided by the embodiment of the present application, first, obtain the whole machine serial number of the target device to be pasted with the label, and obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; then, determine the target label that needs to be pasted at present, and control the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; finally, use the preset matching method to match the label to be pasted with the target label, and if the match is successful, control the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method includes at least one of the following: judging whether the two labels are the same based on the label size information, judging whether the two labels are the same based on the color similarity, and judging whether the two labels are the same based on the content information contained in the label; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image. In this way, the probability of error in the label pasting process can be reduced, the efficiency of label pasting can be improved, and the time consumption of the labeling process can be reduced.

[0077] It should be noted that the control method for label error prevention provided in the embodiment of the present application can be executed by a control device for label error prevention, or a control module in the control device for label error prevention for executing the control method for label error prevention. In the embodiment of the present application, the control method for label error prevention executed by a control device for label error prevention is taken as an example to illustrate the control device for label error prevention provided in the embodiment of the present application.

[0078] It should be noted that, in the embodiments of the present application, the label error prevention control methods shown in the above-mentioned method drawings are all illustrated by combining one of the drawings in the embodiments of the present application as an example. In specific implementation, the label error prevention control methods shown in the above-mentioned method drawings can also be implemented in combination with any other drawings that can be combined as shown in the above-mentioned embodiments, which will not be repeated here.

[0079] The label error prevention control device provided in the present application is described below, and the label error prevention control method described below and described above can refer to each other.

[0080] Figure 3 A schematic diagram of the structure of the label error prevention control device provided in the embodiment of the present application, such as Figure 3 As shown, specifically including: The information acquisition module 301 is used to obtain the whole machine serial number of the target device to be labeled, and obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; the control module 302 is used to determine the target label that needs to be pasted at present, and control the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; the matching module 303 is used to match the label to be pasted with the target label using a preset matching method; the control module 302 is also used to control the labeling machine to paste the label to be pasted to the specified position of the target device when the matching is successful; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0081] Optionally, the information acquisition module 301 is further used to acquire label size information of the label to be pasted; the matching module 303 is specifically used to determine whether the label to be pasted is the same as the target label based on a comparison result between the label size information of the label to be pasted and the label size information of the target label; the matching module 303 is specifically used to calculate the first color similarity between the label to be pasted and the target label when the comparison result indicates that the label to be pasted is the same as the target label, and determine whether the label to be pasted is the same as the target label based on the first color similarity between the label to be pasted and the target label. The matching module 303 is further configured to calculate the second color similarity between the label to be pasted and other labels among the multiple labels except the target label when the first color similarity indicates that the label to be pasted is the same as the target label, and determine whether the label to be pasted and other labels have the same label based on the second color similarity between the label to be pasted and the other labels; the matching module 303 is further configured to determine that the label to be pasted successfully matches the target label when the second color similarity indicates that the label to be pasted is different from the other labels.

[0082] Optionally, the matching module 303 is specifically used to calculate a first difference in length between the label to be pasted and the target label, and to calculate a second difference in width between the label to be pasted and the target label; the matching module 303 is also specifically used to determine that the label to be pasted is the same as the target label when the first difference is less than a first preset difference threshold and / or the second difference is less than a second preset difference threshold.

[0083] Optionally, the matching module 303 is specifically used to obtain the color corresponding to each pixel in the first label image of the first label, calculate the number of pixels corresponding to each color, and calculate the pixel ratio of each color in the first label image based on the number of pixels corresponding to each color; and obtain the color corresponding to each pixel in the second label image of the second label, calculate the number of pixels corresponding to each color, and calculate the pixel ratio of each color in the second label image based on the number of pixels corresponding to each color; the matching module 303 is also specifically used to calculate the difference between the pixel ratios corresponding to each color in the first label image and the second label image to obtain the difference in pixel ratios corresponding to each color; the matching module 303 is also specifically used to perform weighted summation on the difference in pixel ratios corresponding to each color to obtain the color similarity between the first label and the second label; wherein the first label is one of the two labels, and the second label is the other of the two labels.

[0084] Optionally, the matching module 303 is specifically used to use image recognition technology to identify whether the label to be pasted and the label to be identified have the same label content when the second color similarity indicates that there is a label to be identified that is the same as the label to be pasted among the other labels; the matching module 303 is also specifically used to determine that the label to be pasted and the target label are successfully matched when the label content of the label to be pasted and the label to be identified are different.

[0085] Optionally, the matching module 303 is also used to determine that the label to be pasted fails to match the target label when the similarity indicates that the label to be pasted is different from the target label, or when the label content of the label to be pasted is the same as that of the label to be identified, and generate an alarm reminder; wherein the alarm reminder is used to remind the user that an error occurs in the label currently pasted.

[0086] Optionally, the device also includes: a sending module; the sending module is used to send a paste success message to the production execution system; wherein the paste success message is used for: when each of the multiple labels is pasted to the specified position of the target device, the production execution system allows the user to perform related operations of subsequent processes.

[0087] The control device for label error prevention provided by the present application first obtains the whole machine serial number of the target device to which the label is to be pasted, and obtains the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; then, determines the target label that needs to be pasted at present, and controls the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; finally, uses a preset matching method to match the label to be pasted with the target label, and in the case of successful matching, controls the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the label; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image. In this way, the probability of error in the label pasting process can be reduced, the efficiency of label pasting can be improved, and the time consumption of the labeling process can be reduced.

[0088] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor (processor) 410 , a communication interface (Communications Interface) 420 , a memory (memory) 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to execute the label error prevention control method, which includes: obtaining the whole machine serial number of the target device to which the label is to be pasted, and obtaining the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; determining the target label that needs to be pasted currently, and controlling the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; using a preset matching method to match the label to be pasted with the target label, and if the match is successful, controlling the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0089] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0090] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the label error prevention control method provided by the above methods, and the method includes: obtaining the whole machine serial number of the target device to be labeled, and obtaining the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; determining the target label that needs to be pasted at present, and controlling the labeling machine to obtain material information from the material The method comprises the following steps: obtaining a label to be pasted having the same material code as that corresponding to the target label in the area; matching the label to be pasted with the target label using a preset matching method, and controlling the labeling machine to paste the label to be pasted to a specified position of the target device if the matching is successful; wherein the preset matching method comprises at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0091] On the other hand, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute the above-mentioned label error prevention control method, the method comprising: obtaining the whole machine serial number of the target device to which the label is to be pasted, and obtaining the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information comprises: material code, label size information, label image; determining the target label that needs to be pasted at present, and controlling the labeling machine to obtain the label to be pasted with the same material code corresponding to the target label from the material area; using a preset matching method to match the label to be pasted with the target label, and in the case of successful matching, controlling the labeling machine to paste the label to be pasted to the specified position of the target device; wherein the preset matching method comprises at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

[0092] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 embodiments of the present application.

Claims

1. A label error prevention control method, characterized in that: Applied to a labeling machine controller, the method comprises: Obtain the whole machine serial number of the target device to be labeled, and obtain the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one material information; the material information includes: material code, label size information, label image; Determine the target label that needs to be pasted currently, and control the labeling machine to obtain a label to be pasted with the same material code as that corresponding to the target label from the material area; Using a preset matching method to match the label to be pasted with the target label, and if the matching is successful, controlling the labeling machine to paste the label to be pasted to a specified position of the target device; Among them, the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

2. The method according to claim 1, characterized in that The using a preset matching method to match the label to be attached with the target label includes: Acquire label size information of the label to be attached, and determine whether the label to be attached is the same as the target label based on a comparison result of the label size information of the label to be attached and the label size information of the target label; If the comparison result indicates that the label to be pasted is the same as the target label, calculating the first color similarity between the label to be pasted and the target label, and judging whether the label to be pasted is the same as the target label based on the first color similarity between the label to be pasted and the target label; When the first color similarity indicates that the label to be pasted is the same as the target label, calculating the second color similarity between the label to be pasted and other labels among the multiple labels except the target label, and judging whether the label to be pasted and other labels have the same label based on the second color similarity between the label to be pasted and the other labels; When the second color similarity indicates that the label to be pasted is different from the other labels, it is determined that the label to be pasted matches the target label successfully.

3. The method according to claim 2, characterized in that The step of judging whether the label to be pasted is the same as the target label based on the comparison result of the label size information of the label to be pasted and the label size information of the target label comprises: Calculating a first difference between the length of the label to be attached and the target label, and calculating a second difference between the width of the label to be attached and the target label; When the first difference is smaller than a first preset difference threshold, and / or the second difference is smaller than a second preset difference threshold, it is determined that the label to be attached is the same as the target label.

4. The method according to claim 2, characterized in that: The color similarity of any two labels is obtained based on the following steps: Obtain the color corresponding to each pixel in the first label image of the first label, calculate the number of pixels corresponding to each color, and calculate the proportion of pixels corresponding to each color in the first label image based on the number of pixels corresponding to each color; and obtain the color corresponding to each pixel in the second label image of the second label, calculate the number of pixels corresponding to each color, and calculate the proportion of pixels corresponding to each color in the second label image based on the number of pixels corresponding to each color; Calculate the difference in pixel proportions corresponding to each color in the first label image and the second label image to obtain the difference in pixel proportions corresponding to each color; After weighted summing up the pixel proportion differences corresponding to each color, the color similarity between the first label and the second label is obtained; The first tag is one of the two tags, and the second tag is the other of the two tags.

5. The method according to claim 2, characterized in that: The using a preset matching method to match the label to be attached with the target label includes: When the second color similarity indicates that there is a label to be identified that is the same as the label to be attached among the other labels, using image recognition technology to identify whether the label contents of the label to be attached are the same as those of the label to be identified; In the case that the label contents of the label to be attached and the label to be identified are different, it is determined that the label to be attached is successfully matched with the target label.

6. The method according to claim 5, characterized in that The using a preset matching method to match the label to be attached with the target label includes: When the comparison result indicates that the label to be pasted is different from the target label, or the first color similarity indicates that the label to be pasted is different from the target label, or the label content of the label to be pasted is the same as that of the label to be identified, it is determined that the label to be pasted fails to match the target label, and an alarm is generated; The warning reminder is used to remind the user that an error occurs in the label currently pasted.

7. The method according to any one of claims 1 to 6, characterized in that After controlling the labeling machine to attach the label to be attached to a designated position of the target device, the method further includes: Sending a paste success message to the production execution system; The paste success message is used to allow the production execution system to allow the user to perform related operations of subsequent processes when each of the multiple labels is pasted to the designated position of the target device.

8. A label error prevention control device, characterized in that: Applied to a labeling machine controller, the device comprises: An information acquisition module is used to acquire the whole machine serial number of the target device to be labeled, and acquire the material information of multiple labels associated with the whole machine serial number from the production execution system; one label corresponds to one piece of material information; the material information includes: material code, label size information, label image; A control module, used for determining a target label that needs to be pasted currently, and controlling the labeling machine to obtain a label to be pasted having the same material code as that corresponding to the target label from a material area; A matching module, used for matching the label to be attached with the target label using a preset matching method; The control module is further used to control the labeling machine to attach the label to be attached to a designated position of the target device when the matching is successful; Among them, the preset matching method includes at least one of the following: judging whether two labels are the same based on label size information, judging whether two labels are the same based on color similarity, and judging whether two labels are the same based on content information contained in the labels; the color similarity is calculated based on the pixel color ratio of the two label images; the pixel color ratio is used to indicate the pixel ratio corresponding to each color in the label image.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the label error prevention control method as claimed in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the label error prevention control method as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Information prompting method, computer program product, electronic device and storage medium

    CN120387467A