Food safety detection information transmission method without standard card

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

CN119906735AActive Publication Date: 2025-04-29JIANGXI PROVINCIAL INST OF FOOD INSPECTION & TESTING (JIANGXI NAT FRUIT & VEGETABLE PROD & PROCESSED FOOD QUALITY SUPERVISION & INSPECTION CENT)
View PDF 13 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing food safety testing methods require two cards to be used in combination, which is relatively cumbersome, and the detection cannot be carried out after the standard card is lost. Data storage in the detection 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 CN119906735A_ABST
    Figure CN119906735A_ABST
Patent Text Reader

Abstract

The invention provides a food safety detection information transmission method without a standard card. The method comprises the following steps: establishing a mapping relationship between an identifier of a food detection card and a detection standard of a corresponding food type; reading the identification of the food detection card through 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 relation; according to the food detection device, the analysis result obtained through analysis of the food detection card is compared with the detection standard of the corresponding food type, and the comparison result is transmitted to the application end in communication connection with the food detection device, specifically, due to the fact that a standard card is omitted and an identifier is arranged on the food detection card, the detection operation is effectively simplified, and the detection efficiency is improved. And meanwhile, the detection result is transmitted to the application end in communication connection with the food detection equipment, so that the data transmission convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, there are two food safety testing cards. One is a food testing card, which is used for sampling and testing, and the other is a corresponding standard card, which is used to compare the analysis results of the food testing card. In specific applications, the food testing card and the standard card need to be inserted into the testing equipment at the same time. The testing equipment reads the information in the food testing card and the standard card respectively, and compares them to complete the test. The final test results are also stored in the testing equipment.

[0003] The disadvantages of the current detection method are that two cards are required for use, which is cumbersome, and when the standard card is lost, the detection cannot be performed. In addition, all the detection data are stored in the detection equipment, 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] A first aspect of an embodiment of the present invention provides a method for transmitting food safety detection information without a standard card, which is applied to a scenario where a mark is set on a food detection 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; The analysis results obtained by analyzing the food detection card are compared with the detection standards of the corresponding food types, and the comparison results are transmitted to the application end that is communicatively connected to the food detection device.

[0006] Furthermore, 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 the application end in communication connection with the food detection device includes: When the comparison result shows qualified, the historical comparison results stored in the application end are obtained, and the current comparison result is compared with the historical comparison result to determine the origin of the currently tested food.

[0007] Furthermore, when the comparison result shows that the food is qualified, the steps of obtaining the historical comparison result stored in the application end, comparing the current comparison result with the historical comparison result, and determining the origin of the food currently being tested include: According to the food type, the corresponding detection index is determined, and the corresponding standard polygon is generated according to the detection 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.

[0008] Furthermore, the step of comparing the second polygon with the first polygon to determine a target polygon matching the second polygon includes: 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.

[0009] Furthermore, in the step of transmitting the comparison result to an application terminal that is communicatively connected to the food testing device, the data transmission of the comparison result is encrypted.

[0010] Furthermore, the step of encrypting the data transmission of the comparison result includes: 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.

[0011] Furthermore, 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.

[0012] A second aspect of an embodiment 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, and the system includes: 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.

[0013] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for transmitting food safety detection information without a standard card provided in the first aspect.

[0014] The fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for transmitting food safety detection information without a standard card provided in the first aspect is implemented.

[0015] A method for transmitting food safety detection information without a standard card is provided in an embodiment of the present invention. The method establishes a mapping relationship between an identification of a food detection card and the detection standard of a corresponding food type; reads the identification of the food detection card by a food detection device, and determines the detection standard of the corresponding food type based on the identification 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 an application end that is 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 the detection result is transmitted to the application end that is communicatively connected to the food detection device, thereby improving the convenience of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of a method for transmitting food safety detection information without a standard card provided in Embodiment 1 of the present invention; Figure 2 A structural block diagram of a food safety detection information transmission system without a standard card provided in the second embodiment of the present invention; Figure 3 This is a structural block diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0017] In order to facilitate the understanding of the present invention, the present invention will be described more fully 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.

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

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments 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.

[0020] Embodiment 1 According to an embodiment of the present invention, an embodiment of a method for transmitting food safety detection information without a standard card is provided. 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0021] In the first embodiment of the present invention, a method for transmitting food safety detection information without a standard card is provided, which can be used in electronic devices, such as computers. It should be noted that the method is applied to the scenario of setting an identification on a food detection card. It can be understood that the identification is a unique identification, such as a QR code, a barcode, and a chip.

[0022] See also Figure 1 , Figure 1 A flowchart of a method for transmitting food safety detection information without a standard card provided in the first embodiment of the present invention is shown, which specifically includes steps S01 to S03.

[0023] Step S01, establishing a mapping relationship between the identification of a food testing card and the testing standard of the corresponding food type.

[0024] Among them, the unique identifier on the food inspection card corresponds to different types of food. For example, when the food inspection equipment scans the a identifier, it is determined to be x food according to the mapping relationship; when the food inspection equipment scans the b identifier, it is determined to be y food according to the mapping relationship.

[0025] Step S02, reading the identification of the food detection card by the food detection device, and determining the detection standard of the corresponding food type according to the identification of the food detection card and the mapping relationship.

[0026] It is understandable that different foods have their corresponding food safety testing standards, which are converted into index values ​​and stored in the system. When it is determined to conduct food safety testing on a specific food, the corresponding index value is called for comparison.

[0027] Step S03, 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 the application end that is communicatively connected to the food detection device.

[0028] Specifically, the objects to be tested collected on the food testing card are analyzed in the food testing equipment to obtain the analysis results, and the analysis results are compared with the corresponding index values. Finally, the comparison results are sent to the user terminal via wireless transmission (such as Wifi, Bluetooth, etc.).

[0029] In this embodiment, when the comparison result shows qualified, the historical comparison result stored in the application end is obtained, and the current comparison result is compared with the historical comparison result to determine the origin of the currently tested food. It should be noted that the pesticide spraying of food is related to the region, specifically to climate factors, soil conditions, and types of crops planted. For example, fertile soil can make crops grow strong and have strong resistance, which may relatively reduce the use of pesticides. Crops grown in poor soil are susceptible to pests and diseases, and more pesticides are needed to ensure yield and quality.

[0030] Specifically, the corresponding detection index is determined according to the type of food, and the corresponding standard polygon is generated according to the detection index. It can be understood that if there are five indicators, a pentagon is generated, and if there are six indicators, a hexagon is generated; 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. K-means clustering algorithm can be used for cluster analysis to find the data characteristics of each origin and each food type through clustering. According to the standard polygon, the clustering results of each detection value are presented in a polygonal manner to obtain a first polygon, wherein, on the basis of the standard polygon, an irregular polygon is generated according to the clustering results of each detection value; According to the standard polygon, each detection value in the current comparison result is presented in a polygonal manner to obtain a second polygon; The second polygon is compared with the first polygon to determine a target polygon that matches the second polygon. Specifically, the area of ​​the second polygon and the area of ​​each first polygon are obtained, and the area of ​​each first polygon is subtracted from the area of ​​the second polygon to determine the first polygon with the smallest area difference, so as to preliminarily select the closest polygon. 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, the distance between each vertex of the first polygon with the smallest area difference and the corresponding vertex of the second polygon is calculated respectively, and the corresponding weight is determined according to the distance. It should be noted that when calculating the distance of the vertices, the first polygon and the second polygon can be mapped to the same plane rectangular coordinate system, and the distance is calculated through the coordinate points corresponding to the vertices. In addition, according to the importance of different indicators, the corresponding first weight is determined, and then according to the distance of the vertices, the corresponding second weight is determined, wherein each distance range corresponds to a weight value, and the weight value is determined according to the distance range into which the distance of the vertex falls. It can be understood that the greater the importance of the indicator, the greater the first weight, and the smaller the distance of the vertices, the greater the second weight; According to the distance and the corresponding weight, the score is calculated, and the first polygon with the highest score is determined as the target polygon, where the score calculation formula is: ; 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; The origin of the current tested food can be determined based on the origin of the tested food corresponding to the target polygon, thereby preventing the problem of impersonating a well-known origin.

[0031] In this embodiment, in the step of transmitting the comparison result to the application end that is in communication connection with the food testing device, the data transmission of the comparison result is encrypted to improve the security of data transmission. Specifically, a character string of a preset number of characters is randomly generated, and a rounded QR code is generated according to the character string, that is, a QR code composed of black circles. It should be noted that the QR code can also be obtained by randomly deforming the identification QR code of the food testing card in accordance with the coding rules; Mapping the second polygon and the clock dial with the second hand onto the QR code, and controlling the second polygon and the clock dial with the second hand to scale in equal proportion until they are tangent to the edge of the QR code; While generating a clock dial with a second hand, control the second hand to move a preset number of times according to the current time, and obtain 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, where the coordinate origin can be the lower left corner of the QR code, and each black circle represents a coordinate point position; Insert the coordinates into the string, and perform a hash operation according to the number 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, wherein each batch of corresponding coordinates are inserted into the string, and then a hash operation is performed a corresponding number of times according to the corresponding number. Exemplarily, at the current moment, the second hand is at the twelve o'clock direction, that is, the zero second position, and the second hand moves twice, one second position and two second position respectively. The coordinates and number of intersections between the second hand and the rounded pattern at the one second position are determined, and the coordinates intersecting at this time are randomly inserted into the string in order from near to far, wherein the far distance refers to the extension direction of the second hand, and a hash operation is performed a corresponding number of times according to the corresponding number. For example, if the number is five, five hash operations are performed to obtain a first operation result, wherein randomly inserting the coordinates into the string refers to inserting the numbers in the coordinates into the string. Further, the coordinates and number of intersections between the second hand and the rounded pattern at the two second position are determined, and the coordinates intersecting at this time are randomly inserted into the first operation result, and a hash operation is performed a corresponding number of times according to the corresponding number to obtain a final hash value.

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

[0033] In summary, the method for transmitting food safety detection information without a standard card in the above-mentioned embodiments of the present invention establishes a mapping relationship between the identification of the food detection card and the detection standard of the corresponding food type; reads the identification of the food detection card by a food detection device, and determines the detection standard of the corresponding food type according to the identification 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 end that is communicatively connected to the food detection device. Specifically, since the standard card is cancelled and the identification is set on the food detection card, the detection operation is effectively simplified, and the detection result is transmitted to the application end that is communicatively connected to the food detection device, thereby improving the convenience of data transmission.

[0034] Embodiment 2 See also Figure 2 , Figure 2 It is a structured flowchart of a food safety detection information transmission system without a standard card provided by an embodiment of the present invention two. This food safety detection information transmission system 200 without a standard card is used to realize the above-mentioned embodiment and preferred implementation mode, and the description thereof will not be repeated. As used below, the term "module" can realize a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably realized with software, the realization of hardware, or a combination of software and hardware is also possible and conceived.

[0035] Specifically, the food safety detection information transmission system 200 without a standard card is applied to a scenario where a mark is set on a food detection card, and includes: an establishment module 21, a determination module 22 and a transmission module 23, wherein: Establishing module 21, used to establish a mapping relationship between the identification of the food testing card and the testing standard of the corresponding food type; A determination module 22, configured to read the identification of a food detection card through a food detection device, 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 23 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, wherein the data transmission of the comparison results is encrypted.

[0036] Furthermore, in some optional embodiments of the present invention, the food safety detection information transmission system 200 without a standard card further includes: The origin determination module 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 result, and determine the origin of the current tested food.

[0037] Furthermore, in some optional embodiments of the present invention, the origin determination module includes: A standard polygon generation unit is used to determine the corresponding detection index according to the food type, and generate the corresponding standard polygon according to the detection index; The clustering unit is used to perform cluster analysis on each test value in the historical analysis results of the same origin and the same food type, and obtain the clustering results of each test value; A first polygon generating unit, configured to present the clustering results of each detection value in a polygonal manner according to the standard polygon, to obtain a first polygon; A second polygon generating unit, configured to present each detection value in the current comparison result in a polygonal manner according to the standard polygon, to obtain a second polygon; a comparing unit, configured to compare the second polygon with the first polygon to determine a target polygon matching the second polygon; The origin determining unit is used to determine the origin of the current tested food according to the origin of the tested food corresponding to the target polygon.

[0038] Further, in some optional embodiments of the present invention, the comparison unit includes: an acquisition subunit, configured to acquire the area of ​​the second polygon and the areas of each of the first polygons, and to subtract the area of ​​each of the first polygons from the area of ​​the second polygon to determine the first polygon having the smallest area difference; A judging subunit, used to judge whether the first polygon with the smallest area difference is unique; A first calculation subunit is used for respectively calculating the distance between each vertex of the first polygon with the smallest area difference and the corresponding vertex of the second polygon if it is determined that the first polygon with the smallest area difference is not unique, and determining the corresponding weight according to the distance; The second calculation subunit is used to calculate the score according to the distance and the corresponding weight, and determine the first polygon with the highest score as the target polygon.

[0039] Further, in some optional embodiments of the present invention, the transmission module 23 includes: A character string generation unit, used to randomly generate a character string of a preset number of characters, and generate a rounded QR code based on the character string; A mapping unit, used for mapping the second polygon and the clock dial with a second hand onto the two-dimensional code, and controlling the second polygon and the clock dial with a second hand to be scaled in equal proportion until they are tangent to the edge of the two-dimensional code; A control unit, for generating a clock dial with a second hand, controlling the second hand to move a preset number of times according to the current time, and obtaining 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; The hash operation unit is used to insert the coordinates into the character string and perform a hash operation according to the quantity to obtain a hash value for encryption.

[0040] Furthermore, in some optional embodiments of the present invention, the hash operation unit includes: The insertion subunit is used to randomly insert the corresponding coordinates into the character string in batches according to the preset number of times the second hand moves, wherein after each batch of corresponding coordinates are inserted into the character string, a corresponding number of hash operations are performed according to the corresponding quantity.

[0041] Embodiment 3 Another aspect of the present invention provides an electronic device, see Figure 3 , shown is an electronic device in Embodiment 3 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in 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.

[0042] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.

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

[0044] It should be pointed out that Figure 3 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.

[0045] The embodiment of the present invention further 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.

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

[0047] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0048] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned 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, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0049] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0050] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached 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; The analysis results obtained by analyzing the food detection card are compared with the detection standards of the corresponding food types, and the comparison results are transmitted to the application end that is communicatively connected to the food detection device.

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 analysis result obtained by analyzing the food detection card with the detection standard of the corresponding food type and transmitting the comparison result to the application end in communication connection with the food detection device includes: When the comparison result shows qualified, the historical comparison results stored in the application end are obtained, and the current comparison result is compared with the historical comparison result to determine the origin of the currently tested food.

3. The method for transmitting food safety detection information without a standard card according to claim 2, characterized in that: When the comparison result shows that the food is qualified, the steps of obtaining the historical comparison result stored in the application end, comparing the current comparison result with the historical comparison result, and determining the origin of the food currently being tested include: According to the food type, the corresponding detection index is determined, and the corresponding standard polygon is generated according to the detection 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.

4. The method for transmitting food safety detection information without a standard card according to claim 3, 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.

5. The method for transmitting food safety detection information without a standard card according to claim 4, 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.

6. The method for transmitting food safety detection information without a standard card according to claim 5, 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.

7. The method for transmitting food safety detection information without a standard card according to claim 6, 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.

8. 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 7, 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.

9. 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 7 is implemented.

10. 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 7 is implemented.

Citation Information

Patent Citations

  • Food safety traceability method and device

    CN109214829A

  • Object spatial position detection method and device, computer equipment and storage medium thereof

    CN114119733A

  • Data resource full life cycle management method and system, terminal and medium

    CN114661704A

  • Target-oriented special ability training method and device

    CN114708946A

  • Food safety detection method and system and storage medium

    CN115438754A