Method and apparatus for determining the validity of a code
Patent Information
- Application Number
- CN202310779466.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-06-28
Smart Images

Figure CN116976904B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of quality inspection technology, and in particular to a method and apparatus for determining the validity of code materials. Background Technology
[0002] When expanding payment processing, all materials beyond the online program are needed. These include brand carriers and services provided to merchants, such as restaurant tags, booths, and door stickers, and farmers' electronic scales and welcome lights. Code materials refer to materials with QR codes or barcodes. Because of the code information they contain, users can usually conduct transactions and participate in various platform or merchant activities by scanning the code. If a user scans the code through the client and does not enter the actual traffic-generating area, the material is considered "unavailable," meaning the code material is invalid.
[0003] The existing technology for verifying the validity of code materials mainly relies on manual scanning and sampling. If a batch of materials is found to be unusable during sampling, the entire batch of materials must be discarded. This method is time-consuming and costly, and it is also easy to miss detections.
[0004] Therefore, how to automate the verification of the validity of coded materials and optimize the cost and efficiency of verifying the validity of coded materials are technical problems that urgently need to be solved. Summary of the Invention
[0005] The purpose of this disclosure is to provide a method for determining the validity of coded materials, so as to at least solve the technical problems in the related art of how to automate the verification of the validity of coded materials and optimize the cost and efficiency of verifying the validity of coded materials.
[0006] According to one aspect of the embodiments of this disclosure, a method for determining the validity of coded materials is provided, comprising:
[0007] Get the material link corresponding to the material with the code;
[0008] Send a code value recognition request message with the material link to the code value recognition platform, and receive code value response information from the code value recognition platform;
[0009] If the code value response information contains the code value link corresponding to the material link, a route verification request information containing the code value link is sent to the route verification platform, and the route verification platform sends back the route response information.
[0010] If the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification, the code material is determined to be invalid.
[0011] If the routing response information contains the routing result corresponding to the code value link and the routing link passes the rule verification, the code material is determined to be valid.
[0012] In an exemplary embodiment, sending route verification request information with the code value link to a route verification platform and receiving route response information from the route verification platform includes:
[0013] Send the gateway interface information corresponding to the route verification platform and the route verification request information to the automated testing platform;
[0014] Based on the gateway interface information, the automated testing platform sends the route verification request information to the route verification platform and receives the route response information from the route verification platform.
[0015] In one exemplary embodiment, before receiving the routing response information fed back by the routing verification platform, the method further includes:
[0016] The routing verification request information is input to the downstream processing system of the routing verification platform.
[0017] The routing results are queried from the downstream processing system of the routing verification platform.
[0018] In one exemplary embodiment, the code material includes at least one of the following categories of materials: physical code material and electronic code material;
[0019] The acquisition of the material link corresponding to the code material includes at least one of the following steps: obtaining the address link of the image data of the physical code material and the identity identifier of the physical code material from the physical code material storage data based on a periodic task, and using the address link of the image data as the material link; obtaining the code data of the electronic code material and the address link of the composite image result from the general code system based on a periodic task, and using the address link of the composite image result as the material link.
[0020] In one exemplary embodiment, before receiving the code value response information fed back by the code value recognition platform, the method further includes:
[0021] The image data or code data corresponding to the material link is identified through the code value recognition platform.
[0022] The code value response information is generated based on the image data or the code data.
[0023] In one exemplary embodiment, it further includes:
[0024] If the material with the code is determined to be invalid, an invalid material alarm message with the identification identifier of the material with the code is generated;
[0025] The invalid material alarm information is sent to the preset alarm information receiving terminal.
[0026] According to another aspect of the present disclosure, an apparatus for determining the validity of coded materials is also provided, comprising:
[0027] The acquisition module is used to retrieve the material link corresponding to the code material;
[0028] The code value module is used to send code value recognition request information with the material link to the code value recognition platform, and to receive code value response information from the code value recognition platform.
[0029] The routing module is used to send a routing verification request message with the code value link corresponding to the material link to the routing verification platform when the code value response information contains the code value link, and to receive the routing response information fed back by the routing verification platform.
[0030] The first determining module is used to determine that the code material is invalid when the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification.
[0031] The second determining module is used to determine that the code material is valid when the routing response information contains the routing result corresponding to the code value link and the routing link passes the rule verification.
[0032] In one exemplary embodiment, the code value module includes:
[0033] The first relay unit is used to send the gateway interface information corresponding to the route verification platform and the route verification request information to the automated testing platform.
[0034] The second relay unit is used to send the route verification request information to the route verification platform through the automated testing platform according to the gateway interface information, and to receive the route response information fed back by the route verification platform.
[0035] In one exemplary embodiment, it further includes:
[0036] The first downstream module is used to input the route verification request information to the downstream processing system of the route verification platform through the route verification platform;
[0037] The second downstream module is used to query the routing results from the downstream processing system of the routing verification platform through the routing verification platform.
[0038] In one exemplary embodiment, the code material includes at least one of the following categories of materials: physical code material and electronic code material;
[0039] The acquisition module includes at least one of the following: a physical code material unit, used to acquire the address link of the image data of the physical code material and the identity identifier of the physical code material from the physical code material storage data based on a periodic task, and use the address link of the image data as the material link; and an electronic code material unit, used to acquire the code data of the electronic code material and the address link of the composite image result from the general code system based on a periodic task, and use the address link of the composite image result as the material link.
[0040] In one exemplary embodiment, it further includes:
[0041] The material identification module is used to identify the image data or code data corresponding to the material link through the code value identification platform; and to generate the code value response information based on the image data or the code data.
[0042] In one exemplary embodiment, it further includes:
[0043] The alarm generation module is used to generate invalid material alarm information with the identification identifier of the code material when it is determined that the code material is invalid;
[0044] The alarm sending module is used to send the invalid material alarm information to a preset alarm information receiving terminal.
[0045] According to another aspect of the present disclosure, a computer device is also provided, the computer device comprising: a processor adapted to implement various instructions and a storage device storing a plurality of instructions adapted to be loaded by the processor and executed any of the above-described methods for determining the validity of code material.
[0046] According to another aspect of the present disclosure, there is also a computer-readable storage medium storing a computer program for performing any of the above-described methods for determining the validity of coded materials.
[0047] According to another aspect of the present disclosure, there is also a computer program product comprising a computer program that, when executed by a processor, implements any of the above-described methods for determining the validity of code material.
[0048] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0049] The following figures are intended only to illustrate and explain this disclosure and do not limit the scope of this disclosure. Wherein:
[0050] Figure 1 This is a flowchart of a method for determining the validity of code materials according to embodiments of the present disclosure; and,
[0051] Figure 2 This is a schematic diagram of the routing verification implementation link in a method for determining the validity of code materials according to an optional embodiment of this disclosure; and,
[0052] Figure 3 This is a schematic diagram of the system architecture of a method for determining the validity of code materials according to an optional embodiment of this disclosure; and,
[0053] Figure 4 This is a schematic diagram of a device for determining the validity of code materials according to embodiments of the present disclosure; and,
[0054] Figure 5 This is a schematic diagram of the structure of a computer device according to an embodiment of this disclosure. Detailed Implementation
[0055] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. Through these descriptions, the features and advantages of the present application will become clearer and more apparent.
[0056] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments. Although various aspects of embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated otherwise.
[0057] Furthermore, the technical features involved in the different embodiments of this application described below can be combined with each other as long as they do not conflict with each other.
[0058] This embodiment provides a method for determining the validity of coded materials. Figure 1 This is a flowchart of a method for determining the validity of code materials according to embodiments of this disclosure, such as... Figure 1 As shown, it includes:
[0059] Step 102: Obtain the material link corresponding to the material with the code.
[0060] The aforementioned material links can be address links in the database of coded materials that associate the QR code or barcode data of the coded material. For example, the material link for a physical coded material is an image address link, and the material supplier produces the physical material according to the image style and sends it to the user; the material link for an electronic coded material can also be an image address link.
[0061] Step 104: Send a code value recognition request message with the above-mentioned material link to the code value recognition platform, and receive the code value response message fed back by the code value recognition platform.
[0062] The aforementioned code value recognition platform can be a platform with image recognition functionality that supports interface calls. The aforementioned code value response information can be the code value recognition result of the aforementioned code material, such as a code value link obtained after successful recognition, or a failure result obtained after failed recognition.
[0063] The aforementioned code value recognition request information can be a series of parameters from the program interface, among which the core parameter is the aforementioned material link. The aforementioned code value recognition platform can obtain the QR code or barcode image data of the code material based on the aforementioned material link and perform code value recognition.
[0064] The above code value response information can be a list of code values corresponding to the above material link (a code value link corresponding to one or more QR codes on a code material), or it can be an empty code value list, or it can be a recognition failure indicating a system error.
[0065] Step 106: If the code value response information contains the code value link corresponding to the material link, send a route verification request information containing the code value link to the route verification platform, and receive the route response information fed back by the route verification platform.
[0066] The aforementioned routing request information may include the identified code value link and the account data from the simulated QR code scan.
[0067] The aforementioned route verification platform can be a decoding platform that supports API calls. It can obtain the route address corresponding to the code through a series of commands such as parsing the code value and finding the route result, and then return the result. The aforementioned code value link can be a page link corresponding to the identified material with the code, or it can be a string used to uniquely identify a QR code. The aforementioned route response information can be the route result corresponding to the code value link obtained after successful route verification, or the failure result obtained after failed route verification. The route result obtained after successful verification includes the route result link. The failure result does not include the aforementioned route link, but includes the corresponding error code and error information.
[0068] Step 108: If the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification, the code material is determined to be invalid.
[0069] The routing results described above can be the matching results of the link addresses corresponding to the QR code values. These routing results contain routing links, which are the page addresses configured behind the QR code to redirect to.
[0070] Step 110: If the above routing response information contains the routing result corresponding to the above code value link and the above routing link passes the above rule verification, then the above code material is determined to be valid.
[0071] The rule validation mentioned above can be used to check key fields in the routing links in the routing results. For example, if the key field characters are not standard characters or specific characters are identified, the rule validation will fail. If the key field is not missing and no specific characters are identified, the rule validation will pass.
[0072] The aforementioned material link can also be a QR code value link for electronic code materials. For such code materials, the code value identification step 104 can be omitted, and a route verification request information with the aforementioned code value link can be sent directly to the route verification platform, and the route response information fed back by the route verification platform can be received.
[0073] In this embodiment of the disclosure, through steps 102 to 110, verification parameters for the code material are obtained, including the material link of the code material. A code value recognition request message containing the material link is sent to the code value recognition platform, and code value response information is received from the code value recognition platform. If the code value response information contains the code value link corresponding to the material link, a route verification request message containing the code value link is sent to the route verification platform, and route response information is received from the route verification platform. If the code value response information does not contain the code value link corresponding to the material link, or the route response information does not contain the route result corresponding to the code value link, or the route link in the route result fails the rule verification, the code material is determined to be invalid. If the route response information contains the route result corresponding to the code value link and the route link passes the rule verification, the code material is determined to be valid. This technology can solve the technical problem of how to automate the verification of the validity of coded materials, and optimize the cost and efficiency of verifying the validity of coded materials. By calling the code value recognition platform and the routing verification platform, the system can identify the material link and code value of the coded materials, and determine the validity of the coded materials based on the recognition results, thereby achieving the technical effect of optimizing the verification efficiency and verification cost of coded material validity verification.
[0074] In one exemplary embodiment, step 104 above includes:
[0075] Send the gateway interface information corresponding to the aforementioned route verification platform and the aforementioned route verification request information to the automated testing platform.
[0076] The aforementioned automated testing platform can be an end-to-end (server-side) automated testing platform that supports interface calls, enabling automated testing of the link dimension in various scenarios. The gateway interface information mentioned above can be the gateway interface name of the routing verification platform, etc., which can be used by the automated testing platform to determine the information of the routing verification platform. This can be achieved when a client calls the decoding platform's server-side system interface through a unified gateway platform; the corresponding decoding platform system routing interface needs to be converted into gateway information before the call.
[0077] Based on the aforementioned gateway interface information, the aforementioned automated testing platform sends the aforementioned route verification request information to the aforementioned route verification platform and receives the route response information fed back by the aforementioned route verification platform.
[0078] Through the above embodiments, by connecting the automated testing platform to the backend system's RPC (Remote Procedure Call) protocol-based server interface and the routing interface of the routing verification platform's RPC gateway, the technical problem of port mismatch when the backend system calls the routing verification platform is solved, thereby achieving the technical effect of automated operation at the system level of the entire code material validity verification link.
[0079] In one exemplary embodiment, prior to step 106 described above, the method further includes:
[0080] The aforementioned route verification request information is input to the downstream processing system of the aforementioned route verification platform.
[0081] The aforementioned downstream processing system can be a downstream processing system of the aforementioned decoding platform. Different downstream processing systems can process QR codes or barcodes of different processing types.
[0082] The routing results are queried from the downstream processing system of the aforementioned routing verification platform.
[0083] Through the above embodiments, the routing verification platform sends the routing verification request information with code value links to the downstream processing system for routing verification and queries the routing results, thereby realizing the invocation of the downstream processing system and further improving the accuracy and efficiency of the verification process.
[0084] Figure 2This is a schematic diagram of the routing verification implementation link in the method for determining the validity of code materials according to an optional embodiment of this disclosure, as shown below. Figure 2 As shown, it includes: a route verification platform, an automated testing platform, a gateway system, a decoding platform, and a downstream processing system.
[0085] The system queries path results based on the routing sequence of the routing verification platform, automated testing platform, gateway system, decoding platform, and downstream processing system, and returns the routing results based on the path.
[0086] In one exemplary embodiment, the code material includes at least one of the following categories of materials: physical code material and electronic code material.
[0087] Step 102 above includes at least one of the following steps: obtaining the address link of the image data of the physical code material and the identity identifier of the physical code material from the physical code material storage data based on the periodic task, and using the address link of the image data as the material link; obtaining the code data of the electronic code material and the address link of the composite image result from the general code system based on the periodic task, and using the address link of the composite image result as the material link.
[0088] The aforementioned periodic tasks can be timed data sampling scripts set by the system, or daily sampling of coded materials. The image data of the physical coded materials can be photographs of the coded materials or design images from customized materials. The code data of the electronic coded materials can be electronic QR code data or various types of data encoding for the electronic coded materials.
[0089] The aforementioned code system can be a processing system that integrates code issuance, code binding, and code routing configuration.
[0090] Through the above embodiments, periodic sampling of physical code materials and electronic code materials can be performed to obtain data information of all code materials, so as to achieve exhaustive verification and thus achieve the technical effect of avoiding missed detection.
[0091] In an exemplary embodiment, before receiving the code value response information fed back by the code value recognition platform in step 104, the method further includes:
[0092] The image data or code data corresponding to the above material links are identified through the code value recognition platform described above.
[0093] The code value response information is generated based on the above image data or the above code data.
[0094] For example, the code value recognition platform mentioned above is the Blackbird platform. The material link corresponds to the parameter data of the physical code material. The Blackbird platform is called to obtain the image data of the physical code material based on the code material link, and then the code value of the code material is recognized by image recognition technology.
[0095] Through the above embodiments, the code value recognition platform is invoked to recognize the image data or code data corresponding to the above material link, thereby determining whether the code value link of the code material can be obtained, thus achieving the technical effect of code value recognition.
[0096] In one exemplary embodiment, it further includes:
[0097] If the material with the above code is determined to be invalid, an invalid material alarm message with the identification identifier of the material with the above code will be generated.
[0098] Send the above invalid material alarm information to the preset alarm information receiving terminal.
[0099] The aforementioned material identification code can be a unique identification code for the material, and also a corresponding data entry in the aforementioned database. The aforementioned invalid material alarm information can be a verification result indicating the validity of the material, or it can be updated in the aforementioned database. The aforementioned preset alarm information receiver can be a device or account that subscribes to the alarm information.
[0100] Through the above embodiments, by generating alarm information for determined invalid code materials, the unusable code materials are notified, thus achieving the technical effect of screening invalid code materials.
[0101] Figure 3 This is a schematic diagram of the system architecture of a method for determining the validity of code materials according to an optional embodiment of the present disclosure, as shown below. Figure 3 As shown, it includes: data layer, implementation layer, and capability layer.
[0102] The data layer includes the Inspection Material ODPS Table (Open Data Processing Service), which stores supply chain production data sampled based on the material dimension (i.e., data used by the supply chain to produce the aforementioned physical code materials) and passcode electronic materials sampled based on the code type dimension (i.e., the aforementioned electronic code materials).
[0103] The implementation layer schedules the parameters (i.e., input parameters) in the ODPS table, identifies material links by scheduling code value recognition, verifies code value links by scheduling barcode scanning routes, and provides result feedback.
[0104] The capability layer includes a code value recognition platform, system scheduled tasks, automated testing platform, and decoding platform.
[0105] The data for the aforementioned coded materials can be stored in the offline database inspection material ODPS table. A connection to the offline database inspection material ODPS table is established through a client program. Data from the material sampling table is read line by line, and the production data link is extracted as input parameters for verification. Data from the code type sampling table is read line by line; if the composite image result field is not empty, it is used as an input parameter for verification; if the composite image result field is empty, the QR code value is taken as an input parameter for verification.
[0106] For physical code materials, only the material identification and corresponding production data link fields are retrieved from the system engineering inventory data; both fields are in string format. For electronic code materials, the QR code value link field and the material composite diagram result field are retrieved from the system engineering inventory data; both fields are in string format. The QR code value field must not be empty, while the material composite diagram result field may be empty.
[0107] The aforementioned system architecture encapsulates sample data reading, material link QR code recognition, and QR code scanning route verification into system server interfaces as atomic capabilities. These three atomic capabilities are then sequentially scheduled through system timed tasks to realize the functionality of the entire inspection chain. In the above embodiment, the algorithm capabilities of the code value recognition platform are used to recognize the QR code values of the inspected material images. The scanning route capabilities of the decoding platform are used to simulate user scanning to obtain the redirect address and perform verification, thereby determining whether the current material is available. Furthermore, the framework of the system call gateway is encapsulated through the automated testing platform. The RPC gateway interface is called by passing the name of the gateway interface to be called and the request parameters. Therefore, by borrowing the implementation framework of the automated testing platform, the server-side system calls the decoding platform's routing gateway interface are implemented through platform component calls.
[0108] According to another aspect of the embodiments of this disclosure, an apparatus for determining the validity of coded materials is also provided. Figure 4 This is a schematic diagram of a device for determining the validity of code materials according to an embodiment of the present disclosure, as shown below. Figure 4 As shown, it includes:
[0109] The acquisition module is used to retrieve the material link corresponding to the code material.
[0110] The aforementioned material links can be address links in the database of coded materials that associate the QR code or barcode data of the coded material. For example, the material link for a physical coded material is an image address link, and the material supplier produces the physical material according to the image style and sends it to the user; the material link for an electronic coded material can also be an image address link.
[0111] The code value module is used to send code value recognition request information with the material link to the code value recognition platform, and to receive code value response information from the code value recognition platform.
[0112] The aforementioned code value recognition platform can be a platform with image recognition functionality that supports interface calls. The aforementioned code value response information can be the code value recognition result of the aforementioned code material, such as a code value link obtained after successful recognition, or a failure result obtained after failed recognition.
[0113] The aforementioned code value recognition request information can be a series of parameters from the program interface, among which the core parameter is the aforementioned material link. The aforementioned code value recognition platform can obtain the QR code or barcode image data of the code material based on the aforementioned material link and perform code value recognition.
[0114] The above code value response information can be a list of code values corresponding to the above material link (a code value link corresponding to one or more QR codes on a code material), or it can be an empty code value list, or it can be a recognition failure indicating a system error.
[0115] The routing module is used to send a routing verification request message containing the code value link to the routing verification platform when the code value response information contains the code value link corresponding to the material link, and to receive the routing response information fed back by the routing verification platform.
[0116] The aforementioned routing request information may include the identified code value link and the account data from the simulated QR code scan.
[0117] The aforementioned route verification platform can be a decoding platform that supports API calls. It can obtain the route address corresponding to the code through a series of commands such as parsing the code value and finding the route result, and then return the result. The aforementioned code value link can be a page link corresponding to the identified material with the code, or it can be a string used to uniquely identify a QR code. The aforementioned route response information can be the route result corresponding to the code value link obtained after successful route verification, or the failure result obtained after failed route verification. The route result obtained after successful verification includes the route result link. The failure result does not include the aforementioned route link, but includes the corresponding error code and error information.
[0118] The first determining module is used to determine that the code material is invalid when the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification.
[0119] The routing results described above can be the matching results of the link addresses corresponding to the QR code values. These routing results contain routing links, which are the page addresses configured behind the QR code to redirect to.
[0120] The second determining module is used to determine that the code material is valid when the routing response information contains the routing result corresponding to the code value link and the routing link passes the above rule verification.
[0121] The rule validation mentioned above can be used to check key fields in the routing links in the routing results. For example, if the key field characters are not standard characters or specific characters are identified, the rule validation will fail. If the key field is not missing and no specific characters are identified, the rule validation will pass.
[0122] The aforementioned material link can also be a QR code value link for electronic code materials. For such code materials, the code value identification step 104 can be omitted, and a route verification request information with the aforementioned code value link can be sent directly to the route verification platform, and the route response information fed back by the route verification platform can be received.
[0123] In this embodiment, verification parameters for the code material are obtained, including the material link of the code material. A code value recognition request message containing the material link is sent to a code value recognition platform, and a code value response message is received from the code value recognition platform. If the code value response message contains the code value link corresponding to the material link, a route verification request message containing the code value link is sent to a route verification platform, and a route verification response message is received from the route verification platform. If the code value response message does not contain the code value link corresponding to the material link, or the route response message does not contain the route result corresponding to the code value link, or the route link in the route result fails the rule verification, the code material is determined to be invalid. If the route response message contains the route result corresponding to the code value link and the route link passes the rule verification, the code material is determined to be valid. This technology can solve the technical problem of how to automate the verification of the validity of coded materials, and optimize the cost and efficiency of verifying the validity of coded materials. By calling the code value recognition platform and the routing verification platform, the system can identify the material link and code value of the coded materials, and determine the validity of the coded materials based on the recognition results, thereby achieving the technical effect of optimizing the verification efficiency and verification cost of coded material validity verification.
[0124] In one exemplary embodiment, the code value module includes:
[0125] The first relay unit is used to send the gateway interface information corresponding to the aforementioned route verification platform and the aforementioned route verification request information to the automated testing platform.
[0126] The aforementioned automated testing platform can be an end-to-end (server-side) automated testing platform that supports interface calls, enabling automated testing of the link dimension in various scenarios. The gateway interface information mentioned above can be the gateway interface name of the routing verification platform, etc., which can be used by the automated testing platform to determine the information of the routing verification platform. This can be achieved when a client calls the decoding platform's server-side system interface through a unified gateway platform; the corresponding decoding platform system routing interface needs to be converted into gateway information before the call.
[0127] The second relay unit is used to send the route verification request information to the route verification platform through the automated testing platform based on the gateway interface information, and to receive the route response information fed back by the route verification platform.
[0128] Through the above embodiments, by connecting the automated testing platform to the backend system's RPC (Remote Procedure Call) protocol-based server interface and the routing interface of the routing verification platform's RPC gateway, the technical problem of port mismatch when the backend system calls the routing verification platform is solved, thereby achieving the technical effect of automated operation at the system level of the entire code material validity verification link.
[0129] In one exemplary embodiment, it further includes:
[0130] The first downstream module is used to input the route verification request information to the downstream processing system of the route verification platform through the route verification platform.
[0131] The aforementioned downstream processing system can be a downstream processing system of the aforementioned decoding platform. Different downstream processing systems can process QR codes or barcodes of different processing types.
[0132] The second downstream module is used to query the routing results from the downstream processing system of the routing verification platform.
[0133] Through the above embodiments, the routing verification platform sends the routing verification request information with code value links to the downstream processing system for routing verification and queries the routing results, thereby realizing the invocation of the downstream processing system and further improving the accuracy and efficiency of the verification process.
[0134] In one exemplary embodiment, the code material includes at least one of the following categories of materials: physical code material and electronic code material.
[0135] The aforementioned acquisition module includes at least one of the following: a physical code material unit, used to acquire the address link of the image data of the physical code material and the identity identifier of the physical code material from the physical code material storage data based on a periodic task, and to use the address link of the image data as the material link; and an electronic code material unit, used to acquire the code data of the electronic code material and the address link of the composite image result from the general code system based on a periodic task, and to use the address link of the composite image result as the material link.
[0136] The aforementioned periodic tasks can be timed data sampling scripts set by the system, or daily sampling of coded materials. The image data of the physical coded materials can be photographs of the coded materials or design images from customized materials. The code data of the electronic coded materials can be electronic QR code data or various types of data encoding for the electronic coded materials.
[0137] The aforementioned code system can be a processing system that integrates code issuance, code binding, and code routing configuration.
[0138] The acquisition module also includes an extraction unit for extracting the material links of the image data or the code data.
[0139] Optionally, the collected material data can be stored in a database for later retrieval.
[0140] Through the above embodiments, periodic sampling of physical code materials and electronic code materials can be performed to obtain data information of all code materials, so as to achieve exhaustive verification and thus achieve the technical effect of avoiding missed detection.
[0141] In one exemplary embodiment, it further includes:
[0142] The material identification module is used to identify the image data or code data corresponding to the material link through the code value identification platform; and to generate the code value response information based on the image data or code data.
[0143] For example, the code value recognition platform mentioned above is the Blackbird platform. The material link corresponds to the parameter data of the physical code material. The Blackbird platform is called to obtain the image data of the physical code material based on the code material link, and then the code value of the code material is recognized by image recognition technology.
[0144] Through the above embodiments, the code value recognition platform is invoked to recognize the image data or code data corresponding to the above material link, thereby determining whether the code value link of the code material can be obtained, thus achieving the technical effect of code value recognition.
[0145] In one exemplary embodiment, it further includes:
[0146] The alarm generation module is used to generate an invalid material alarm message with the identification identifier of the material with the above code when it is determined that the material with the above code is invalid.
[0147] The alarm sending module is used to send the above-mentioned invalid material alarm information to the preset alarm information receiving terminal.
[0148] The aforementioned material identification code can be a unique identification code for the material, and also a corresponding data entry in the aforementioned database. The aforementioned invalid material alarm information can be a verification result indicating the validity of the material, or it can be updated in the aforementioned database. The aforementioned preset alarm information receiver can be a device or account that subscribes to the alarm information.
[0149] Through the above embodiments, by generating alarm information for determined invalid code materials, the unusable code materials are notified, thus achieving the technical effect of screening invalid code materials.
[0150] This disclosure also provides a computer device. Figure 5 This is a schematic diagram of a computer device in an embodiment of the present disclosure. The computer device is capable of implementing all steps in the method for determining the validity of coded materials in the above embodiments. Specifically, the computer device includes the following components:
[0151] Processor 501, memory 502, communications interface 503, and communications bus 504.
[0152] The processor 501, memory 502, and communication interface 503 communicate with each other via the communication bus 504. The communication interface 503 is used to realize information transmission between related devices.
[0153] The processor 501 is used to call the computer program in the memory 502. When the processor executes the computer program, it implements the method for determining the validity of the code material in the above embodiment.
[0154] Optionally, in an embodiment, when the above-described computer program instructions are executed by the processor, the following steps are implemented:
[0155] Step S1: Obtain the material link corresponding to the material with the code.
[0156] Step S2: Send code value recognition request information with the above-mentioned material link to the code value recognition platform, and receive code value response information fed back by the code value recognition platform.
[0157] Step S3: If the code value response information contains the code value link corresponding to the material link, send a route verification request information containing the code value link to the route verification platform, and receive the route response information fed back by the route verification platform.
[0158] Step S4: If the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification, the code material is determined to be invalid.
[0159] Step S5: If the above routing response information contains the routing result corresponding to the above code value link and the above routing link passes the above rule verification, then the above code material is determined to be valid.
[0160] This disclosure also provides a computer-readable storage medium storing a computer program that, in response to the execution of the computer program by a processor, performs the operation of the method for determining the validity of the coded material.
[0161] This disclosure also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method for determining the validity of code materials.
[0162] While this disclosure provides the method operation steps described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual device or client product execution, the method can be executed sequentially as shown in the embodiments or drawings, or in parallel (e.g., using parallel processors or multi-threaded processing).
[0163] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, apparatus (systems), or computer program products. Therefore, the embodiments of this specification can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0164] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0165] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0166] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0167] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments. In this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0168] It should be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. This disclosure is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or substitution of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of this disclosure can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and not to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure, and all should be covered within the scope of the claims and specification of this disclosure.
Claims
1. A method for determining the validity of coded materials, characterized in that, include: Get the material link corresponding to the material with the code; Send a code value recognition request message with the material link to the code value recognition platform, and receive code value response information from the code value recognition platform; If the code value response information contains the code value link corresponding to the material link, a route verification request information containing the code value link is sent to the route verification platform, and the route verification platform sends back the route response information. If the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification, the code material is determined to be invalid. If the routing response information contains the routing result corresponding to the code value link and the routing link passes the rule verification, the code material is determined to be valid.
2. The method for determining the validity of coded materials according to claim 1, characterized in that, Send a route verification request message with the code value link to the route verification platform, and receive route response information from the route verification platform, including: Send the gateway interface information corresponding to the route verification platform and the route verification request information to the automated testing platform; Based on the gateway interface information, the automated testing platform sends the route verification request information to the route verification platform and receives the route response information from the route verification platform.
3. The method for determining the validity of coded materials according to claim 2, characterized in that, Before receiving the routing response information from the routing verification platform, the process also includes: The routing verification request information is input to the downstream processing system of the routing verification platform. The routing results are queried from the downstream processing system of the routing verification platform.
4. The method for determining the validity of coded materials according to any one of claims 1-3, characterized in that, The code materials include at least one of the following categories: physical code materials and electronic code materials; The acquisition of the material link corresponding to the code material includes at least one of the following steps: based on a periodic task, the address link of the image data of the physical code material and the identity identifier of the physical code material are obtained from the physical code material storage data, and the address link of the image data is used as the material link; Based on the periodic task, the code data and the address link of the composite image result of the electronic code material are obtained from the code system, and the address link of the composite image result is used as the link of the material.
5. The method for determining the validity of coded materials according to any one of claims 1-3, characterized in that, Before receiving the code value response information from the code value recognition platform, the method further includes: The image data or code data corresponding to the material link is identified through the code value recognition platform. The code value response information is generated based on the image data or the code data.
6. The method for determining the validity of coded materials according to any one of claims 1-3, characterized in that, Also includes: If the material with the code is determined to be invalid, an invalid material alarm message with the identification identifier of the material with the code is generated; The invalid material alarm information is sent to the preset alarm information receiving terminal.
7. A device for determining the validity of coded materials, characterized in that, include: The acquisition module is used to retrieve the material link corresponding to the code material; The code value module is used to send code value recognition request information with the material link to the code value recognition platform, and to receive code value response information from the code value recognition platform. The routing module is used to send a routing verification request message with the code value link corresponding to the material link to the routing verification platform when the code value response information contains the code value link, and to receive the routing response information fed back by the routing verification platform. The first determining module is used to determine that the code material is invalid when the code value response information does not contain the code value link corresponding to the material link, or the routing response information does not contain the routing result corresponding to the code value link, or the routing link in the routing result fails the rule verification. The second determining module is used to determine that the code material is valid when the routing response information contains the routing result corresponding to the code value link and the routing link passes the rule verification.
8. The device for determining the validity of coded materials according to claim 7, characterized in that, The code value module includes: The first relay unit is used to send the gateway interface information corresponding to the route verification platform and the route verification request information to the automated testing platform. The second relay unit is used to send the route verification request information to the route verification platform through the automated testing platform according to the gateway interface information, and to receive the route response information fed back by the route verification platform.
9. The device for determining the validity of coded materials according to claim 8, characterized in that, Also includes: The first downstream module is used to input the route verification request information to the downstream processing system of the route verification platform through the route verification platform; The second downstream module is used to query the routing results from the downstream processing system of the routing verification platform through the routing verification platform.
10. The apparatus for determining the validity of coded materials according to any one of claims 7-9, characterized in that, The code materials include at least one of the following categories: physical code materials and electronic code materials; The acquisition module includes at least one of the following: a physical code material unit, used to acquire the address link of the image data of the physical code material and the identity identifier of the physical code material from the physical code material storage data based on a periodic task, and use the address link of the image data as the material link; The electronic code material unit is used to obtain the code data and the address link of the composite image result of the electronic code material from the code system based on the periodic task, and use the address link of the composite image result as the material link.
11. The apparatus for determining the validity of coded materials according to any one of claims 7-9, characterized in that, Also includes: The material identification module is used to identify the image data or code data corresponding to the material link through the code value identification platform; The code value response information is generated based on the image data or the code data.
12. The apparatus for determining the validity of coded materials according to any one of claims 7-9, characterized in that, Also includes: The alarm generation module is used to generate invalid material alarm information with the identification identifier of the code material when it is determined that the code material is invalid; The alarm sending module is used to send the invalid material alarm information to a preset alarm information receiving terminal.
13. A computer device, characterized in that, The computer device includes: a processor adapted to implement various instructions and a storage device, the storage device storing multiple instructions adapted to be loaded by the processor and executed by the method for determining the validity of code material according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for performing the method for determining the validity of coded materials as described in any one of claims 1 to 6.
15. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for determining the validity of code material as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Graphic code management method, device and system, computing equipment and storage medium
CN115170042A
System and method of using machine-readable or human-readable linkage codes for accessing networked data resources
WO2000060484A1