Agricultural product video tracing method, system and device and storage medium

By integrating video and blockchain technology, video data of agricultural product packaging process is collected and stored, the problem that the existing technology cannot fully reflect the dynamic production process and the lack of traceability of one thing and one code is solved, and high-reliability traceability evidence and cost reduction effect is achieved.

CN119863250APending Publication Date: 2025-04-22TRAVELSKY TECHNOLOGY LIMITED
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411896605.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The existing agricultural product traceability technology cannot fully reflect the dynamic production process of agricultural products, lacks traceability technology for every item and code, and the platform construction cost is high, and the storage and transmission cost is also high.

Method used

By integrating video and blockchain technology, video data of the agricultural product packaging process is collected, and data verification, encryption, processing and correlation is carried out with basic agricultural product information and operation records, and stored in the database and blockchain to generate QR codes for traceability query.

Benefits of technology

It realizes unique video recording and untampered blockchain storage of each agricultural product, improves the credibility of traceability evidence, reduces the cost of platform construction and storage transmission, ensures the application of traceability of small batch agricultural products, and provides accurate and detailed traceability information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119863250A_ABST
    Figure CN119863250A_ABST
Patent Text Reader

Abstract

The invention discloses an agricultural product video traceability method, system and device and a storage medium, and the method comprises the steps: collecting agricultural product traceability data through a data collection terminal, storing the agricultural product traceability data to different storage modules according to types, carrying out the data verification and encryption processing of the agricultural product traceability data, and obtaining encrypted agricultural product traceability data; and performing data processing and information association on the encrypted agricultural product traceability data, storing associated information data in a database, and skipping to an H5 page by scanning a two-dimensional code of an agricultural product package to obtain the associated information data of the agricultural product. According to the method, the traceability data are classified and stored in the corresponding areas, the unique identifier is generated according to the basic information of the operation record, the identifier is closely associated with the specific operation link, personalized traceability of a single agricultural product is realized, the dynamic production process of the agricultural product is visually displayed in a video form, and the credibility of traceability evidence is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video tracing, and in particular relates to a method, system, device and storage medium for tracing video of agricultural products. Background Art

[0002] With the advent of the digital age, the agricultural sector is undergoing unprecedented changes, especially in the traceability of agricultural product quality and the building of consumer trust. Food safety and quality transparency have become the focus of modern society, and consumers have put forward higher requirements for the production process and source information of agricultural products. In this context, agricultural product traceability technology, as an emerging and effective means, is gradually occupying an important position in the field of agricultural product quality management. At present, agricultural product traceability technology has also made certain progress, and a variety of traceability solutions have emerged on the market. Most of these solutions are based on blockchain, RFID, Internet of Things and other technologies, and realize a certain degree of traceability of agricultural products by storing and transmitting key information such as production, processing and transportation of agricultural products. However, these technologies still have many defects in practical applications. Defect 1: Low credibility of traceability evidence. Blockchain + picture traceability technology utilizes the decentralized and tamper-proof characteristics of blockchain to store the picture information of agricultural products on the blockchain to realize the traceability function. However, this technology relies only on static pictures and cannot provide intuitive evidence in the form of video, so it cannot fully reflect the dynamic production process of agricultural products. Defect 2: High platform construction cost. Internet of Things + video surveillance technology allows some Internet of Things platforms to install video surveillance equipment to monitor the production environment of agricultural products in real time. Although this method can provide richer video data, the technology usually requires the installation of fixed video surveillance equipment in specific locations (such as workshops), resulting in high initial construction costs. In addition, it mainly focuses on the monitoring of the production environment rather than the specific packaging and sorting of agricultural products. At the same time, due to the large amount of video data, the high storage and transmission costs also limit its wide application in the traceability of small batches of agricultural products. Defect three: lack of one-to-one traceability technology. In the current agricultural product traceability system, the traceability of large quantities of agricultural products often becomes the focus. The traceability process of large quantities of agricultural products often encounters technical bottlenecks and cost pressures due to massive data processing requirements and complex system maintenance. At the same time, this large-scale processing method cannot provide unique traceability information for each piece of agricultural product, resulting in a significant reduction in the traceability effect. Summary of the invention

[0003] To solve the above problems, the present invention provides a video traceability method, system, device and storage medium for agricultural products to solve the problem that the existing agricultural product traceability methods cannot fully reflect the dynamic production process of agricultural products and lack one-to-one traceability technology.

[0004] A video tracing method for agricultural products, comprising:

[0005] Collect agricultural product traceability data through data collection terminals and store them in different storage modules by category;

[0006] Perform data verification and encryption on agricultural product traceability data to obtain encrypted agricultural product traceability data;

[0007] Process and associate the encrypted agricultural product traceability data, and store the associated information data in a database;

[0008] Scan the QR code on the agricultural product packaging to jump to the H5 page and obtain related information data of the agricultural products.

[0009] According to a specific embodiment of the present invention, agricultural product traceability data includes: video data of the agricultural product packaging process, basic information of the agricultural product and operation records.

[0010] According to a specific embodiment of the present invention, the basic information of agricultural products includes the production date, origin and quality inspection report of the agricultural products.

[0011] According to a specific embodiment of the present invention, collecting agricultural product traceability data through a data collection terminal and storing them in different storage modules by category includes:

[0012] The mobile camera collects real-time video data of the agricultural product packaging process on site, and the PDA handheld terminal scans the QR code on the agricultural product packaging to obtain basic information and operation records of the agricultural products;

[0013] The video data and basic information of agricultural products are stored in the server and database respectively, and the operation records are stored in the blockchain.

[0014] According to a specific embodiment of the present invention, data verification and encryption processing are performed on agricultural product traceability data to obtain encrypted agricultural product traceability data including:

[0015] Perform format verification and integrity verification on video data, and perform field verification on basic information of agricultural products and operation records;

[0016] The verified data is encrypted to obtain encrypted agricultural product traceability data.

[0017] According to a specific embodiment of the present invention, the method further includes:

[0018] After data storage is completed, a data index is established based on video data, basic information of agricultural products and operation records.

[0019] According to a specific embodiment of the present invention, data processing and information association are performed on the encrypted agricultural product traceability data, and the associated information data is stored in a database, including:

[0020] Parse the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generate a QR code;

[0021] Performing multi-threaded video encoding and compression processing on the video data to obtain video processing data;

[0022] Dividing the video processing data into a plurality of video segments corresponding to each operation node in the operation record according to time periods, and assigning a corresponding video identifier to each video segment;

[0023] The video identifier of each video clip is associated with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and the associated information data is stored in a database.

[0024] According to a specific embodiment of the present invention, the agricultural product identifier includes a batch number and a serial number of the agricultural product.

[0025] An agricultural product video traceability system, comprising:

[0026] Data collection and storage module, used to collect agricultural product traceability data and store them in different storage modules according to categories;

[0027] The data verification and encryption module is used to verify and encrypt the agricultural product traceability data to obtain encrypted agricultural product traceability data;

[0028] A data processing module is used to process and associate the encrypted agricultural product traceability data, and store the associated information data in a database;

[0029] The data acquisition module is used to jump to the H5 page by scanning the QR code on the agricultural product packaging to obtain the related information data of the agricultural product.

[0030] According to a specific embodiment of the present invention, the data acquisition and storage module further includes:

[0031] The data acquisition module is used to collect video data of the agricultural product packaging process shot in real time on site, as well as basic information of the agricultural products and operation records;

[0032] The data storage module is used to store video data and basic information of agricultural products in the server and database respectively, and to store operation records on the blockchain.

[0033] According to a specific embodiment of the present invention, the data verification and encryption module further includes:

[0034] Data verification module, used to perform format verification and integrity verification on video data, and field verification on basic information of agricultural products and operation records;

[0035] The data encryption module is used to encrypt the verified data to obtain encrypted agricultural product traceability data.

[0036] According to a specific embodiment of the present invention, the system further includes:

[0037] The index building module is used to build data indexes based on video data, basic information of agricultural products and operation records.

[0038] According to a specific embodiment of the present invention, the data processing module further includes:

[0039] A data analysis module, used to parse the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generate a QR code;

[0040] The video processing module is used to perform multi-threaded video encoding and compression processing on the video data to obtain video processing data, and to divide the video processing data into a plurality of video segments corresponding to each operation node in the operation record according to a time period, and to assign a corresponding video identifier to each video segment;

[0041] The data association module is used to associate the video identifier of each video clip with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and store the associated information data in a database.

[0042] An electronic device, characterized in that it includes: a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned agricultural product video traceability method.

[0043] A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned agricultural product video traceability method.

[0044] Compared with the prior art, the agricultural product video tracing method, system, device and storage medium provided by the present invention have the following advantages:

[0045] 1. The present invention integrates video and blockchain technology to achieve real-time video recording and tamper-proof blockchain storage of each agricultural product. This technology makes up for the shortcomings of traditional image traceability in the dynamic process and the lack of personalized traceability. It intuitively displays the dynamic production process of agricultural product packaging in the form of video, greatly improving the credibility of traceability evidence.

[0046] 2. The present invention not only retains the ability of real-time monitoring, but also effectively reduces the cost of platform construction. Using handheld PDAs and head-mounted cameras, these devices are not only low-cost, but also can be flexibly applied to different locations, whether it is in the fields or warehouse sorting sites, they can be easily dealt with. The present invention also particularly strengthens the traceability tracking of the key link of agricultural product packaging, and through multi-threaded video encoding and compression technology, it greatly reduces the storage space and transmission bandwidth requirements of video data, thereby reducing storage and transmission costs, providing strong support for agricultural product video tracing, and ensuring its wide application in small-batch agricultural product traceability.

[0047] 3. The present invention effectively overcomes the technical bottlenecks and cost pressures encountered in large-scale traceability. By combining dynamic video recording with blockchain technology, it can provide accurate and detailed traceability information for each agricultural product, making up for the deficiency of being unable to provide unique traceability information for each agricultural product due to large-scale processing, which greatly reduces the traceability effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 The present invention provides a flow chart of a method for video tracing of agricultural products according to an embodiment of the present invention.

[0050] Figure 2 It is a flow chart of a method for data collection and storage provided according to an embodiment of the present invention.

[0051] Figure 3 The present invention is a flowchart of a method for verifying and encrypting agricultural product traceability data according to an embodiment of the present invention.

[0052] Figure 4 It is a flow chart of a method for processing and associating encrypted agricultural product traceability data according to an embodiment of the present invention.

[0053] Figure 5 It is a schematic diagram of a data collection process according to an embodiment of the present invention.

[0054] Figure 6 It is a schematic diagram of a data storage process provided according to an embodiment of the present invention.

[0055] Figure 7 It is a schematic diagram of a data processing flow according to an embodiment of the present invention.

[0056] Figure 8 The present invention provides a structural diagram of a video traceability system for agricultural products according to an embodiment of the present invention.

[0057] Fig. 9 It is a structural diagram of a data acquisition and storage module provided according to an embodiment of the present invention.

[0058] Fig.10 It is a structural diagram of a data verification and encryption module provided according to an embodiment of the present invention.

[0059] Fig.11 is a structural diagram of a data processing module provided according to an embodiment of the present invention.

[0060] Fig.12 The figure is a data flow diagram of a video traceability system for agricultural products provided according to an embodiment of the present invention.

[0061] Fig.13 It is a schematic diagram of the structure of a computer device provided according to an embodiment of the present invention.

[0062] Reference numerals:

[0063] 01-Data collection and storage module; 02-Index building module; 03-Data verification and encryption module; 04-Data processing module; 05-Data acquisition module;

[0064] 011-data acquisition module; 012-data storage module;

[0065] 031-data verification module; 032-data encryption module;

[0066] 041-data analysis module; 042-video processing module; 043-data association module. DETAILED DESCRIPTION

[0067] In order to make those skilled in the art understand the concept and thought of the present invention more clearly, the present invention is described in detail below in conjunction with specific embodiments. It should be understood that the embodiments provided herein are only a part of all embodiments that the present invention may have. After reading the specification of the application, those skilled in the art have the ability to make improvements, transformations, or replacements to part or all of the following embodiments, and these improvements, transformations, or replacements are also included in the scope of the present invention.

[0068] In this article, the terms "first", "second" and other similar words are not intended to imply any order, quantity and importance, but are only used to distinguish different elements. In this article, the terms "one", "an" and other similar words are not intended to indicate that there is only one thing, but to indicate that the relevant description is only for one of the things, and the thing may have one or more. In this article, the terms "comprise", "include" and other similar words are intended to indicate logical mutual relations, and cannot be regarded as indicating spatial structural relations. For example, "A includes B" is intended to indicate that B belongs to A logically, but does not mean that B is located inside A in space. In addition, the meanings of the terms "comprise", "include" and other similar words should be regarded as open, rather than closed. For example, "A includes B" is intended to indicate that B belongs to A, but B does not necessarily constitute the whole of A, and A may also include other elements such as C, D, and E.

[0069] In this document, the terms "embodiment", "this embodiment", "one embodiment", and "an embodiment" do not mean that the relevant description is only applicable to a specific embodiment, but rather that the description may also be applicable to one or more other embodiments. Those skilled in the art should understand that in this document, any description of a certain embodiment can be replaced, combined, or combined in other ways with the relevant descriptions in one or more other embodiments, and the new embodiments generated by the replacement, combination, or combination in other ways are easily conceivable by those skilled in the art and fall within the scope of protection of the present invention.

[0070] Example 1

[0071] Additional aspects and advantages of embodiments of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through practice of embodiments of the present invention.

[0072] Combination Figure 1-Figure 7 The embodiment of the present invention provides a method for tracing the source of agricultural products through video, comprising:

[0073] S1: Collect agricultural product traceability data through the data collection terminal and store them in different storage modules by category. Agricultural product traceability data includes: video data of agricultural product packaging process, basic information of agricultural products and operation records. Basic information of agricultural products includes production date, origin and quality inspection report of agricultural products.

[0074] S2: After data storage is completed, a data index is established based on video data, basic information of agricultural products and operation records.

[0075] S3: Perform data verification and encryption on the agricultural product traceability data to obtain encrypted agricultural product traceability data.

[0076] S4: Process and associate the encrypted agricultural product traceability data, and store the associated information data in a database.

[0077] S5: Scan the QR code on the agricultural product packaging to jump to the H5 page and obtain the related information data of the agricultural product.

[0078] Specifically, step S1 collects agricultural product traceability data through a data collection terminal and stores it in different storage modules by category, including:

[0079] S11: The video data of the agricultural product packaging process shot in real time on site is collected by a mobile camera, and the basic information and operation records of the agricultural products are obtained by scanning the QR code on the agricultural product packaging through a PDA handheld terminal.

[0080] S12: The video data and basic information of agricultural products are stored in the server and database respectively, and the operation records are stored in the blockchain.

[0081] In an embodiment of the present invention, the mobile camera uses a head-mounted camera of model DS-MCH208 / 32G / GLE. Before collecting data, the DS-MCH208 / 32G / GLE head-mounted camera needs to be connected and configured with the PDA handheld terminal through a dedicated interface or wirelessly. A dedicated data acquisition APP is installed on the PDA handheld terminal. The APP needs to support receiving video stream data from the DS-MCH208 / 32G / GLE camera and have the functions of data storage, preview, editing and uploading to the data storage system. The camera device is identified and configured through the APP, including setting parameters such as video resolution and frame rate, as well as network configuration, to ensure that the PDA handheld terminal is connected to a stable Wi-Fi network, or to enable a mobile data connection to facilitate remote data transmission. Because it is also necessary to remotely transmit to its corresponding storage area, it is also necessary to configure a corresponding VPN or secure channel to ensure data security. After completing the parameter configuration, on the one hand, the video recording function in the data acquisition APP of the PDA handheld terminal is started. The staff uses the head-mounted camera to shoot the video of the packaging process of agricultural products in real time, and transmits the video stream to the PDA handheld terminal. The APP on the PDA handheld terminal is responsible for receiving, previewing and temporarily storing video data. The data acquisition APP on the PDA handheld terminal can perform preliminary processing on the recorded video, such as cropping, rotating, and marking. The processed data can continue to be stored on the PDA handheld terminal, or directly perform the next transmission operation. On the one hand, the PDA handheld terminal scans the QR code on the agricultural product packaging box to obtain the basic information and operation records of the agricultural products. The basic information of agricultural products includes the production date, origin and quality inspection report of the agricultural products, and then uploads the collected video data and picture data to the corresponding storage area through Wi-Fi or mobile data network. During the upload process, the security and integrity of the data need to be ensured, and encryption transmission, checksum and other mechanisms can be used. The present invention uses a high-definition camera to collect video data of the final packaging link of agricultural products in real time, and transmits the data to the corresponding storage area in real time through a wireless network or a wired network for storage and analysis, which can ensure that the data in the final packaging process of agricultural products is collected and transmitted in real time, accurately and completely, and provides reliable data support for the traceability system. Among them, the video data is stored in the server, which is responsible for the storage and management of video files and has high throughput and stable network connection. The basic information of agricultural products is stored in the database. The embodiment of the present invention uses a high-performance rack server and configures sufficient CPU cores, memory and I / O channels to support high concurrent data processing requirements. The operation records are stored in the blockchain. The present invention stores the operation records of each agricultural product in the blockchain and uses blockchain technology to store the traceability information of agricultural products in the form of blocks. Each block contains the hash value of the previous block to ensure the integrity and non-tamperability of the data.

[0082] Specifically, after completing the data storage in step S2, a data index is established based on the video data, basic information of agricultural products and operation records.

[0083] The present invention facilitates subsequent data query and retrieval by creating indexes for stored data.

[0084] Specifically, step S3 performs data verification and encryption processing on the agricultural product traceability data, and the encrypted agricultural product traceability data obtained includes:

[0085] S31: Perform format verification and integrity verification on the video data, and perform field verification on the basic information of agricultural products and operation records.

[0086] The present invention performs format verification and integrity verification on video data to ensure that the data is correct before storage, and performs field verification on basic information of agricultural products and operation records to prevent invalid or erroneous data from being stored. The verified data is written into a storage device, and the data access efficiency is optimized using indexing, partitioning and other technologies.

[0087] S32: Encrypt the verified data to obtain encrypted agricultural product traceability data.

[0088] The embodiment of the present invention encrypts data and stores sensitive data in encrypted form to protect the data from unauthorized access. In addition, the storage device and network environment are scanned regularly to discover and repair potential security vulnerabilities. An access control mechanism is established to strictly control data access rights and ensure that data is accessed only with legal authorization.

[0089] Specifically, step S4 processes and associates the encrypted agricultural product traceability data, and stores the associated information data in a database, including:

[0090] S41: Parsing the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generating a QR code, wherein the agricultural product identifier includes the batch number and serial number of the agricultural product.

[0091] The embodiment of the present invention parses the operation records to extract unique identifiers related to agricultural products, such as batch numbers and serial numbers of agricultural products, and configures a unique anti-counterfeiting code for each agricultural product. A unique QR code is generated based on the agricultural product identifier and the anti-counterfeiting code to ensure the uniqueness and anti-counterfeiting nature of each agricultural product. Consumers can verify the authenticity and production information of the product by scanning the QR code.

[0092] S42: Perform multi-threaded video encoding and compression processing on the video data to obtain video processing data.

[0093] The embodiment of the present invention uses FFmpeg open source video processing tool to perform multi-threaded encoding and compression processing on video data, and adjusts the encoding parameters according to actual needs to achieve the best compression ratio and image quality balance. By performing multi-threaded video encoding and compression processing on video data, the storage space and transmission bandwidth requirements of video data are greatly reduced, thereby reducing storage and transmission costs. Among them, FFmpeg open source video processing tool is a powerful multimedia processing tool set that can process all types of audio and video data, including encoding and decoding, format conversion, transcoding, streaming, filtering and playback.

[0094] S43: Divide the video processing data into a plurality of video segments corresponding to each operation node in the operation record according to the time period, and assign a corresponding video identifier to each video segment.

[0095] S44: Associating the video identifier of each video clip with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and storing the associated information data in a database.

[0096] The present invention divides the video data into multiple traceability video clips uniquely associated with the agricultural products according to the time period, assigns a unique video identifier to each video clip, then associates the unique identifier of the video clip with the unique identifier of the agricultural product, and stores the associated information data in a database for subsequent query and tracing. In a specific embodiment of the present invention, the video acquisition action is triggered at the key node of agricultural product production, and the unique identifier of the video clip is associated with the unique identifier (QR code) of the agricultural product, ensuring that each agricultural product has unique video traceability information, and realizing the traceability management of the whole chain.

[0097] Specifically, step S5 jumps to the H5 page by scanning the QR code of the agricultural product packaging to obtain the related information data of the agricultural product.

[0098] In an embodiment of the present invention, the H5 page provides consumers with a convenient traceability query entry. Consumers can jump to the H5 display page by scanning the QR code on the agricultural product packaging box, and can watch the packaging video of the agricultural product, and can also view the detailed traceability information of the agricultural product, such as production date, origin, quality inspection report, etc. The H5 display page relies on a Web server. The present invention selects a high-performance Web server, such as a server equipped with a multi-core CPU, a large-capacity memory, and a high-speed SSD, to ensure that a smooth user experience can be maintained during high concurrent access. The present invention uses front-end technologies such as HTML5, CSS3, and JavaScript to develop H5 pages to ensure that the page has good cross-platform compatibility and user experience. The designed H5 page layout includes a top navigation, a video player area, an information display area, etc., to meet the traceability query needs of consumers. The H5 display page also has a code scanning query function. It listens to code scanning events through JavaScript (usually implemented by calling the code scanning APP or browser plug-in on the device), and parses the URL or data in the QR code to achieve interface docking with the data storage module. It calls the API interface provided by the data storage system through technologies such as AJAX or Fetch API to obtain detailed traceability information of agricultural products. The H5 page is also equipped with a data storage system interface, which is used to query the traceability information of agricultural products from the database, blockchain and server by defining a set of RESTful API interfaces. The interface contains necessary parameters (such as product ID, query key) and returns data in JSON format. For example, consumers use the code scanning APP on smartphones or the built-in code scanning function of the browser to scan the QR code on the packaging box of agricultural products. The QR code contains a URL pointing to the H5 page or a query parameter in a specific format. After receiving the code scanning request, the H5 page parses the information in the URL or query parameter, and calls the data storage system interface to obtain the traceability information. After the page is loaded, the packaged video of the agricultural product (if the video file is embedded or can be accessed through the URL) and detailed traceability information are displayed.

[0099] Example 2

[0100] Based on the above method, the embodiment of the present invention also provides a video tracing system for agricultural products, such as Figure 8-Figure 12 As shown, including:

[0101] The data collection and storage module 01 is used to collect agricultural product traceability data and store it in different storage modules according to categories.

[0102] The index building module 02 is used to build a data index based on video data, basic information of agricultural products and operation records.

[0103] The data verification and encryption module 03 is used to perform data verification and encryption processing on agricultural product traceability data to obtain encrypted agricultural product traceability data.

[0104] The data processing module 04 is used to process and associate the encrypted agricultural product traceability data, and store the associated information data in the database.

[0105] The data acquisition module 05 is used to jump to the H5 page by scanning the QR code on the agricultural product packaging to obtain the related information data of the agricultural product.

[0106] Specifically, the data acquisition and storage module 01 includes:

[0107] The data acquisition module 011 is used to collect video data of the agricultural product packaging process shot in real time on site, as well as basic information of the agricultural products and operation records.

[0108] In the embodiment of the present invention, the data acquisition module 011 includes a PDA handheld terminal and a head-mounted camera. The PDA handheld terminal is used to scan the QR code on the packaging box of the agricultural product to obtain the basic information of the batch of agricultural products, including the production date, origin, etc., to provide a basis for subsequent video data association. The head-mounted camera is used to shoot the video of the packaging process of agricultural products in real time at the production site to ensure the authenticity and real-time nature of the video data.

[0109] The data storage module 012 is used to store the video data and basic information of agricultural products in the server and database respectively, and to store the operation records in the blockchain.

[0110] In an embodiment of the present invention, the data storage module 012 includes a server, a database and a blockchain. The server is used to store video data to ensure the security and stability of the video data. The database is used to store basic information of agricultural products to ensure the accessibility and availability of data. The blockchain is used to store operation records to ensure the stability and reliability of data storage and prevent data loss or damage. The present invention transmits the collected video data, basic information of agricultural products and each operation record to its corresponding storage area through a wireless network. For the data storage module 012, the present invention uses enterprise-level SAS / SATA hard disks to build a RAID array, and sets a suitable RAID level (such as RAID 5 or RAID 10) to balance performance and redundancy, and improve the read and write speed and reliability of data. Considering the continuous growth of data volume, sufficient expansion slots are reserved to support future expansion. In addition, an independent backup server is configured, and regular backup is performed using disk mirroring or tape library to prevent data loss. By configuring the server network, the seamless connection between the data storage module and the data processing center and other systems is ensured, and the remote disaster recovery plan of the data center is considered, and cloud storage or remote backup center is used to ensure rapid recovery of data in extreme cases. In addition, a data receiving interface is designed on the data storage module 012 to receive video data, basic information of agricultural products and operation records from the data acquisition module 011. The data storage module 012 also has a specific data classification function, which is used to classify the received video data, basic information of agricultural products and operation records, and store the data of each category in the corresponding database table, and upload the operation records to the chain.

[0111] Specifically, the data verification and encryption module 03 includes:

[0112] The data verification module 031 is used to perform format verification and integrity verification on the video data, and to perform field verification on the basic information of agricultural products and operation records.

[0113] The present invention performs format verification and integrity verification on the video data through the data verification module 031 to ensure that the data is correct before storage, and performs field verification on the basic information of agricultural products and operation records to prevent invalid or erroneous data from being stored. The verified data is written into the storage device, and the data access efficiency is optimized by using indexing, partitioning and other technologies.

[0114] The data encryption module 032 is used to encrypt the verified data to obtain encrypted agricultural product traceability data.

[0115] The present invention encrypts data through the data encryption module 032, encrypts and stores sensitive data, and protects the data from unauthorized access. In addition, the storage device and network environment are scanned regularly to find and repair potential security vulnerabilities. An access control mechanism is established to strictly control the access rights of data and ensure that the data is accessed only under legal authorization.

[0116] Specifically, the data processing module 04 also includes:

[0117] The data analysis module 041 is used to parse the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generate a QR code.

[0118] The embodiment of the present invention parses the operation records through the data parsing module 041, extracts unique identifiers related to agricultural products, such as the batch number and serial number of the agricultural products, and configures a unique anti-counterfeiting code for each agricultural product. A unique QR code is generated based on the agricultural product identifier and the anti-counterfeiting code to ensure the uniqueness and anti-counterfeiting of each agricultural product. Consumers can verify the authenticity and production information of the product by scanning the QR code.

[0119] The video processing module 042 is used to perform multi-threaded video encoding and compression processing on the video data to obtain video processing data, and to divide the video processing data into multiple video segments corresponding to each operation node in the operation record according to time periods, and assign a corresponding video identifier to each video segment.

[0120] The embodiment of the present invention performs multi-threaded encoding and compression processing on the video data through the video processing module 042, and adjusts the encoding parameters according to actual needs to achieve the best compression ratio and image quality balance. By performing multi-threaded video encoding and compression processing on the video data, the storage space and transmission bandwidth requirements of the video data are greatly reduced, thereby reducing the storage and transmission costs. The video data is divided into multiple traceability video clips uniquely associated with the agricultural products according to the time period, and a unique video identifier is assigned to each video clip.

[0121] The data association module 043 is used to associate the video identifier of each video clip with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and store the associated information data in the database.

[0122] The embodiment of the present invention associates the unique identifier of the video clip with the unique identifier of the agricultural product through the data association module 043, and stores the associated information data in the database for subsequent query and tracing. In a specific embodiment of the present invention, the video acquisition action is triggered at the key node of agricultural product production, and the unique identifier of the video clip is associated with the unique identifier (QR code) of the agricultural product to ensure that each agricultural product has unique video traceability information, thereby realizing traceability management of the entire chain.

[0123] Example 3

[0124] like Fig.13 As shown, an embodiment of the present invention further provides a computer device, the computer device includes a processor and a memory, the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the above agricultural product video traceability method. The device in the present invention can be a server, a PC, a PAD, a mobile phone, etc.

[0125] Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned agricultural product video traceability method.

[0126] Furthermore, an embodiment of the present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of the agricultural product video traceability method as described above.

[0127] In summary, the agricultural product video tracing method, system, device and storage medium provided by the present invention have the following advantages:

[0128] 1. The present invention integrates video and blockchain technology to achieve real-time video recording and tamper-proof blockchain storage of each agricultural product. This technology makes up for the shortcomings of traditional image traceability in the dynamic process and the lack of personalized traceability. It intuitively displays the dynamic production process of agricultural product packaging in the form of video, greatly improving the credibility of traceability evidence.

[0129] 2. The present invention not only retains the ability of real-time monitoring, but also effectively reduces the cost of platform construction. Using handheld PDAs and head-mounted cameras, these devices are not only low-cost, but also can be flexibly applied to different locations, whether it is in the fields or warehouse sorting sites, they can be easily dealt with. The present invention also particularly strengthens the traceability tracking of the key link of agricultural product packaging, and through multi-threaded video encoding and compression technology, it greatly reduces the storage space and transmission bandwidth requirements of video data, thereby reducing storage and transmission costs, providing strong support for agricultural product video tracing, and ensuring its wide application in small-batch agricultural product traceability.

[0130] 3. The present invention effectively overcomes the technical bottlenecks and cost pressures encountered in large-scale traceability. By combining dynamic video recording with blockchain technology, it can provide accurate and detailed traceability information for each agricultural product, making up for the deficiency of being unable to provide unique traceability information for each agricultural product due to large-scale processing, which greatly reduces the traceability effect.

[0131] The above describes in detail the concepts, principles and ideas of the present invention in conjunction with specific implementation methods (including embodiments and examples). Those skilled in the art should understand that the implementation methods of the present invention are not limited to the forms given above. After reading this application document, those skilled in the art can make any possible improvements, substitutions and equivalent forms to the steps, methods, systems and components in the above implementation methods. These improvements, substitutions and equivalent forms should be deemed to fall within the scope of the present invention, and the protection scope of the present invention is subject only to the claims.

Claims

1. A video tracing method for agricultural products, characterized in that: include: Collect agricultural product traceability data through data collection terminals and store them in different storage modules by category; Performing data verification and encryption processing on the agricultural product traceability data to obtain encrypted agricultural product traceability data; Process and associate the encrypted agricultural product traceability data, and store the associated information data in a database; Scan the QR code on the agricultural product packaging to jump to the H5 page and obtain related information data of the agricultural products.

2. The agricultural product video tracing method according to claim 1, characterized in that: The agricultural product traceability data includes: video data of the agricultural product packaging process, basic information of the agricultural products and operation records.

3. The agricultural product video tracing method according to claim 2, characterized in that: The basic information of agricultural products includes the production date, origin and quality inspection report of the agricultural products.

4. The agricultural product video tracing method according to claim 3, characterized in that: The collecting of agricultural product traceability data by the data collection terminal and storing them in different storage modules by category includes: The mobile camera collects real-time video data of the agricultural product packaging process on site, and the PDA handheld terminal scans the QR code on the agricultural product packaging to obtain basic information and operation records of the agricultural products; The video data and the basic information of the agricultural products are stored in a server and a database respectively, and the operation records are stored in a blockchain.

5. The agricultural product video tracing method according to claim 3, characterized in that: The agricultural product traceability data is subjected to data verification and encryption processing to obtain encrypted agricultural product traceability data, including: Performing format verification and integrity verification on the video data, and performing field verification on the basic information of the agricultural products and the operation records; The verified data is encrypted to obtain encrypted agricultural product traceability data.

6. The agricultural product video tracing method according to claim 5, characterized in that: The method further comprises: After the data storage is completed, a data index is established based on the video data, the basic information of the agricultural products and the operation records.

7. The agricultural product video tracing method according to claim 3, characterized in that: The data processing and information association of the encrypted agricultural product traceability data, and storing the associated information data in the database includes: Parsing the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generating a QR code; Performing multi-threaded video encoding and compression processing on the video data to obtain video processing data; Dividing the video processing data into a plurality of video segments corresponding to each operation node in the operation record according to time periods, and assigning a corresponding video identifier to each video segment; The video identifier of each video clip is associated with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and the associated information data is stored in a database.

8. The agricultural product video tracing method according to claim 7, characterized in that: The agricultural product identifier includes a batch number and a serial number of the agricultural product.

9. An agricultural product video traceability system, characterized in that: include: Data collection and storage module, used to collect agricultural product traceability data and store them in different storage modules according to categories; A data verification and encryption module, used to perform data verification and encryption processing on the agricultural product traceability data to obtain encrypted agricultural product traceability data; A data processing module is used to process and associate the encrypted agricultural product traceability data, and store the associated information data in a database; The data acquisition module is used to jump to the H5 page by scanning the QR code on the agricultural product packaging to obtain the related information data of the agricultural product.

10. The agricultural product video traceability system according to claim 9, characterized in that: The data acquisition and storage module also includes: The data acquisition module is used to collect video data of the agricultural product packaging process shot in real time on site, as well as basic information of the agricultural products and operation records; The data storage module is used to store the video data and the basic information of the agricultural products in a server and a database respectively, and to store the operation records on a blockchain.

11. The agricultural product video traceability system according to claim 10, characterized in that: The data verification and encryption module also includes: A data verification module, used to perform format verification and integrity verification on the video data, and to perform field verification on the basic information of the agricultural products and the operation records; The data encryption module is used to encrypt the verified data to obtain encrypted agricultural product traceability data.

12. The agricultural product video traceability system according to claim 10, characterized in that: The system further comprises: An index building module is used to build a data index based on the video data, the basic information of the agricultural products and the operation records.

13. The agricultural product video traceability system according to claim 10, characterized in that: The data processing module also includes: A data analysis module, used to parse the corresponding agricultural product identifier and anti-counterfeiting code from the operation record and generate a QR code; A video processing module, configured to perform multi-threaded video encoding and compression processing on the video data to obtain video processing data, and to divide the video processing data into a plurality of video segments corresponding to each operation node in the operation record according to a time period, and to assign a corresponding video identifier to each video segment; The data association module is used to associate the video identifier of each video clip with the corresponding agricultural product identifier, anti-counterfeiting code and basic information of the agricultural product, and store the associated information data in a database.

14. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the agricultural product video traceability method according to any one of claims 1 to 8.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the agricultural product video traceability method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video data processing system based on block chain technology

    CN111050133A

  • Agricultural product video node tracking method

    CN111260379A

  • Blockchain agricultural product traceability system and traceability method based on electronic scale nodes

    CN111667281A

  • Food electronic anti-counterfeit label and verification method thereof

    CN112052927A

  • Room scene reappearing method and device and electronic equipment

    CN112100281A