CN111353558A - Error detection method and device for identification code and terminal - Google Patents

Error detection method and device for identification code and terminal Download PDF

Info

Publication number
CN111353558A
CN111353558A CN202010127592.9A CN202010127592A CN111353558A CN 111353558 A CN111353558 A CN 111353558A CN 202010127592 A CN202010127592 A CN 202010127592A CN 111353558 A CN111353558 A CN 111353558A
Authority
CN
China
Prior art keywords
data
identification code
identification
preset
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010127592.9A
Other languages
Chinese (zh)
Inventor
覃泰瑾
薛强
王松阳
钟俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD filed Critical SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD
Priority to CN202010127592.9A priority Critical patent/CN111353558A/en
Publication of CN111353558A publication Critical patent/CN111353558A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Factory Administration (AREA)

Abstract

The application is suitable for the technical field of identification codes, and provides an identification code error detection method, an identification code error detection device and a terminal, wherein the identification code error detection method comprises the following steps: scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected; judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition; if the identification data simultaneously meets the preset data format condition and the preset data range condition, confirming that the article to be detected is not subjected to identification code mispasting; the automatic detection of the identification code errors is realized, the error detection efficiency of the identification code is improved, and the labor cost is reduced.

Description

Error detection method and device for identification code and terminal
Technical Field
The present application belongs to the technical field of identification codes, and in particular, to an error detection method and apparatus for an identification code, and a terminal.
Background
In the production process of products, a factory can paste an identification code for identifying the products on the products, and when the identification code is pasted, the problem of pasting errors of the identification code is easy to occur. To solve this problem, at present, factories mainly perform error detection on identification codes through manual troubleshooting, or perform error detection on identification codes by using Automated Optical Inspection (AOI) equipment.
Manual troubleshooting requires that workers perform error detection on the identification codes one by one on the products, and error detection on the identification codes by using AOI equipment requires that the workers operate the AOI equipment; both methods require manual operation, and have low error detection efficiency and high labor cost.
Disclosure of Invention
The embodiment of the application provides an error detection method, device, terminal and computer readable storage medium for identification codes, which can realize automatic detection of identification code errors and improve the error detection efficiency of identification codes.
A first aspect of an embodiment of the present application provides an error detection method for an identification code, including:
scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected;
judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition;
and if the identification data simultaneously meets the preset data format condition and the preset data range condition, confirming that the article to be detected is not subjected to identification code mispasting.
A second aspect of the embodiments of the present application provides an apparatus for detecting an error in an identification code, including:
the scanning unit is used for scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected;
the judging unit is used for judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition;
and the detection unit is used for confirming that the identification code of the object to be detected is not wrongly pasted if the identification data simultaneously meets the preset data format condition and the preset data range condition.
A third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the steps of the method.
In the embodiment of the application, be located one or more identification code on the article that awaits measuring through the scanning, obtain the identification data of every identification code on the article that awaits measuring, then identification data satisfies simultaneously predetermine data format condition with when predetermineeing the data range condition, confirm the article that awaits measuring does not take place the identification code mistake and pastes for can satisfy simultaneously according to the identification data of every identification code on the article that awaits measuring predetermine data format condition with predetermine the data range condition, whether the article that awaits measuring takes place the identification code mistake and pastes is judged automatically, this testing process need not to operate artificially, has improved the error detection efficiency of identification code, has reduced the cost of labor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for detecting an error of an identification code according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating an implementation of step 102 provided in an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation process for determining whether an identification code of an object to be tested is missed in an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation process of modifying preset format data and a preset data value range according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for detecting an error of an identification code according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In the production process of products, a factory can paste an identification code for identifying the products on the products, and when the identification code is pasted, the problem of pasting errors of the identification code is easy to occur. To solve this problem, at present, factories mainly perform error detection on identification codes through manual troubleshooting, or perform error detection on identification codes by using Automated Optical Inspection (AOI) equipment.
Manual troubleshooting requires that workers perform error detection on the identification codes one by one on the products, and error detection on the identification codes by using AOI equipment requires that the workers operate the AOI equipment; both methods require manual operation, and have low error detection efficiency and high labor cost.
Based on this, embodiments of the present application provide an error detection method and apparatus for an identification code, a terminal, and a computer-readable storage medium, which can automatically perform error detection for the identification code, and improve the error detection efficiency for the identification code.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic diagram illustrating an implementation flow of an error detection method for an identification code according to an embodiment of the present application, where the method can be applied to a terminal, and can be executed by an error detection device for an identification code configured on the terminal, and is suitable for a situation where automatic detection of an identification code error needs to be implemented, so as to improve error detection efficiency of the identification code. The terminal can be an intelligent terminal such as a smart phone, a computer and a smart television.
The method for detecting the error of the identification code may include steps 101 to 103.
Step 101, scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected.
The identification code may include a bar code, a two-dimensional code, or other identification codes for identifying the product.
Generally, one or more identification codes are attached to the same object to be tested, and each identification code stores therein mark data corresponding to the identification code, where the mark data may be a Serial Number (SN) of a product, a Media Access Control (MAC) code, or the like.
In the embodiment of the application, one or more identification codes on the article to be detected are scanned, so that the identification data of each identification code on the article to be detected can be obtained, and whether the article to be detected is wrongly pasted with the identification code can be judged according to the identification data of each identification code on the article to be detected.
For example, a scanning gun may be used to scan a plurality of identification codes on an object to be tested, so as to obtain identification data of each identification code on the object to be tested.
Step 102, judging whether the identification data simultaneously meets the preset data format condition and the preset data range condition.
Specifically, in some embodiments of the present application, after obtaining the identification data of each identification code on the object to be tested, as shown in fig. 2, the determining whether the identification data meets both the preset data format condition and the preset data range condition may include: step 201 to step 203.
In step 201, format data and numerical value data in the identification data, and a preset format data and a preset data numerical value range are obtained.
Wherein, the format data and numerical data in the above-mentioned identification data are used for expressing the format of the marking data and numerical value of the marking data respectively; specifically, the format data in the identification data may include prefix data of the identification code, and/or length data of the identification code, and the like.
The preset format data is the format data of the mark data corresponding to the correct identification code; the preset data value range is the value range where the value data of the mark data corresponding to the correct identification code is located.
In some embodiments of the present application, the preset data format condition and the preset data value range may be obtained through a pre-configured script.
Step 202, comparing the format data of the identification code with the preset format data, and judging whether the numerical data of the identification code is in the numerical range of the preset data.
In some embodiments of the application, after the format data and the numerical data in the identification code identification data, and the preset format data and the preset data numerical range are obtained, comparing the format data of the identification code with the preset format data, and if the comparison between the format data of the identification code and the preset format data is successful, indicating that the format data of the identification code conforms to the format data condition of the identification data corresponding to the correct identification code; if the numerical data of the identification code is in the preset data numerical range, the numerical data of the identification code is in the numerical range of the numerical data of the mark data corresponding to the correct identification code.
For example, a barcode is attached to the object to be tested, the identification data of the barcode is a product Serial Number (SN), if the preset format data is the prefix data of the SN code, the prefix data is 9CT11841912DA, and the preset data numerical range is from an SN code value of 9CT11841912DA0001 to an SN code value of 9CT11841912DA 8888. AT this time, if the SN code obtained by scanning the identification code a on the object to be tested by the scanning gun is 8AT11841912D0001, wherein the format data of the identification code a (i.e., the prefix data of the SN code) is 8AT11841912D, and the format data does not match the preset format data, therefore, the comparison between the format data of the identification code a and the preset format data fails.
For another example, the SN code obtained by scanning the identification code B on the object to be detected by the scanning gun is 9CT11841912DA6666, wherein the format data of the identification code B (i.e., the prefix data of the SN code) is 9CT11841912DA, and the format data matches the preset format data, so that the format data of the identification code B is successfully compared with the preset format data, and the numerical data of the identification code B (i.e., the SN code value) is 9CT11841912DA6666, and the numerical data is within the preset data numerical range of SN code value of 9CT11841912DA0001 to SN code value of 9CT11841912DA 8888.
In step 203, if the format data of the identification code is successfully compared with the preset format data and the numerical data of the identification code is within the preset data numerical range, it is determined that the identification data simultaneously satisfies the preset data format condition and the preset data range condition.
That is, in some embodiments of the present application, after comparing the format data of the identification code with the preset format data and determining whether the numerical data of the identification code is within the preset data numerical range, if both the format data of the identification code and the preset format data are successfully compared and the numerical data of the identification code is within the preset data numerical range, it may be determined that the identification data simultaneously satisfies both the preset data format condition and the preset data range condition.
It should be noted that, when there are a plurality of identification codes located on the object to be detected, the number of the preset format data and the number of the preset data value range are also a plurality, and the number of the preset format data and the number of the preset data value range are respectively the same as the number of the identification codes, at this time, the identification data of each identification code can be compared with each preset format data and the preset data value range corresponding to each preset format data one by one.
For example, two barcodes are pasted on an object to be detected, the first preset format data is SN code prefix data of 9CT11841912DA, the first preset data numerical range is from SN code values of 9CT11841912DA0001 to SN code values of 9CT11841912DA8888, the second preset format data is from MAC code prefix data of B8:3D:9D:8E, the second preset data numerical range is from MAC code values of B8:3D:9D:8E:8C:2D to MAC code values of B8:3D:9D:8E:9C: 2D. When the first bar code is scanned by the scanning gun, the identification data of the first bar code is B8:3D:9D:8E:8C: after the step of 2D, the step of drawing, format data B8:3D of the first barcode: 9D:8E, comparing the prefix data of the SN code of the first preset format data with 9CT11841912DA, and if the comparison of the format data of the first bar code with the first preset format data fails, at this time, the format data B8:3D of the first barcode may be: 9D: prefix data of the 8E and second preset format data MAC code is B8:3D:9D:8E, comparing the format data of the first bar code with the second preset format data successfully, and the MAC code value of the numerical data of the first bar code in the second preset data numerical range is B8:3D:9D:8E:8C: the 2D to MAC code values are B8:3D:9D:8E:9C: within 2D; then, the second barcode can be scanned by the scanning gun to obtain the identification data of the second barcode as 9CT11841912DA0001, the format data 9CT11841912DA of the second barcode is compared with the prefix data of the SN code of the first preset format data as 9CT11841912DA, the format data of the second barcode is successfully compared with the first preset format data, and the numerical data of the second barcode is within the range from the SN code value of 9CT11841912DA0001 to the SN code value of 9CT11841912DA8888 of the first preset data numerical value range.
And 103, if the identification data simultaneously meets the preset data format condition and the preset data range condition, determining that the identification code of the object to be detected is not wrongly pasted.
In the embodiment of the application, whether the identification data simultaneously meets the preset data format condition and the preset data range condition is judged, and if the identification data simultaneously meets the preset data format condition and the preset data range condition, the identification code is a correct identification code, so that the fact that the identification code is not mistakenly pasted on the object to be detected can be confirmed.
It should be noted that, if the format data of the identification code fails to be compared with the preset data format, or the numerical data of the identification code is within the numerical range of the preset data, it may be determined that the identification code is incorrectly pasted on the article to be detected.
In the embodiment of the application, be located one or more identification code on the article that awaits measuring through the scanning, obtain the identification data of every identification code on the article that awaits measuring, then identification data satisfies simultaneously predetermine data format condition with when predetermineeing the data range condition, confirm the article that awaits measuring does not take place the identification code mistake and pastes for can satisfy simultaneously according to the identification data of every identification code on the article that awaits measuring predetermine data format condition with predetermine the data range condition, whether the article that awaits measuring takes place the identification code mistake and pastes is judged automatically, this testing process need not to operate artificially, has improved the error detection efficiency of identification code, has reduced the cost of labor.
In some embodiments of the present application, after the determination that the identification code of the object is not mispasted, whether the object is pasted with the identification code in a missing manner may be further determined.
Specifically, as shown in fig. 3, the above-mentioned determining whether the identification code of the object to be tested is missed may include steps 301 to 304.
Step 301, mark the identification code as the correct identification code.
In some embodiments of the present application, after it is determined that the object to be tested has not been subjected to the wrong identification code, the identification code may be marked as the correct identification code, and it is determined whether the object to be tested has been subjected to the missing identification code by determining whether the identification codes on the object to be tested are all marked as the correct identification code and the number of the identification codes.
Step 302, acquiring the number of the preset identification codes.
The preset identification code quantity is the identification code quantity required to be pasted on the object to be detected, and can be obtained through a preset script.
Step 303, determining whether the number of the identification codes on the object to be tested is equal to the number of the preset identification codes, and determining whether the identification codes on the object to be tested are all marked as correct identification codes.
And 304, if the number of the identification codes on the article to be detected is equal to the number of the preset identification codes and the identification codes on the article to be detected are marked as correct identification codes, determining that the article to be detected is not subjected to identification code missing.
In some embodiments of the application, by determining that the number of the identification codes on the object to be tested is equal to the number of the preset identification codes, and determining whether the identification codes on the object to be tested are all marked as correct identification codes, when the number of the identification codes on the object to be tested is equal to the number of the preset identification codes, and the identification codes on the object to be tested are all marked as correct identification codes, it is described that the identification codes on the object to be tested are all marked as correct identification codes, and the number of the identification codes is equal to the number of the identification codes to be pasted on the object to be tested, at this time, it can be determined that the identification codes of the object to be tested are not pasted in.
For example, after the object to be tested is pasted with two bar codes and it is confirmed that the object to be tested is not pasted with the wrong identification code by the method shown in fig. 1, since both of the two bar codes are marked as the correct identification codes and the number of the correct identification codes is equal to the preset number (2) of identification codes, it can be confirmed that the object to be tested is not pasted with the wrong identification code.
It should be noted that, if the number of the identification codes on the article to be tested is smaller than the number of the preset identification codes, it is indicated that the number of the identification codes on the article to be tested is smaller than the number of the identification codes to be pasted on the article to be tested, and at this time, it can be determined that the identification codes of the article to be tested are pasted in an omission manner.
In other embodiments of the present application, if the number of the identification codes on the object to be tested is greater than the number of the preset identification codes, it is described that the number of the identification codes on the object to be tested is greater than the number of the identification codes that need to be pasted on the object to be tested, and at this time, it can be determined that the object to be tested has the identification codes pasted more.
In practical application, a plurality of identification codes with identification data of the same type (that is, format data are the same, but numerical data are different) may be simultaneously pasted on the same object to be tested, at this time, the number of the preset identification codes may include the number of the preset identification codes corresponding to the identification codes of each type, and by determining whether the number of the identification codes of each type is equal to the number of the preset identification codes corresponding to the identification codes of each type, and determining whether the identification codes on the object to be tested are all marked as correct identification codes, when the number of the identification codes of each type is equal to the number of the preset identification codes corresponding to the identification codes of each type, it may be determined that the identification codes of the object to be tested are not missed in pasting.
For example, after the object to be tested is determined to have no wrong identifier attached by the method shown in fig. 1, the three barcodes are all marked as correct identifiers, wherein the number of the correct MAC codes is equal to the number of the preset identifiers (2) corresponding to the MAC codes, and the number of the correct SN codes is equal to the number of the preset identifiers (1) corresponding to the SN codes, so that it can be determined that the identifier of the object to be tested has no missing attachment.
In the embodiment of this application, through the affirmation after the article that awaits measuring does not take place the wrong subsides of identification code, will the identification code mark is correct identification code, then the identification code quantity on the article that awaits measuring equals preset identification code quantity to when the identification code on the article that awaits measuring has all been marked as correct identification code, affirmation the article identification code that awaits measuring does not take place to leak pastes, makes can be according to the quantity of identification code, and whether the article that awaits measuring takes place the identification code and leaks pastes automatically, and this testing process need not to operate artificially equally, has improved the error detection efficiency of identification code, has reduced the cost of labor.
In some embodiments of the present application, after confirming that the identification code of the object to be tested is mispasted, the method may include: displaying prompt information of wrong pasting of the identification code; similarly, after confirming that the identification code of the object to be tested is missed, the method may include: displaying the prompt information of missing the identification code; the method and the device have the advantages that the error reminding of the identification code can be carried out on the factory workers according to different prompt messages, and the phenomenon that the object to be detected with the error identification code flows into the next process is avoided.
In practical application, format data and numerical value data in the identification data are often adjusted according to requirements of different clients, and therefore, when the error detection of the identification code is performed, the preset format data and the preset data numerical value range need to be adjusted.
Specifically, in some embodiments of the present application, after acquiring the preset format data and the preset data value range, as shown in fig. 4, the method may include: step 401 to step 402.
Step 401, a modification operation on a preset data format and/or a preset data numerical range is obtained.
Step 402, modifying the preset data format and/or the preset data value range according to the modification operation.
In the embodiment of the application, the judgment condition of whether the identification code is wrongly pasted or not can be dynamically changed by modifying the preset format data and the preset data numerical range, so that the error detection method of the identification code can be adjusted according to different customer requirements.
Similarly, after the number of the preset identification codes is obtained, the number of the preset identification codes can be modified, which is not described herein again.
It should be noted that, for simplicity of description, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders.
Fig. 5 is a schematic structural diagram of an apparatus 500 for detecting an error of an identification code according to an embodiment of the present application, where the apparatus 500 for detecting an error of an identification code may include: a scanning unit 501, a judging unit 502 and a detecting unit 503.
A scanning unit 501, configured to scan one or more identification codes located on an article to be detected, to obtain identification data of each identification code on the article to be detected;
a judging unit 502, configured to judge whether the identification data simultaneously satisfies a preset data format condition and a preset data range condition;
the detecting unit 503 is configured to determine that the identification code is not mistakenly pasted on the object to be detected if the identification data simultaneously satisfies the preset data format condition and the preset data range condition.
In some embodiments of the present application, the determining unit 502 is further specifically configured to: acquiring format data and numerical data in the identification data, and a preset format data and a preset data numerical range; comparing the format data of the identification code with the preset format data, and judging whether the numerical data of the identification code is in the numerical range of the preset data; and if the format data of the identification code is successfully compared with the preset format data and the numerical data of the identification code is in the preset data numerical range, confirming that the identification data simultaneously meets the preset data format condition and the preset data range condition.
In some embodiments of the present application, the determining unit 502 is further specifically configured to: and if the format data of the identification code fails to be compared with the preset data format, or the numerical data of the identification code is within the numerical range of the preset data, confirming that the identification code of the object to be detected is wrongly pasted.
In some embodiments of the present application, the apparatus for detecting an error of an identification code further includes a modification unit, configured to: acquiring modification operation on the preset data format and/or the preset data numerical range; and modifying the preset data format and/or the preset data numerical range according to the modification operation.
In some embodiments of the present application, the detecting unit 503 is further specifically configured to: marking the identification code as a correct identification code; acquiring the number of preset identification codes; judging whether the number of the identification codes on the to-be-detected article is equal to the number of the preset identification codes or not, and judging whether the identification codes on the to-be-detected article are all marked as correct identification codes or not; and if the number of the identification codes on the article to be detected is equal to the number of the preset identification codes and the identification codes on the article to be detected are marked as correct identification codes, determining that the article to be detected is not subjected to identification code missing pasting.
In some embodiments of the present application, the detecting unit 503 is further specifically configured to: and if the number of the correct marks of the identification codes is smaller than the number of the preset identification codes, confirming that the identification codes of the to-be-detected articles are missed.
In some embodiments of the present application, the apparatus for detecting an error of an identification code further includes a display unit configured to: after confirming that the identification code of the article to be detected is wrongly pasted, the method comprises the following steps: displaying prompt information of wrong pasting of the identification code; and/or after confirming that the identification code of the object to be detected is missed, the method comprises the following steps: and displaying the prompt information of missing the identification code.
It should be noted that, for convenience and simplicity of description, the specific working process of the error detection apparatus 500 for identification codes may refer to the corresponding process of the method described in fig. 1 to fig. 4, and is not described herein again.
Fig. 6 is a schematic diagram of a terminal according to an embodiment of the present application. The terminal 6 may include: a processor 60, a memory 61 and a computer program 62, such as an error detection device program of an identification code, stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the above-described embodiments of the method for detecting an error of an identification code, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 501 to 503 shown in fig. 5.
The computer program may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the terminal. For example, the computer program may be divided into a scanning unit, a determining unit and a detecting unit, and each unit functions specifically as follows: the scanning unit is used for scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected; the judging unit is used for judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition; and the detection unit is used for confirming that the identification code of the object to be detected is not wrongly pasted if the identification data simultaneously meets the preset data format condition and the preset data range condition.
The terminal can be a mobile terminal such as a smart television, or a computing device such as a smart phone, a desktop computer, a notebook, a palm computer and a cloud server. The terminal may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is only an example of a terminal and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the terminal may also include input-output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 61 may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal. The memory 61 is used for storing the computer program and other programs and data required by the terminal. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An error detection method for an identification code, comprising:
scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected;
judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition;
and if the identification data simultaneously meets the preset data format condition and the preset data range condition, confirming that the article to be detected is not subjected to identification code mispasting.
2. The method for detecting the error of the identification code according to claim 1, wherein the determining whether the identification data simultaneously satisfies a preset data format condition and a preset data range condition comprises:
acquiring format data and numerical data in the identification data, and a preset format data and a preset data numerical range;
comparing the format data of the identification code with the preset format data, and judging whether the numerical data of the identification code is in the numerical range of the preset data; and if the format data of the identification code is successfully compared with the preset format data and the numerical data of the identification code is in the preset data numerical range, confirming that the identification data simultaneously meets the preset data format condition and the preset data range condition.
3. The method as claimed in claim 2, wherein the comparing the format data of the identification code with the predetermined data format and determining whether the value data of the identification code is within the predetermined data value range comprises:
and if the format data of the identification code fails to be compared with the preset data format, or the numerical data of the identification code is within the numerical range of the preset data, confirming that the identification code of the object to be detected is wrongly pasted.
4. The method for detecting the error of the identification code according to claim 2 or 3, wherein after the obtaining the preset format data and the preset data value range, the method comprises:
acquiring modification operation on the preset data format and/or the preset data numerical range;
and modifying the preset data format and/or the preset data numerical range according to the modification operation.
5. The method for detecting the error of the identification code according to claim 1, wherein after the confirming that the identification code misapplication does not occur to the object to be detected, the method comprises the following steps:
marking the identification code as a correct identification code;
acquiring the number of preset identification codes;
judging whether the number of the identification codes on the to-be-detected article is equal to the number of the preset identification codes or not, and judging whether the identification codes on the to-be-detected article are all marked as correct identification codes or not;
and if the number of the identification codes on the article to be detected is equal to the number of the preset identification codes and the identification codes on the article to be detected are marked as correct identification codes, determining that the article to be detected is not subjected to identification code missing pasting.
6. The method for detecting errors of identification code according to claim 5, wherein after determining whether the number of correct marks of the identification code is equal to the predetermined number of identification codes, the method comprises:
and if the number of the correct marks of the identification codes is smaller than the number of the preset identification codes, confirming that the identification codes of the to-be-detected articles are missed.
7. The method for detecting the error of the identification code according to claim 6, wherein after the confirming that the identification code of the object to be tested is mispasted, the method comprises the following steps: displaying prompt information of wrong pasting of the identification code; and/or after confirming that the identification code of the object to be detected is missed, the method comprises the following steps: and displaying the prompt information of missing the identification code.
8. An apparatus for detecting an error in an identification code, comprising:
the scanning unit is used for scanning one or more identification codes on an article to be detected to obtain identification data of each identification code on the article to be detected;
the judging unit is used for judging whether the identification data simultaneously meets a preset data format condition and a preset data range condition;
and the detection unit is used for confirming that the identification code of the object to be detected is not wrongly pasted if the identification data simultaneously meets the preset data format condition and the preset data range condition.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010127592.9A 2020-02-28 2020-02-28 Error detection method and device for identification code and terminal Pending CN111353558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010127592.9A CN111353558A (en) 2020-02-28 2020-02-28 Error detection method and device for identification code and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010127592.9A CN111353558A (en) 2020-02-28 2020-02-28 Error detection method and device for identification code and terminal

Publications (1)

Publication Number Publication Date
CN111353558A true CN111353558A (en) 2020-06-30

Family

ID=71195820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010127592.9A Pending CN111353558A (en) 2020-02-28 2020-02-28 Error detection method and device for identification code and terminal

Country Status (1)

Country Link
CN (1) CN111353558A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113033738A (en) * 2021-04-14 2021-06-25 深圳一道创新技术有限公司 Material error-proofing management method and system based on MES (manufacturing execution system), electronic equipment and storage medium
CN116432675A (en) * 2023-02-17 2023-07-14 广东开放大学(广东理工职业学院) Two-dimensional code batch scanning equipment, method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09259216A (en) * 1996-03-25 1997-10-03 Nec Eng Ltd Bar code reader
US20030141368A1 (en) * 2002-01-29 2003-07-31 Florante Pascual System and method for obtaining information from a bar code for use with a healthcare system
US6712268B1 (en) * 2002-06-27 2004-03-30 Ncr Corporation Method for preventing storage of duplicate barcode entries in an item security database
US20040065740A1 (en) * 2002-10-04 2004-04-08 Ncr Corporation Methods and apparatus for using imaging information to improve scanning accuracy in bar code scanners
EP1764729A1 (en) * 2005-09-19 2007-03-21 Paglieri Sell System S.p.A. Equipment for handling article picking operations
US20070140525A1 (en) * 2005-12-19 2007-06-21 Rajiv Kottomtharayil System and method for improved media identification in a storage device
WO2014062914A1 (en) * 2012-10-18 2014-04-24 Nutec Systems, Inc. Method and system for verifying a product packaging label
US20160019431A1 (en) * 2014-07-15 2016-01-21 Google Inc. Extracting card identification data using card types
CN108197686A (en) * 2017-12-25 2018-06-22 康美药业股份有限公司 Item barcode analytic method, device and computer readable storage medium
CN109472332A (en) * 2018-11-21 2019-03-15 Oppo(重庆)智能科技有限公司 A kind of product paster optimization method and product paster optimization system
CN109978565A (en) * 2019-02-19 2019-07-05 摩比科技(深圳)有限公司 Product packaging data managing method, device, terminal device and readable storage medium storing program for executing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09259216A (en) * 1996-03-25 1997-10-03 Nec Eng Ltd Bar code reader
US20030141368A1 (en) * 2002-01-29 2003-07-31 Florante Pascual System and method for obtaining information from a bar code for use with a healthcare system
US6712268B1 (en) * 2002-06-27 2004-03-30 Ncr Corporation Method for preventing storage of duplicate barcode entries in an item security database
US20040065740A1 (en) * 2002-10-04 2004-04-08 Ncr Corporation Methods and apparatus for using imaging information to improve scanning accuracy in bar code scanners
EP1764729A1 (en) * 2005-09-19 2007-03-21 Paglieri Sell System S.p.A. Equipment for handling article picking operations
US20070140525A1 (en) * 2005-12-19 2007-06-21 Rajiv Kottomtharayil System and method for improved media identification in a storage device
WO2014062914A1 (en) * 2012-10-18 2014-04-24 Nutec Systems, Inc. Method and system for verifying a product packaging label
US20160019431A1 (en) * 2014-07-15 2016-01-21 Google Inc. Extracting card identification data using card types
CN108197686A (en) * 2017-12-25 2018-06-22 康美药业股份有限公司 Item barcode analytic method, device and computer readable storage medium
CN109472332A (en) * 2018-11-21 2019-03-15 Oppo(重庆)智能科技有限公司 A kind of product paster optimization method and product paster optimization system
CN109978565A (en) * 2019-02-19 2019-07-05 摩比科技(深圳)有限公司 Product packaging data managing method, device, terminal device and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴文一,刘丽,孙红: "《跨境电商物流管理》", vol. 1, pages: 121 - 123 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113033738A (en) * 2021-04-14 2021-06-25 深圳一道创新技术有限公司 Material error-proofing management method and system based on MES (manufacturing execution system), electronic equipment and storage medium
CN116432675A (en) * 2023-02-17 2023-07-14 广东开放大学(广东理工职业学院) Two-dimensional code batch scanning equipment, method and device

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN110990255A (en) Buried point testing method and server
CN111353558A (en) Error detection method and device for identification code and terminal
CN107748718B (en) Application program testing method and device and server
CN105511727A (en) Message processing method and device
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN113128168A (en) Pad parameter checking and correcting method and device, computer equipment and storage medium
CN108255950B (en) Data storage method and terminal equipment
CN110596137A (en) Two-dimensional code defect detection method and device on production line
CN113052457A (en) Manufacturing management method and system of intelligent product and readable storage medium
CN108376448A (en) Commodity method of calibration and device
CN110940874B (en) Calibration method, server and medium for nuclear power station transformer protection device
CN111459966A (en) Vehicle chassis data acquisition method and device, four-wheel aligner and storage medium
CN111220899A (en) CEC circuit testing method and device of HDMI interface and terminal
CN115829929A (en) Method, device and equipment for detecting defects of product surface image and storage medium
CN114328181A (en) Test case generation and execution method, device and storage medium
CN109522993B (en) Method for checking consistency of stickers, terminal equipment and storage medium
CN113870175A (en) Defect detection method, device, system, storage medium and processor
CN114036008A (en) Equipment information detection method and device, computer equipment and storage medium
CN109491986B (en) Fire-fighting parameter configuration method and device and terminal equipment
CN108665020B (en) Marking method and device for substrate
CN113611348A (en) Dotting method and device, electronic equipment and storage medium
CN112488532A (en) Power equipment data monitoring method and device and server
CN111272818B (en) Circuit board soldering tin detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination