Monitoring method, device and system, storage medium and computer program product
By searching and confirming the existence and status of the pre-printed barcode at the source of the generation of the anti-counterfeiting traceability mark, the printing process of the anti-counterfeiting traceability mark is controlled, and the problem of difficulty in effectively monitoring and preventing counterfeit goods in the existing technology is solved, and the generation of a unique anti-counterfeiting traceability mark for each product is realized, and the brand reputation is protected.
Patent Information
- Application Number
- CN202510309294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-27
AI Technical Summary
The existing technology is difficult to effectively monitor and prevent the occurrence of counterfeit goods, especially the lack of effective monitoring methods at the source of anti-counterfeiting traceability marks, which leads to illegal personnel forging genuine products by printing more anti-counterfeiting labels.
After receiving the pre-printed barcode information and printing the user control command to generate the anti-counterfeiting traceability mark, find and confirm whether the barcode number of the pre-printed barcode exists in the preset database, form a data packet based on the search results and the printing status identifier, identify the printing status and issue a corresponding printing prompt, control the printing process of the anti-counterfeiting traceability mark, and ensure that each product can only generate one unique anti-counterfeiting traceability mark.
It effectively prevents the emergence of counterfeit products and ensures that the products correspond to unique anti-counterfeiting traceability marks, thereby protecting the operation and brand reputation of the company.
Smart Images

Figure CN120218101A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of anti-counterfeiting and traceability of articles, and particularly relates to a monitoring method, device, system, storage medium and computer program product. Background Art
[0002] With the continuous development of economy and technology, there are more and more commodities circulating in the market, and there are also more and more counterfeit goods.
[0003] Currently, in the field of anti-counterfeiting technology, although there is a method of using blockchain to store and trace each article with a unique code, there is a lack of an effective monitoring method to monitor counterfeit goods from the source of generating the traceability label of genuine products. Illegal persons can print multiple anti-counterfeiting labels and use the extra printed labels on counterfeit goods to achieve the effect of counterfeiting genuine products. This will undoubtedly bring huge challenges to the operation and brand reputation of many enterprises. Summary of the Invention
[0004] In view of this, the present application aims to at least solve one of the problems in the related art to some extent. For this purpose, the object of the present application is to provide a monitoring method, device, system, storage medium and computer program product.
[0005] The present application provides a monitoring method. The monitoring method includes: after receiving the pre-printed barcode information entered in batches and the user control instruction for printing and generating the anti-counterfeiting traceability label, searching and confirming whether the barcode number of the pre-printed barcode exists in a preset database to obtain a search result; if the search result is that it exists, determining the printing status of the pre-printed barcode according to the printing status of the historical printed barcodes in the preset database, and marking the printing status of the pre-printed barcode with a first status identifier; if the search result is that it does not exist, marking the printing status of the pre-printed barcode with a second status identifier; forming a data message according to the search result, the first status identifier and the second status identifier; identifying different printing statuses of the pre-printed barcode in the data message, and sending different printing prompts according to the different printing statuses of the pre-printed barcode; controlling the printing process of the anti-counterfeiting traceability label according to the printing prompt, so as to generate a unique anti-counterfeiting traceability label for the commodity.
[0006] In some embodiments, identifying different printing states of the pre-printed barcodes in the data packet and issuing different printing prompts according to the different printing states of the pre-printed barcodes includes: if the printing state corresponding to the pre-printed barcode in the data packet is identified as a printable state, controlling to issue a first prompt that the pre-printed barcode is printable; if the printing state corresponding to the pre-printed barcode in the data packet is identified as a printed state, controlling to issue a second prompt that the pre-printed barcode needs to be audited for reprinting; if the printing state corresponding to the pre-printed barcode in the data packet is identified as an ungenerated state, determining that the pre-printed barcode does not exist in the preset data, and controlling to issue a third prompt that the pre-printed barcode is abnormal.
[0007] In some embodiments, controlling the printing process of the anti-counterfeiting and traceability identifier according to the printing prompt to generate a unique anti-counterfeiting and traceability identifier corresponding to the commodity includes: controlling to print the pre-printed barcode to generate a corresponding two-dimensional code according to the first prompt to form the anti-counterfeiting and traceability identifier of the pre-printed barcode; controlling to issue an audit application for whether the pre-printed barcode needs to be reprinted with a corresponding two-dimensional code according to the second prompt, and controlling to print the pre-printed barcode to generate a corresponding two-dimensional code after the audit application is passed to form the anti-counterfeiting and traceability identifier of the pre-printed barcode again; controlling to stop printing the corresponding two-dimensional code of the pre-printed barcode according to the third prompt to prevent the formation of a forged anti-counterfeiting and traceability identifier.
[0008] In some embodiments, controlling to print the pre-printed barcode to generate a corresponding two-dimensional code according to the first prompt to form the anti-counterfeiting and traceability identifier of the pre-printed barcode includes: before controlling to print the pre-printed barcode to generate a corresponding two-dimensional code and when a control instruction for confirming printing issued by the user is received, controlling to search and confirm again whether the barcode number of the pre-printed barcode exists in the preset database; if the search result is that it exists, controlling to print the pre-printed barcode to generate a corresponding two-dimensional code to form the anti-counterfeiting and traceability identifier of the pre-printed barcode; if the search result is that it does not exist, controlling to stop printing the corresponding two-dimensional code of the pre-printed barcode to prevent the formation of a forged anti-counterfeiting and traceability identifier.
[0009] In some embodiments, the monitoring method further includes: if the search result is that it exists, controlling to record the actions of the current printing operator and store them in a second database; updating the printing state of the pre-printed barcode in the preset database to a to-be-printed state; after the printing state of the pre-printed barcode is updated to the to-be-printed state, controlling to print the pre-printed barcode to generate a corresponding two-dimensional code to form the anti-counterfeiting and traceability identifier of the pre-printed barcode.
[0010] In some embodiments, if the search result is that it exists, controlling the pre-printed barcode to print and generate a corresponding two-dimensional code to form the anti-counterfeiting and traceability identifier of the pre-printed barcode further includes: encrypting the byte array of the pre-printed barcode based on a preset rule to form a string ciphertext; generating a corresponding two-dimensional code according to the string ciphertext, and embedding standard watermark information in the two-dimensional code to form an anti-counterfeiting two-dimensional code; printing and generating the anti-counterfeiting and traceability identifier of the pre-printed barcode according to the anti-counterfeiting two-dimensional code.
[0011] In some embodiments, after printing and generating the anti-counterfeiting and traceability identifier of the pre-printed barcode according to the anti-counterfeiting two-dimensional code, the monitoring method further includes: during the printing process, controlling a third search to confirm whether the barcode numbers of the pre-printed barcode all exist in a preset database to obtain a search result; if the search result is that it exists, controlling to record the actions of the current printing operator into a second database, and receiving the printing result of the anti-counterfeiting and traceability identifier in real time; if the printing result is a successful print, transferring and storing the pre-printed barcode information from the preset database to the second database, and synchronously storing the anti-counterfeiting and traceability identifier in the second database; if the printing result is a failed print, updating the printing status of the pre-printed barcode in the preset database to a failed print status; if the search result is that it does not exist, controlling to issue an exception prompt.
[0012] In some embodiments, the monitoring method includes: real-time identifying the clarity and integrity of the anti-counterfeiting and traceability identifier; if the clarity of the anti-counterfeiting and traceability identifier is lower than a preset clarity threshold and / or the integrity is lower than a preset integrity threshold, issuing an audit application for reprinting the anti-counterfeiting and traceability identifier; after the audit application is approved, controlling to reprint the anti-counterfeiting and traceability identifier.
[0013] In some embodiments, the monitoring method includes: when scanning the anti-counterfeiting and traceability identifier for commodity receipt, obtaining the scan information of scanning the anti-counterfeiting and traceability identifier; identifying whether there is watermark information in the scan information; if there is watermark information in the scan information, comparing the watermark information with the standard watermark information corresponding to the anti-counterfeiting and traceability identifier; if the comparison result is that the watermark information is the same as the standard watermark information, controlling not to issue an exception prompt; if the comparison result is that the watermark information is different from the standard watermark information, controlling to issue an exception prompt; if there is no watermark information in the scan information, controlling to issue an exception prompt.
[0014] In some embodiments, the monitoring method includes: when scanning the anti-counterfeiting traceability label for commodity receipt, obtaining the scanning information of the anti-counterfeiting traceability label; identifying the number of scanning times, the scanning addresses of two adjacent scans and / or the identity coding address used by the user for scanning in the scanning information; if the number of scanning times is greater than or equal to a preset number, marking the commodity corresponding to the anti-counterfeiting traceability label as a frequently scanned commodity; if the scanning addresses of two adjacent scans are different, marking the commodity corresponding to the anti-counterfeiting traceability label as a commodity scanned from different locations; if the number of identity coding addresses is greater than or equal to a preset number, marking the commodity corresponding to the anti-counterfeiting traceability label as a commodity scanned by multiple users.
[0015] In some embodiments, the monitoring method includes: receiving a query instruction for querying the anti-counterfeiting traceability label or scanning information corresponding to a preset commodity; querying the anti-counterfeiting traceability label or scanning information corresponding to the preset commodity according to the query instruction, where the scanning information includes the number of scanning times, the scanning addresses of two adjacent scans and / or the identity coding address used by the user for scanning.
[0016] The present application also provides a monitoring device. The monitoring device includes: a search module, a status identification module, a message generation module, a prompt module and a printing control module. The search module is configured to, after receiving the pre-printed barcode information entered in batches and the user control instruction for printing and generating the anti-counterfeiting traceability label, search and confirm whether the barcode number of the pre-printed barcode exists in a preset database to obtain a search result; the status identification module is configured to, if the search result is existence, determine the printing status of the pre-printed barcode according to the printing status of the historical printed barcode in the preset database, and mark the printing status of the pre-printed barcode with a first status identifier; if the search result is non-existence, mark the printing status of the pre-printed barcode with a second status identifier; the message generation module is configured to form a data message according to the search result, the first status identifier and the second status identifier; the prompt module is configured to identify different printing statuses of the pre-printed barcode in the data message and issue different printing prompts according to the different printing statuses of the pre-printed barcode; the printing control module is configured to control the printing process of the anti-counterfeiting traceability label according to the printing prompt, so as to generate a unique anti-counterfeiting traceability label corresponding to the commodity.
[0017] The present application also provides a monitoring system. The monitoring system is used to implement the monitoring method described in any one of the above embodiments, or includes a printing device and the monitoring device described in the above embodiments, and the printing device is electrically connected to the monitoring device.
[0018] The present application also provides a non-volatile computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, the monitoring method described in any of the above embodiments is implemented.
[0019] The present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by one or more processors, the monitoring method described in any of the above embodiments is implemented.
[0020] The monitoring method of the present application can control the printing of the anti-counterfeiting traceability label from the generation source of the genuine product traceability label, and control that only one anti-counterfeiting traceability label can be printed for one item during the printing process, ensuring that no extra anti-counterfeiting traceability labels flow to other counterfeit goods.
[0021] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings
[0022] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the drawings, where:
[0023] Figure 1 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0024] Figure 2 is a schematic structural diagram of the monitoring device of some embodiments of the present application;
[0025] Figure 3 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0026] Figure 4 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0027] Figure 5 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0028] Figure 6 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0029] Figure 7 is a schematic diagram of the display box in the monitoring method of some embodiments of the present application;
[0030] Figure 8 is a schematic flowchart of the monitoring method of some embodiments of the present application;
[0031] Figure 9It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0032] Figure 10 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0033] Figure 11 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0034] Figure 12 It is a schematic structural diagram of a monitoring device according to some embodiments of the present application;
[0035] Figure 13 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0036] Figure 14 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0037] Figure 15 It is a schematic structural diagram of a monitoring device according to some embodiments of the present application;
[0038] Figure 16 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0039] Figure 17 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0040] Figure 18 It is a schematic flowchart of a monitoring method according to some embodiments of the present application;
[0041] Figure 19 It is a schematic structural diagram of a monitoring device according to some embodiments of the present application. Detailed Embodiments
[0042] The following describes in detail the embodiments of the present application. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and should not be construed as limiting the present application.
[0043] In the description of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality of" means two or more unless otherwise specifically defined.
[0044] In the description of the present application, it should be noted that, unless otherwise clearly specified and defined, the terms "installation" and "connection" should be understood in a broad sense, which may refer to fixed connection, detachable connection, or integral connection; it may be mechanical connection, electrical connection, or communication with each other; it may be directly connected, or indirectly connected through an intermediate medium, and it may be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0045] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present application. In addition, the present application may repeat reference numerals and / or reference letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0046] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application, and should not be construed as a limitation of the present application.
[0047] Please refer to Figure 1 , the present application provides a monitoring method. The monitoring method includes:
[0048] 01: After receiving the pre-printed barcode information entered in batches and the user control instruction for printing and generating the anti-counterfeiting traceability label, check and confirm whether the barcode number of the pre-printed barcode exists in the preset database to obtain the search result;
[0049] 02: If the search result is that it exists, determine the printing status of the pre-printed barcode according to the printing status of the historical printed barcode in the preset database, and mark the printing status of the pre-printed barcode with the first status identifier;
[0050] 03: If the search result is that it does not exist, mark the printing status of the pre-printed barcode with the second status identifier;
[0051] 04: Form a data message according to the search result, the first status identifier, and the second status identifier;
[0052] 05: Identify the different printing statuses of the pre-printed barcode in the data message, and issue different printing prompts according to the different printing statuses of the pre-printed barcode;
[0053] 06: Control the printing process of the anti-counterfeiting traceability label according to the printing prompt, so as to generate a unique anti-counterfeiting traceability label corresponding to the commodity.
[0054] Please refer to Figure 2 , this application also provides a monitoring device 10. The monitoring device 10 includes a search module 11, a status identification module 12, a message generation module 13, a prompt module 14, and a printing control module 15. Step 01 can be implemented by the search module 11, step 02 and step 03 can be implemented by the status identification module 12, step 04 can be implemented by the message generation module 13, step 05 can be implemented by the prompt module 14, and step 06 can be implemented by the printing control module 15.
[0055] The search module 11 is configured to search and confirm whether the barcode number of the pre-printed barcode exists in a preset database after receiving the batch-entered pre-printed barcode information and the user control instruction for printing and generating the anti-counterfeiting traceability label, and obtain a search result; the status identification module 12 is configured to, if the search result is existence, determine the printing status of the pre-printed barcode according to the printing status of the historical printed barcode in the preset database, and mark the printing status of the pre-printed barcode with a first status identifier; if the search result is non-existence, mark the printing status of the pre-printed barcode with a second status identifier; the message generation module 13 is configured to form a data message according to the search result, the first status identifier, and the second status identifier; the prompt module 14 is configured to identify different printing statuses of the pre-printed barcode in the data message and issue different printing prompts according to the different printing statuses of the pre-printed barcode; the printing control module 15 is configured to control the printing process of the anti-counterfeiting traceability label according to the printing prompt, so as to generate a unique anti-counterfeiting traceability label corresponding to the commodity.
[0056] Specifically, the pre-printed barcode information may include a barcode number, commodity information corresponding to the barcode, or other information, which is not limited herein.
[0057] The preset database may include a Mysql database. The Mysql database is a relational database management system. The Mysql database is based on a table structure, uses rows and columns to store data, and can perform data operations using Structured Query Language (SQL). The Mysql database stores commodity names and barcode encodings corresponding to the commodities, and also stores the barcode information corresponding to each commodity previously entered by users, and the status identifiers associated with and marked for each barcode. The barcodes previously stored in the Mysal database are called historical printed barcodes, and the status identifiers corresponding to the previously stored barcodes are called the current status identifiers corresponding to the historical printed barcodes. The current status identifier can indicate the current printing status corresponding to the historical printed barcode. The Mysql database may also store the two-dimensional code data corresponding to the barcodes that have not been printed yet.
[0058] The preset database may also include multiple databases. For example, it may simultaneously include a Mysql database, an Hbase database, and an Elasticsearch database. The three databases respectively store intermediate data during the printing process, data generated during the printing and signing processes, or other data, which are not limited herein. Therefore, when searching and confirming whether the barcode numbers of the pre-printed barcodes exist in the preset database, the multiple databases can be searched sequentially in a certain order, or searched simultaneously in multiple databases, which are not limited herein.
[0059] It can be understood that, please refer to Figure 3 , the printing device can be electrically connected to the monitoring device 10 of the present application. The monitoring device 10 of the present application can be divided into a monitoring front end and a monitoring back end. The monitoring front end can display the current printing status or printing prompts, and the user can perform corresponding interactive operations on the monitoring process through the monitoring front end. The monitoring back end can store a Mysql database, and can perform monitoring actions such as searching for barcode information and marking the status identifier corresponding to the printing status in the monitoring back end, and generate a data message according to the search result and the status identifier, and return the data message to the monitoring front end.
[0060] Specifically, as Figure 3 shown, when the printing operator batch-enters the commodity barcode information on the "Submit Printing" page of the printing device and submits it for printing, the monitoring device 10 of the present application can receive the barcode numbers of the pre-printed barcodes batch-entered and the user control instruction to generate an anti-counterfeiting traceability identifier for printing. Subsequently, the monitoring back end of the monitoring device 10 can search and confirm whether the barcode numbers of the pre-printed barcodes exist in the Mysql database to obtain a search result. If the search result is that it exists, the printing status of the pre-printed barcodes is determined according to the printing status of the historical printed barcodes in the Mysql database, and the printing status of the pre-printed barcodes is marked with the first status identifier. If the search result is that it does not exist, the printing status of the pre-printed barcodes is marked with the second status identifier.
[0061] That is, query the current status of each pre-printed barcode in the Mysql database and associate it with the status identifier, and finally summarize the printing status of all pre-printed barcodes and return it to the front end of the monitoring device 10 for the user to select and control which pre-printed barcodes to print to generate an anti-counterfeiting traceability identifier, and identify which pre-printed barcodes are forged barcodes and prevent printing to generate the corresponding anti-counterfeiting traceability identifier. The anti-counterfeiting traceability identifier can be a two-dimensional code identifier with watermark information.
[0062] The search results for searching and confirming whether the barcode numbers of the pre-printed barcodes all exist in the Mysql database can include two results: the barcode numbers of the pre-printed barcodes exist in the Mysql database and the barcode numbers of the pre-printed barcodes do not exist in the Mysql database.
[0063] When the barcode number of a certain pre-printed barcode exists in the Mysql database as the search result, the printing status of the pre-printed barcode can be determined according to the printing status of the historical printed barcodes in the preset database, and the printing status of the pre-printed barcode can be marked with a first status identifier. The printing status can include three statuses: printable, ungenerated, and printed. The first status identifier can be a number, a letter, or other identifier, which is not limited here.
[0064] When the barcode number of a certain pre-printed barcode does not exist in the Mysql database as the search result, the printing status of the pre-printed barcode is marked with a second status identifier. The second status identifier can also be a number, a letter, or other identifier different from the first status identifier, which is not limited here.
[0065] In an example, if the pre-printed barcodes entered in batch are barcode a, barcode b, barcode c, barcode d, and barcode e respectively, where a, b, c, d, and e are all barcode encodings. The data packet returned to the front end generated according to the search result, the first status identifier, and the second status identifier can be, for example: {(barcode a: 1), (barcode b: 1), (barcode c: 3), (barcode d: 1), (barcode e: 2)}. Among them, the status identifiers include the numbers 1, 2, and 3, and the numbers 1, 2, and 3 represent the printing statuses of printable, ungenerated, and printed respectively. The explanations of barcode a, b, c, d, e and their corresponding status identifiers are as follows: The first status identifier corresponding to barcode a, b, d is marked as "1", indicating that barcode a, b, d exist in the first database and are in the printable status that can be directly printed; the first status identifier corresponding to barcode c is marked as "3", indicating that barcode c exists in the first database and barcode c has been printed and cannot be printed. It needs to be re-applied and approved by the administrator before it can be printed; the second status identifier corresponding to barcode e is marked as "2", indicating that barcode e does not exist in the first database. Barcode e may be forged or mis-entered data and is in the ungenerated status that cannot be printed.
[0066] When the monitoring front-end page receives the data packet from the monitoring background, different prompts are made for the printing status of different pre-printed barcodes, so that the user can know which pre-printed barcodes can be printed, which pre-printed barcodes do not exist in the preset database and cannot be printed, and which pre-printed barcodes need to be re-applied to be re-printed.
[0067] Understandably, the barcode numbers of the pre-printed barcodes for batch entry are the barcode numbers entered by the operator when they want to print corresponding anti-counterfeiting and traceability labels for a preset batch of products. If the operator wants to print more anti-counterfeiting and traceability labels, the barcode numbers of the pre-printed barcodes may include a barcode number A randomly entered by the operator, which is not in the preset database. According to the previous printing method without monitoring the source, a forged anti-counterfeiting and traceability label A1 with the same watermark information can be generated, and this anti-counterfeiting and traceability label A1 can be pasted onto the counterfeit product to achieve the effect of passing off the fake as genuine.
[0068] Alternatively, the barcode numbers of the pre-printed barcodes may include a barcode number B that has already been used to print an anti-counterfeiting and traceability label once. Although this barcode number B is in the preset database, according to the previous printing method without monitoring the source, it cannot be recognized that this barcode number B has already been used to print an anti-counterfeiting and traceability label B1. Therefore, an anti-counterfeiting and traceability label B2 is generated again based on the barcode number B, and this anti-counterfeiting and traceability label B2 is pasted onto the counterfeit product, which can also achieve the effect of passing off the fake as genuine.
[0069] The monitoring method of this application can control the printing of anti-counterfeiting and traceability labels from the source of generating genuine product traceability labels. Correspondingly, after receiving the barcode numbers of the pre-printed barcodes for batch entry and the user control instruction to print and generate anti-counterfeiting and traceability labels, the monitoring method of this application searches and confirms whether the barcode numbers of the pre-printed barcodes all exist in the preset database to obtain the status label corresponding to each pre-printed barcode. That is to say, the monitoring method of this application can pre-screen the barcode numbers of the pre-printed barcodes for batch entry in the preset database to see if there are forged barcode numbers not in the preset database or duplicate printed barcode numbers, so as to avoid generating forged anti-counterfeiting and traceability labels and duplicate printing of anti-counterfeiting and traceability labels.
[0070] After receiving the barcode numbers of the pre-printed barcodes for batch entry and the user control instruction to print and generate anti-counterfeiting and traceability labels, the monitoring method of this application searches and confirms whether the barcode numbers of the pre-printed barcodes all exist in the preset database. After obtaining the status label corresponding to each pre-printed barcode, a data message is formed based on the pre-printed barcode and the status label. Then, the different printing statuses of the pre-printed barcodes in the data message are identified, and different printing prompts are issued according to the different printing statuses of the pre-printed barcodes. Finally, the printing process of the anti-counterfeiting and traceability labels is controlled according to the printing prompts, so as to generate the unique anti-counterfeiting and traceability label corresponding to the product.
[0071] In this way, the monitoring method of this application can control the printing of anti-counterfeiting and traceability labels from the source of generating genuine product traceability labels, and control that only one anti-counterfeiting and traceability label can be printed for one item during the printing process, ensuring that no extra anti-counterfeiting and traceability labels flow to other counterfeit products.
[0072] Please refer toFigure 4 , in some embodiments, step 05 includes:
[0073] 051: If the printing status corresponding to the pre-printed barcode in the identification data packet is the printable status, then control to issue a first prompt indicating that the pre-printed barcode is printable;
[0074] 052: If the printing status corresponding to the pre-printed barcode in the identification data packet is the printed status, then control to issue a second prompt indicating that the pre-printed barcode needs to be audited for reprinting;
[0075] 053: If the printing status corresponding to the pre-printed barcode in the identification data packet is the ungenerated status, then determine that the pre-printed barcode does not exist in the preset data, and control to issue a third prompt indicating that the pre-printed barcode is abnormal.
[0076] Please refer to Figure 2 , step 051, step 052 and step 053 can be implemented by the prompt module 14. The prompt module 14 is used to control to issue a first prompt indicating that the pre-printed barcode is printable if the printing status corresponding to the pre-printed barcode in the identification data packet is the printable status; to control to issue a second prompt indicating that the pre-printed barcode needs to be audited for reprinting if the printing status corresponding to the pre-printed barcode in the identification data packet is the printed status; to determine that the pre-printed barcode does not exist in the preset database and control to issue a third prompt indicating that the pre-printed barcode is abnormal if the printing status corresponding to the pre-printed barcode in the identification data packet is the ungenerated status.
[0077] Specifically, please refer to Figure 3 , when the monitoring front-end page receives the data packet from the monitoring background, different prompts can be made for different barcode statuses, so that the user can know which barcodes can be printed and which need to be re-applied for reprinting.
[0078] That is, if the monitoring front-end identifies that the printing status corresponding to the pre-printed barcode in the data packet is the printable status, then control to issue a first prompt indicating that the pre-printed barcode is printable. If the monitoring front-end identifies that the printing status corresponding to the pre-printed barcode in the data packet is the printed status, then control to issue a second prompt indicating that the pre-printed barcode needs to be audited for reprinting. If the monitoring front-end identifies that the printing status corresponding to the pre-printed barcode in the data packet is the ungenerated status, then determine that the pre-printed barcode does not exist in the preset data, and control to issue a third prompt indicating that there is a malicious request for printing due to the abnormal pre-printed barcode.
[0079] The first prompt, the second prompt and the third prompt can be displayed on the monitoring front-end in the form of text prompt, video prompt or voice prompt, which is not limited here.
[0080] Thus, before printing the traceability identifier in this application, the monitoring method can search for the pre-printed barcode entered in the preset database through the monitoring background and generate a data message after status identification, and the monitoring front-end can identify the printing status of the data message, so as to display different prompts on the monitoring front-end for the user, facilitating the user to know the printing process of the current pre-printed barcode and control the subsequent printing process.
[0081] Please refer to Figure 5 , in some embodiments, step 06 includes:
[0082] 061: Control the pre-printed barcode to print and generate a corresponding two-dimensional code according to the first prompt, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode;
[0083] 062: Control to send an audit application for whether the pre-printed barcode needs to print the corresponding two-dimensional code again according to the second prompt, and control the pre-printed barcode to print and generate the corresponding two-dimensional code after the audit application is passed, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode again;
[0084] 063: Control to stop printing the two-dimensional code corresponding to the pre-printed barcode according to the third prompt, and prevent the formation of a forged anti-counterfeiting traceability identifier.
[0085] Please combine with Figure 2 , step 061, step 062 and step 063 can be implemented by the printing control module 15. The printing control module 15 is used to control the pre-printed barcode to print and generate a corresponding two-dimensional code according to the first prompt, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode; control to send an audit application for whether the pre-printed barcode needs to print the corresponding two-dimensional code again according to the second prompt, and control the pre-printed barcode to print and generate the corresponding two-dimensional code after the audit application is passed, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode again; control to stop printing the two-dimensional code corresponding to the pre-printed barcode according to the third prompt, and prevent the formation of a forged anti-counterfeiting traceability identifier.
[0086] Specifically, since the printing device is electrically connected to the monitoring device 10, therefore, the monitoring front-end can send a control to the printing device to print the pre-printed barcode and generate a corresponding two-dimensional code according to the first prompt, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode.
[0087] In addition, the monitoring front-end can also control to send an audit application for whether the pre-printed barcode needs to print the corresponding two-dimensional code again according to the second prompt to the administrator for review, and only after the administrator's review is passed can it send a control to the printing device to print the pre-printed barcode and generate the corresponding two-dimensional code, so as to form an anti-counterfeiting traceability identifier for the pre-printed barcode again, thus avoiding the situation of overprinting anti-counterfeiting traceability identifiers and ensuring that no redundant anti-counterfeiting traceability identifiers flow to other counterfeit goods.
[0088] In addition, since the third prompt indicates an abnormal pre-printed barcode, that is, it identifies the current pre-printed barcode as a forged barcode, the monitoring front-end can also, based on the third prompt, control the printing device to stop printing the QR code corresponding to the pre-printed barcode, preventing the formation of a forged anti-counterfeiting traceability label, thereby avoiding the situation of printing out excessive anti-counterfeiting traceability labels and ensuring that no extra anti-counterfeiting traceability labels flow onto other counterfeit goods.
[0089] Please refer to Figure 6 , in some embodiments, step 061 includes:
[0090] 0611: Before controlling the printing of the QR code corresponding to the pre-printed barcode and when receiving the control instruction for confirming printing issued by the user, control to search and confirm again whether the barcode number of the pre-printed barcode exists in the preset database;
[0091] 0612: If the search result is that it exists, control the pre-printed barcode to be printed to generate the corresponding QR code to form the anti-counterfeiting traceability label of the pre-printed barcode;
[0092] 0613: If the search result is that it does not exist, control to stop printing the QR code corresponding to the pre-printed barcode, preventing the formation of a forged anti-counterfeiting traceability label.
[0093] Please combine with Figure 2 , step 0611, step 0612, and step 0613 can be implemented by the printing control module 15. The printing control module 15 is used to, before controlling the printing of the QR code corresponding to the pre-printed barcode and when receiving the control instruction for confirming printing issued by the user, control to search and confirm again whether the barcode number of the pre-printed barcode exists in the preset database; if the search result is that it exists, control the pre-printed barcode to be printed to generate the corresponding QR code to form the anti-counterfeiting traceability label of the pre-printed barcode; if the search result is that it does not exist, control to stop printing the QR code corresponding to the pre-printed barcode, preventing the formation of a forged anti-counterfeiting traceability label.
[0094] Specifically, before controlling the printing of the QR code corresponding to the pre-printed barcode, a selection box for confirming whether to print can be first displayed on the monitoring front-end for the user to select. As Figure 7 shown, if the user selects and clicks "Confirm Printing", the monitoring background can receive the control instruction for confirming printing issued by the user.
[0095] After the monitoring background receives the control instruction for confirming printing issued by the user, it can control the monitoring background to search and confirm again whether the barcode number of the pre-printed barcode exists in the preset database. If the search result is that it does not exist, control to stop printing the QR code corresponding to the pre-printed barcode, preventing the formation of a forged anti-counterfeiting traceability label, thereby avoiding printing out a forged anti-counterfeiting traceability label at the moment of finally printing the finished product.
[0096] In this way, the monitoring method of the present application can perform a security verification process for anti-counterfeiting again in the preset database before the user issues a control instruction to confirm printing, so as to avoid printing a forged anti-counterfeiting traceability label at the moment when the final finished product is printed.
[0097] Please refer to Figure 8 , in some embodiments, the monitoring method further includes:
[0098] 0614: If the search result is that it exists, control to record the actions of the current printing operator and store them in the second database;
[0099] 0615: Update the printing status of the pre-printed barcode in the preset database to the to-be-printed status;
[0100] 0616: After the printing status of the pre-printed barcode is updated to the to-be-printed status, control the pre-printed barcode to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability label for the pre-printed barcode.
[0101] Please combine with Figure 2 , steps 0614, 0615 and 0616 can be implemented by the printing control module 15. That is, the printing control module 15 is used to control to record the actions of the current printing operator and store them in the second database if the search result is that it exists; update the printing status of the pre-printed barcode in the preset database to the to-be-printed status; after the printing status of the pre-printed barcode is updated to the to-be-printed status, control the pre-printed barcode to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability label for the pre-printed barcode.
[0102] Specifically, the second database is a database different from the preset database. For example, when the preset database is a Mysql database, the second database can be one of the Hbase database and the Elasticsearch database, or can include both the Hbase database and the Elasticsearch database, and no limitation is made here.
[0103] That is to say, the monitoring method of the present application, before printing the finished product, searches and confirms again in the preset database that all the barcode numbers of the pre-printed barcodes exist. Then, before controlling the printing to generate the anti-counterfeiting traceability label, it can control to record the actions of the current printing operator and store them in the second database, and update the printing status of the barcode number corresponding to the pre-printed barcode in the preset database to the to-be-printed status, timely updating the printing status of the barcode number in the preset database, facilitating the printing process to directly proceed without having to search again in the preset database whether there is a barcode number of the pre-printed barcode when the monitoring device suddenly powers off, and making the monitoring process more concise.
[0104] In this way, the monitoring method of the present application can prevent the situation where the monitoring device suddenly loses power during the preparation for printing or during the printing process, which may lead to the disorder of the entire monitoring process, and facilitate the normal printing when the monitoring device is restarted next time.
[0105] Please refer to Figure 9 , in some embodiments, step 0612 further includes:
[0106] 06121: Encrypt the byte array of the pre-printed barcode based on a preset rule to form a string ciphertext;
[0107] 06122: Generate a corresponding two-dimensional code according to the string ciphertext, and embed standard watermark information in the two-dimensional code to form an anti-counterfeiting two-dimensional code;
[0108] 06123: Print and generate an anti-counterfeiting traceability identifier for the pre-printed barcode according to the anti-counterfeiting two-dimensional code.
[0109] Please combine with Figure 2 , step 06121, step 06122 and step 06123 can be implemented by the print control module 15. The print control module 15 is used to encrypt the byte array of the pre-printed barcode based on a preset rule to form a string ciphertext; generate a corresponding two-dimensional code according to the string ciphertext, and embed standard watermark information in the two-dimensional code to form an anti-counterfeiting two-dimensional code; print and generate an anti-counterfeiting traceability identifier for the pre-printed barcode according to the anti-counterfeiting two-dimensional code.
[0110] Specifically, the preset rule can be a bit operation conversion rule. Encrypting the byte array of the pre-printed barcode based on the preset rule to form a string ciphertext means that the monitoring method of the present application can encrypt the byte array of the pre-printed barcode based on a specific rule to form a string ciphertext, and send the data packet composed of the string ciphertext to the monitoring front end. Encrypting the pre-printed barcode here is to prevent other subsequent counterfeiters from obtaining the information of the pre-printed barcode through a barcode number with a certain format, and it can avoid counterfeiting data and maliciously requesting the monitoring background system to print counterfeiting traceability identifiers, which may cause unpredictable impacts on the monitoring background system.
[0111] For example, the data packet returned by the monitoring background to the front end can be: {(barcode a: XXXXXX), (barcode b: YYYYYY), (barcode d: ZZZZZZ)}. Among them, "XXXXXX", "YYYYYY", "ZZZZZZ" respectively represent the string ciphertexts of barcode a, barcode b, and barcode d.
[0112] That is to say, the monitoring method of the present application can use bit operations to convert the global unique byte array composed of the barcode number, barcode template node, and data primary key Id to generate a corresponding string ciphertext, and form a data packet with the string ciphertext.
[0113] Then, the monitoring front end can generate a corresponding two-dimensional code according to the string ciphertext in the data packet through a two-dimensional code generator, embed standard watermark information in the two-dimensional code to form an anti-counterfeiting two-dimensional code, and then print and generate an anti-counterfeiting traceability identifier for the pre-printed barcode according to the anti-counterfeiting two-dimensional code. Among them, the standard watermark information can be image information corresponding to the commodity one by one or other forms of information, which is not limited here. Embedding the standard watermark information in the two-dimensional code can make the anti-counterfeiting performance of the generated anti-counterfeiting traceability identifier higher.
[0114] In this way, the monitoring method of the present application can encrypt the byte array of the pre-printed barcode to form a string ciphertext, thereby generating a two-dimensional code according to the string ciphertext, so as to avoid forging data and malicious requests to print forged traceability identifiers, and embed standard watermark information in the two-dimensional code, which can make the anti-counterfeiting effect of the generated anti-counterfeiting traceability identifier stronger.
[0115] Please refer to Figure 10 , in some embodiments, after step 06123, the monitoring method further includes:
[0116] 06124: During the printing process, control to find and confirm for the third time whether the barcode numbers of the pre-printed barcodes all exist in the preset database to obtain a search result;
[0117] 06125: If the search result is existence, control to record the actions of the current printing operator in the second database, and receive the printing result of whether the anti-counterfeiting traceability identifier is printed successfully in real time;
[0118] 06126: If the printing result is successful, transfer and store the pre-printed barcode information from the preset database to the second database, and synchronously store the anti-counterfeiting traceability identifier in the second database;
[0119] 06127: If the printing result is a printing failure, update the printing status of the pre-printed barcode in the preset database to the printing failure status;
[0120] 06128: If the search result is non-existence, control to issue an exception prompt.
[0121] Please combine with Figure 2, Step 06124, Step 06125, Step 06126, Step 06127, and Step 06128 can be implemented by the printing control module 15. The printing control module 15 is used to control, during the printing process, whether the barcode numbers of the pre-printed barcodes found for the third time are all present in the preset database to obtain a search result; if the search result is that they are present, it controls to record the actions of the current printing operator in the second database and receive in real time the printing result indicating whether the anti-counterfeiting traceability label is printed successfully; if the printing result is that the printing is successful, it transfers and stores the pre-printed barcode information from the preset database to the second database and synchronously stores the anti-counterfeiting traceability label in the second database; if the printing result is that the printing fails, it updates the printing status of the pre-printed barcode in the preset database to the printing failure status; if the search result is that they are not present, it controls to issue an exception prompt.
[0122] Understandably, during the printing process, the monitoring background can be controlled to perform a security verification process to check whether the barcode numbers of the pre-printed barcodes found for the third time are all present in the preset database.
[0123] If the barcode numbers of the pre-printed barcodes are present in the preset database, the status record of the current operation can be saved in the second database first. Then the monitoring background can receive the printing result sent by the printing device indicating whether the anti-counterfeiting traceability label of the pre-printed barcode is printed successfully. The printing status of the anti-counterfeiting traceability label includes two states: printing success and printing failure.
[0124] If the printing status of the anti-counterfeiting traceability label is printing success, the pre-printed barcode information is migrated from the preset database to the second database, as Figure 3 shown. At this time, the preset database can be a Mysql database, and the second database can be an Hbase database and an Elasticsearch database.
[0125] That is to say, after the anti-counterfeiting traceability label corresponding to the pre-printed barcode is printed successfully, the relevant information about the pre-printed barcode in the Mysql database can be cleared in a timely manner, thus avoiding the phenomenon of repeatedly printing the anti-counterfeiting traceability label corresponding to the pre-printed barcode more than once, and preventing the production of redundant anti-counterfeiting traceability labels from being pasted on counterfeit goods to pass off as genuine.
[0126] The monitoring method of this application is based on considerations of performance, stability, and cost. It uses three different storage repositories, namely Mysql, Hbase, and Elasticsearch. The intermediate state data (data of unfinished printing) during the printing process is stored in the Mysql database, while the completed state data (data generated during the printing and signing processes) is stored in the Hbase database and the Elasticsearch database. Among them, the data generated during the printing and signing processes is itself stored in the Hbase database and the Elasticsearch database, and the printing operation logs are only stored in the Hbase database. This can effectively reduce the total storage volume of each database, while ensuring the stable availability of the storage database to the greatest extent and facilitating the troubleshooting and maintenance of the storage database by the operation and maintenance personnel.
[0127] Specifically, the Mysql database is suitable for scenarios with a small amount of data and associated data. Therefore, it is very simple and efficient to process the complex intermediate state data during the printing process, and the deployment cost is not high. Compared with the tidb database, although both are relational databases and can handle associated data, the tidb database is a distributed database, more suitable for large-scale data scenarios, and the deployment cost is also higher.
[0128] The Hbase database is a distributed and scalable NoSQL database based on Hadoop, suitable for processing large-scale structured data. The query efficiency for a single piece of data through the rowKey database is extremely high. Therefore, as the data volume gradually increases, the query efficiency is basically not affected. In contrast, query engines such as the mysql database and the tidb database will have a reduced query efficiency as the data volume increases. In addition, although the Elasticsearch database can store permanently large amounts of data and has a high query efficiency, it is slower than the Hbase database in the scenario of querying a single piece of data. Therefore, in this solution, considering that the completed state data needs to be permanently stored and the data volume will also increase day by day, the Hbase database is selected to store the completed state data, and searches can be performed in the Hbase database in the scenario of querying a single piece of data.
[0129] The Elasticsearch database is suitable for real-time search and analysis of large-scale data and has extremely high performance in the scenario of paging queries. However, the performance of the Elasticsearch database in batch queries is higher than that of the Hbase database. Therefore, in the scenario of querying the monitoring front-end page, the Elasticsearch database is selected for search queries.
[0130] If the printing status of the anti-counterfeiting traceability label is printing failure, update the printing status of the pre-printed barcode in the preset database to the printing failure status, and it can also be re-printed later.
[0131] In this way, the monitoring method of the present application can store relevant data information before and after successful printing in different databases, which can avoid repeatedly printing the anti-counterfeiting traceability labels corresponding to the pre-printed barcodes, and prevent the phenomenon of producing extra anti-counterfeiting traceability labels and sticking them on counterfeit goods to pass off the fake as the real.
[0132] Please refer to Figure 11 , in some embodiments, the monitoring method includes:
[0133] 071: Real-time identify the clarity and integrity of the anti-counterfeiting traceability label;
[0134] 072: If the clarity of the anti-counterfeiting traceability label is lower than the preset clarity threshold and / or the integrity is lower than the preset integrity threshold, send an audit application for re-printing the anti-counterfeiting traceability label;
[0135] 073: After the audit application is approved, control the re-printing of the anti-counterfeiting traceability label.
[0136] Please refer to Figure 12 , the monitoring device 10 further includes an audit module 16. Steps 071, 072, and 073 can be implemented by the audit module 16. That is to say, the audit module 16 is used to real-time identify the clarity and integrity of the anti-counterfeiting traceability label; if the clarity of the anti-counterfeiting traceability label is lower than the preset clarity threshold and / or the integrity is lower than the preset integrity threshold, send an audit application for re-printing the anti-counterfeiting traceability label; after the audit application is approved, control the re-printing of the anti-counterfeiting traceability label.
[0137] Specifically, the clarity of the anti-counterfeiting traceability label being lower than the preset clarity threshold and / or the integrity being lower than the preset integrity threshold includes three situations: (1) only the clarity of the anti-counterfeiting traceability label is lower than the preset clarity threshold; (2) only the integrity of the anti-counterfeiting traceability label is lower than the preset integrity threshold; (3) the clarity of the anti-counterfeiting traceability label is lower than the preset clarity threshold, and the integrity of the anti-counterfeiting traceability label is lower than the preset integrity threshold.
[0138] The preset clarity threshold and the preset integrity threshold can be pre-set values, which are not limited here.
[0139] That is, after the anti-counterfeiting traceability label is printed and generated, the monitoring method of the present application can identify in real time whether the generated anti-counterfeiting traceability label is clear and whether there is damage. If it is found that the anti-counterfeiting traceability label is not printed clearly or is damaged, since it cannot be printed repeatedly, at this time, an audit application for reprinting the anti-counterfeiting traceability label can be controlled to be issued, and reprinting the anti-counterfeiting traceability label can be carried out again only after the administrator completes the audit and the audit is passed.
[0140] As Figure 13 shown, Figure 13 The following is the specific process steps corresponding to the user issuing an audit application for reprinting and the administrator conducting the audit. The security verification process during the submission of the audit application and after the audit is passed is similar to the search and confirmation process during the printing of the anti-counterfeiting traceability label. The security verification process during the submission of the audit application and after the audit is passed both have a verification process of searching in the preset database to check whether there is a barcode number of the pre-printed barcode.
[0141] In this way, when the monitoring method of the present application identifies that the clarity or integrity of the printed anti-counterfeiting traceability label is poor, the corresponding anti-counterfeiting traceability label can be reprinted only by submitting an audit application for reprinting, ensuring that no redundant anti-counterfeiting traceability labels are generated.
[0142] In addition, if force majeure factors such as the printing device restarting, crashing, shutting down, or the operator accidentally exiting due to human error occur during the printing process, the audit module 16 can save the current printing status of the anti-counterfeiting traceability label, and the operator can restart the printing device and start the monitoring process to reprint.
[0143] Furthermore, for the issue of printing liability disputes in the future, the audit module 16 also supports querying the historical log through the barcode, saving key nodes such as submitting for printing, printing, reprinting applications, and auditing, and holding the corresponding personnel accountable by querying the personnel information configured in the white list of the audit module 16.
[0144] The monitoring method of the present application can not only monitor the printing process of the anti-counterfeiting traceability label from the source, but also monitor the anti-counterfeiting traceability label from the consumer's scanning end.
[0145] Specifically, please refer to Figure 14 , in some embodiments, the monitoring method includes:
[0146] 081: When scanning the anti-counterfeiting traceability label for product receipt, obtain the scanning information of the scanned anti-counterfeiting traceability label;
[0147] 082: Identify whether there is watermark information in the scanning information;
[0148] 083: If there is watermark information in the scanning information, compare the watermark information with the standard watermark information corresponding to the anti-counterfeiting traceability label;
[0149] 084: If the comparison result shows that the watermark information is the same as the standard watermark information, then control is to not issue an exception prompt;
[0150] 085: If the comparison result shows that the watermark information is different from the standard watermark information, then control is to issue an exception prompt;
[0151] 086: If there is no watermark information in the scanned information, then control is to issue an exception prompt.
[0152] Please refer to Figure 15 , the monitoring device 10 further includes a data exception analysis module 17. Steps 081, 082, 083, 084 and 085 can all be implemented by the data exception analysis module 17. That is to say, the data exception analysis module 17 is used to obtain the scanned information of the scanned anti-counterfeiting traceability label when signing for a commodity; identify whether there is watermark information in the scanned information; if there is watermark information in the scanned information, then compare according to the watermark information and the standard watermark information corresponding to the anti-counterfeiting traceability label; if the comparison result shows that the watermark information is the same as the standard watermark information, then control is to not issue an exception prompt; if the comparison result shows that the watermark information is different from the standard watermark information, then control is to issue an exception prompt; if there is no watermark information in the scanned information, then control is to issue an exception prompt.
[0153] Specifically, as Figure 16 shown, when comparing according to the watermark information and the standard watermark information corresponding to the anti-counterfeiting traceability label, if the comparison result shows that the watermark information is different from the standard watermark information, then control is to issue an exception prompt; if there is no watermark information in the scanned information, then it can also control to issue an exception prompt, which means that when a consumer scans the code to sign for receipt, the scanned information obtained by decoding and analyzing the two-dimensional code in the anti-counterfeiting traceability label can be received. If the scanned information shows that there is no watermark information, or the watermark information in the scanned information does not match the watermark information in the stored database, that is, the watermark information in the current scanned information is incorrect, then an exception prompt can be issued.
[0154] At this time, an exception prompt is displayed at the monitoring front end, which can facilitate informing the user that the anti-counterfeiting traceability label is a fake label. Among them, the exception prompt can be prompted in the form of text, audio, picture or video, and there is no limit here.
[0155] Compare the watermark information with the standard watermark information corresponding to the anti-counterfeiting traceability label. If the comparison result shows that the watermark information is the same as the standard watermark information, then control is exercised not to issue an abnormal prompt. That is, if there is watermark information in the scanned information and there is a one-to-one correspondence between the watermark information and the two-dimensional code, then control is exercised not to issue an abnormal prompt. At this time, the display page of the monitoring front end can jump to the receipt page, and the receipt page displays the basic information of the commodity. At the same time, the user ID, the number of times the two-dimensional code is scanned, the first scanning time, and the address are recorded. After the consumer confirms receipt, the first receipt time can also be recorded, and subsequent re-scanning does not allow for receipt again.
[0156] It should be noted that the scanned information on the consumer side can all be stored in the Hbase database. The process of comparing the scanned watermark information with the standard watermark information corresponding to the anti-counterfeiting traceability label can also be carried out in the Hbase database.
[0157] In this way, the monitoring method of the present application can, when the consumer scans the code for receipt, obtain the scanned information of the scanned anti-counterfeiting traceability label in real time, analyze whether the scanned information is abnormal, and thus issue an abnormal prompt to promptly inform the consumer and the background operator that the anti-counterfeiting traceability label is forged, realizing the abnormal monitoring of the anti-counterfeiting traceability label.
[0158] Please refer to Figure 17 , in some embodiments, the monitoring method includes:
[0159] 091: When scanning the anti-counterfeiting traceability label for commodity receipt, obtain the scanned information of the anti-counterfeiting traceability label;
[0160] 092: Identify the number of times the code is scanned, the scanning addresses of two adjacent scans, and / or the identity coding address used by the user for scanning in the scanned information;
[0161] 093: If the number of times the code is scanned is greater than or equal to the preset number of times, then mark the commodity corresponding to the anti-counterfeiting traceability label as a frequently scanned commodity;
[0162] 094: If the scanning addresses of two adjacent scans are different, then mark the commodity corresponding to the anti-counterfeiting traceability label as a commodity with scanned codes from different locations;
[0163] 095: If the number of identity coding addresses is greater than or equal to the preset number, then mark the commodity corresponding to the anti-counterfeiting traceability label as a commodity with multiple users scanning the code.
[0164] Please combine with Figure 15, Step 091, Step 092, Step 093, Step 094, and Step 095 can all be implemented by the data anomaly analysis module 17. That is to say, the data anomaly analysis module 17 is used to obtain the scanning information of the anti-counterfeiting traceability label when scanning the anti-counterfeiting traceability label for commodity receipt; identify the number of scans, the scan addresses of two adjacent scans, and / or the identity coding address used by the user for scanning in the scanning information; if the number of scans is greater than or equal to the preset number, mark the commodity corresponding to the anti-counterfeiting traceability label as a frequently scanned commodity; if the scan addresses of two adjacent scans are different, mark the commodity corresponding to the anti-counterfeiting traceability label as a commodity with different scan locations; if the number of identity coding addresses is greater than or equal to the preset number, mark the commodity corresponding to the anti-counterfeiting traceability label as a commodity with multiple user scans.
[0165] Specifically, the preset number can be, for example, 3 times, 4 times, 5 times, 6 times, 7 times, 8 times, 9 times, 10 times, or 11 times, and there is no limitation here.
[0166] That is to say, in order to facilitate the monitoring of commodity anomalies, the monitoring method of this application can perform comparative analysis through the number of scans and the addresses before and after scanning.
[0167] For example, if the number of scans of the same two-dimensional code is greater than 5 times, mark the commodity corresponding to the anti-counterfeiting traceability label with "frequently scanned".
[0168] If the first scan address of the same anti-counterfeiting traceability label and the non-first scan geographical location do not belong to the same province, if so, mark the commodity with "different scan locations".
[0169] If the number of user identity coding addresses (ID) corresponding to the same anti-counterfeiting traceability label for scanning is greater than 3, then mark the commodity with "multiple user scans". Subsequently, the subsequent personnel will conduct inspections on the commodities with the above abnormal marks.
[0170] In this way, the monitoring method of this application can not only monitor the printing process of the anti-counterfeiting traceability label from the source, but also monitor the commodity corresponding to the anti-counterfeiting traceability label from the consumer's scanning end.
[0171] Please refer to Figure 18 , in some embodiments, the monitoring method includes:
[0172] 096: Receive a query instruction for querying the anti-counterfeiting traceability label or scanning information corresponding to a preset commodity;
[0173] 097: Query the anti-counterfeiting traceability label or scanning information corresponding to the preset commodity according to the query instruction, and the scanning information includes the number of scans, the scan addresses of two adjacent scans, and / or the identity coding address used by the user for scanning.
[0174] Please refer toFigure 19 The monitoring device 10 further includes a query module 18. Both step 096 and step 097 can be implemented by the query module 18. That is, the query module 18 is used to receive a query instruction for querying the anti-counterfeiting traceability identifier or scan information corresponding to a preset commodity; and query the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity according to the query instruction, where the scan information includes the number of scan times, the scan addresses of two adjacent scans, and / or the identity coding address used by the user for scanning.
[0175] Specifically, as described above, the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity can be stored in the second database, for example, it can be stored in the Hbase database. Therefore, the monitoring method of the present application can receive in real time a query instruction for querying the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity, and thus query the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity in the second database, which is convenient for subsequent personnel to inspect abnormal anti-counterfeiting traceability identifiers and commodities marked with anomalies.
[0176] Since the traceability chain formed by the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity can be stored in the Hbase database, the information of the traceability chain is queried in the Hbase database according to the query instruction. Among them, the traceability chain refers to a chain used to track and record information such as the source, transmission path, and application method of data or items. In the fields of data circulation, logistics transportation, etc., the traceability chain is crucial for maintaining the clarity, transparency, and traceability of data. By establishing a traceability chain, the source of problems can be quickly identified, the responsible parties can be clearly defined, and subsequent evidence collection and liability determination work can be effectively guided.
[0177] In this way, the monitoring method of the present application can realize real-time query of the anti-counterfeiting traceability identifier or scan information corresponding to the preset commodity, which is convenient for subsequent personnel to inspect abnormal anti-counterfeiting traceability identifiers and commodities marked with anomalies.
[0178] The present application also provides a monitoring system. The monitoring system is used to implement the monitoring method described in any one of the above embodiments, or includes a printing device and the monitoring device 10 described above, and the printing device is electrically connected to the monitoring device 10.
[0179] Specifically, the specific working principle and control process of the monitoring method are as described above and will not be elaborated here. The specific structure of the monitoring device 10 is as described above and will not be elaborated here.
[0180] In this way, the monitoring system of the present application can control the printing of the anti-counterfeiting traceability identifier from the generation source of the genuine product traceability identifier by applying the above monitoring method, and control that only one anti-counterfeiting traceability identifier can be printed for one item during the printing process, ensuring that no redundant anti-counterfeiting traceability identifiers flow to other counterfeit commodities.
[0181] The present application also provides a non - volatile computer - readable storage medium containing a computer program. When the computer program is executed by one or more processors, the monitoring method described in any one of the above - mentioned embodiments is implemented. For example, when the computer program is executed by a processor, the steps of the monitoring method are implemented as follows:
[0182] 01: After receiving the pre - printed barcode information entered in batches and the user control instruction for printing and generating anti - counterfeiting traceability labels, check and confirm whether the barcode number of the pre - printed barcode exists in a preset database, and obtain a search result;
[0183] 02: If the search result is that it exists, determine the printing status of the pre - printed barcode according to the printing status of the historical printed barcodes in the preset database, and mark the printing status of the pre - printed barcode with a first status identifier;
[0184] 03: If the search result is that it does not exist, mark the printing status of the pre - printed barcode with a second status identifier;
[0185] 04: Form a data message according to the search result, the first status identifier, and the second status identifier;
[0186] 05: Identify the different printing statuses of the pre - printed barcodes in the data message, and issue different printing prompts according to the different printing statuses of the pre - printed barcodes;
[0187] 06: Control the printing process of the anti - counterfeiting traceability label according to the printing prompt, so as to generate a unique anti - counterfeiting traceability label corresponding to the commodity.
[0188] The implementation steps and implementation principles of the specific monitoring method are as described above, and will not be elaborated here.
[0189] In this way, the non - volatile computer - readable storage medium of the present application can control the printing of the anti - counterfeiting traceability label from the source of the generation of the genuine product traceability label through the monitoring method described above, control that only one anti - counterfeiting traceability label can be printed for one item during the printing process, and ensure that no redundant anti - counterfeiting traceability labels flow to other counterfeit commodities.
[0190] The present application also provides a computer program product. The computer program product includes a computer program. When the computer program is executed by one or more processors, the monitoring method described in any one of the above - mentioned embodiments is implemented. For example, when the computer program is executed by a processor, the steps of the monitoring method are implemented as follows:
[0191] 01: After receiving the pre - printed barcode information entered in batches and the user control instruction for printing and generating anti - counterfeiting traceability labels, check and confirm whether the barcode number of the pre - printed barcode exists in a preset database, and obtain a search result;
[0192] 02: If the search result is that it exists, determine the printing status of the pre-printed barcode according to the printing status of the historical printed barcode in the preset database, and mark the printing status of the pre-printed barcode with the first status identifier;
[0193] 03: If the search result is that it does not exist, mark the printing status of the pre-printed barcode with the second status identifier;
[0194] 04: Form a data message according to the search result, the first status identifier, and the second status identifier;
[0195] 05: Identify the different printing statuses of the pre-printed barcode in the data message, and issue different printing prompts according to the different printing statuses of the pre-printed barcode;
[0196] 06: Control the printing process of the anti-counterfeiting traceability identifier according to the printing prompt, so as to generate a unique anti-counterfeiting traceability identifier corresponding to the commodity.
[0197] The implementation steps and implementation principles of the specific monitoring method are as described above, and will not be elaborated here.
[0198] In this way, the computer program product of the present application can control the printing of the anti-counterfeiting traceability identifier from the generation source of the genuine product traceability identifier through the monitoring method described above, and control that only one anti-counterfeiting traceability identifier can be printed for an item during the printing process, ensuring that no redundant anti-counterfeiting traceability identifiers flow to other counterfeit commodities.
[0199] The above embodiments only represent several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A monitoring method, characterized in that: The monitoring method comprises: After receiving the batch-entered pre-printed barcode information and the user control instruction to print and generate the anti-counterfeiting traceability mark, searching and confirming whether the barcode number of the pre-printed barcode exists in the preset database, and obtaining the search result; If the search result is yes, the printing status of the pre-printed barcode is determined according to the printing status of the historical printed barcodes in the preset database, and the printing status of the pre-printed barcode is marked with a first status identifier; If the search result is not present, marking the printing status of the pre-printed barcode with a second status identifier; forming a data message according to the search result, the first state identifier and the second state identifier; Identify different printing states of the pre-printed barcode in the data message, and issue different printing prompts according to the different printing states of the pre-printed barcode; The printing process of the anti-counterfeiting traceability mark is controlled according to the printing prompt, so that a unique anti-counterfeiting traceability mark corresponding to the commodity is generated.
2. The monitoring method according to claim 1, characterized in that: The identifying different printing states of the pre-printed barcode in the data message and issuing different printing prompts according to the different printing states of the pre-printed barcode comprises: If the printing state corresponding to the pre-printed barcode in the data message is identified as a printable state, controlling to issue a first prompt indicating that the pre-printed barcode is printable; If the printing status corresponding to the pre-printed barcode in the data message is identified as the printed status, controlling the issuance of a second prompt that the pre-printed barcode needs to be reviewed and re-printed; If it is identified that the printing status corresponding to the pre-printed barcode in the data message is an ungenerated status, it is determined that the pre-printed barcode does not exist in the preset data, and a third prompt indicating that the pre-printed barcode is abnormal is issued.
3. The monitoring method according to claim 2, characterized in that: The step of controlling the printing process of the anti-counterfeiting traceability mark according to the printing prompt so as to generate a unique anti-counterfeiting traceability mark corresponding to the commodity comprises: According to the first prompt, the pre-printed barcode is controlled to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability mark of the pre-printed barcode; According to the second prompt, a review application is issued to determine whether the pre-printed barcode needs to be re-printed with a corresponding two-dimensional code, and after the review application is passed, the pre-printed barcode is controlled to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability mark of the pre-printed barcode again; The printing of the two-dimensional code corresponding to the pre-printed barcode is stopped according to the third prompt to prevent the formation of a forged anti-counterfeiting traceability mark.
4. The monitoring method according to claim 3, characterized in that: The step of controlling the pre-printed barcode to print and generate a corresponding two-dimensional code according to the first prompt to form an anti-counterfeiting traceability mark of the pre-printed barcode includes: Before controlling printing of the pre-printed barcode to generate a corresponding two-dimensional code, and upon receiving a control instruction from a user to confirm printing, controlling to search again to confirm whether the barcode number of the pre-printed barcode exists in the preset database; If the search result is yes, the pre-printed barcode is controlled to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability mark of the pre-printed barcode; If the search result is that the pre-printed barcode does not exist, the control stops printing and generating the two-dimensional code corresponding to the pre-printed barcode to prevent the formation of a forged anti-counterfeiting traceability mark.
5. The monitoring method according to claim 4, characterized in that: The monitoring method further comprises: If the search result is that it exists, the control records the action of the current printing operator and stores it in the second database; Updating the printing status of the pre-printed barcode in the preset database to a ready-to-print status; After the printing state of the pre-printed barcode is updated to the ready-to-print state, the pre-printed barcode is controlled to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability mark of the pre-printed barcode.
6. The monitoring method according to claim 4, characterized in that: If the search result is found to exist, the pre-printed barcode is controlled to print and generate a corresponding two-dimensional code to form an anti-counterfeiting traceability mark of the pre-printed barcode, and the method further includes: Encrypting the byte array of the pre-printed barcode based on a preset rule to form a string ciphertext; Generate a corresponding QR code according to the string ciphertext, and embed standard watermark information in the QR code to form an anti-counterfeiting QR code; An anti-counterfeiting traceability mark of the pre-printed barcode is generated according to the anti-counterfeiting two-dimensional code.
7. The monitoring method according to claim 6, characterized in that: After the anti-counterfeiting traceability mark of the pre-printed barcode is generated according to the anti-counterfeiting two-dimensional code, the monitoring method further includes: During the printing process, controlling the third search to confirm whether the barcode numbers of the pre-printed barcodes are all present in the preset database, and obtaining the search result; If the search result is found to exist, the control records the action of the current printing operator into the second database, and receives the printing result of the anti-counterfeiting traceability mark in real time; If the printing result is successful, the pre-printed barcode information is transferred from the preset database to the second database for storage, and the anti-counterfeiting traceability mark is synchronously stored in the second database; If the printing result is a printing failure, updating the printing status of the pre-printed barcode in the preset database to a printing failure status; If the search result is not present, the control generates an exception prompt.
8. The monitoring method according to claim 1, characterized in that: The monitoring method comprises: Real-time identification of the clarity and completeness of the anti-counterfeiting traceability mark; If the clarity of the anti-counterfeiting traceability mark is lower than a preset clarity threshold and / or the completeness is lower than a preset completeness threshold, a review application for reprinting the anti-counterfeiting traceability mark is issued; After the review application is passed, the anti-counterfeiting traceability mark is controlled to be reprinted.
9. The monitoring method according to claim 8, characterized in that: The monitoring method comprises: When scanning the anti-counterfeiting traceability mark to sign for the goods, obtaining scanning information of scanning the anti-counterfeiting traceability mark; Identifying whether watermark information exists in the scanned information; If watermark information exists in the scanned information, comparing the watermark information with the standard watermark information corresponding to the anti-counterfeiting traceability mark; If the comparison result is that the watermark information is the same as the standard watermark information, the control does not issue an abnormal prompt; If the comparison result shows that the watermark information is different from the standard watermark information, the control sends an abnormal prompt; If the watermark information does not exist in the scan information, the control sends an abnormal prompt.
10. The monitoring method according to claim 1, characterized in that: The monitoring method comprises: When scanning the anti-counterfeiting traceability mark to sign for the goods, obtaining the scanning information of the anti-counterfeiting traceability mark; Identify the number of scans in the scan information, the scan addresses of two adjacent scans, and / or the identity code address used by the user for scanning; If the number of code scanning is greater than or equal to the preset number, the product corresponding to the anti-counterfeiting traceability mark is marked as a frequently scanned product; If the scanning addresses of the two adjacent scannings are different, the commodity corresponding to the anti-counterfeiting traceability mark is marked as a non-local scanning commodity; If the number of the identity code addresses is greater than or equal to a preset number, the commodity corresponding to the anti-counterfeiting traceability mark is marked as a multi-user scanned commodity.
11. The monitoring method according to claim 1, characterized in that: The monitoring method comprises: Receive a query instruction for querying the anti-counterfeiting traceability mark or scanning information corresponding to a preset product; The anti-counterfeiting traceability mark or scanning information corresponding to the preset product is queried according to the query instruction, and the scanning information includes the number of scans, the scanning addresses of two adjacent scans and / or the identity code address used by the user for scanning.
12. A monitoring device, characterized in that: The monitoring device comprises: A search module is used to search and confirm whether the barcode number of the pre-printed barcode exists in a preset database after receiving the pre-printed barcode information entered in batches and the user control instruction to print and generate the anti-counterfeiting traceability mark, and obtain the search result; A status identification module, for determining the printing status of the pre-printed barcode according to the printing status of the historically printed barcodes in the preset database if the search result is yes, and marking the printing status of the pre-printed barcode with a first status identification; if the search result is no, marking the printing status of the pre-printed barcode with a second status identification; A message generation module, used for forming a data message according to the search result and the first state identifier and the second state identifier; a prompt module, used for identifying different printing states of the pre-printed barcode in the data message, and issuing different printing prompts according to the different printing states of the pre-printed barcode; and The printing control module is used to control the printing process of the anti-counterfeiting traceability mark according to the printing prompt, so as to generate a unique anti-counterfeiting traceability mark corresponding to the commodity.
13. A monitoring system, characterized in that: The monitoring system is used to implement the monitoring method described in any one of claims 1 to 11, or includes a printing device and the monitoring apparatus described in claim 12, and the printing device is electrically connected to the monitoring apparatus.
14. A non-volatile computer-readable storage medium containing a computer program, characterized in that: When the computer program is executed by one or more processors, the monitoring method according to any one of claims 1 to 11 is implemented.
15. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by one or more processors, the monitoring method according to any one of claims 1 to 11 is implemented.