A method for transmitting food safety detection information without a standard card

By setting up logos on the food testing card and establishing mapping relationships, the existing food safety testing methods are complicated and data inconvenient, and the effect of simplifying detection operations and improving the convenience of data transmission is achieved.

CN119906735BActive Publication Date: 2025-06-20JIANGXI PROVINCIAL INST OF FOOD INSPECTION & TESTING (JIANGXI NAT FRUIT & VEGETABLE PROD & PROCESSED FOOD QUALITY SUPERVISION & INSPECTION CENT)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510369748.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-06-20
Estimated Expiration
2045-03-27

AI Technical Summary

Technical Problem

The existing food safety testing methods require two cards to be used in conjunction with each other, which is complicated and cannot be performed when the standard card is lost, and the storage of the detection data in the equipment is not conducive to data transfer and analysis.

Method used

By setting an identification on the food detection card, a mapping relationship between the identification and the food type detection standard is established, the identification is read using the food detection equipment and the analysis results are compared, and the comparison results are transmitted to the application end.

Benefits of technology

Simplifies detection operations, improves data transmission convenience, avoids detection interruptions caused by loss of standard cards, and supports convenient data transfer and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906735B_ABST
    Figure CN119906735B_ABST
Patent Text Reader

Abstract

The present invention provides a method for transmitting food safety detection information without a standard card. This method establishes a mapping relationship between the identification of a food detection card and the detection standards corresponding to the food types; reads the identification of the food detection card through a food detection device, and determines the detection standards corresponding to the food types according to the identification of the food detection card and the mapping relationship; compares the analysis results obtained through the food detection card with the detection standards corresponding to the food types, and transmits the comparison results to an application terminal communicatively connected to the food detection device. Specifically, since the standard card is cancelled and an identification is set on the food detection card, the detection operation is effectively simplified, and at the same time, the detection results are transmitted to an application terminal communicatively connected to the food detection device, improving the convenience of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of food safety detection information transmission, and particularly relates to a method for transmitting food safety detection information without a standard card. Background Art

[0002] Currently, two food safety detection cards are configured. One is a food detection card for sampling and detection, and the other is a corresponding standard card for comparing the analysis results of the food detection card. In specific applications, the food detection card and the standard card need to be inserted into the detection device at the same time. The detection device reads the information in the food detection card and the standard card respectively, and makes a comparison to finally complete the detection. The final detection result is also stored in the detection device.

[0003] The disadvantages of the current detection method are that two cards need to be used in cooperation, which is rather cumbersome. Moreover, when the standard card is lost, the detection cannot be carried out. In addition, all detection data is stored in the detection device, which is not conducive to data transfer and analysis. Summary of the Invention

[0004] Based on this, an embodiment of the present invention provides a method for transmitting food safety detection information without a standard card, aiming to solve the problems in the prior art that the food safety detection process is cumbersome and the transmission of food safety detection information is inconvenient.

[0005] The first aspect of the embodiment of the present invention provides a method for transmitting food safety detection information without a standard card, which is applied to the scenario where an identifier is set on a food detection card. The method includes:

[0006] Establishing a mapping relationship between the identifier of the food detection card and the detection standard of the corresponding food type;

[0007] Reading the identifier of the food detection card through a food detection device, and determining the detection standard of the corresponding food type according to the mapping relationship between the identifier of the food detection card and the mapping relationship;

[0008] Comparing the analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type, and transmitting the comparison result to an application terminal communicatively connected to the food detection device.

[0009] Further, after the step of comparing the analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type and transmitting the comparison result to an application terminal communicatively connected to the food detection device, it includes:

[0010] When the comparison result shows qualified, obtaining the historical comparison result stored in the application terminal, comparing the current comparison result with the historical comparison result, and determining the origin of the currently detected food.

[0011] Further, when the comparison result shows compliance, the steps of obtaining the historical comparison results stored in the application end, comparing the current comparison result with the historical comparison result, and determining the origin of the currently detected food include:

[0012] According to the food type, determine the corresponding detection indicators, and generate a corresponding standard polygon according to the detection indicators;

[0013] Perform cluster analysis on each detection value in the historical analysis results of the same origin and the same food type to obtain the cluster results of each detection value;

[0014] According to the standard polygon, present the cluster results of each detection value in the form of a polygon to obtain a first polygon;

[0015] According to the standard polygon, present each detection value in the current comparison result in the form of a polygon to obtain a second polygon;

[0016] Compare the second polygon with the first polygon to determine the target polygon that matches the second polygon;

[0017] According to the origin of the detected food corresponding to the target polygon, determine the origin of the currently detected food.

[0018] Further, the steps of comparing the second polygon with the first polygon to determine the target polygon that matches the second polygon include:

[0019] Obtain the area of the second polygon and the areas of each of the first polygons, calculate the difference between the areas of each of the first polygons and the area of the second polygon respectively, and determine the first polygon with the smallest area difference;

[0020] Judge whether the first polygon with the smallest area difference is unique;

[0021] If it is judged that the first polygon with the smallest area difference is not unique, calculate the distances between the vertices of the first polygon with the smallest area difference and the corresponding vertices of the second polygon respectively, and determine the corresponding weights according to the distances;

[0022] Calculate scores according to the distances and the corresponding weights, and determine the first polygon with the highest score as the target polygon.

[0023] Further, in the step of transmitting the comparison result to the application end communicatively connected to the food detection device, encrypt the data transmission of the comparison result.

[0024] Further, the steps of encrypting the data transmission of the comparison result include:

[0025] Randomly generate a string with a preset number of characters, and generate a QR code with rounded corners based on the string;

[0026] Map the second polygon and the clock dial with a second hand to the QR code, and control the second polygon and the clock dial with a second hand to be scaled proportionally until they are tangent to the edge of the QR code;

[0027] When generating the clock dial with a second hand, according to the current time, control the second hand to move a preset number of times, and respectively obtain the coordinates and the number of intersections of the second hand and the rounded corner patterns within the second polygon scaled proportionally in the QR code;

[0028] Insert the coordinates into the string, and perform a hash operation according to the number to obtain a hash value for encryption.

[0029] Further, the step of inserting the coordinates into the string and performing a hash operation according to the number to obtain a hash value for encryption includes:

[0030] According to the preset number of times the second hand moves, randomly insert the corresponding coordinates into the string in batches. Among them, after inserting the corresponding coordinates into the string in each batch, perform the corresponding number of hash operations according to the corresponding number.

[0031] The second aspect of the embodiments of the present invention provides a food safety detection information transmission system without a standard card, which is used to implement the food safety detection information transmission method without a standard card described in the first aspect. The system includes:

[0032] A establishment module, which is used to establish a mapping relationship between the identifier of the food detection card and the detection standard of the corresponding food type;

[0033] A determination module, which is used to read the identifier of the food detection card through the food detection device, and determine the detection standard of the corresponding food type according to the identifier of the food detection card and the mapping relationship;

[0034] A transmission module, which is used to compare the analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type, and transmit the comparison result to the application end communicatively connected to the food detection device.

[0035] The third aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the food safety detection information transmission method without a standard card provided in the first aspect.

[0036] A fourth aspect of the embodiments of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the method for transmitting food safety detection information without a standard card provided in the first aspect.

[0037] A method for transmitting food safety detection information without a standard card provided in the embodiments of the present invention. This method establishes a mapping relationship between the identifier of a food detection card and the detection standard of the corresponding food type; reads the identifier of the food detection card through a food detection device, and determines the detection standard of the corresponding food type according to the identifier of the food detection card and the mapping relationship; compares the analysis result obtained through the food detection card with the detection standard of the corresponding food type, and transmits the comparison result to an application terminal communicatively connected to the food detection device. Specifically, since the standard card is cancelled and an identifier is set on the food detection card, the detection operation is effectively simplified, and at the same time, the detection result is transmitted to an application terminal communicatively connected to the food detection device, improving the convenience of data transmission. Description of the Drawings

[0038] Figure 1 It is a flowchart for implementing a method for transmitting food safety detection information without a standard card provided in Embodiment 1 of the present invention;

[0039] Figure 2 It is a structural block diagram of a system for transmitting food safety detection information without a standard card provided in Embodiment 2 of the present invention;

[0040] Figure 3 It is a structural block diagram of an electronic device provided in Embodiment 3 of the present invention. Detailed Embodiments

[0041] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0042] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly on the other element or there can also be a middle element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be a middle element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for the purpose of illustration.

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this invention belongs. The terms used in the description of the present invention herein are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0044] Embodiment 1

[0045] According to an embodiment of the present invention, there is provided an embodiment of a method for transmitting food safety detection information without a standard card. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0046] In Embodiment 1 herein, there is provided a method for transmitting food safety detection information without a standard card, which can be used in an electronic device, such as a computer. It should be noted that this method is applied to the scenario of setting an identifier on a food detection card. It can be understood that this identifier is a unique identifier, such as a QR code, a barcode, and a chip, etc.

[0047] Please refer to Figure 1 , Figure 1 which shows an implementation flowchart of a method for transmitting food safety detection information without a standard card provided by Embodiment 1 of the present invention, specifically including steps S01 to S03.

[0048] Step S01, establish a mapping relationship between the identifier of the food detection card and the detection standard of the corresponding food type.

[0049] Among them, the unique identifier on the food detection card is corresponded to different types of foods. Exemplarily, when the food detection device scans identifier a, according to the mapping relationship, it is determined as food x; when the food detection device scans identifier b, according to the mapping relationship, it is determined as food y.

[0050] Step S02, read the identifier of the food detection card through the food detection device, and determine the detection standard of the corresponding food type according to the identifier of the food detection card and the mapping relationship.

[0051] It can be understood that different foods have their corresponding food safety detection standards. The food safety detection standards are converted into index values and stored in the system. When it is determined to conduct a food safety detection on a certain specific food, the corresponding index values are called for comparison.

[0052] Step S03: Compare the analysis result obtained by analyzing with the food test card with the detection standard of the corresponding food type, and transmit the comparison result to the application terminal communicatively connected to the food detection device.

[0053] Specifically, analyze the test substance collected on the food test card in the food detection device to obtain the analysis result, compare the analysis result with the corresponding index value, and finally send the comparison result to the user terminal by means of wireless transmission (such as Wifi, Bluetooth, etc.).

[0054] In this embodiment, when the comparison result shows qualified, obtain the historical comparison results stored in the application terminal, compare the current comparison result with the historical comparison results, and determine the origin of the currently detected food. It should be noted that the pesticide spraying situation of food is related to the region, specifically related to climate factors, soil conditions, and types of planted crops, etc. For example, fertile soil can make crops grow strong and have relatively strong self-resistance, which may relatively reduce the amount of pesticide used. While crops grown in poor soil are vulnerable to pest and disease attacks and require more pesticides to ensure yield and quality.

[0055] Specifically, determine the corresponding detection indexes according to the food type, and generate the corresponding standard polygon according to the detection indexes. It can be understood that if there are five indexes, a pentagon is generated, and if there are six indexes, a hexagon is generated;

[0056] Perform clustering analysis on each detected value in the historical analysis results of the same origin and the same food type to obtain the clustering results of each detected value. Among them, the K-means clustering algorithm can be used for clustering analysis. By clustering, find the data characteristics of each origin and each food type;

[0057] Present the clustering results of each detected value in the form of a polygon according to the standard polygon to obtain the first polygon. Among them, on the basis of the standard polygon, generate an irregular polygon according to the clustering results of each detected value;

[0058] Present each detected value in the current comparison result in the form of a polygon according to the standard polygon to obtain the second polygon;

[0059] Compare the second polygon with the first polygon to determine the target polygon that matches the second polygon. Specifically, obtain the area of the second polygon and the areas of each first polygon, subtract the area of each first polygon from the area of the second polygon respectively, and determine the first polygon with the smallest area difference to initially screen out the polygon that is closest;

[0060] Judge whether the first polygon with the smallest area difference is unique;

[0061] If the first polygon with the smallest area difference is not unique, calculate the distances between the vertices of the first polygon with the smallest area difference and the corresponding vertices of the second polygon respectively, and determine the corresponding weights according to the distances. It should be noted that when calculating the distances between the vertices, the first polygon and the second polygon can be mapped to the same plane rectangular coordinate system, and the distances are calculated through the corresponding coordinate points of the vertices. In addition, according to the importance of different indicators, determine the corresponding first weight, and then determine the corresponding second weight according to the distances between the vertices. Among them, each distance range corresponds to a weight value, and the weight value is determined according to the distance range in which the distance between the vertices falls. It can be understood that the greater the importance of the indicator, the greater the first weight, and the smaller the distance between the vertices, the greater the second weight;

[0062] Calculate the score according to the distance and the corresponding weight, and determine the first polygon with the highest score as the target polygon. Among them, the calculation formula of the score is:

[0063] ;

[0064] Among them, F represents the score, α i represents the first weight of the i-th indicator, β i represents the second weight of the i-th indicator, Z i represents the distance of the i-th indicator;

[0065] Determine the origin of the currently detected food according to the origin of the detected food corresponding to the target polygon, which can prevent the problem of misusing well-known origins.

[0066] In this embodiment, in the step of transmitting the comparison result to the application terminal communicatively connected to the food detection device, encrypt the data transmission of the comparison result to improve the security of data transmission. Specifically, randomly generate a string with a preset number of characters, and generate a QR code with rounded corners according to the string, that is, a QR code composed of black circles. It should be noted that this QR code can also be randomly deformed according to the identification QR code of the food detection card in accordance with the encoding rules;

[0067] Map the second polygon and the clock dial with a second hand to the QR code, and control the second polygon and the clock dial with a second hand to be scaled proportionally until they are tangent to the edge of the QR code;

[0068] When generating the clock dial with a second hand, control the second hand to move a preset number of times according to the current time, and respectively obtain the coordinates and the number of intersections between the second hand and the rounded corner patterns inside the second polygon scaled proportionally in the QR code. Among them, the origin of coordinates can be the lower left corner of the QR code, and each black circle represents the position of a coordinate point;

[0069] Insert the coordinates into the string, and perform a hash operation according to the quantity to obtain a hash value for encryption. It should be noted that according to the preset number of times the second hand moves, the corresponding coordinates are randomly inserted into the string in batches. Among them, after inserting the corresponding coordinates into the string for each batch, a corresponding number of hash operations are performed according to the corresponding quantity. Exemplarily, at the current moment, the second hand is at the 12 o'clock direction, that is, the zero-second position. The second hand moves twice, to the one-second position and the two-second position respectively. Determine the coordinates and quantity where the second hand intersects the rounded corner pattern at the one-second position. Randomly insert the intersecting coordinates into the string in the order from near to far, where the far refers to the extension direction of the second hand, and perform a corresponding number of hash operations according to the corresponding quantity. For example, if the quantity is five, then perform five hash operations to obtain the first operation result. Among them, randomly inserting the coordinates into the string means inserting the numbers in the coordinates into the string. Further, determine the coordinates and quantity where the second hand intersects the rounded corner pattern at the two-second position. Randomly insert the intersecting coordinates at this time into the first operation result, and perform a corresponding number of hash operations according to the corresponding quantity to obtain the final hash value.

[0070] In some other embodiments of the present invention, the movement of the second hand can be controlled for a preset number of times, with a preset interval for each movement, or the position of the second hand can be controlled randomly.

[0071] In summary, for the food safety detection information transmission method without a standard card in the above embodiments of the present invention, the method establishes a mapping relationship between the identifier of the food detection card and the detection standard of the corresponding food type; reads the identifier of the food detection card through the food detection device, and determines the detection standard of the corresponding food type according to the identifier of the food detection card and the mapping relationship; compares the analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type, and transmits the comparison result to the application terminal communicatively connected to the food detection device. Specifically, since the standard card is cancelled and an identifier is set on the food detection card, the detection operation is effectively simplified. At the same time, the detection result is transmitted to the application terminal communicatively connected to the food detection device, improving the convenience of data transmission.

[0072] Embodiment 2

[0073] Please refer to Figure 2 , Figure 2 FIG. is a structural block diagram of a food safety detection information transmission system without a standard card provided by Embodiment 2 of the present invention. The food safety detection information transmission system 200 without a standard card is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0074] Specifically, the food safety detection information transmission system 200 without a standard card is applied to the scenario of setting an identifier on a food detection card, and includes: a establishment module 21, a determination module 22, and a transmission module 23, where:

[0075] The establishment module 21 is used to establish a mapping relationship between the identifier of the food detection card and the detection standard of the corresponding food type;

[0076] The determination module 22 is used to read the identifier of the food detection card through a food detection device, and determine the detection standard of the corresponding food type according to the identifier of the food detection card and the mapping relationship;

[0077] The transmission module 23 is used to compare the analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type, and transmit the comparison result to the application end communicatively connected to the food detection device, where the data transmission of the comparison result is encrypted.

[0078] Further, in some alternative embodiments of the present invention, the food safety detection information transmission system 200 without a standard card further includes:

[0079] A place of origin determination module, which is used to obtain the historical comparison results stored in the application end when the comparison result shows qualified, compare the current comparison result with the historical comparison results, and determine the place of origin of the currently detected food.

[0080] Further, in some alternative embodiments of the present invention, the place of origin determination module includes:

[0081] A standard polygon generation unit, which is used to determine the corresponding detection indexes according to the food type, and generate the corresponding standard polygon according to the detection indexes;

[0082] A clustering unit, which is used to perform clustering analysis on each detection value in the historical analysis results of the same place of origin and the same food type respectively, and obtain the clustering results of each detection value;

[0083] A first polygon generation unit, which is used to present the clustering results of each detection value in a polygon manner according to the standard polygon, and obtain a first polygon;

[0084] A second polygon generation unit, which is used to present each detection value in the current comparison result in a polygon manner according to the standard polygon, and obtain a second polygon;

[0085] A comparison unit, which is used to compare the second polygon with the first polygon, and determine the target polygon that matches the second polygon;

[0086] The origin determination unit is used to determine the origin of the currently detected food according to the origin of the detected food corresponding to the target polygon.

[0087] Further, in some alternative embodiments of the present invention, the comparison unit includes:

[0088] An acquisition subunit is used to acquire the area of the second polygon and the areas of the first polygons, calculate the differences between the areas of the first polygons and the area of the second polygon respectively, and determine the first polygon with the smallest area difference;

[0089] A judgment subunit is used to judge whether the first polygon with the smallest area difference is unique;

[0090] A first calculation subunit is used to, if the first polygon with the smallest area difference is not unique, calculate the distances between the vertices of the first polygon with the smallest area difference and the corresponding vertices of the second polygon respectively, and determine the corresponding weights according to the distances;

[0091] A second calculation subunit is used to calculate a score according to the distances and the corresponding weights, and determine the first polygon with the highest score as the target polygon.

[0092] Further, in some alternative embodiments of the present invention, the transmission module 23 includes:

[0093] A string generation unit is used to randomly generate a string with a preset number of characters, and generate a rounded QR code according to the string;

[0094] A mapping unit is used to map the second polygon and the clock dial with a second hand to the QR code, and control the second polygon and the clock dial with a second hand to be scaled proportionally until they are tangent to the edge of the QR code;

[0095] A control unit is used to generate the clock dial with a second hand, and according to the current time, control the second hand to move a preset number of times, and respectively obtain the coordinates and the number of intersections of the second hand and the rounded corner patterns in the second polygon scaled proportionally in the QR code;

[0096] A hash operation unit is used to insert the coordinates into the string, and perform a hash operation according to the number to obtain a hash value for encryption.

[0097] Further, in some alternative embodiments of the present invention, the hash operation unit includes:

[0098] An insertion subunit is used to batch and randomly insert the corresponding coordinates into the string according to the preset number of times the second hand moves. Among them, after inserting the corresponding coordinates into the string in each batch, a hash operation is performed corresponding to the number of times according to the corresponding number.

[0099] Embodiment III

[0100] On the other hand, the present invention also provides an electronic device. Please refer to Figure 3 . The electronic device in Embodiment III of the present invention is shown, which includes a memory 20, a processor 10, and a computer program 30 stored on the memory and executable on the processor. When the processor 10 executes the computer program 30, the method for transmitting food safety detection information without a standard card as described above is implemented.

[0101] Among them, in some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips, and is used to run the program code stored in the memory 20 or process data, such as executing an access restriction program, etc.

[0102] Among them, the memory 20 includes at least one type of readable storage medium. The readable storage medium includes flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 20 may be an internal storage unit of the electronic device, such as the hard disk of the electronic device. In other embodiments, the memory 20 may also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 20 may also include both the internal storage unit and the external storage device of the electronic device. The memory 20 can not only be used to store application software and various types of data of the electronic device, but also be used to temporarily store data that has been output or will be output.

[0103] It should be noted that Figure 3 the structure shown does not limit the electronic device. In other embodiments, the electronic device may include fewer or more components than shown in the figure, or combine some components, or have a different component layout.

[0104] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for transmitting food safety detection information without a standard card as described above is implemented.

[0105] Those skilled in the art can understand that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or used in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0106] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection part with one or more wirings (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.

[0107] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0108] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0109] The above embodiments merely represent several implementation manners of the present invention. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several variations and improvements can still be made, and these all fall within the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.

Claims

1. A method for transmitting food safety detection information without a standard card, characterized in that: Applied to the scenario of setting a mark on a food inspection card, the method includes: Establish a mapping relationship between the identification of the food testing card and the testing standards of the corresponding food types; Reading the identification of the food detection card through the food detection equipment, and determining the detection standard of the corresponding food type according to the identification of the food detection card and the mapping relationship; Compare the analysis results obtained by the food detection card with the detection standards of the corresponding food types, and transmit the comparison results to the application end that is in communication connection with the food detection device; When the comparison result shows that the food is qualified, the historical comparison result stored in the application is obtained, and the current comparison result is compared with the historical comparison result to determine the origin of the food currently being tested. Specifically, the corresponding test index is determined according to the type of food, and the corresponding standard polygon is generated according to the test index; Perform cluster analysis on each test value in the historical analysis results of the same origin and the same food type to obtain the cluster results of each test value; According to the standard polygon, the clustering results of each detection value are presented in a polygonal manner to obtain a first polygon; According to the standard polygon, each detection value in the current comparison result is presented in a polygonal manner to obtain a second polygon; comparing the second polygon with the first polygon to determine a target polygon matching the second polygon; The origin of the currently tested food is determined according to the origin of the tested food corresponding to the target polygon.

2. The method for transmitting food safety detection information without a standard card according to claim 1, characterized in that: The step of comparing the second polygon with the first polygon to determine a target polygon matching the second polygon comprises: Obtaining the area of ​​the second polygon and the areas of each of the first polygons, subtracting the area of ​​each of the first polygons from the area of ​​the second polygon, and determining the first polygon with the smallest area difference; Determine whether the first polygon with the smallest area difference is unique; If it is determined that the first polygon with the smallest area difference is not unique, respectively calculating the distance between each vertex of the first polygon with the smallest area difference and the corresponding vertex of the second polygon, and determining the corresponding weight according to the distance; A score is calculated according to the distance and the corresponding weight, and the first polygon with the highest score is determined as the target polygon.

3. The method for transmitting food safety detection information without a standard card according to claim 2, characterized in that: In the step of transmitting the comparison result to the application end which is in communication connection with the food testing device, the data transmission of the comparison result is encrypted.

4. The method for transmitting food safety detection information without a standard card according to claim 3, characterized in that: The step of encrypting the data transmission of the comparison result comprises: Randomly generate a character string with a preset number of characters, and generate a rounded QR code based on the character string; Mapping the second polygon and the clock dial with the second hand onto the two-dimensional code, and controlling the second polygon and the clock dial with the second hand to be scaled in equal proportion until they are tangent to the edge of the two-dimensional code; While generating a clock dial with a second hand, according to the current time, the second hand is controlled to move a preset number of times, and the coordinates and number of intersections between the second hand and the rounded pattern in the second polygon after the QR code is scaled in the same proportion are obtained; The coordinates are inserted into the string, and a hash operation is performed according to the quantity to obtain a hash value for encryption.

5. The method for transmitting food safety detection information without a standard card according to claim 4, characterized in that: The step of inserting the coordinates into the string and performing a hash operation according to the quantity to obtain a hash value for encryption includes: According to the preset number of times the second hand moves, the corresponding coordinates are randomly inserted into the string in batches, wherein after each batch of corresponding coordinates are inserted into the string, a corresponding number of hash operations are performed according to the corresponding quantity.

6. A food safety detection information transmission system without standard card, characterized in that: A method for transmitting food safety detection information without a standard card as claimed in any one of claims 1 to 5, the system comprising: Establishing a module for establishing a mapping relationship between the identification of a food testing card and the testing standards of the corresponding food types; A determination module, used to read the identification of the food detection card through the food detection equipment, and determine the detection standard of the corresponding food type according to the identification of the food detection card and the mapping relationship; The transmission module is used to compare the analysis results obtained by analyzing the food detection card with the detection standards of the corresponding food types, and transmit the comparison results to the application end that is communicatively connected to the food detection device.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for transmitting food safety detection information without a standard card as described in any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for transmitting food safety detection information without a standard card as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Food quality inspection management method and device and storage medium

    CN118673035A