Electronic scale trust authentication management method and system for agricultural trade commodity transaction
By providing electronic scale trust certification management methods and systems in agricultural commodity trading, the problem of low trust in electronic scales is solved, and the effect of improving transaction fairness is achieved.
Patent Information
- Application Number
- CN202510137996.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-03-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the process of agricultural commodity trading, the trust of electronic scales is low, which makes it difficult to guarantee transaction fairness. The existing technology lacks effective trust certification and management methods.
Provides electronic scale trust authentication management methods and systems for agricultural commodity trading, receives electronic scale trust authentication requests through the client, collects electronic scale images and weighing information, performs appearance checks and weighing verifications, and generates trust abnormal alarm marks.
It improves the credibility of electronic scales and ensures the fairness of the transaction process. Through an automated trust certification mechanism, the demand for manual supervision is reduced and transaction efficiency is improved.
Smart Images

Figure CN119577733A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of authentication management, and in particular to an electronic scale trust authentication management method and system for agricultural commodity trading. Background Art
[0002] In the agricultural commodity trading process, electronic scales are key measuring tools, and their accuracy and credibility directly affect the fairness of transactions. However, in existing technologies, due to the lack of effective trust authentication and management methods, manual supervision methods are difficult to fully cover and inefficient in large-scale market transactions, making it difficult to ensure the fairness of transactions. Summary of the invention
[0003] The present application provides an electronic scale trust authentication management method and system for agricultural product transactions, which solves the technical problem in the prior art that the trust of electronic scales in agricultural product transactions is low, resulting in a lack of guarantee for fair transactions.
[0004] In view of the above problems, the present application provides an electronic scale trust authentication management method and system for agricultural commodity transactions.
[0005] In a first aspect of the present application, a method for managing electronic scale trust authentication for agricultural commodity transactions is provided, the method comprising: An electronic scale trust authentication request is received through a client, wherein the electronic scale trust authentication request includes electronic scale ID information and a request authentication timestamp; according to the electronic scale ID information and the request authentication timestamp, the electronic scale is communicated with to collect an electronic scale image, a weighed commodity image and commodity weighing information; according to the electronic scale model, an electronic scale standard image is matched from a standard image library; based on the electronic scale standard image, an electronic scale appearance verification is performed on the electronic scale image to obtain an electronic scale appearance verification mark; simulated weighing is performed according to the weighed commodity image to obtain simulated weighing information; weighing verification is performed on the commodity weighing information according to the simulated weighing information to obtain a weighing verification mark; when at least one of the electronic scale appearance verification mark and the weighing verification mark is failed, an electronic scale trust abnormality alarm mark is generated and sent to the client.
[0006] The second aspect of the present application provides an electronic scale trust authentication management system for agricultural commodity transactions, the system comprising: Request receiving module: receiving an electronic scale trust authentication request through a client, wherein the electronic scale trust authentication request includes an electronic scale ID information and a request authentication timestamp; information acquisition module: communicating with the electronic scale according to the electronic scale ID information and the request authentication timestamp, collecting an electronic scale image, a weighed commodity image and commodity weighing information; standard image matching module: matching an electronic scale standard image from a standard image library according to the electronic scale model; appearance verification module: performing an electronic scale appearance verification on the electronic scale image based on the electronic scale standard image, and obtaining an electronic scale appearance verification mark; simulation weighing module: performing simulated weighing according to the weighed commodity image, and obtaining simulated weighing information; weighing verification module: performing weighing verification on the commodity weighing information according to the simulated weighing information, and obtaining a weighing verification mark; abnormal alarm module: generating an electronic scale trust abnormal alarm mark and sending it to the client when at least one of the electronic scale appearance verification mark and the weighing verification mark fails.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: First, through the client, an electronic scale trust authentication request is received, wherein the electronic scale trust authentication request includes the electronic scale ID information and the request authentication timestamp. Then, according to the electronic scale ID information and the request authentication timestamp, the electronic scale is communicated to collect the electronic scale image, the weighed commodity image and the commodity weighing information. Further, according to the electronic scale model, the electronic scale standard image is matched from the standard image library. Then, based on the electronic scale standard image, the electronic scale image is subjected to the electronic scale appearance verification, and the electronic scale appearance verification mark is obtained. Next, simulated weighing is performed according to the weighed commodity image to obtain simulated weighing information. Finally, according to the simulated weighing information, the commodity weighing information is weighed and verified to obtain the weighing verification mark; when at least one of the electronic scale appearance verification mark and the weighing verification mark is not passed, an electronic scale trust abnormal alarm mark is generated and sent to the client. The technical problem that the trust of the electronic scale is low in the agricultural trade commodity trading process in the prior art, resulting in a lack of guarantee of transaction fairness, is solved, and the technical effect of improving the credibility of the use of the electronic scale and the fairness of the transaction process is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A flow chart of a trust authentication management method for electronic scales used for agricultural commodity transactions provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of an electronic scale trust authentication management system for agricultural commodity trading provided in an embodiment of the present application.
[0010] Explanation of the accompanying drawings: request receiving module 11, information acquisition module 12, standard image matching module 13, appearance verification module 14, simulation weighing module 15, weighing verification module 16, abnormal alarm module 17. DETAILED DESCRIPTION
[0011] The present application solves the technical problem in the prior art that the trust of electronic scales in agricultural product transactions is low, resulting in a lack of guarantee for fair transactions, by providing an electronic scale trust authentication management method and system for agricultural product transactions.
[0012] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0013] It should be noted that the terms "including" and "having" are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products or devices.
[0014] In the embodiments of the present application, when data collection is involved, such as obtaining data through electronic scales and cameras, user permission or consent is required, and the collection, use and processing of relevant data comply with relevant laws, regulations and standards of relevant countries and regions, and will not violate the public interest or infringe on personal privacy.
[0015] Embodiment 1, as Figure 1 As shown, the present application provides an electronic scale trust authentication management method for agricultural commodity transactions, wherein the method includes: An electronic scale trust authentication request is received through a client, wherein the electronic scale trust authentication request includes electronic scale ID information and a request authentication timestamp.
[0016] The electronic scale trust authentication request is received through the client (such as a mobile app), where the electronic scale trust authentication request is initiated by the user to verify the credibility of the electronic scale, ensure the fairness of the transaction process and the reliability of the data. The electronic scale trust authentication request contains two key pieces of information: one is the electronic scale ID information, which is used to uniquely identify the electronic scale that needs to be authenticated, ensuring that the system can accurately locate the target device and avoid confusion with other devices; the other is the request authentication timestamp, which marks the specific initiation time of the authentication request, provides a time basis for the entire authentication process, and ensures the real-time and traceability of the request in subsequent records. In addition, the request authentication timestamp can also be used to prevent repeated authentication or forged requests, thereby improving the security and effectiveness of the authentication operation.
[0017] According to the electronic scale ID information and the authentication request timestamp, the electronic scale is communicated with to collect the electronic scale image, the weighed commodity image and the commodity weighing information.
[0018] According to the electronic scale ID information and the authentication request timestamp, the system establishes a communication connection with the specified electronic scale and starts the data collection process. First, the uniqueness of the communication object is ensured through the electronic scale ID information to avoid confusion or wrong connection in the environment of multiple electronic scales; then, according to the authentication request timestamp, the system confirms the real-time nature of the current operation to ensure that the collected data is synchronized with the authentication request to avoid delays or interference from historical data. After successfully establishing communication, the system collects a number of key data from the target electronic scale, including the real-time image of the electronic scale, the image of the weighed goods, and the weighing information of the goods. Among them, the electronic scale image is used for subsequent appearance verification to detect whether the electronic scale has been tampered with, damaged or other abnormal conditions; the weighed goods image is used to simulate the weighing link to assist in verifying the authenticity of the weighing data; the goods weighing information is the actual measurement value provided by the electronic scale, which serves as the core basis for weighing verification. Through the collection of these data, comprehensive and accurate basic information is provided for the subsequent authentication process to ensure the scientificity and credibility of the electronic scale authentication.
[0019] According to the electronic scale model, the electronic scale standard image is matched from the standard image library.
[0020] According to the model information of the electronic scale, the system matches the standard image of the corresponding model of the electronic scale from the pre-built standard image library. The model of the electronic scale is one of the key attributes of the electronic scale. It not only determines the appearance structure of the electronic scale, but is also closely related to its functions and design characteristics. During the certification process, the model of the electronic scale is used as the basis for matching the standard image to ensure that the system can quickly and accurately find the standard image consistent with the target electronic scale. The standard image library is a database containing standard appearance images of various electronic scale models. These images are usually provided by electronic scale manufacturers or verified by certification agencies and can represent the normal state and appearance characteristics of each model of electronic scale. By extracting the standard image matching the electronic scale model from the standard image library, a comparative reference is provided for the subsequent appearance verification link to ensure the accuracy and reliability of the certification process. If there is a significant difference between the appearance image of the target electronic scale and the standard image, it may indicate that the device has been tampered with or abnormal, providing a basis for further processing.
[0021] Based on the electronic scale standard image, the electronic scale image is subjected to an electronic scale appearance verification to obtain an electronic scale appearance verification mark.
[0022] Based on the standard image of the electronic scale matched from the standard image library, the system performs appearance verification on the collected electronic scale image. First, the system extracts key appearance features from the standard image of the electronic scale, such as device shape, button layout, display screen position, and overall appearance size. Subsequently, the corresponding feature data is extracted from the collected target electronic scale image, and compared and analyzed through image processing algorithms (such as edge detection, feature point matching, etc.); during the comparison process, the system will analyze the feature similarity between the two images to detect whether there are structural differences or abnormalities. For example, if the appearance of the target electronic scale is found to be obviously damaged, altered, missing buttons, or tampered with the display screen, the verification result will be judged as unsuccessful; based on the verification result, an electronic scale appearance verification mark is generated to mark whether the appearance verification is qualified. If the appearance verification fails, it may indicate that the electronic scale is at risk of tampering or failure, thereby triggering further processing or alarm mechanisms to ensure that the electronic scale used in the transaction meets the specifications.
[0023] Furthermore, performing an electronic scale appearance verification on the electronic scale image to obtain an electronic scale appearance verification mark includes: The standard image of the electronic scale includes a standard image of the electronic scale lead seal, a standard image of the electronic scale nameplate, and a standard image of a qualified label for compulsory inspection; based on the standard image of the electronic scale lead seal, the standard image of the electronic scale nameplate, and the standard image of the qualified label for compulsory inspection, the electronic scale image is respectively subjected to an electronic scale appearance verification to obtain an electronic scale lead seal verification mark, an electronic scale nameplate verification mark, and a qualified label for compulsory inspection verification mark; when any one of the electronic scale lead seal verification mark, the electronic scale nameplate verification mark, and the qualified label for compulsory inspection verification mark is failed, the electronic scale appearance verification mark is failed; when the electronic scale lead seal verification mark, the electronic scale nameplate verification mark, and the qualified label for compulsory inspection verification mark are all passed, the electronic scale appearance verification mark is passed.
[0024] The standard image of the electronic scale consists of three key parts, namely the standard image of the electronic scale lead seal, the standard image of the electronic scale nameplate and the standard image of the compulsory inspection qualified label, which are used to verify the integrity and compliance of the electronic scale. Based on the standard image of the electronic scale lead seal, the lead seal area in the target electronic scale image is extracted, and its integrity and consistency are compared with the standard image to generate the electronic scale lead seal verification mark, which is used to determine whether the equipment has been illegally disassembled or modified; based on the standard image of the electronic scale nameplate, the nameplate information in the target electronic scale image is checked, including the model, manufacturer and serial number, etc., to generate the electronic scale nameplate verification mark to verify the legality and consistency of the equipment information; based on the standard image of the compulsory inspection qualified label, check whether the compulsory inspection qualified label in the target electronic scale image exists, is complete, and meets the standard, and generate the compulsory inspection qualified label verification mark to determine whether the equipment has passed the compulsory inspection. During the verification process, if any of the electronic scale lead seal verification mark, the electronic scale nameplate verification mark or the compulsory inspection qualified label verification mark is not passed, the electronic scale appearance verification mark is judged as not passed; if the above three verification marks are all passed, the electronic scale appearance verification mark is judged as passed.
[0025] Furthermore, performing an electronic scale appearance verification on the electronic scale image based on the electronic scale seal standard image to obtain an electronic scale seal verification mark includes: Obtain an appearance verification model; extract an electronic scale seal image according to the electronic scale image, wherein the electronic scale seal image has the same image acquisition parameters and image acquisition orientation as the electronic scale seal standard image; input the electronic scale seal image and the electronic scale seal standard image into the appearance verification model for comparison, and generate the electronic scale seal verification mark, wherein the electronic scale seal verification mark includes 0 or 1; when the electronic scale seal verification mark is 1, it is passed, and when it is 0, it is failed.
[0026] Specifically, an appearance verification model is constructed, which is used to compare and analyze the feature consistency between the target image and the standard image; based on the collected electronic scale image, the system extracts the electronic scale seal image from it, and the acquisition parameters (such as resolution, light conditions) and acquisition orientation (such as angle, position) of the image are completely consistent with the electronic scale seal standard image, ensuring the reliability and consistency of the comparison result; the system inputs the extracted electronic scale seal image and the pre-stored electronic scale seal standard image into the appearance verification model for feature comparison, and finally generates an electronic scale seal verification mark. The value of the electronic scale seal verification mark is 0 or 1, where 1 indicates that the verification is passed, proving that the electronic scale seal is intact and has not been tampered with; 0 indicates that the verification fails, indicating that the seal may be damaged, missing or abnormal.
[0027] Based on the standard image of the electronic scale nameplate and the standard image of the strong inspection qualified label, the electronic scale image is respectively verified for appearance, and the specific process of obtaining the electronic scale nameplate verification mark and the strong inspection qualified label verification mark is consistent with the process of appearance verification based on the standard image of the electronic scale lead seal. Specifically, first, the system obtains an appearance verification model to analyze the feature consistency of the target image and the standard image; then, the regional image corresponding to the electronic scale nameplate or the strong inspection qualified label is extracted from the electronic scale image, and the acquisition parameters (such as resolution, lighting conditions) and acquisition orientation (such as angle, position) of these images are completely consistent with the corresponding standard image to ensure the accuracy of the comparison; then, the extracted nameplate image or strong inspection qualified label image and the corresponding standard image are input into the appearance verification model, and the consistency of the image in the key area is analyzed through feature extraction and similarity comparison; finally, the system generates a verification mark, where the values of the electronic scale nameplate verification mark and the strong inspection qualified label verification mark are both 0 or 1, 1 means the verification is passed, and 0 means the verification is not passed.
[0028] Furthermore, the electronic scale seal image and the electronic scale seal standard image are input into the appearance verification model for comparison to generate the electronic scale seal verification mark, including: Input the electronic scale seal image into the first feature extraction channel of the appearance verification model to obtain first image feature information; input the electronic scale seal standard image into the second feature extraction channel of the appearance verification model to obtain second image feature information, wherein the first feature extraction channel and the second feature extraction channel are twin neural networks to each other; compare the first image feature information with the second image feature information to obtain an image feature deviation distance; when the image feature deviation distance is greater than or equal to a deviation distance threshold, output 0, and when the image feature deviation distance is less than the deviation distance threshold, output 1.
[0029] Specifically, the appearance verification model is loaded, which includes a first feature extraction channel and a second feature extraction channel, and the two constitute a twin neural network to ensure that the two input images extract feature information under the same network structure; the collected electronic scale seal image is imported into the first feature extraction channel as input data, and the model processes the image through a multi-layer neural network to extract and output the first image feature information; at the same time, the electronic scale seal standard image is imported into the second feature extraction channel as input data, and the model performs the same processing on it, extracts and outputs the second image feature information; the first image feature information and the second image feature information are input into the comparison module, and the image feature deviation distance between the two is calculated (for example, using the Euclidean distance formula) to obtain a quantitative similarity index; the calculated deviation distance is compared with the preset deviation distance threshold, and if the deviation distance is greater than or equal to the threshold, it is determined that the verification fails, and the electronic scale seal verification identification value is generated as 0; if the deviation distance is less than the threshold, it is determined that the verification passes, and the electronic scale seal verification identification value is generated as 1. The verification identification result will serve as an important basis in the subsequent authentication process to judge the integrity and credibility of the electronic scale seal, thereby realizing efficient and automated appearance verification.
[0030] Simulated weighing is performed according to the weighed commodity image to obtain simulated weighing information.
[0031] Based on the acquired weighed product image, the system identifies the product's outline and extracts its key features, including parameters such as the product's shape, size, volume, and density distribution. It matches the product category through a pre-established product feature database and extracts physical attribute data related to the product category, such as average density or standard weight range. On this basis, the system combines the image feature information with the product attributes in the database, and uses physical calculations or machine learning algorithms (such as regression models or neural network models) to simulate and estimate the weight of the product, generating simulated weighing information as the estimated weight result of the product.
[0032] Furthermore, performing simulated weighing according to the weighed commodity image to obtain simulated weighing information includes: According to the commodity classification model, the weighed commodity image is processed to obtain the weighed commodity category information; according to the size analysis model, the weighed commodity image acquisition parameters are processed to obtain the weighed commodity size information; with the weighed commodity category information and the weighed commodity size information as constraints, a historical weighing record data set is collected; and a centralized value evaluation is performed on the historical weighing record data set to obtain the simulated weighing information.
[0033] Specifically, the commodity classification model is loaded, and the collected weighing commodity images are input into the model. By extracting the feature information of the image (such as color, texture, shape, etc.), the category of the commodity is identified, and the category information of the weighing commodity is generated, such as apples in the fruit category or rice in the grain category; the size analysis model is called to combine the image acquisition parameters (such as resolution, viewing angle, lighting, etc.) with the commodity image features, analyze and calculate the size information of the commodity, including length, width, height or three-dimensional volume, so as to generate the size information of the weighing commodity; with the commodity category information and size information as constraints, the stored historical weighing record data set is queried to filter out the historical weighing data that is consistent with the commodity category and has similar size characteristics; after the screening is completed, the system performs a centralized value evaluation on the extracted historical weighing record data set, such as calculating the mean, median or weighted average, to determine the estimated value of the commodity weight; finally, the system outputs the estimated value as simulated weighing information for subsequent comparison and verification with the actual weighing information of the electronic scale to ensure that the weighing result of the electronic scale is accurate and reliable.
[0034] Furthermore, the step of constructing the dimensional analysis model includes: According to the preset camera model, image acquisition parameter recording data and image size identification information are configured; the size analysis model is trained with the image size identification information as supervision and the image acquisition parameter recording data as input.
[0035] Specifically, according to the preset camera model, the system configures image acquisition parameter recording data and corresponding image size identification information. The image acquisition parameter recording data includes specific parameters of the camera, such as resolution, focal length, aperture size, shooting distance, viewing angle, etc. These parameters determine the actual size ratio of the image; the image size identification information records the actual size data of the object in the corresponding captured image (such as the length, width, height or volume of the object). These size information is obtained by pre-measurement or calibration and serves as a supervisory label for model training; the system uses the image size identification information as a supervisory label and the image acquisition parameter recording data as the input of the model to construct a training data set; by inputting multiple sets of image acquisition parameter recording data, the system combines the supervisory labels and uses machine learning technology (such as regression model or deep learning network) to train the size analysis model. During the training process, the model learns the relationship between the image acquisition parameters and the actual object size, and gradually optimizes the internal weights to improve the prediction accuracy of the image size under different acquisition conditions; finally, the trained size analysis model can accurately infer the product size information (such as length, width, height or volume) in the image based on the input image acquisition parameter recording data, providing reliable size support for the subsequent simulated weighing process.
[0036] The commodity weighing information is weighed and verified according to the simulated weighing information to obtain a weighing verification mark.
[0037] The simulated weighing information (estimated weight of the product) obtained through the simulated weighing process is used as a reference value, and the product weighing information (actual measured weight) provided by the electronic scale is obtained as the verification object. The system loads the preset weighing error range parameters, sets the allowable weight error range (such as ±5% or ±0.1kg) according to the product category or industry standard; calculates the error value between the simulated weighing information and the product weighing information, and the formula is: error value = product weighing information - simulated weighing information; compares the error value with the preset error range. When the error value is less than or equal to the error range, it means that the weighing result meets the expected range, the verification passes, and the generated weighing verification identification value is 1; when the error value is greater than the error range, it means that the weighing result is abnormal, the verification fails, and the generated weighing verification identification value is 0. Finally, the weighing verification identification will be used as the basis for subsequent trust authentication output to determine the reliability of the electronic scale weighing data. If the identification value is 0, the system will trigger an abnormal alarm or record abnormal transaction information; if the identification value is 1, it confirms that the weighing result is credible, thereby ensuring the fairness and accuracy of the transaction.
[0038] When at least one of the electronic scale appearance verification mark and the weighing verification mark fails, an electronic scale trust abnormality alarm mark is generated and sent to the client.
[0039] When at least one of the results of the electronic scale appearance verification mark and the weighing verification mark is failed, the system will immediately generate an electronic scale trust abnormal alarm mark and send it to the client for prompting. Specifically, the results of the electronic scale appearance verification mark and the weighing verification mark are logically judged. If the result of any mark is failed, it indicates that the electronic scale may have problems such as appearance tampering, functional abnormality or inaccurate weighing data; at this time, the system triggers the alarm mechanism and generates a message containing an abnormal alarm mark, and attaches relevant abnormal details, such as the specific mark category that failed the verification (such as appearance verification or weighing verification), the reason for the verification failure, the timestamp and the unique ID of the electronic scale; then, the system sends the abnormal alarm mark to the client through the preset communication channel, and the client can display, record or further operate the abnormal information (such as notifying the management staff to check or stop the transaction).
[0040] Furthermore, it also includes: When both the electronic scale appearance verification mark and the weighing verification mark are passed, the electronic scale weighing display record timing information in the preset time interval before the request authentication timestamp is obtained in a non-weighing state; the weighing variance information of the electronic scale weighing display record timing information is calculated; when the weighing variance information is greater than or equal to the weighing variance threshold, an electronic scale trust abnormality alarm mark is generated and sent to the client; when the weighing variance information is less than the weighing variance threshold, an electronic scale trust mark is generated and sent to the client.
[0041] When both the appearance verification mark and the weighing verification mark of the electronic scale are passed, the system will further verify the weighing stability of the electronic scale. Specifically, first, the timing information of the weighing display record of the electronic scale within the preset time interval before the request authentication timestamp is obtained. These records reflect the changes in the weighing display of the electronic scale within this time period, and the possibility of abnormal weighing status is eliminated through timing analysis; then, the weighing variance information of these weighing display records is calculated. The weighing variance information is used to quantify the degree of fluctuation of the weighing display of the electronic scale in the unweighed state to ensure the basic stability of the electronic scale; the calculated weighing variance information is compared with the preset weighing variance threshold. When the weighing variance information is greater than or equal to the weighing variance threshold, the system determines that there is a problem with the stability of the electronic scale, generates an electronic scale trust abnormality alarm mark, and sends the alarm mark and abnormal details to the client to prompt the management personnel to take further measures; when the weighing variance information is less than the weighing variance threshold, the system determines that the electronic scale is operating normally, generates an electronic scale trust mark, and sends the trust mark to the client to confirm the credibility of the electronic scale. By adding timing analysis and stability verification of weight display records, this mechanism further improves the electronic scale trust authentication system and ensures the fairness and security of the transaction process from multiple angles.
[0042] In summary, the embodiments of the present application have at least the following technical effects: First, through the client, an electronic scale trust authentication request is received, wherein the electronic scale trust authentication request includes the electronic scale ID information and the request authentication timestamp. Then, according to the electronic scale ID information and the request authentication timestamp, the electronic scale is communicated to collect the electronic scale image, the weighed commodity image and the commodity weighing information. Further, according to the electronic scale model, the electronic scale standard image is matched from the standard image library. Then, based on the electronic scale standard image, the electronic scale image is subjected to the electronic scale appearance verification, and the electronic scale appearance verification mark is obtained. Next, simulated weighing is performed according to the weighed commodity image to obtain simulated weighing information. Finally, according to the simulated weighing information, the commodity weighing information is weighed and verified to obtain the weighing verification mark; when at least one of the electronic scale appearance verification mark and the weighing verification mark is not passed, an electronic scale trust abnormal alarm mark is generated and sent to the client. The technical problem that the trust of the electronic scale is low in the agricultural trade commodity trading process in the prior art, resulting in a lack of guarantee of transaction fairness, is solved, and the technical effect of improving the credibility of the use of the electronic scale and the fairness of the transaction process is achieved.
[0043] Embodiment 2 is based on the same inventive concept as the electronic scale trust authentication management method for agricultural commodity trading in the above embodiment. Figure 2 As shown, the present application provides an electronic scale trust authentication management system for agricultural commodity transactions, wherein the system includes a cloud server, an electronic scale and a client, and also includes: The request receiving module 11 receives the electronic scale trust authentication request through the client, wherein the electronic scale trust authentication request includes the electronic scale ID information and the request authentication timestamp; the information acquisition module 12 communicates with the electronic scale according to the electronic scale ID information and the request authentication timestamp, and collects the electronic scale image, the weighed commodity image and the commodity weighing information; the standard image matching module 13 matches the electronic scale standard image from the standard image library according to the electronic scale model; the appearance verification module 14 performs an electronic scale appearance verification on the electronic scale image based on the electronic scale standard image, and obtains an electronic scale appearance verification mark; the simulation weighing module 15 performs simulated weighing according to the weighed commodity image, and obtains simulated weighing information; the weighing verification module 16 performs weighing verification on the commodity weighing information according to the simulated weighing information, and obtains a weighing verification mark; the abnormal alarm module 17 generates an electronic scale trust abnormal alarm mark and sends it to the client when at least one of the electronic scale appearance verification mark and the weighing verification mark fails.
[0044] Furthermore, the abnormal alarm module 17 is used to execute the following method: When both the electronic scale appearance verification mark and the weighing verification mark are passed, the electronic scale weighing display record timing information in the preset time interval before the request authentication timestamp is obtained in a non-weighing state; the weighing variance information of the electronic scale weighing display record timing information is calculated; when the weighing variance information is greater than or equal to the weighing variance threshold, an electronic scale trust abnormality alarm mark is generated and sent to the client; when the weighing variance information is less than the weighing variance threshold, an electronic scale trust mark is generated and sent to the client.
[0045] Furthermore, the appearance verification module 14 is used to perform the following method: The standard image of the electronic scale includes a standard image of the electronic scale lead seal, a standard image of the electronic scale nameplate, and a standard image of a qualified label for compulsory inspection; based on the standard image of the electronic scale lead seal, the standard image of the electronic scale nameplate, and the standard image of the qualified label for compulsory inspection, the electronic scale image is respectively subjected to an electronic scale appearance verification to obtain an electronic scale lead seal verification mark, an electronic scale nameplate verification mark, and a qualified label for compulsory inspection verification mark; when any one of the electronic scale lead seal verification mark, the electronic scale nameplate verification mark, and the qualified label for compulsory inspection verification mark is failed, the electronic scale appearance verification mark is failed; when the electronic scale lead seal verification mark, the electronic scale nameplate verification mark, and the qualified label for compulsory inspection verification mark are all passed, the electronic scale appearance verification mark is passed.
[0046] Furthermore, the appearance verification module 14 is used to perform the following method: Obtain an appearance verification model; extract an electronic scale seal image according to the electronic scale image, wherein the electronic scale seal image has the same image acquisition parameters and image acquisition orientation as the electronic scale seal standard image; input the electronic scale seal image and the electronic scale seal standard image into the appearance verification model for comparison, and generate the electronic scale seal verification mark, wherein the electronic scale seal verification mark includes 0 or 1; when the electronic scale seal verification mark is 1, it is passed, and when it is 0, it is failed.
[0047] Furthermore, the appearance verification module 14 is used to perform the following method: Input the electronic scale seal image into the first feature extraction channel of the appearance verification model to obtain first image feature information; input the electronic scale seal standard image into the second feature extraction channel of the appearance verification model to obtain second image feature information, wherein the first feature extraction channel and the second feature extraction channel are twin neural networks to each other; compare the first image feature information with the second image feature information to obtain an image feature deviation distance; when the image feature deviation distance is greater than or equal to a deviation distance threshold, output 0, and when the image feature deviation distance is less than the deviation distance threshold, output 1.
[0048] Furthermore, the simulated weighing module 15 is used to perform the following method: According to the commodity classification model, the weighed commodity image is processed to obtain the weighed commodity category information; according to the size analysis model, the weighed commodity image acquisition parameters are processed to obtain the weighed commodity size information; with the weighed commodity category information and the weighed commodity size information as constraints, a historical weighing record data set is collected; and a centralized value evaluation is performed on the historical weighing record data set to obtain the simulated weighing information.
[0049] Furthermore, the simulated weighing module 15 is used to perform the following method: According to the preset camera model, image acquisition parameter recording data and image size identification information are configured; the size analysis model is trained with the image size identification information as supervision and the image acquisition parameter recording data as input.
[0050] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0051] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
[0052] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A trust authentication management method for electronic scales used in agricultural commodity transactions, characterized in that: An electronic scale trust authentication management system applied to agricultural commodity transactions, the system includes a cloud server, an electronic scale and a client, and the cloud server executes the following steps: Receiving, through the client, an electronic scale trust authentication request, wherein the electronic scale trust authentication request includes electronic scale ID information and a request authentication timestamp; According to the electronic scale ID information and the authentication request timestamp, communicate with the electronic scale to collect the electronic scale image, the weighed commodity image and the commodity weighing information; According to the electronic scale model, match the electronic scale standard image from the standard image library; Based on the electronic scale standard image, performing an electronic scale appearance verification on the electronic scale image to obtain an electronic scale appearance verification mark; Perform simulated weighing according to the weighed commodity image to obtain simulated weighing information; According to the simulated weighing information, the commodity weighing information is weighed and verified to obtain a weighing verification mark; When at least one of the electronic scale appearance verification mark and the weighing verification mark fails, an electronic scale trust abnormality alarm mark is generated and sent to the client.
2. The method according to claim 1, characterized in that Also includes: When both the electronic scale appearance verification mark and the weighing verification mark are passed, obtaining the electronic scale weighing display record timing information in a non-weighing state in a preset time interval before the authentication request timestamp; Calculate the weighing variance information of the electronic scale weighing display recording time series information; When the weighing variance information is greater than or equal to the weighing variance threshold, an electronic scale trust abnormality alarm mark is generated and sent to the client; When the weighing variance information is less than the weighing variance threshold, an electronic scale trust mark is generated and sent to the client.
3. The method according to claim 1, characterized in that Based on the electronic scale standard image, performing an electronic scale appearance verification on the electronic scale image to obtain an electronic scale appearance verification mark includes: The electronic scale standard image includes the electronic scale lead seal standard image, the electronic scale nameplate standard image, and the compulsory inspection qualified label standard image; Based on the standard image of the electronic scale lead seal, the standard image of the electronic scale nameplate, and the standard image of the qualified label for compulsory inspection, the electronic scale image is respectively subjected to an electronic scale appearance verification to obtain an electronic scale lead seal verification mark, an electronic scale nameplate verification mark, and a qualified label for compulsory inspection verification mark; When any one of the electronic scale lead seal verification mark, the electronic scale nameplate verification mark and the compulsory inspection qualified label verification mark is failed, the electronic scale appearance verification mark is failed; When the electronic scale lead seal verification mark, the electronic scale nameplate verification mark and the compulsory inspection qualified label verification mark are all passed, the electronic scale appearance verification mark is passed.
4. The method according to claim 3, characterized in that Performing an electronic scale appearance verification on the electronic scale image based on the electronic scale lead seal standard image to obtain an electronic scale lead seal verification mark includes: Obtaining an appearance verification model; Extracting an electronic scale seal image according to the electronic scale image, wherein the electronic scale seal image has the same image acquisition parameters and image acquisition orientation as the electronic scale seal standard image; Input the electronic scale seal image and the electronic scale seal standard image into the appearance verification model for comparison, and generate the electronic scale seal verification mark, wherein the electronic scale seal verification mark includes 0 or 1; When the electronic scale seal verification mark is 1, it means passing, and when it is 0, it means failing.
5. The method according to claim 4, characterized in that Inputting the electronic scale seal image and the electronic scale seal standard image into the appearance verification model for comparison to generate the electronic scale seal verification mark, including: Inputting the electronic scale seal image into the first feature extraction channel of the appearance verification model to obtain first image feature information; Inputting the electronic scale lead seal standard image into the second feature extraction channel of the appearance verification model to obtain second image feature information, wherein the first feature extraction channel and the second feature extraction channel are twin neural networks to each other; Comparing the first image feature information with the second image feature information to obtain an image feature deviation distance; When the image feature deviation distance is greater than or equal to the deviation distance threshold, 0 is output; when the image feature deviation distance is less than the deviation distance threshold, 1 is output.
6. The method according to claim 1, characterized in that Performing simulated weighing according to the weighed commodity image to obtain simulated weighing information includes: Processing the weighed commodity image according to the commodity classification model to obtain weighed commodity category information; According to the size analysis model, the image acquisition parameters of the weighed goods are processed to obtain the size information of the weighed goods; Collecting a historical weighing record data set based on the weighed commodity category information and the weighed commodity size information as constraints; A centralized value evaluation is performed on the historical weighing record data set to obtain the simulated weighing information.
7. The method according to claim 6, characterized in that The step of constructing the dimensional analysis model comprises: According to the preset camera model, configure the image acquisition parameters to record data and image size identification information; The size analysis model is trained using the image size identification information as supervision and the image acquisition parameter record data as input.
8. An electronic scale trust authentication management system for agricultural commodity trading, characterized in that: The electronic scale trust authentication management method for agricultural commodity trading according to any one of claims 1 to 7 is used to implement the system comprising a cloud server, an electronic scale and a client, and the system further comprises: Request receiving module: receiving an electronic scale trust authentication request through a client, wherein the electronic scale trust authentication request includes electronic scale ID information and a request authentication timestamp; Information collection module: communicating with the electronic scale according to the electronic scale ID information and the authentication request timestamp, collecting the electronic scale image, weighed commodity image and commodity weighing information; Standard image matching module: matches the standard image of the electronic scale from the standard image library according to the electronic scale model; Appearance verification module: based on the electronic scale standard image, performing electronic scale appearance verification on the electronic scale image to obtain an electronic scale appearance verification mark; Simulated weighing module: performs simulated weighing according to the weighed commodity image to obtain simulated weighing information; Weighing verification module: according to the simulated weighing information, the weighing verification of the commodity is performed to obtain a weighing verification mark; Abnormal alarm module: when at least one of the electronic scale appearance verification mark and the weighing verification mark fails, an electronic scale trust abnormal alarm mark is generated and sent to the client.
Citation Information
Patent Citations
Electronic scale remote verification system and method
CN109253792A
Fully compatible metering product automatic verification system and method
CN111352062A
Living fish weight estimation method and system based on instance segmentation
CN114998375A
Management and control system for ensuring precision of weighing device
CN116858356A