Food quality safety traceability method

By identifying the image information on food surface, the traceability information of food is obtained, and the traceability query is determined based on the content of the traceability project, the problem of low food traceability efficiency in the existing technology is solved, and the rapid and accurate traceability of food is achieved and efficient traceability information acquisition.

CN119477336AInactive Publication Date: 2025-02-18BEIJING SIECAN TECH CO LTD

Patent Information

Application Number
CN202411455281.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot achieve fast and accurate traceability of food, resulting in low food traceability efficiency.

Method used

By acquiring image information on the food surface, intercepting image information with identification codes, pre-processing to obtain identification code information, and performing identification processing to obtain traceability information of food. Determine whether the traceability query is completed based on the content of the traceability project, and determine the reason for the traceability query to be not completed based on the proportion of the traceability project, and generate corresponding processing methods to improve traceability efficiency.

Benefits of technology

It realizes fast and accurate traceability of food, improves food traceability efficiency, and effectively ensures the comprehensiveness of food traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119477336A_ABST
    Figure CN119477336A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of food safety management, in particular to a food quality safety traceability method, which comprises the following steps of: acquiring image information of a food surface, intercepting image information with an identification code, and preprocessing the image information with the identification code to acquire identification code information; the identification code information is identified to obtain tracing information for the food, the tracing information comprises a plurality of tracing items used for determining whole-process information of the food, whether tracing query for the food is completed or not is judged on the basis of content in each tracing item, and an uncompleted reason is determined when it is judged that the tracing query is not completed; according to the method and the device, the corresponding processing mode is generated, the corresponding instruction is generated based on the determined processing mode, the instruction is transmitted to the corresponding component so that the component receiving the instruction determines the corresponding operation parameter again, the tracing information is output when it is judged that the tracing query for the food is completed, and the tracing efficiency for the food is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of food safety management, and in particular to a food quality and safety tracing method. Background Art

[0002] Food refers to various edible products of plants, livestock, fisheries, etc., among which the most commonly eaten include grains, vegetables, fruits, and livestock meat. All sectors of society have increasingly higher requirements for the authenticity and safety of food. In order to ensure food safety, the state has successively issued a series of laws and regulations requiring food producers and operators to establish a food safety traceability system to ensure food quality and safety and enhance consumer confidence.

[0003] Chinese patent publication number: CN118428967A, discloses a product traceability system and method based on blockchain technology, the product traceability system includes an application layer, a smart contract layer, a data storage layer, a data transmission layer and a data collection layer. However, during the traceability process, the traceability system cannot complete the complete query of the traceability information, and thus cannot achieve fast and accurate traceability of food, reducing the traceability efficiency for food. Summary of the invention

[0004] To this end, the present invention provides a food quality and safety traceability method to overcome the problem that the prior art cannot quickly and accurately trace food, resulting in low traceability efficiency for food.

[0005] To achieve the above object, the present invention provides a food quality and safety traceability method, comprising:

[0006] Obtain image information of the food surface and intercept image information with identification code;

[0007] Preprocessing the image information with the identification code to obtain the identification code information;

[0008] Identify the identification code information to obtain traceability information for the food, wherein the traceability information includes a number of traceability items for determining the whole process information of the food;

[0009] Determining whether the traceability query for the food is completed based on the content in the traceability item, and determining the reason for incompleteness when determining that the traceability query is not completed;

[0010] After the cause is determined, a corresponding treatment method is generated based on the determined cause;

[0011] Generate a corresponding instruction based on the determined processing method, and transmit the instruction to the corresponding component so that the component receiving the instruction re-determines its corresponding operating parameter;

[0012] When it is determined that the traceability query for the food is completed, the traceability information is output.

[0013] Furthermore, in the process of preprocessing the image information with the identification code, the type of the identification code is determined through preliminary identification, and the corresponding identification resolution is determined based on the type of the identification code.

[0014] Furthermore, the process of determining whether the traceability query for the food is completed based on the content in the traceability item includes:

[0015] Counting the total number of traceability items in the obtained traceability information;

[0016] Identify the traceability items in sequence, and record the traceability items with recorded information as recorded items;

[0017] Calculate the proportion of the number of traceability items, and determine whether the traceability query for the food is completed based on the calculated proportion of the number of traceability items, wherein the proportion of the number of traceability items is the ratio of the total number of the recorded items to the total number of the traceability items;

[0018] When it is determined that the traceability query for the food is completed, the traceability information is output; and when it is determined that the traceability query for the food is not completed, whether the encryption process for the traceability information is qualified is determined based on the classification of the items in the traceability items, or the reason why the traceability query for the food is not completed is determined according to the obtained proportion of the number of traceability items.

[0019] Furthermore, the step of classifying the types of the traceability items includes:

[0020] Identify each of the record items in turn, and mark each of the record items based on the identified content;

[0021] Record items whose corresponding contents can be identified are recorded as primary items, and record items whose garbled characters can be identified are recorded as secondary items;

[0022] All items without content recorded are recorded as secondary items.

[0023] Further, the process of determining whether the encryption process for traceability information is qualified based on the classification of items in the traceability project includes:

[0024] Calculate the difference between the number of first-level items and the number of second-level items;

[0025] When the obtained difference is greater than or equal to zero, it is determined that the encryption process for the traceability information is qualified, the traceability query is completed, and the traceability information is output;

[0026] When the obtained difference is less than zero, it is determined that the encryption process for the traceability information is unqualified, and a key acquisition request is issued.

[0027] Furthermore, the process of determining the reason why the traceability query for the food is not completed according to the obtained proportion of the number of traceability items includes:

[0028] Calculate the difference between the pre-stored preset traceability project ratio and the obtained traceability project ratio, and record the obtained difference as the traceability project ratio difference;

[0029] When the difference in the proportion of the number of traceability items is less than or equal to the first preset difference in the proportion, it is determined that the traceability query is not completed, the authority of the terminal for collecting the identification code does not meet the standard, and the terminal is checked based on sensitive items;

[0030] If the difference in the proportion of the number of traceability items is greater than the first preset difference in proportion and less than or equal to the second preset difference in proportion, it is determined that the traceability query is not completed, the integrity of the food traceability information does not meet the standard, and the integrity of the food traceability information needs to be verified;

[0031] When the difference in the proportion of the number of traceability items is greater than the second preset difference in the proportion, it is determined that the traceability query is not completed, the preprocessing of the image information with the identification code does not meet the standard, and the recognition resolution during the identification code processing needs to be determined.

[0032] Furthermore, the process of checking the terminal based on the sensitive items includes:

[0033] Recording the project containing the sensitive information as a sensitive project;

[0034] Calculate the ratio of the number of sensitive items to the number of secondary items, and record the obtained ratio as the sensitive ratio;

[0035] When the sensitivity ratio is greater than or equal to a preset critical sensitivity ratio, the terminal is determined to be unqualified for authority, a traceability query is completed, traceability information is output, and an authority alarm is issued;

[0036] When the sensitivity ratio is less than the preset critical sensitivity ratio, it is determined that the terminal has qualified authority and the uploaded traceability information of the food does not meet the standards, and the integrity of the traceability information of the food needs to be verified.

[0037] Furthermore, the process of determining the recognition resolution in the process of processing the recognition code includes:

[0038] Calculate the ratio of the obtained difference in the proportion of the number of traceability items to the preset difference in proportion;

[0039] The recognition resolution is adjusted based on the ratio, and the increase of the recognition resolution is proportional to the ratio, and the recognition resolution after the adjustment is re-detected.

[0040] Furthermore, the process of re-detecting the recognition resolution after the adjustment includes:

[0041] When the measured identification resolution after the adjustment is completed is qualified, completing the traceability query and outputting the traceability information;

[0042] When the measured recognition resolution after the adjustment is still unqualified, the recognition resolution after the adjustment is compared with the preset critical recognition resolution. When the recognition resolution after the adjustment is less than the preset critical recognition resolution, the recognition resolution is readjusted. When the recognition resolution after the adjustment is greater than or equal to the preset critical recognition resolution, an identification code damage alarm is issued.

[0043] Furthermore, the process of verifying the integrity of the traceability information for food includes:

[0044] Get the number of uploaded items in the upload information of the upstream terminal;

[0045] Calculating the ratio of the number of uploaded items in the uploaded information of the upstream terminal to the first-level items, and recording the obtained ratio as the uploaded item ratio;

[0046] When the obtained uploaded item ratio is greater than or equal to the preset critical uploaded item ratio, it is determined that the traceability information of the food is incomplete, and a blockchain maintenance notification is issued;

[0047] When the obtained uploaded item ratio is less than the preset critical uploaded item ratio, it is determined that the traceability information of the food is incomplete, and a notification of problems to be determined is issued.

[0048] Compared with the prior art, the beneficial effect of the present invention lies in that the present invention intercepts the image information with the identification code on the surface of the food and performs preprocessing to obtain the identification code information, identifies and processes the identification code information to obtain the traceability information of the food and determines the traceability project, thereby effectively ensuring the comprehensiveness of the food traceability information, and determining whether the traceability query for the food is completed based on the content of the traceability project. When determining that the traceability query for the food is completed, determining whether the encryption process for the traceability information is qualified based on the classification of the items in the traceability project, or determining the reason why the traceability query for the food is not completed based on the proportion of the number of traceability projects obtained, that is, the authority of the terminal that collects the identification code does not meet the standard, the integrity of the traceability information of the food does not meet the standard, or the preprocessing of the image information with the identification code does not meet the standard, so that the component that receives the instruction re-determines its corresponding operating parameters, and verifies the terminal based on sensitive items, verifies the integrity of the traceability information for the food, or determines the recognition resolution in the process of the identification code processing, while effectively completing the rapid and accurate traceability of the food, the traceability efficiency of the food is effectively improved.

[0049] Furthermore, in the process of preprocessing the image information with the identification code, the present invention determines the type of the identification code through preliminary identification, and determines the corresponding identification resolution based on the type of the identification code. The corresponding identification resolution can be better determined by distinguishing the types of identification codes, thereby further completing the rapid and accurate traceability of food and further improving the traceability efficiency of food.

[0050] Furthermore, the present invention determines whether the encryption process for the traceability information is qualified based on the difference between the number of primary items and the number of secondary items in the traceability project. When the difference is greater than or equal to zero, it indicates that the total number of recorded items of the corresponding content that the traceability project itself can recognize is small. When the difference is less than zero, it indicates that the traceability project itself recognizes more garbled characters or no characters. The encryption process of the traceability information is determined to be unqualified, and a key acquisition request is issued. While further completing the rapid and accurate traceability of food, the traceability efficiency of food is further improved.

[0051] Furthermore, the present invention verifies the terminal through the ratio of sensitive items. When the sensitive ratio is greater than or equal to a preset critical sensitive ratio, it indicates that the number of sensitive items is large, and the terminal is judged to be unqualified in terms of authority. The traceability information is output and an authority alarm is issued. At this time, the unqualified authority of the terminal is caused by the sensitive items. When the sensitive ratio is less than the preset critical sensitive ratio, it indicates that the number of secondary items is large, and the terminal is judged to be qualified in terms of authority. At this time, in order to identify that the upload of traceability information does not meet the standards due to garbled characters or no characters, the integrity of the traceability information for food needs to be verified. While further completing the rapid and accurate traceability of food, the traceability efficiency for food is further improved.

[0052] Furthermore, the present invention adjusts the identification resolution based on the ratio of the difference in the proportion of the number of traceability items obtained and the preset difference in the proportion, which can effectively ensure that the identification resolution can effectively obtain the identification code information, and re-test the adjusted identification resolution. When the re-test is still unqualified, by comparing with the preset critical identification resolution, if it is less than the preset critical identification resolution, it indicates that the identification resolution can be readjusted, and if it is greater than or equal to the preset critical identification resolution, it indicates that the identification code is damaged, and an identification code damage alarm is issued, which further completes the rapid and accurate traceability of food while further improving the traceability efficiency for food.

[0053] Furthermore, the present invention verifies the completeness of the traceability information for food based on the uploaded item ratio. When the uploaded item ratio is greater than or equal to the critical uploaded item ratio, it indicates that the uploaded item cannot be effectively identified, and the incomplete traceability information of the food is determined to be a problem with the blockchain, and a blockchain maintenance notification is issued. When the uploaded item ratio is less than the critical uploaded item ratio, it indicates that the uploaded item can be identified, then the traceability information of the food is determined to be incomplete, and a notification of undetermined problems is issued, which further completes the rapid and accurate traceability of the food while further improving the traceability efficiency of the food. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A structural block diagram of a system using the food quality and safety traceability method of the present invention;

[0055] Figure 2 This is a flow chart of the food quality and safety traceability method of the present invention;

[0056] Figure 3 A flow chart of the present invention for determining whether the traceability query is completed and whether the encryption process is qualified;

[0057] Figure 4 The present invention is a flow chart for analyzing the reasons why the traceability query is not completed. DETAILED DESCRIPTION

[0058] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0059] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0060] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0061] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0062] See also Figure 1 As shown, it is a structural block diagram of a system using the food quality and safety traceability method of the present invention. The system of the embodiment of the present invention includes a terminal, a collection unit, a processing unit, an identification unit, an analysis unit and an execution unit; wherein the terminal is used to determine the use authority, the collection unit is connected to the terminal, and is used to obtain the image information of the food surface and intercept the image information with the identification code after the terminal determines that it has the use authority, the processing unit is connected to the collection unit, and the image information with the identification code intercepted by the collection unit is pre-processed to obtain the identification code information, the identification unit is connected to the processing unit, and is used to identify and process the identification code information obtained by the processing unit to obtain the traceability information for the food, wherein the traceability information includes a number of traceability items for determining the whole process information of the food, the analysis unit is connected to the identification unit, and is used to determine whether the traceability query for the food is completed based on the content in the traceability item determined by the identification unit, output the traceability information when determining that the traceability query for the food is completed, and determine the reason for the incompleteness when determining that the traceability query is not completed, after completing the determination of the reason, a corresponding processing method is generated based on the determined reason, and the execution unit is connected to the analysis unit, and is used to receive the processing instruction of the analysis unit and transmit the instruction to the corresponding component.

[0063] See also Figure 2 As shown, it is a flow chart of the food quality and safety traceability method of the present invention. The method of the embodiment of the present invention includes:

[0064] Obtain image information of the food surface and intercept image information with identification code;

[0065] Preprocessing the image information with the identification code to obtain the identification code information;

[0066] Identify the identification code information to obtain traceability information for the food, wherein the traceability information includes a number of traceability items for determining the whole process information of the food;

[0067] Determining whether the traceability query for the food is completed based on the content in the traceability item, and determining the reason for incompleteness when determining that the traceability query is not completed;

[0068] After the cause is determined, a corresponding treatment method is generated based on the determined cause;

[0069] Generate a corresponding instruction based on the determined processing method, and transmit the instruction to the corresponding component so that the component receiving the instruction re-determines its corresponding operating parameter;

[0070] When it is determined that the traceability query for the food is completed, the traceability information is output.

[0071] Specifically, in the process of preprocessing the image information with the identification code, the type of the identification code is determined through preliminary identification, and the corresponding identification resolution is determined when the type of the identification code is a barcode or a two-dimensional code.

[0072] See also Figure 3 As shown, it is a flow chart of the present invention for determining whether the traceability query is completed and whether the encryption process is qualified.

[0073] Specifically, the process of determining whether the traceability query for the food is completed based on the content in the traceability item includes:

[0074] Counting the total number of traceability items in the obtained traceability information;

[0075] Identify the traceability items in sequence, and record the traceability items with recorded information as recorded items;

[0076] Calculate the proportion of the number of traceability items, and determine whether the traceability query for the food is completed based on the obtained proportion of the number of traceability items, wherein the proportion of the number of traceability items is the ratio of the total number of the recorded items to the total number of traceability items;

[0077] If the proportion of the number of traceability items is greater than the second preset proportion of the number of traceability items P2, it is determined that the traceability query is completed, the traceability query is completed, and the traceability information is output, wherein the second preset proportion of the number of traceability items P2 in this embodiment is 98%;

[0078] If the proportion of the number of traceability items is less than or equal to the second preset proportion of the number of traceability items P2 and greater than the first preset proportion of the number of traceability items P1, it is determined that the traceability query is not completed, and whether the encryption process for the traceability information is qualified is determined based on the classification of the items in the traceability items, wherein the first preset proportion of the number of traceability items P1 in this embodiment = 50%;

[0079] If the proportion of the number of traceability items is less than or equal to the first preset proportion of the number of traceability items P1, it is determined that the traceability query is not completed, and the reason why the traceability query for the food is not completed is determined based on the obtained proportion of the number of traceability items.

[0080] Please continue reading Figure 3 Specifically, the steps for classifying the types of the traceability items include:

[0081] Identify each of the record items in turn, and mark each of the record items based on the identified content;

[0082] Record items whose corresponding contents can be identified are recorded as primary items, and record items whose garbled characters can be identified are recorded as secondary items;

[0083] All items without content recorded are recorded as secondary items.

[0084] Specifically, the process of determining whether the encryption process for traceability information is qualified based on the classification of items in the traceability project includes:

[0085] Calculate the difference between the number of first-level items and the number of second-level items;

[0086] When the obtained difference is greater than or equal to zero, it is determined that the encryption process for the traceability information is qualified, the traceability query is completed, and the traceability information is output;

[0087] When the obtained difference is less than zero, it is determined that the encryption process for the traceability information is unqualified, and a secret key acquisition request is issued.

[0088] See also Figure 4 As shown, it is a flow chart of analyzing the reasons why the tracing query is not completed according to the present invention.

[0089] Specifically, the process of determining the reason why the traceability query for the food is not completed according to the obtained proportion of the number of traceability items includes:

[0090] Calculate the difference between the pre-stored preset traceability project ratio and the obtained traceability project ratio, and record the obtained difference as the traceability project ratio difference;

[0091] When the difference in the proportion of the number of traceability items is less than or equal to the first preset difference in proportion △C1, it is determined that the traceability query is not completed, the authority of the terminal collecting the identification code does not meet the standard, and the terminal is checked based on sensitive items, wherein the first preset difference in proportion △C1 in this embodiment = 10%;

[0092] When the difference in the proportion of the number of traceability items is greater than the first preset difference in proportion △C1 and less than or equal to the second preset difference in proportion △C2, it is determined that the traceability query is not completed, the integrity of the food traceability information does not meet the standard, and the integrity of the food traceability information needs to be verified, wherein the second preset difference in proportion △C2 in this embodiment = 40%;

[0093] When the difference in the proportion of the number of traceability items is greater than the second preset difference in proportion △C2, it is determined that the traceability query is not completed, the preprocessing of the image information with the identification code does not meet the standard, and the recognition resolution in the identification code processing process needs to be determined.

[0094] Specifically, the process of checking the terminal based on the sensitive items includes:

[0095] Recording the project containing the sensitive information as a sensitive project;

[0096] Calculate the ratio of the number of sensitive items to the number of secondary items, and record the obtained ratio as the sensitive ratio;

[0097] When the sensitivity ratio is greater than or equal to the preset critical sensitivity ratio As, the terminal is judged to be unqualified for authority, the traceability query is completed, the traceability information is output, and an authority alarm is issued, wherein the critical sensitivity ratio As=90% is preset in this embodiment;

[0098] When the sensitivity ratio is less than the preset critical sensitivity ratio As, it is determined that the terminal has qualified authority and the upload of traceability information for the food does not meet the standards, and the integrity of the traceability information for the food needs to be verified.

[0099] Specifically, the process of determining the recognition resolution in the process of processing the recognition code includes:

[0100] Calculate the ratio of the obtained difference in the proportion of the number of traceability items to the preset difference in proportion;

[0101] When the ratio is greater than the second preset ratio of the difference in proportion R2, the recognition resolution is adjusted to 1.8 times the initial resolution, wherein the second preset ratio of the difference in the number of items in this embodiment is R2=75%;

[0102] When the ratio is less than or equal to the second preset ratio R2 and greater than the first preset ratio R1, the recognition resolution is adjusted to 1.5 times the initial resolution, wherein the first preset ratio R1 of the number of items in this embodiment is 55%;

[0103] When the ratio is less than or equal to the first preset proportion difference ratio R1, the recognition resolution is adjusted to 1.2 times the initial resolution.

[0104] Specifically, the process of re-detecting the recognition resolution after adjustment includes:

[0105] When the measured identification resolution after the adjustment is completed is qualified, completing the traceability query and outputting the traceability information;

[0106] When the measured recognition resolution after the adjustment is still unqualified, the recognition resolution after the adjustment is compared with the preset critical recognition resolution Kc. When the recognition resolution after the adjustment is less than the preset critical recognition resolution Kc, the recognition resolution is readjusted. When the recognition resolution after the adjustment is greater than or equal to the preset critical recognition resolution Kc, an identification code damage alarm is issued. When the identification code type is a barcode, the present embodiment presets a critical image identification code resolution Kc=600dpi, and when the identification code type is a QR code, the present embodiment presets a critical image identification code resolution Kc=400dpi.

[0107] Specifically, the process of verifying the integrity of food traceability information includes:

[0108] Get the number of uploaded items in the upload information of the upstream terminal;

[0109] Calculating the ratio of the number of uploaded items in the uploaded information of the upstream terminal to the first-level items, and recording the obtained ratio as the uploaded item ratio;

[0110] When the obtained uploaded item ratio is greater than or equal to the preset critical uploaded item ratio Bp, it is determined that the traceability information of the food is incomplete, and a blockchain maintenance notification is issued, wherein the preset critical uploaded item ratio Bp in this embodiment is 80%;

[0111] When the obtained uploaded item ratio is less than the preset critical uploaded item ratio Bp, it is determined that the traceability information of the food is incomplete, and a notification of problems to be determined is issued.

[0112] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A food quality and safety traceability method, characterized in that: include: Obtain image information of the food surface and intercept image information with identification code; Preprocessing the image information with the identification code to obtain the identification code information; Identify the identification code information to obtain traceability information for the food, wherein the traceability information includes a number of traceability items for determining the whole process information of the food; Determining whether the traceability query for the food is completed based on the content in the traceability item, and determining the reason for incompleteness when determining that the traceability query is not completed; After the cause is determined, a corresponding treatment method is generated based on the determined cause; Generate a corresponding instruction based on the determined processing method, and transmit the instruction to the corresponding component so that the component receiving the instruction re-determines its corresponding operating parameters; When it is determined that the traceability query for the food is completed, the traceability information is output.

2. The food quality and safety traceability method according to claim 1, characterized in that: In the process of preprocessing the image information with the identification code, the type of the identification code is determined through preliminary identification, and the corresponding identification resolution is determined based on the type of the identification code.

3. The food quality and safety traceability method according to claim 1, characterized in that: The process of determining whether the traceability query for the food is completed based on the content in the traceability item includes: Counting the total number of traceability items in the obtained traceability information; Identify the traceability items in sequence, and record the traceability items with recorded information as recorded items; Calculate the proportion of the number of traceability items, and determine whether the traceability query for the food is completed based on the calculated proportion of the number of traceability items, wherein the proportion of the number of traceability items is the ratio of the total number of the recorded items to the total number of the traceability items; When it is determined that the traceability query for the food is completed, the traceability information is output; and when it is determined that the traceability query for the food is not completed, whether the encryption process for the traceability information is qualified is determined based on the classification of the items in the traceability items, or the reason why the traceability query for the food is not completed is determined according to the obtained proportion of the number of traceability items.

4. The food quality and safety traceability method according to claim 3, characterized in that: The steps for classifying the traceability items include: Identify each of the record items in turn, and mark each of the record items based on the identified content; Record items whose corresponding contents can be identified are recorded as primary items, and record items whose garbled characters can be identified are recorded as secondary items; All items without content recorded are recorded as secondary items.

5. The food quality and safety traceability method according to claim 4, characterized in that: The process of determining whether the encryption process for traceability information is qualified based on the classification of items in the traceability project includes: Calculate the difference between the number of first-level items and the number of second-level items; When the obtained difference is greater than or equal to zero, it is determined that the encryption process for the traceability information is qualified, the traceability query is completed, and the traceability information is output; When the obtained difference is less than zero, it is determined that the encryption process for the traceability information is unqualified, and a key acquisition request is issued.

6. The food quality and safety traceability method according to claim 3, characterized in that: The process of determining the reason why the traceability query for the food is not completed based on the obtained proportion of the number of traceability items includes: Calculate the difference between the pre-stored preset traceability project ratio and the obtained traceability project ratio, and record the obtained difference as the traceability project ratio difference; When the difference in the proportion of the number of traceability items is less than or equal to the first preset difference in the proportion, it is determined that the traceability query is not completed, the authority of the terminal for collecting the identification code does not meet the standard, and the terminal is checked based on sensitive items; If the difference in the proportion of the number of traceability items is greater than the first preset difference in proportion and less than or equal to the second preset difference in proportion, it is determined that the traceability query is not completed, the integrity of the food traceability information does not meet the standard, and the integrity of the food traceability information needs to be verified; When the difference in the proportion of the number of traceability items is greater than the second preset difference in the proportion, it is determined that the traceability query is not completed, the preprocessing of the image information with the identification code does not meet the standard, and the recognition resolution during the identification code processing needs to be determined.

7. The food quality and safety traceability method according to claim 6, characterized in that: The process of checking the terminal based on the sensitive items includes: Recording the project containing the sensitive information as a sensitive project; Calculate the ratio of the number of sensitive items to the number of secondary items, and record the obtained ratio as the sensitive ratio; When the sensitivity ratio is greater than or equal to a preset critical sensitivity ratio, the terminal is determined to be unqualified for authority, a traceability query is completed, traceability information is output, and an authority alarm is issued; When the sensitivity ratio is less than the preset critical sensitivity ratio, it is determined that the terminal has qualified authority and the uploaded traceability information of the food does not meet the standards, and the integrity of the traceability information of the food needs to be verified.

8. The food quality and safety traceability method according to claim 6, characterized in that: The process of determining the recognition resolution in the process of processing the recognition code includes: Calculate the ratio of the obtained difference in the proportion of the number of traceability items to the preset difference in proportion; The recognition resolution is adjusted based on the ratio, and the increase of the recognition resolution is proportional to the ratio, and the recognition resolution after the adjustment is re-detected.

9. The food quality and safety traceability method according to claim 8, characterized in that: The process of re-detecting the recognition resolution after adjustment includes: When the measured identification resolution after the adjustment is completed is qualified, completing the traceability query and outputting the traceability information; When the measured recognition resolution after the adjustment is still unqualified, the recognition resolution after the adjustment is compared with the preset critical recognition resolution. When the recognition resolution after the adjustment is less than the preset critical recognition resolution, the recognition resolution is readjusted. When the recognition resolution after the adjustment is greater than or equal to the preset critical recognition resolution, an identification code damage alarm is issued.

10. The food quality and safety traceability method according to claim 6, characterized in that: The process of verifying the integrity of food traceability information includes: Get the number of uploaded items in the upload information of the upstream terminal; Calculating the ratio of the number of uploaded items in the uploaded information of the upstream terminal to the first-level items, and recording the obtained ratio as the uploaded item ratio; When the obtained uploaded item ratio is greater than or equal to the preset critical uploaded item ratio, it is determined that the traceability information of the food is incomplete, and a blockchain maintenance notification is issued; When the obtained uploaded item ratio is less than the preset critical uploaded item ratio, it is determined that the traceability information of the food is incomplete, and a notification of problems to be determined is issued.

Citation Information

Patent Citations

  • Product traceability system and method based on block chain technology

    CN118428967A

  • Production method and system for preventing same codes during traceability of canned products

    CN111461747A

  • Traceability code generation method and device, equipment and readable storage medium

    CN111798254A

  • Resource interaction information early warning method and device, computer equipment and storage medium

    CN116909844A

Cited By

  • Food quality tracing system and method based on supply chain

    CN121707578A