[go: up one dir, main page]

CN116628242A - Truck evidence-storing data verification system and method - Google Patents

Truck evidence-storing data verification system and method Download PDF

Info

Publication number
CN116628242A
CN116628242A CN202310892152.6A CN202310892152A CN116628242A CN 116628242 A CN116628242 A CN 116628242A CN 202310892152 A CN202310892152 A CN 202310892152A CN 116628242 A CN116628242 A CN 116628242A
Authority
CN
China
Prior art keywords
truck
data
cloud server
watermark
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310892152.6A
Other languages
Chinese (zh)
Inventor
靳凤伟
夏曙东
冯新平
张志平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Transwiseway Information Technology Co Ltd
Original Assignee
Beijing Transwiseway Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Transwiseway Information Technology Co Ltd filed Critical Beijing Transwiseway Information Technology Co Ltd
Priority to CN202310892152.6A priority Critical patent/CN116628242A/en
Publication of CN116628242A publication Critical patent/CN116628242A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Image Processing (AREA)
  • Storage Device Security (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application discloses a truck certificate-storing data verification system and method, wherein the system comprises a client, a cloud server and a verification terminal; the client generates truck data and a truck watermark map in a ProtoBuf format according to the acquired preview image; the cloud server establishes a storage identifier, stores the mapping relation between the storage identifier and truck data, adds a digital watermark to a truck watermark picture to obtain a target image, establishes an access link of the target image, calculates a hash character string issuing block chain of the storage identifier, and returns the access link to the client; the client downloads the target image according to the received access link and sends the target image to the verification terminal; the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed. The application ensures that the truck data reported by a driver is not easy to tamper, and improves the authenticity of the data and the credibility of the service platform.

Description

Truck evidence-storing data verification system and method
Technical Field
The application relates to the technical field of data security, in particular to a truck certification data verification system and method, which can be used for compiling files generated by a low-code development platform.
Background
When a truck driver is in the scenes of loading and unloading, traffic jam, accident, oiling, attendance checking and the like, the truck driver needs to shoot the current operation scene through watermark video, and report the current operation scene to a cargo owner or a truck owner so as to report the vehicle or pipe a vehicle.
In the prior art, when a truck driver uses a mobile phone terminal to obtain evidence, the implementation mode is as follows: the truck driver uses the mobile phone sensor to take pictures, record video and the like to obtain evidence, stores corresponding evidence obtaining files in the mobile phone, and reports the evidence obtaining files to the cargo owner or the vehicle owner from the inside of the mobile phone. Because of the possibility of false report and lie report of mobile phone photographing, the evidence file is easy to replace or tamper, so that the evidence file transmitted to a goods owner or a car owner is not a real evidence file, namely the authenticity of the evidence file is not guaranteed, thereby reducing the authenticity of data and the credibility of a service platform, and easily causing economic loss.
Disclosure of Invention
The embodiment of the application provides a truck certification data verification system. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a truck certification data verification system, including:
the system comprises a client, a cloud server and a verification terminal; wherein,
the client, the cloud server and the verification terminal are in communication connection; wherein,
the client is used for generating wagon data and wagon watermark pictures in a ProtoBuf format according to the acquired preview images, processing the wagon data and the wagon watermark pictures and sending the wagon data and the wagon watermark pictures to the cloud server;
the cloud server is used for decrypting the received processing data to obtain truck data and truck watermark pictures, establishing a storage identifier, storing the mapping relation between the storage identifier and the truck data, adding a digital watermark to the truck watermark pictures to obtain target images, establishing access links of the target images, calculating a first hash character string of the storage identifier, issuing the first hash character string to a blockchain, and returning the access links to the client;
the client is also used for downloading the target image according to the received access link and transmitting the target image to the verification terminal when receiving the image transmitting instruction;
the verification terminal is used for feeding the received target image back to the cloud server so that the cloud server can carry out authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed.
Optionally, the system further comprises:
a remote server; wherein,
the remote server is in communication connection with the client; wherein,
and the remote server is used for inquiring the truck parameter set corresponding to the truck license plate when receiving the truck license plate sent by the client and feeding back the truck parameter set to the client.
Optionally, generating, according to the collected preview image, wagon data and a wagon watermark picture in a ProtoBuf format includes:
collecting preview images of the trucks by calling the cameras;
receiving a truck license plate and a job scene label determined for the preview image;
the truck license plate is sent to a remote server, and a truck parameter set fed back from the remote server is received, wherein the truck parameter set comprises the longitude and latitude of the position of the vehicle-mounted terminal, inverse geocoding information, license plate numbers, main information of a truck owner, oiling parameters and a bill number;
acquiring terminal information, wherein the terminal information comprises longitude and latitude of a terminal GPS, image identification information and user basic information;
judging whether the operation scene label is real or not according to the truck license plate, the truck parameter set and the terminal information;
under the condition that the operation scene label is real, generating a mask picture and binary data in a ProtoBuf format according to the truck parameter set and the terminal information;
taking binary data in a ProtoBuf format as truck data;
and merging the preview image with the mask image to obtain the watermark image of the truck.
Optionally, determining whether the operation scene tag is real according to the truck license plate, the truck parameter set and the terminal information includes:
calculating the distance between the longitude and latitude of the position of the vehicle-mounted terminal and the longitude and latitude of the GPS of the terminal;
when the distance is smaller than or equal to a preset distance threshold value, calculating the characteristic similarity between the main basic information of the vehicle owner and the basic information of the user;
when the characteristic similarity is larger than a preset similarity threshold, determining the confidence degrees of license plate numbers, inverse geocoding information, oiling parameters, waybill numbers and image identification information respectively;
weighting and summing the confidence coefficient to obtain an average value to obtain an authenticity judgment value;
when the authenticity judgment value is larger than or equal to a preset confidence threshold value, determining that the operation scene label is authentic; or when the authenticity judgment value is smaller than the preset confidence threshold value, determining that the operation scene label is not authentic.
Optionally, calculating the characteristic similarity between the main information of the vehicle owner and the main information of the user includes:
extracting a first feature vector of each parameter in the main basic information of the vehicle;
extracting second feature vectors of all parameters in the basic information of the user;
vector encoding is carried out on the first feature vector, and a first feature matrix is constructed according to the encoded encoding value;
vector encoding is carried out on the second feature vector, and a second feature matrix is constructed according to the encoded encoding value;
calculating a similar distance between the first feature matrix and the second feature matrix, and determining the calculated similar distance as characteristic similarity between the main basic information and the user basic information;
wherein, the similar distance calculation formula is:
wherein ,for the structural feature of any one i in the first feature matrix,/and>for the AND +.>And the corresponding structural features, p, are the number of the structural features in the first feature matrix.
Optionally, processing the truck data and the truck watermark picture is sent to a cloud server, including:
compressing the truck data and the truck watermark picture to obtain compressed data;
encrypting the compressed data to obtain ciphertext data;
and taking the ciphertext data as processing data, and uploading the processing data to a cloud server through an HTTPS protocol.
Optionally, establishing the storage identifier includes:
carrying out SHA256 hash operation on the truck data to obtain a second hash character string;
and encrypting the second hash character string by using a server private key SECRET1 to obtain a storage identifier.
Optionally, adding a digital watermark to the truck watermark picture to obtain a target image, including:
using the stored identifier as a seed to generate a pseudo-random sequence;
DCT transformation is carried out on the watermark picture of the truck to obtain a transformed image;
and processing the transformed image by adopting a pseudo-random sequence to modulate 1000 largest DCT coefficients of the transformed image except for the Direct Current (DC) component, thereby obtaining the watermark image.
Optionally, the cloud server performs authenticity verification according to the mapping relationship and the blockchain, including:
the cloud server receives the target image sent by the verification terminal;
the cloud server extracts a target key of a target digital watermark in the picture from the target image;
the cloud server performs SHA256 hash operation according to the target key to obtain a third hash character string;
the cloud server searches in the blockchain by adopting the third hash character string, and when a target hash character string corresponding to the third hash character string is found, the reality of the target image is determined;
the cloud server determines a target storage identifier corresponding to the target hash character string;
and the cloud server determines target truck data corresponding to the target storage identifier according to the mapping relation and feeds the target truck data back to the verification terminal.
In a second aspect, an embodiment of the present application provides a method for checking truck certification data, where the method includes:
the client generates truck data and a truck watermark picture in a ProtoBuf format according to the acquired preview image, processes the truck data and the truck watermark picture and sends the truck data and the truck watermark picture to the cloud server;
the cloud server decrypts the received processing data to obtain truck data and truck watermark pictures, establishes a storage identifier, stores a mapping relation between the storage identifier and the truck data, adds a digital watermark to the truck watermark pictures to obtain target images, establishes access links of the target images, calculates a first hash character string of the storage identifier, issues the first hash character string to a blockchain, and returns the access links to the client;
the client downloads the target image according to the received access link, and when an image sending instruction is received, the target image is sent to the verification terminal;
the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and displays the truck data when the truck data returned by the cloud server are received.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the truck evidence-storing data verification system provided by the embodiment of the application, a client generates truck data and a truck watermark map in a ProtoBuf format according to the acquired preview image; the cloud server establishes a storage identifier, stores the mapping relation between the storage identifier and truck data, adds a digital watermark to a truck watermark picture to obtain a target image, establishes an access link of the target image, calculates a hash character string issuing block chain of the storage identifier, and returns the access link to the client; the client downloads the target image according to the received access link and sends the target image to the verification terminal; the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed. Because the application establishes the mapping relation between the storage identifier and the truck data and distributes the first hash character string of the storage identifier to the blockchain, the real truck data stored in advance can be obtained through the mapping relation only when the blockchain can be matched with the corresponding parameters, thereby ensuring that the truck data reported by a driver is not easy to tamper, and improving the authenticity of the data and the credibility of a service platform.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a system architecture of a truck certification data verification system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for verifying truck verification data according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of a data storage card according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a verification process according to an embodiment of the present application.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the application to enable those skilled in the art to practice them.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of systems and methods that are consistent with aspects of the application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The application provides a truck certificate-storing data verification system and method, which are used for solving the problems in the related technical problems. Because the application establishes the mapping relation between the storage identifier and the truck data and issues the first hash character string of the storage identifier to the blockchain, the real truck data stored in advance can be obtained through the mapping relation only when the blockchain can be matched with the corresponding parameters, thereby ensuring that the truck data reported by a driver is not easy to tamper, improving the authenticity of the data and the reliability of a service platform, and adopting the exemplary embodiment for the following detailed description.
Referring to fig. 1, fig. 1 is a schematic system structure diagram of a truck certificate-storing data verification system according to an embodiment of the present application, where the system includes a client, a cloud server, and a verification terminal; the client, the cloud server and the verification terminal are in communication connection; the client is used for generating wagon data and wagon watermark pictures in a ProtoBuf format according to the acquired preview images, processing the wagon data and the wagon watermark pictures and sending the wagon data and the wagon watermark pictures to the cloud server; the cloud server is used for decrypting the received processing data to obtain truck data and truck watermark pictures, establishing a storage identifier, storing the mapping relation between the storage identifier and the truck data, adding a digital watermark to the truck watermark pictures to obtain target images, establishing access links of the target images, calculating a first hash character string of the storage identifier, issuing the first hash character string to a blockchain, and returning the access links to the client; the client is also used for downloading the target image according to the received access link and transmitting the target image to the verification terminal when receiving the image transmitting instruction; the verification terminal is used for feeding the received target image back to the cloud server so that the cloud server can carry out authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed.
In the embodiment of the application, a remote server; the remote server is in communication connection with the client; and the remote server is used for inquiring a truck parameter set corresponding to the truck license plate when receiving the truck license plate sent by the client and feeding back the truck parameter set to the client.
Specifically, when the truck data and the truck watermark picture in the ProtoBuf format are generated according to the acquired preview image, the preview image is acquired by calling a camera, then the truck license plate and the operation scene label determined for the preview image are received, the truck license plate is sent to a remote server, a truck parameter set fed back by the remote server is received, the truck parameter set comprises the position longitude and latitude of a vehicle-mounted terminal, inverse geocoding information, license plate numbers, owner basic information, oiling parameters and a single number of a truck, terminal information is acquired, the terminal information comprises the longitude and latitude of a terminal GPS, image identification information and user basic information, whether the operation scene label is real is judged according to the truck license plate, the truck parameter set and the terminal information, the mask picture and the ProtoBuf format data are generated according to the truck license plate parameter set and the terminal information under the condition that the operation scene label is real, finally the ProtoBuf format binary data are used as truck data, and the preview image and the mask picture are combined, and the watermark picture is obtained.
The operation scene labels can be "arrived at loading place", "loaded by a platform, etc", "loaded and packed", "loaded and unloaded", "signed", "blocked", "accident", "reported mileage", "reported fuel amount", "other".
Specifically, judging whether the operation scene label is real-time according to a truck license plate, a truck parameter set and terminal information, firstly calculating the distance between the longitude and latitude of the position of the vehicle-mounted terminal and the longitude and latitude of the GPS of the terminal, then calculating the characteristic similarity between the basic information of the vehicle owner and the basic information of the user when the distance is smaller than or equal to a preset distance threshold, respectively determining the confidence coefficient of license plate number, inverse geocoding information, oiling parameters, bill number and image identification information when the characteristic similarity is larger than a preset similarity threshold, finally carrying out weighted summation on the confidence coefficient to obtain an authenticity judgment value, and determining the authenticity of the operation scene label when the authenticity judgment value is larger than or equal to the preset confidence coefficient threshold; or when the authenticity judgment value is smaller than the preset confidence threshold value, determining that the operation scene label is not authentic.
Specifically, when calculating the characteristic similarity between the main basic information and the user basic information, first extracting a first feature vector of each parameter in the main basic information, then extracting a second feature vector of each parameter in the user basic information, then carrying out vector coding on the first feature vector, constructing a first feature matrix according to the coded coding value, secondly carrying out vector coding on the second feature vector, constructing a second feature matrix according to the coded coding value, finally calculating the similarity distance between the first feature matrix and the second feature matrix, and determining the calculated similarity distance as the characteristic similarity between the main basic information and the user basic information.
Specifically, the similarity distance calculation formula is:
; wherein ,/>For the structural feature of any one i in the first feature matrix,/and>for the AND +.>And the corresponding structural features, p, are the number of the structural features in the first feature matrix.
Specifically, when processing truck data and a truck watermark picture and sending the truck data and the truck watermark picture to a cloud server, firstly compressing the truck data and the truck watermark picture to obtain compressed data, then carrying out encryption processing on the compressed data to obtain ciphertext data, and finally taking the ciphertext data as processing data and uploading the processing data to the cloud server through an HTTPS protocol.
Specifically, when the storage identifier is established, SHA256 hash operation is performed on truck data to obtain a second hash character string, and then the second hash character string is encrypted by using a server private key seclet 1 to obtain the storage identifier.
Specifically, when adding a digital watermark to a truck watermark picture to obtain a target image, firstly taking a storage identifier as a seed to generate a pseudo-random sequence, then performing DCT (discrete cosine transform) on the truck watermark picture to obtain a transformed image, and finally adopting the pseudo-random sequence to process the transformed image so as to modulate 1000 largest DCT coefficients of the transformed image except for a Direct Current (DC) component to obtain the watermark image. Wherein the pseudo-random sequence has a gaussian N (0, 1) distribution with the random nature of gaussian Bai Zao sound.
Specifically, when the cloud server performs authenticity verification according to the mapping relation and the blockchain, the cloud server receives a target image sent by the verification terminal; the cloud server extracts a target key of a target digital watermark in the picture from the target image; the cloud server performs SHA256 hash operation according to the target key to obtain a third hash character string; the cloud server searches in the blockchain by adopting the third hash character string, and when a target hash character string corresponding to the third hash character string is found, the reality of the target image is determined; the cloud server determines a target storage identifier corresponding to the target hash character string; and the cloud server determines target truck data corresponding to the target storage identifier according to the mapping relation and feeds the target truck data back to the verification terminal.
In one possible implementation manner, after a vehicle owner or a cargo owner takes a picture, the picture can be uploaded to a cloud server through a small program or a web page for verification, the cloud server extracts a key of a digital watermark in the picture after receiving the uploaded picture, carries out SHA256 hash operation to obtain a hash character string, searches whether a consistent hash character string exists in a hash character string deblocking chain, if so, passes the verification, otherwise fails, acquires additional freight car data of the picture by using a storage identifier after the verification is passed, and finally returns a verification result and additional information to a client small program or the web page for display.
In the truck evidence-storing data verification system provided by the embodiment of the application, a client generates truck data and a truck watermark map in a ProtoBuf format according to the acquired preview image; the cloud server establishes a storage identifier, stores the mapping relation between the storage identifier and truck data, adds a digital watermark to a truck watermark picture to obtain a target image, establishes an access link of the target image, calculates a hash character string issuing block chain of the storage identifier, and returns the access link to the client; the client downloads the target image according to the received access link and sends the target image to the verification terminal; the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed. Because the application establishes the mapping relation between the storage identifier and the truck data and distributes the first hash character string of the storage identifier to the blockchain, the real truck data stored in advance can be obtained through the mapping relation only when the blockchain can be matched with the corresponding parameters, thereby ensuring that the truck data reported by a driver is not easy to tamper, and improving the authenticity of the data and the credibility of a service platform.
Referring to fig. 2, a flow chart of a method for verifying truck verification data applied to a truck verification system is provided in an embodiment of the present application. As shown in fig. 2, the detection method according to the embodiment of the present application may include the following steps:
s101, a client generates wagon data and a wagon watermark picture in a ProtoBuf format according to an acquired preview image, processes the wagon data and the wagon watermark picture and sends the wagon data and the wagon watermark picture to a cloud server;
in the embodiment of the application, a client firstly collects a preview image of a truck through a calling camera, then receives a truck license plate and a working scene label determined for the preview image, then sends the truck license plate to a remote server, receives a truck parameter set fed back from the remote server, wherein the truck parameter set comprises the position longitude and latitude of a vehicle-mounted terminal, inverse geocoding information, license plate numbers, owner basic information, refueling parameters and a menu number, then acquires terminal information, the terminal information comprises the longitude and latitude of a terminal GPS, image identification information and user basic information, then judges whether the working scene label is real according to the truck license plate, the truck parameter set and the terminal information, and then generates mask images and ProtoBuf format binary data according to the truck parameter set and the terminal information under the condition that the working scene label is real, finally combines the preview image and the mask images to obtain the watermark images of the truck.
Further, the client compresses the truck data and the truck watermark picture to obtain compressed data, then encrypts the compressed data to obtain ciphertext data, and finally takes the ciphertext data as processing data and uploads the processing data to the cloud server through an HTTPS protocol.
S102, the cloud server decrypts the received processing data to obtain truck data and truck watermark pictures, establishes a storage identifier, stores the mapping relation between the storage identifier and the truck data, adds a digital watermark to the truck watermark pictures to obtain target images, establishes access links of the target images, calculates a first hash character string of the storage identifier, issues the first hash character string to a blockchain, and returns the access links to a client;
in the embodiment of the application, when the storage identifier is established, SHA256 hash operation is firstly carried out on truck data to obtain a second hash character string, and then the second hash character string is encrypted by adopting a server private key SECRET1 to obtain the storage identifier.
S103, the client downloads the target image according to the received access link, and when an image sending instruction is received, the target image is sent to the verification terminal;
for example, as shown in fig. 3, fig. 3 is a schematic block diagram of a flow chart of a data storage certificate provided by the application, firstly, a client of a truck driver starts a camera to collect an image, then determines a license plate number and a scene label, a remote server obtains truck big dipper data bill data, a vehicle information oil price, an operation scene and the like according to the license plate number, returns the data to the client, the client verifies authenticity of the scene label according to the returned data and combining longitude and latitude of a mobile phone position and other data information, generates a picture mask according to basic information after verification, combines the image mask and the image collected by the camera into a new truck watermark, generates binary data according to the data returned by the remote server to obtain truck data, finally, compresses and encrypts the truck data and the truck watermark, and then uploads the truck data and the truck watermark to a cloud, the cloud decrypts the transmitted data to obtain additional protobuffer binary data, carries out SHA256 hash operation on the binary data to obtain a hash character string, encrypts by using a server private key SECRET1 to obtain STR1, simultaneously stores the STR1 serving as a key and text original information restored by the binary data together, uses NEC algorithm to add digital watermarks to pictures, uses STR1 as a seed to generate a pseudo-random sequence (m sequence), has Gaussian N (0, 1) distribution and random property of Gaussian Bai Zao sound, carries out DCT (discrete cosine transform) on the pictures received by the cloud, and finally modulates (superimposes) 1000 largest DCT coefficients except a Direct Current (DC) component of the pictures by using the pseudo-random Gaussian sequence. And uploading the picture file to distributed storage, generating an accessible picture URL STR2, performing SHA256 hash operation on STR1 to obtain a hash character string STR3, publishing the hash character string STR3 to a blockchain, returning the URL STR2 to a terminal for display after successful uplink, receiving the returned STR2 by the terminal for confirmation display, preparing the picture to be shared with the digital watermark, and sharing the picture to a vehicle owner or a cargo owner by a user (truck driver) by using a client for reporting.
S104, the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and displays the truck data when the truck data returned by the cloud server is received.
In the embodiment of the application, when the cloud server receives the target image sent by the verification terminal; the cloud server extracts a target key of a target digital watermark in the picture from the target image; the cloud server performs SHA256 hash operation according to the target key to obtain a third hash character string; the cloud server searches in the blockchain by adopting the third hash character string, and when a target hash character string corresponding to the third hash character string is found, the reality of the target image is determined; the cloud server determines a target storage identifier corresponding to the target hash character string; and the cloud server determines target truck data corresponding to the target storage identifier according to the mapping relation and feeds the target truck data back to the verification terminal.
For example, as shown in fig. 4, fig. 4 is a schematic block diagram of a verification flow provided by the present application, when a vehicle owner or a cargo owner receives a picture sent by a driver, the vehicle owner or cargo owner can upload the picture through an applet or a web page and only uses a cloud server to verify the picture, the cloud server extracts a key STR4 of a digital watermark in the picture to perform SHA256 hash operation after receiving the uploaded picture to obtain a hash string STR5, so that if the hash string is consistent, the STR5 deblocking chain searches for the existence of the hash string, if the hash string is consistent, the verification is successful, otherwise, the verification fails, after the verification is successful, the STR4 is used to obtain additional basic information of the picture in a cloud database, and finally, the verification result and the additional information are returned to the applet or the web page of the verification terminal to be displayed.
In the truck evidence-storing data verification system provided by the embodiment of the application, a client generates truck data and a truck watermark map in a ProtoBuf format according to the acquired preview image; the cloud server establishes a storage identifier, stores the mapping relation between the storage identifier and truck data, adds a digital watermark to a truck watermark picture to obtain a target image, establishes an access link of the target image, calculates a hash character string issuing block chain of the storage identifier, and returns the access link to the client; the client downloads the target image according to the received access link and sends the target image to the verification terminal; the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and when truck data returned by the cloud server are received, the truck data are displayed. Because the application establishes the mapping relation between the storage identifier and the truck data and distributes the first hash character string of the storage identifier to the blockchain, the real truck data stored in advance can be obtained through the mapping relation only when the blockchain can be matched with the corresponding parameters, thereby ensuring that the truck data reported by a driver is not easy to tamper, and improving the authenticity of the data and the credibility of a service platform.
The application also provides a computer readable medium, on which program instructions are stored, which when executed by a processor implement the truck certification data verification method provided by the above-mentioned method embodiments.
The application also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the truck certification data verification method of the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs to instruct the associated hardware, and that the program for verifying the truck authentication data may be stored in a computer readable storage medium, where the program, when executed, may include the steps of the embodiments of the methods described above. The storage medium for checking the truck certification data can be a magnetic disk, an optical disk, a read-only memory or a random memory.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (10)

1. A truck presence data verification system, the system comprising:
the system comprises a client, a cloud server and a verification terminal; wherein,
the client, the cloud server and the verification terminal are in communication connection; wherein,
the client is used for generating wagon data and wagon watermark pictures in a ProtoBuf format according to the acquired preview images, processing the wagon data and the wagon watermark pictures and sending the wagon data and the wagon watermark pictures to the cloud server;
the cloud server is used for decrypting received processing data to obtain truck data and truck watermark pictures, establishing a storage identifier, storing a mapping relation between the storage identifier and the truck data, adding a digital watermark to the truck watermark pictures to obtain target images, establishing access links of the target images, calculating a first hash character string of the storage identifier, issuing the first hash character string to a block chain, and returning the access links to a client;
the client is further used for downloading a target image according to the received access link and sending the target image to the verification terminal when an image sending instruction is received;
the verification terminal is used for feeding back the received target image to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and displays the truck data when the truck data returned by the cloud server are received.
2. The truck certification data verification system of claim 1, wherein the system further comprises:
a remote server; wherein,
the remote server is in communication connection with the client; wherein,
and the remote server is used for inquiring a truck parameter set corresponding to the truck license plate when receiving the truck license plate sent by the client and feeding back the truck parameter set to the client.
3. The system of claim 1, wherein generating the ProtoBuf-format truck data and the truck watermark picture from the collected preview image comprises:
collecting preview images of the trucks by calling the cameras;
receiving a truck license plate and a job scene label determined for the preview image;
the truck license plate is sent to a remote server, and a truck parameter set fed back from the remote server is received, wherein the truck parameter set comprises the longitude and latitude of the position of the vehicle-mounted terminal, inverse geocoding information, license plate numbers, basic information of a truck owner, oiling parameters and a bill number;
acquiring terminal information, wherein the terminal information comprises longitude and latitude of a terminal GPS, image identification information and user basic information;
judging whether the operation scene label is real or not according to the truck license plate, the truck parameter set and the terminal information;
under the condition that the operation scene label is real, generating a mask picture and binary data in a ProtoBuf format according to the truck parameter set and the terminal information;
taking binary data in a ProtoBuf format as truck data;
and merging the preview image with the mask image to obtain a truck watermark image.
4. A truck certification data verification system in accordance with claim 3, wherein said determining whether said job scene tag is authentic based on said truck license plate, truck parameter set and terminal information comprises:
calculating the distance between the longitude and latitude of the position of the vehicle-mounted terminal and the longitude and latitude of the GPS of the terminal;
calculating the characteristic similarity between the main basic information and the user basic information when the distance is smaller than or equal to a preset distance threshold;
when the characteristic similarity is larger than a preset similarity threshold, determining the confidence degrees of the license plate number, the inverse geocoding information, the oiling parameter, the bill number and the image identification information respectively;
weighting and summing the confidence coefficient to obtain an average value to obtain an authenticity judgment value;
when the authenticity judgment value is larger than or equal to a preset confidence threshold value, determining that the operation scene label is authentic; or when the authenticity judgment value is smaller than a preset confidence threshold value, determining that the operation scene label is not authentic.
5. The system of claim 4, wherein said calculating a characteristic similarity between said owner base information and said user base information comprises:
extracting a first feature vector of each parameter in the main basic information of the vehicle;
extracting second feature vectors of all parameters in the user basic information;
vector encoding is carried out on the first feature vector, and a first feature matrix is constructed according to the encoded encoding value;
vector encoding is carried out on the second feature vector, and a second feature matrix is constructed according to the encoded encoding value;
calculating a similar distance between the first feature matrix and the second feature matrix, and determining the calculated similar distance as characteristic similarity between the main basic information and the user basic information;
the similarity distance calculation formula is as follows:
wherein ,for the structural features of any one i in the first feature matrix,/or->For the AND +.>And the corresponding structural features, p, are the number of the structural features in the first feature matrix.
6. The system of claim 1, wherein the processing the truck data and the truck watermark picture is sent to a cloud server, and comprises:
compressing the truck data and the truck watermark picture to obtain compressed data;
encrypting the compressed data to obtain ciphertext data;
and taking the ciphertext data as processing data, and uploading the processing data to a cloud server through an HTTPS protocol.
7. The truck certification data verification system of claim 1, wherein the establishing a storage identifier comprises:
carrying out SHA256 hash operation on the truck data to obtain a second hash character string;
and encrypting the second hash character string by adopting a server private key SECRET1 to obtain a storage identifier.
8. The system for verifying the data of the wagon as defined in claim 1, wherein the adding a digital watermark to the wagon watermark picture to obtain the target image includes:
using the stored identifier as a seed to generate a pseudo-random sequence;
DCT transformation is carried out on the wagon watermark picture, and a transformed image is obtained;
and processing the transformed image by adopting the pseudo-random sequence to modulate 1000 largest DCT coefficients of the transformed image except for a Direct Current (DC) component, so as to obtain a watermark image.
9. The truck certification data verification system according to claim 1, wherein the cloud server performs authenticity verification according to the mapping relationship and the blockchain, and the system comprises:
the cloud server receives the target image sent by the verification terminal;
the cloud server extracts a target key of a target digital watermark in the picture from the target image;
the cloud server performs SHA256 hash operation according to the target key to obtain a third hash character string;
the cloud server searches in a blockchain by adopting the third hash character string, and when a target hash character string corresponding to the third hash character string is found, the target image is determined to be real;
the cloud server determines a target storage identifier corresponding to the target hash character string;
and the cloud server determines target truck data corresponding to the target storage identifier according to the mapping relation and feeds the target truck data back to the verification terminal.
10. The method for verifying the truck certification data is characterized by comprising the following steps:
the client generates truck data and a truck watermark picture in a ProtoBuf format according to the acquired preview image, processes the truck data and the truck watermark picture and sends the truck data and the truck watermark picture to the cloud server;
the cloud server decrypts the received processing data to obtain truck data and truck watermark pictures, establishes a storage identifier, stores the mapping relation between the storage identifier and the truck data, adds digital watermarks to the truck watermark pictures to obtain target images, establishes access links of the target images, calculates a first hash character string of the storage identifier, issues the first hash character string to a blockchain, and returns the access links to a client;
the client downloads the target image according to the received access link, and when an image sending instruction is received, the target image is sent to the verification terminal;
and the verification terminal feeds the received target image back to the cloud server, so that the cloud server performs authenticity verification according to the mapping relation and the blockchain, and displays the truck data when the truck data returned by the cloud server is received.
CN202310892152.6A 2023-07-20 2023-07-20 Truck evidence-storing data verification system and method Pending CN116628242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310892152.6A CN116628242A (en) 2023-07-20 2023-07-20 Truck evidence-storing data verification system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310892152.6A CN116628242A (en) 2023-07-20 2023-07-20 Truck evidence-storing data verification system and method

Publications (1)

Publication Number Publication Date
CN116628242A true CN116628242A (en) 2023-08-22

Family

ID=87638525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310892152.6A Pending CN116628242A (en) 2023-07-20 2023-07-20 Truck evidence-storing data verification system and method

Country Status (1)

Country Link
CN (1) CN116628242A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117292104A (en) * 2023-11-22 2023-12-26 南京掌控网络科技有限公司 Goods shelf display scoring method based on image recognition

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050065886A1 (en) * 2003-09-18 2005-03-24 Andelin Victor L. Digitally watermarking documents associated with vehicles
US20060242418A1 (en) * 2005-04-25 2006-10-26 Xerox Corporation Method for ensuring the integrity of image sets
WO2021107416A1 (en) * 2019-11-26 2021-06-03 주식회사 옵티로 Freight transport information management system using image analysis and blockchain
CN114155464A (en) * 2021-11-29 2022-03-08 北京中交兴路信息科技有限公司 Video data storage method and device, storage medium and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050065886A1 (en) * 2003-09-18 2005-03-24 Andelin Victor L. Digitally watermarking documents associated with vehicles
US20060242418A1 (en) * 2005-04-25 2006-10-26 Xerox Corporation Method for ensuring the integrity of image sets
WO2021107416A1 (en) * 2019-11-26 2021-06-03 주식회사 옵티로 Freight transport information management system using image analysis and blockchain
CN114155464A (en) * 2021-11-29 2022-03-08 北京中交兴路信息科技有限公司 Video data storage method and device, storage medium and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117292104A (en) * 2023-11-22 2023-12-26 南京掌控网络科技有限公司 Goods shelf display scoring method based on image recognition
CN117292104B (en) * 2023-11-22 2024-02-27 南京掌控网络科技有限公司 Goods shelf display detection method and system based on image recognition

Similar Documents

Publication Publication Date Title
US11532334B2 (en) Forensic video recording with presence detection
US9202257B2 (en) System for determining an illegitimate three dimensional video and methods thereof
US12177342B2 (en) Cipher key generation apparatus and cipher key generation method
CN101303761A (en) Integrated system for claim settlement of vehicle insurance capable of shooting and uploading evidence-obtaining photograph or video by mobile phone
US8824728B2 (en) Method and system for tracking illegal distributor and preventing illegal content distribution
CN102917037A (en) Mobile terminal-based site survey system and method thereof
CN105184538B (en) A kind of Logistics Distribution Method that cargo arrival time is estimated and system
CN108446884A (en) Vehicle insurance surveys method and device
KR101383534B1 (en) Method and apparatus for preventing forgery of multimedia data using timestamp
CN111507342B (en) Image processing method, device, system and storage medium
CN111310136A (en) Authenticity verification method, device and equipment for image data
CN116628242A (en) Truck evidence-storing data verification system and method
CN114155464A (en) Video data storage method and device, storage medium and terminal
CN114821380A (en) Blockchain-based certificate storage method, device, system, device and storage medium
CN116383793B (en) Face data processing method, device, electronic equipment and computer readable medium
CN111800740B (en) Data remote acquisition method and device, computer equipment and storage medium
CN105512863A (en) Marketing management method and system
KR20060031208A (en) Automated system and method for insurance processing of damaged vehicle
JP2005197901A (en) Image data management method
CN113709212B (en) Vehicle fake plate detection system and method based on Internet of vehicles
CN113361348B (en) Safe traffic sign error surveying method and system based on V2X
CN112737773B (en) Intelligent logistics monitoring method based on mobile user information and blockchain technology
CN112667743A (en) Data uplink method, system, equipment and storage medium applied to transmission terminal
US11716203B2 (en) Secure transmission
Stănescu et al. Cover processing-based steganographic model with improved security

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination