CN114884663B - Multimedia object processing method, device, equipment and storage medium - Google Patents
Multimedia object processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114884663B CN114884663B CN202110162716.1A CN202110162716A CN114884663B CN 114884663 B CN114884663 B CN 114884663B CN 202110162716 A CN202110162716 A CN 202110162716A CN 114884663 B CN114884663 B CN 114884663B
- Authority
- CN
- China
- Prior art keywords
- time
- writing
- hash value
- multimedia object
- character string
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 18
- 238000012545 processing Methods 0.000 claims description 53
- 238000000034 method Methods 0.000 claims description 50
- 238000004364 calculation method Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000000605 extraction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- 238000007726 management method Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 239000002699 waste material Substances 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012550 audit Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000012954 risk control Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/30—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The application discloses a multimedia object processing method, a device, equipment and a storage medium, wherein a blockchain is used for storing character string writing information and hash value writing information, when the shooting time of a multimedia object to be authenticated needs to be determined so as to authenticate the copyright of the multimedia object to be authenticated, a target hash value is calculated according to the multimedia object to be authenticated, and a first request comprising the target hash value is sent to the blockchain. And if the first writing time returned by the blockchain is received, extracting the target random character string from the multimedia object to be authenticated, and sending a second request comprising the target random character string to the blockchain. If the second writing time returned by the blockchain is received, determining the shooting time of the multimedia object to be identified according to the first writing time and the second writing time. Since the blockchain is a distributed database which cannot be tampered with, the obtained first writing time and second writing time are accurate, and further the shooting time of the multimedia object to be authenticated can be accurately proved.
Description
Technical Field
The present application relates to the field of multimedia processing, and in particular, to a method, an apparatus, a device, and a storage medium for processing a multimedia object.
Background
With the vigorous development of informatization and the internet, data exchange and transmission become a relatively simple and quick process, and users can conveniently share and transmit photos or videos shot by themselves through the internet, but the following copyright problems are also more and more prominent.
The shooting time of the picture or the video is greatly helpful to judicial evidence, so that copyright protection of the picture or the video is realized. The related art is based on law to make copyright protection of some pictures or videos, but the shooting time of the pictures or videos cannot be proved, and in this case, how to prove originality of the pictures or videos becomes an unresolved problem.
Disclosure of Invention
In order to solve the technical problems, the application provides a multimedia object processing method, a device, equipment and a storage medium, which can accurately prove the shooting time of a multimedia object to be authenticated so as to help realize copyright protection and more conveniently prove the originality of the multimedia object to be authenticated.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a multimedia object processing method, where the method uses a blockchain to store character string writing information and hash value writing information, the method including:
calculating a target hash value according to the multimedia object to be authenticated;
Sending a first request to the blockchain, wherein the first request comprises the target hash value;
extracting a target random character string from the multimedia object to be authenticated if a first writing time in target hash value writing information is received from the block link, wherein the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is the time when shooting equipment requests to write the target hash value into the block chain;
sending a second request to the blockchain, wherein the second request comprises the target random character string;
If a second writing time in target character string writing information is received from the block link, determining shooting time of the multimedia object to be identified according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain according to the target random character string from the stored character string writing information, and the second writing time is the time when the random character string generating device requests to write the generated target random character string into the block chain.
In a second aspect, an embodiment of the present application provides a multimedia object processing apparatus that stores character string write information and hash value write information using a blockchain, the apparatus including a calculation unit, a transmission unit, a reception unit, an extraction unit, and a determination unit:
the computing unit is used for computing a target hash value according to the multimedia object to be authenticated;
The sending unit is used for sending a first request to the blockchain, wherein the first request comprises the target hash value;
the extracting unit is configured to extract a target random string from the multimedia object to be authenticated if the receiving unit receives a first writing time in target hash value writing information from the block link, where the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is a time when the shooting device requests to write the target hash value into the block chain;
the sending unit is used for sending a second request to the blockchain, wherein the second request comprises the target random character string;
The determining unit is configured to determine, if the receiving unit receives a second writing time in target string writing information from the block link, according to the first writing time and the second writing time, a shooting time of the multimedia object to be authenticated, where the target string writing information is determined from stored string writing information by the block chain according to the target random string, and the second writing time is a time when the random string generating device requests writing of the generated target random string into the block chain.
In a third aspect, an embodiment of the present application provides a method for processing a multimedia object, where the method includes:
Shooting a random character string displayed on a random character string display device and an object to be shot to obtain a multimedia object, wherein the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by a random character string generation device;
Calculating a hash value of the multimedia object;
And sending a hash value writing request to a blockchain, wherein the hash value writing request comprises a hash value of the multimedia object, the hash value writing request is used for requesting to write hash value writing information into the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when shooting equipment requests to write the hash value of the multimedia object into the blockchain.
In a fourth aspect, an embodiment of the present application provides a multimedia object processing apparatus, including an acquisition unit, a calculation unit, and a transmission unit:
The acquisition unit is used for shooting a random character string displayed on the random character string display device and an object to be shot to obtain a multimedia object, the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by the random character string generation device;
the computing unit is used for computing the hash value of the multimedia object;
the sending unit is configured to send a hash value writing request to a blockchain, where the hash value writing request includes a hash value of the multimedia object, the hash value writing request is configured to request the blockchain to write hash value writing information into the blockchain, the hash value writing information includes a hash value of the multimedia object and a first writing time, and the first writing time is a time when the shooting device requests to write the hash value of the multimedia object into the blockchain.
In a fifth aspect, an embodiment of the present application provides a multimedia object processing method, including:
generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated in the previous time;
And sending a character string writing request to a blockchain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting writing character string writing information to the blockchain, the character string writing information comprises a generated random character string and a second writing time, and the second writing time is the time when a random character string generating device requests writing the generated random character string to the blockchain.
In a sixth aspect, an embodiment of the present application provides a multimedia object processing apparatus, including a generating unit and a transmitting unit:
the generation unit is used for generating random character strings according to a first preset period, wherein each generated random character string is different from the random character string generated in the previous time;
the sending unit is configured to send a string write request to a blockchain, where the string write request includes the random string, the string write request is configured to request to write string write information to the blockchain, the string write information includes a generated random string and a second write time, and the second write time is a time when a random string generating device requests to write the generated random string to the blockchain.
In a seventh aspect, an embodiment of the present application provides an electronic device for multimedia object processing, the electronic device including a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of the first aspect or the third aspect or the fifth aspect according to instructions in the program code.
In an eighth aspect, an embodiment of the present application provides a computer readable storage medium for storing program code for performing the method of the first aspect or the third aspect or the fifth aspect.
According to the technical scheme, the character string writing information and the hash value writing information are stored by using the blockchain, wherein the character string writing information comprises random character strings generated by random character string generating equipment and time for writing the random character strings into the blockchain, and the hash value writing information comprises hash values corresponding to the multimedia objects and time for writing the hash values into the blockchain. When the shooting time of the multimedia object to be authenticated needs to be determined to authenticate the copyright of the multimedia object to be authenticated, a target hash value can be calculated according to the multimedia object to be authenticated, and a first request including the target hash value is sent to the blockchain. If the target hash value writing information including the target hash value is stored in the blockchain, the hash value can uniquely identify the multimedia object, and after the multimedia object to be identified is obtained through shooting, the corresponding target hash value is written into the blockchain, and then the first writing time in the target hash value writing information is returned. The first write time is the time when the photographing apparatus requests writing of the target hash value to the blockchain, and then the multimedia object to be authenticated must be photographed before the first write time. After receiving the first write time from the blockchain, extracting a target random string from the multimedia object to be authenticated, and sending a second request including the target random string to the blockchain. And if the target character string writing information comprising the target random character string is stored in the block chain, returning to the second writing time in the target character string writing information. The second writing time is a time when the random string generating device requests writing of the generated target random string into the blockchain, the target random string is included in the multimedia object to be authenticated, and the target random string is unique, then the multimedia object to be authenticated must be photographed after the first writing time. Finally, the shooting time of the multimedia object to be identified is determined according to the first writing time and the second writing time, and as the blockchain is a distributed database which cannot be tampered, any data recorded in the blockchain can be disclosed to all people, and any person cannot tamper the information written in the blockchain, the obtained first writing time and second writing time are accurate, so that the shooting time of the multimedia object to be identified can be accurately proved, copyright protection is facilitated, and originality of the multimedia object to be identified is more conveniently proved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic diagram of a system architecture of a multimedia object processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for processing a multimedia object according to an embodiment of the present application;
FIG. 3 is a flowchart of another method for processing a multimedia object according to an embodiment of the present application;
FIG. 4 is a flowchart of another method for processing a multimedia object according to an embodiment of the present application;
Fig. 5 is a signaling interaction diagram of a multimedia object processing method according to an embodiment of the present application;
fig. 6 is a block diagram of a multimedia object processing apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of another multimedia object processing apparatus according to an embodiment of the present application;
Fig. 8 is a block diagram of a multimedia object processing apparatus according to another embodiment of the present application;
fig. 9 is a block diagram of a terminal device according to an embodiment of the present application;
fig. 10 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
The related art is based on law to make copyright protection of some pictures or videos, but the shooting time of the pictures or videos cannot be proved, and in this case, how to prove originality of the pictures or videos becomes an unresolved problem.
In order to solve the technical problem, an embodiment of the present application provides a multimedia object processing method, where the method stores character string writing information and hash value writing information through a blockchain, where the character string writing information includes a random character string generated by a random character string generating device and a time when the random character string is written into the blockchain, and the hash value writing information includes a hash value corresponding to the multimedia object and a time when the hash value is written into the blockchain. That is, the random character string is included in the multimedia object photographed by the user through the photographing apparatus, and the random character string has been written into the blockchain. After the multimedia object is shot, the hash value corresponding to the multimedia object is written into the blockchain. Because the information stored on the blockchain cannot be tampered, when the multimedia object to be authenticated needs to be authenticated, under the condition that the target hash value and the target random character string of the multimedia object to be authenticated are stored on the blockchain, accurate first writing time and second writing time can be obtained from the blockchain, and further, the shooting time of the multimedia object to be authenticated can be accurately proved, so that copyright protection is facilitated, and originality of the multimedia object to be authenticated is more conveniently proved.
It should be noted that, the method provided by the embodiment of the present application may be applied to various scenes where the shooting time of the multimedia object to be identified needs to be determined accurately for copyright protection, for example, may be applied to a picture platform, a judicial proving platform, etc. Wherein the multimedia object to be authenticated may be a video or a picture. The hash value of the multimedia object (such as the multimedia object to be authenticated) can be uploaded to the picture platform or the judicial proving platform, and the hash value of the multimedia object is not uploaded to the picture platform or the judicial proving platform, so that the specific contents of the shot picture and video can be ensured not to be leaked.
It should be noted that, the method provided by the embodiment of the present application may relate to a blockchain, where the blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The blockchain underlying platform may include processing modules for user management, basic services, smart contracts, and operational management. The user management module is responsible for identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, maintenance of corresponding relation between the real identity of the user and the blockchain address (authority management) and the like, and under the condition of authorization, supervision and audit of transaction conditions of certain real identities, and provision of rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node devices, is used for verifying the validity of a service request, recording the service request on a storage after the effective request is identified, for a new service request, the basic service firstly analyzes interface adaptation and authenticates the interface adaptation, encrypts service information (identification management) through an identification algorithm, and transmits the encrypted service information to a shared account book (network communication) in a complete and consistent manner, and records and stores the service information; the intelligent contract module is responsible for registering and issuing contracts, triggering contracts and executing contracts, a developer can define contract logic through a certain programming language, issue the contract logic to a blockchain (contract registering), invoke keys or other event triggering execution according to the logic of contract clauses to complete the contract logic, and simultaneously provide a function of registering contract upgrading; the operation management module is mainly responsible for deployment in the product release process, modification of configuration, contract setting, cloud adaptation and visual output of real-time states in product operation, for example: alarming, monitoring network conditions, monitoring node equipment health status, etc.
The platform product service layer provides basic capabilities and implementation frameworks of typical applications, and developers can complete the blockchain implementation of business logic based on the basic capabilities and the characteristics of the superposition business. The application service layer provides the application service based on the block chain scheme to the business participants for use.
In this embodiment, mainly related to a shooting device, a random string generating device, a random string display device, and a multimedia data processing device, both a hash value corresponding to a multimedia object obtained by shooting by the shooting device and a random string generated by the random string generating device may be stored in a blockchain, that is, the blockchain stores string writing information and hash value writing information; the random character string display device can acquire a random character string from the blockchain for display so as to enable the shooting device to shoot and obtain a multimedia object; the multimedia data processing apparatus may request a second write time in the character string write information and a first write time in the hash value write information from the blockchain for use in determining a photographing time of the multimedia object to be authenticated.
Referring to fig. 1, fig. 1 is a schematic system architecture diagram of a multimedia object processing method according to an embodiment of the present application. The system architecture includes a photographing apparatus 101, a random character string generating apparatus 102, a random character string display apparatus 103, a blockchain 104, and a multimedia data processing apparatus 105. The photographing apparatus 101 may be various terminal apparatuses with cameras, such as a cellular phone, a tablet computer, a camera, a video camera, and the like; the random string generating device 102 may be a device capable of generating a random string, such as a terminal device or a server, etc.; the random string display device 103 may be a terminal device with a display, for example, a mobile phone, a tablet computer, a computer, etc.; the multimedia data processing device 105 may be a terminal device or a server, where the terminal device may be a device such as an intelligent terminal, a computer, a Personal Digital Assistant (PDA), a tablet computer, and the server may be an independent server or a cluster server. The present embodiment is not limited to the respective devices, and in the present embodiment, description will be given taking an example in which the random string generating device 102 is a server and the multimedia data processing device 105 is a server.
The blockchain 102 stores character string writing information and hash value writing information, the character string writing information includes a random character string generated by the random character string generating device 102 and a time when the random character string is written into the blockchain, the hash value writing information includes a hash value corresponding to a multimedia object and a time when the hash value is written into the blockchain, and the multimedia object is obtained by the shooting device 101 shooting a random character string displayed on the random character string displaying device 103 and an object to be shot.
When it is necessary to determine the photographing time of the multimedia object to be authenticated to authenticate the copyright of the multimedia object to be authenticated, the multimedia data processing apparatus 105 may calculate a target hash value from the multimedia object to be authenticated, and transmit a first request including the target hash value to the blockchain 104. If the blockchain 104 stores the target hash value writing information including the target hash value, the hash value can uniquely identify the multimedia object, which indicates that after the multimedia object to be authenticated is obtained by shooting, the corresponding target hash value is written into the blockchain, and then the first writing time in the target hash value writing information is returned to the multimedia data processing device 105. The first write time is the time when the photographing apparatus requests writing of the target hash value to the blockchain, and then the multimedia object to be authenticated must be photographed before the first write time.
The multimedia data processing apparatus 105 extracts the target random string from the multimedia object to be authenticated after receiving the first write time from the blockchain 104, and transmits a second request including the target random string to the blockchain 104. If the target string write information including the target random string is stored on the blockchain 104, a second write time in the target string write information is returned to the multimedia data processing device 105. The second writing time is a time when the random string generating device requests writing of the generated target random string into the blockchain, the target random string is included in the multimedia object to be authenticated, and the target random string is unique, then the multimedia object to be authenticated must be photographed after the first writing time. Finally, the shooting time of the multimedia object to be identified is determined according to the first writing time and the second writing time, and as the blockchain is a distributed database which cannot be tampered, any data recorded in the blockchain can be disclosed to all people, and any person cannot tamper the information written in the blockchain, the obtained first writing time and second writing time are accurate, so that the shooting time of the multimedia object to be identified can be accurately proved, copyright protection is facilitated, and originality of the multimedia object to be identified is more conveniently proved.
Referring to fig. 2, fig. 2 shows a flowchart of a multimedia object processing method mainly involving a random string generation process used in multimedia object processing, applied to a random string generation device, the method comprising:
s201, generating random character strings according to a first preset period, wherein each generated random character string is different from the random character string generated in the previous time.
The random string generating device generates a random string at intervals (first preset period), which is different from the random string previously generated by the random string generating device, thereby ensuring the uniqueness of each random string. The generated random string may be represented by Sr1, the first preset period may be represented by T1, and T1 may be 1 second, for example.
It should be noted that in some cases, some users may wish to pirate a multimedia object (picture or video) by PS-ing the multimedia object to modify the random string, so that the owner of the multimedia object cannot prove copyrights. To increase the PS difficulty of the multimedia object, and to prevent the multimedia object from being PS, the random string may be of a font, style (including color, bolded, italic, etc.), size.
S202, sending a character string writing request to the blockchain.
After generating the random string, the random string generating device transmits a string write request including the random string to the blockchain, thereby requesting to write string write information to the blockchain, the string write information including the generated random string and a second write time, the second write time being a time when the random string generating device requests to write the generated random string to the blockchain, the second write time being a time acquired by the blockchain upon receiving the string write request, the second write time being represented by Tb2. If a random string is written to the blockchain, a piece of string write information stored on the blockchain may be represented as sr1+tb2.
In some cases, due to the network delay, the generated random string may not be written into the blockchain immediately, i.e. the generation time of the random string may not coincide with the second writing time, but the network delay is usually not long, which is basically smaller than the time taken to tamper with the random string. Therefore, in order to distinguish whether the random string is tampered with, thereby writing a legitimate random string that is not tampered with to the blockchain, the string writing request may further include a generation time at which the random string generating device generates the random string, so that the blockchain determines whether to write the string writing information to the blockchain according to the second writing time and the generation time. Wherein the generation time can be represented by Tr 1. If the difference between the second writing time and the generating time is smaller than the first time interval Tmax1, the random character string is considered to be untampered, and the random character string is written into the blockchain. The first time interval Tmax1 may be determined according to a network delay, which may be 1min, for example.
At this time, one piece of character string write information stored on the blockchain may be represented as sr1+tb2+tr1. If the difference between the second writing time and the generating time is larger than the first time interval Tmax1, the random character string is considered to be tampered, and writing of the random character string into the blockchain is refused.
In order to enable the random string generation device to know the writing condition of the random string, if the random string is written into the blockchain, the blockchain returns a string writing success response to the random string generation device, and if the random string is refused to be written into the blockchain, the blockchain returns a string writing failure response to the random string generation device.
After receiving the successful response of writing the character string, the random character string generating device Sr1 can provide services to the outside, and if the writing of the blockchain fails, the steps of steps S201 to S202 are repeated.
The external providing service by using the random string may refer to capturing a multimedia object by using the random string, referring to fig. 3, fig. 3 shows a flowchart of a multimedia object processing method, where the multimedia object processing method mainly relates to a hash value generation process used in processing a multimedia object, and is applied to capturing equipment, and the method includes:
s301, shooting the object to be shot and the random character string displayed on the random character string display device to obtain the multimedia object.
In this embodiment, in order to facilitate the subsequent verification that the multimedia object is photographed by the photographer, and achieve copyright protection, the photographer may carry a unique mark in the multimedia object when photographing the multimedia object. Since the random character string generated in the corresponding embodiment of fig. 2 has uniqueness, a photographer can photograph a multimedia object with the random character string to ensure the uniqueness thereof, so as to realize copyright protection.
For example, a photographer puts a random character string display device into a photographing scene and turns on the random character string display device, where attention is paid to photographing a multimedia object so that the content displayed by the random character string display device is clearly seen. The multimedia object may be, for example, a picture or a video.
The random string display device may pull the random string from the blockchain or the random string generating device according to a second preset period (T2) and display the random string, where the second preset period T2 is smaller than the first preset period T1 of the random string generating device to generate the random string, so as to ensure that the random string display device may update the random string generated by the random string generating service in real time.
The photographer turns on the photographing device and photographs the multimedia object, so that the photographed multimedia object includes a random character string display device that is displaying a random character string, i.e., includes the random character string.
S302, calculating the hash value of the multimedia object.
After the shooting device obtains the multimedia object, a Hash value of the multimedia object may be calculated, and the Hash value of the multimedia object may be represented by Hash 1. The hash value refers to mapping data (data corresponding to a multimedia object) with any length to data with a limited length, the output data with the limited length is called a hash value, and the mapping process is called a hash function.
It should be noted that, since the multimedia object may be a picture or a video, if the multimedia object is a picture, a hash value is obtained. If the multimedia object is a video, the photographing apparatus extracts some video frames from the multimedia object, and calculates a hash value for each video frame, respectively. The extracted video frames may be key frames of the multimedia object or extracted at intervals (e.g., one frame per second).
S303, sending a hash value writing request to the block chain.
After the photographing apparatus calculates the hash value of the multimedia object, a hash value writing request including the hash value may be sent to the blockchain, so that the hash value writing information is written to the blockchain by the blockchain request, where the hash value writing information includes the hash value of the multimedia object and a first writing time, and the first writing time is a time when the photographing apparatus requests to write the hash value of the multimedia object to the blockchain, and the first writing time may be represented by Tb1. If the Hash value of the multimedia object is written to the blockchain, a piece of Hash value writing information stored on the blockchain may be expressed as Hash1+tb1.
In some cases, the Hash value writing request may further include a digital signature, where the digital signature may be obtained by encrypting the Hash value of the multimedia object by using an encryption algorithm and a public key, and the digital signature may be represented by Hash 2. At this time, if the Hash value of the multimedia object is written to the blockchain, one piece of Hash value writing information stored on the blockchain may be expressed as Hash1+hash2+tb1. It will be appreciated that digital signatures may ensure non-repudiation of data messages and ensure message integrity, and embodiments of the present application utilize ensuring non-repudiation of data messages.
Since the digital signature can only be decrypted by a specific private key, the non-repudiation of the data message can be ensured, and thus, when a certain multimedia object, such as a multimedia object to be authenticated, needs to be authenticated later, a photographer of the multimedia to be authenticated can be determined by the digital signature.
In some cases, due to the network delay, the captured multimedia object may not be written into the blockchain immediately, that is, the capturing time of the multimedia object may not be consistent with the first writing time, but the network delay is usually not long, which is basically less than the time for performing a tampering operation such as PS on the multimedia object. Therefore, in order to distinguish whether the multimedia object is PS or not, so that the multimedia object that is not PS is written to the blockchain, the hash value writing request may further include a photographing time of the multimedia object recorded by the photographing apparatus, so that the blockchain determines whether to write the hash value writing information to the blockchain according to the first writing time and the photographing time. Wherein, the shooting Time can be represented by Time 1. If the difference between the first writing time and the shooting time is smaller than the second time interval Tmax2, the multimedia object is considered to be not PS, and the corresponding hash value is written into the blockchain. At this Time, one piece of Hash value write information stored on the blockchain may be expressed as Hash1+hash2+time1+tb1. If the difference between the first writing time and the shooting time is greater than the second time interval Tmax2, the multimedia object is considered to be PS, and writing of the hash value of the multimedia object into the blockchain is refused.
In order to make the shooting device know the writing condition of the hash value, if the hash value is written into the blockchain, the blockchain returns a hash value writing success response to the shooting device, and if the hash value is refused to be written into the blockchain, the blockchain returns a hash value writing failure response to the shooting device, and the steps of S301-S303 are repeated.
If the multimedia object is a picture, the steps of S301-S303 are executed once; if the multimedia object is a video, the steps of S301-S303 may be repeated until the video capturing is completed.
The random string may be written to the blockchain by the embodiment corresponding to fig. 2 and the hash value of the multimedia object may be written to the blockchain by the embodiment corresponding to fig. 3. Thus, when a certain multimedia object, such as a multimedia object to be authenticated, needs to be authenticated, the shooting time can be determined according to the character string writing information and the hash value writing information stored in the blockchain, so that the copyright protection of the multimedia object to be authenticated can be realized through the shooting time.
Referring to fig. 4, fig. 4 shows a flowchart of a multimedia object processing method mainly related to an authentication process of a multimedia object to be authenticated at the time of multimedia object processing, applied to a multimedia data processing apparatus, the method comprising:
S401, calculating a target hash value according to the multimedia object to be authenticated.
In order to be able to authenticate the multimedia object to be authenticated, the photographer himself needs to have the original of the multimedia object to be authenticated, and if the original is lost, the authentication cannot be performed or is meaningless.
After the multimedia object to be identified is obtained, a target hash value corresponding to the multimedia object to be identified can be calculated. The target Hash value may be represented by Hash 3.
S402, a first request is sent to the blockchain.
Since the character string writing information and the hash value writing information are stored in the block chain, after the target hash value is obtained through calculation, the multimedia data processing device can send a first request including the target hash value to the block chain, wherein the first request is used for requesting the target hash value writing information including the target hash value to the block chain.
S403, if the first writing time in the target hash value writing information is received from the block link, extracting a target random character string from the multimedia object to be authenticated.
After the block link receives the first request, whether the Hash value writing information including the target Hash value is stored on the block link can be determined according to the first request, if the Hash value writing information exists, that is, if the Hash1 in the Hash1+Tb1 stored on the block link is the same as the Hash3, the Hash value writing information is determined as the target Hash value writing information, that is, the target Hash value writing information is determined by the block link according to the target Hash value from the stored Hash value writing information. And, the blockchain returns the first write time in the target hash value write information to the multimedia data processing device. The first writing time is the time when the shooting device requests to write the target hash value into the blockchain.
Of course, in this embodiment, other information (for example, hash 1) in the target Hash value writing information or the entire target Hash value writing information (for example, hash1+hash 2+time1+tb1) may also be returned to the multimedia data processing apparatus, which is not limited in this embodiment.
If the blockchain determines that the hash value writing information comprising the target hash value does not exist on the blockchain, the multimedia object to be identified is determined to be illegal, and subsequent steps are not required to be executed, so that the waste of computing resources is avoided.
When the multimedia data processing device receives the first writing time, the preliminary identification of the multimedia object to be identified is legal, so that the target random character string can be extracted from the multimedia object to be identified to further identify the multimedia object to be identified.
In this embodiment, the authenticator opens the multimedia object to be authenticated, and the target random string of the random string display device in the multimedia object to be authenticated may be extracted by a tool or manually. The target random string may be represented by Sr 3.
In some cases, in order to avoid that the multimedia object to be authenticated is PS, it may also be determined whether the multimedia object to be authenticated has PS, if not, the next authentication is performed, otherwise, the authentication is illegal, and the subsequent steps are not required to be performed, so that the waste of computing resources is avoided.
S404, sending a second request to the blockchain.
After the multimedia data processing apparatus extracts the target random string, a second request including the target random string may be transmitted to the blockchain, the second request requesting writing information to the blockchain for the target string including the target random string.
S405, if a second writing time in the target character string writing information is received from the block link, determining the shooting time of the multimedia object to be identified according to the first writing time and the second writing time.
After the block link receives the second request, searching whether the character string writing information comprising the target random character string is stored on the block link according to the target random character string, if so, that is, sr1 and Sr3 in Sr1+Tb2 stored on the block link are the same, determining the character string writing information as target character string writing information, namely, determining the target character string writing information from the stored character string writing information according to the target random character string by the block link. And, the blockchain returns a second write time in the target string write information to the multimedia data processing device. Wherein the second write time is a time when the random string generating device requests writing of the generated target random string to the blockchain.
Of course, in the present embodiment, other information (for example, sr 1) in the target character string writing information or the entire target character string writing information (for example, sr1+tb2+tr1) may also be returned to the multimedia data processing apparatus, which is not limited in this embodiment.
If the blockchain determines that the character string writing information comprising the target character string does not exist on the blockchain, the multimedia object to be identified is determined to be illegal, and subsequent steps are not required to be executed, so that the waste of computing resources is avoided.
When the multimedia data processing device receives the second writing time, the identification of the multimedia object to be identified is legal, the first writing time is the time when the shooting device requests to write the target hash value into the blockchain, and the multimedia object to be identified is necessarily shot before the first writing time. The second writing time is a time when the random string generating device requests writing of the generated target random string into the blockchain, the target random string is included in the multimedia object to be authenticated, and the target random string is unique, then the multimedia object to be authenticated must be photographed after the first writing time. Finally, the shooting time of the multimedia object to be identified is determined according to the first writing time and the second writing time.
According to the technical scheme, the character string writing information and the hash value writing information are stored by using the blockchain, wherein the character string writing information comprises random character strings generated by random character string generating equipment and time for writing the random character strings into the blockchain, and the hash value writing information comprises hash values corresponding to the multimedia objects and time for writing the hash values into the blockchain. When the shooting time of the multimedia object to be authenticated needs to be determined to authenticate the copyright of the multimedia object to be authenticated, a target hash value can be calculated according to the multimedia object to be authenticated, and a first request including the target hash value is sent to the blockchain. If the target hash value writing information including the target hash value is stored in the blockchain, the hash value can uniquely identify the multimedia object, and after the multimedia object to be identified is obtained through shooting, the corresponding target hash value is written into the blockchain, and then the first writing time in the target hash value writing information is returned. The first write time is the time when the photographing apparatus requests writing of the target hash value to the blockchain, and then the multimedia object to be authenticated must be photographed before the first write time. After receiving the first write time from the blockchain, extracting a target random string from the multimedia object to be authenticated, and sending a second request including the target random string to the blockchain. And if the target character string writing information comprising the target random character string is stored in the block chain, returning to the second writing time in the target character string writing information. The second writing time is a time when the random string generating device requests writing of the generated target random string into the blockchain, the target random string is included in the multimedia object to be authenticated, and the target random string is unique, then the multimedia object to be authenticated must be photographed after the first writing time. Finally, the shooting time of the multimedia object to be identified is determined according to the first writing time and the second writing time, and as the blockchain is a distributed database which cannot be tampered, any data recorded in the blockchain can be disclosed to all people, and any person cannot tamper the information written in the blockchain, the obtained first writing time and second writing time are accurate, so that the shooting time of the multimedia object to be identified can be accurately proved, copyright protection is facilitated, and originality of the multimedia object to be identified is more conveniently proved.
It should be noted that, in the embodiment of the present application, the multimedia object to be authenticated may be a picture or a video, and the video is composed of a plurality of video frames (pictures). Thus, the authentication process for video is similar to that for pictures, but slightly different.
If the multimedia object to be identified is a picture, the steps of S401-S405 are performed on the picture, and when S405 is performed, the relationship between the difference between the first writing time and the second writing time and the first threshold is determined first, and if the difference is smaller than the first threshold, the shooting time is determined to be within the time period of the second writing time and the first writing time. Otherwise, it can be considered that the multimedia object to be identified is likely to be PS in the period of time, and the multimedia object to be identified is identified as illegal, so that subsequent steps are not required to be executed, and the waste of computing resources is avoided. Wherein the first threshold may be denoted by Tmax 3.
Before the shooting time of the multimedia object to be authenticated is determined according to the first writing time and the second writing time, whether the difference value between the first writing time and the second writing time is smaller than a first threshold value or not is determined, so that authentication is completed when the difference value is smaller than the first threshold value, the shooting time is determined to be within the time period of the second writing time and the first writing time, PS (packet switched) of some users to the multimedia object to be authenticated during the period is avoided as much as possible, and authentication accuracy is ensured.
If the multimedia object to be identified is a video, in this embodiment, the target hash value may be a hash value corresponding to a video frame, so, according to the multimedia object to be identified, the target hash value may be calculated by acquiring a video frame sequence including a plurality of target video frames according to the multimedia object to be identified, where the target video frames in the video frame sequence may be key frames of the multimedia object to be identified, or extracted at a certain time interval (for example, extracting one frame per second). It should be noted that, the extraction method of the target video frame included in the video frame sequence should be the same as that of the video frame extracted when the photographer captures the multimedia object and writes the hash value into the blockchain. Then, target hash values corresponding to the plurality of target video frames respectively are calculated.
After the target hash value is obtained, the steps of S402-S405 are performed for each target video frame, and when S405 is performed, since the obtained first write time and second write time are the write time corresponding to each target video frame, one possible implementation of S405 may be to determine a relationship between a difference value between the first write time and the second write time corresponding to each target video frame and a first threshold value, and if the difference values are both smaller than the first threshold value, determine that the shooting time is within a period of the second write time of the first target video frame and the first write time of the last target video frame in the video frame sequence.
For example, a series of target video frames and corresponding times [ F1, TF1], [ F2, TF2] … [ Fn, TFn ] of the target video frames are recorded, wherein F1, F2 … … Fn is each target video frame, and TF1, TF2 … … TFn is a time period between the second writing time and the first writing time, that is, tb2-Tb1. If it is determined that the difference between the first writing time and the second writing time is smaller than the first threshold, that is, within the allowable time range, it is determined that the shooting time of the multimedia object to be authenticated is within the time period of TF1-TFn, that is, within the time period of the second writing time corresponding to F1 and the first writing time corresponding to Fn. If the difference between the first writing time and the second writing time is larger than the first threshold, the first writing time and the second writing time are judged to be illegal, and subsequent steps are not needed to be executed, so that the waste of computing resources is avoided.
In some cases, before performing S401-S405 on the video, the evaluator may evaluate whether the video was edited by a tool or other means, and if so, the evaluator evaluates as illegal without performing subsequent steps, avoiding wasting computing resources. If not, the steps of S401-S405 are performed on the video.
It should be noted that, in this embodiment, in addition to determining the shooting time of the multimedia object to be authenticated, it is also possible to further authenticate who the photographer of the multimedia object to be authenticated is.
In some cases, after shooting the multimedia object, the photographer may encrypt the hash value of the multimedia object to obtain a digital signature in addition to writing the hash value to the blockchain, and write the digital signature to the blockchain. The digital signature can only be decrypted with the private key, whereas only the real photographer has the corresponding private key. Thus, when authenticating a multimedia object to be authenticated, the digital signature may also be used to determine who the photographer of the multimedia object to be authenticated is.
Thus, in one possible implementation, after the target Hash value is obtained in S401, a signature calculation may be further performed on the target Hash value to obtain a target digital signature, where the target digital signature may be represented by Hash 4. Based on this, the multimedia data processing apparatus receives a first digital signature (e.g., hash 2) stored in advance at the same time when it receives a first write time in the target Hash value write information from the block link. Then, before extracting the target random string from the to-be-identified multimedia object, it may be determined whether the first digital signature is the target digital signature, if so, it indicates that the to-be-identified multimedia object is legal, and the step of extracting the target random string from the to-be-identified multimedia object may be further performed. Otherwise, the multimedia object to be identified is determined to be illegal, and subsequent steps are not required to be executed, so that the waste of computing resources is avoided.
Next, the multimedia object processing method provided by the embodiment of the application will be described in connection with an actual application scenario. When judicial evidence is carried out, the shooting time of the picture or the video is greatly helpful to the judicial evidence, and further copyright protection of the picture or the video is realized. Therefore, the embodiment of the application provides a multimedia object processing method which is used for accurately determining the shooting time of a multimedia object to be identified in judicial proving. Taking the example that the multimedia object to be authenticated is a picture, referring to fig. 5, the method includes:
S501, the random string generating device generates a random string Sr1 according to a first preset period.
S502, the random string generating apparatus writes the random string Sr1, the generation time Tr1, into the blockchain.
S503, the blockchain acquires a second writing time Tb2, and when the difference value of Tb2-Tr1 is smaller than the first time interval Tmax1, the character string writing information Sr1+Tb2+Tr1 is written into the blockchain.
S504, the random character string display device displays the random character string according to a second preset period.
The photographer puts the random character string display device into the photographing scene and turns on the random character string display device so that the random character string display device displays the random character string in accordance with the second preset period.
S505, the photographer opens the photographing device and photographs the picture.
S506, the shooting device determines a Hash value Hash1, a digital signature Hash2 and shooting Time Time1 corresponding to the picture.
S507, the shooting device writes the Hash value Hash1, the digital signature Hash2 and the shooting Time Time1 into the block chain.
S508, the blockchain acquires a first writing Time Tb1, and writes the Hash value into the information Hash1+Hash2+Time1+Tb1 into the blockchain when the difference value of Tb1-Time1 is smaller than a second Time interval Tmax 2.
S509, calculating a target Hash value Hash3 of the picture to be authenticated and a digital signature Hash4 of the Hash 3.
S510, sending a first request comprising Hash3 and Hash4 to the block chain.
S511, if the target Hash value returned by the block chain is received and written into the information Hash1+Hash2+Time1 and Tb1, determining whether Hash2 and Hash4 are the same.
If the Hash3 received by the block chain is the same as the Hash1 stored in the block chain and written into the information by a certain Hash value, returning to Hash1+Hash2+Time1 and Tb1. Otherwise, determining that the picture to be authenticated is illegal.
S512, if the Hash2 is the same as the Hash4, extracting a target random character string Sr3 in the picture to be identified.
S513 sends a second request comprising Sr3 to the blockchain.
S514, if target character string writing information Sr1+Tb2+Tr1 returned by the blockchain is received, determining that the shooting time of the picture to be authenticated is within a time period from Tb2 to Tb 1.
If the received Sr3 of the blockchain is the same as Sr1 in the string write information stored on the blockchain, sr1+tb2+tr1 is returned. Otherwise, determining that the picture to be authenticated is illegal.
In some cases, it may be determined first whether the difference of Tb1-Tb2 is smaller than the first threshold, and if the difference of Tb1-Tb2 is smaller than the first threshold, S514 is performed.
Based on the multimedia object processing method provided in the corresponding embodiment of fig. 4, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 6, where the apparatus stores character string writing information and hash value writing information using a blockchain, and the apparatus 600 includes a calculating unit 601, a transmitting unit 602, a receiving unit 603, an extracting unit 604, and a determining unit 605:
The calculating unit 601 is configured to calculate a target hash value according to a multimedia object to be authenticated;
The sending unit 602 is configured to send a first request to the blockchain, where the first request includes the target hash value;
The extracting unit 604 is configured to extract a target random string from the multimedia object to be authenticated if the receiving unit 603 receives a first writing time in target hash value writing information from the block link, where the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is a time when the shooting device requests to write the target hash value into the block chain;
The sending unit 602 is configured to send a second request to the blockchain, where the second request includes the target random string;
The determining unit 605 is configured to determine, if the receiving unit 603 receives a second writing time in target string writing information from the blockchain, where the target string writing information is determined from stored string writing information by the blockchain according to the target random string, according to the first writing time and the second writing time, and the second writing time is a time when the random string generating device requests writing of the generated target random string into the blockchain.
In one possible implementation manner, if the multimedia object to be authenticated is a picture, the determining unit 605 is specifically configured to:
determining a relationship between a difference between the first write time and the second write time and a first threshold;
and if the difference value is smaller than the first threshold value, determining that the shooting time is in the time period of the second writing time and the first writing time.
In a possible implementation manner, if the multimedia object to be identified is a video, the computing unit 601 is configured to obtain a video frame sequence according to the multimedia object to be identified, where the video frame sequence includes a plurality of target video frames;
and calculating target hash values respectively corresponding to the target video frames.
In one possible implementation manner, the first writing time and the second writing time are writing times corresponding to each target video frame, and the determining unit 601 is specifically configured to:
Determining a relation between a difference value between a first writing time and a second writing time corresponding to each target video frame and a first threshold value;
And if the difference values are smaller than the first threshold value, determining that the shooting time is within a time period of the second writing time of the first target video frame and the first writing time of the last target video frame in the video frame sequence.
In a possible implementation manner, the computing unit 601 is further configured to:
And carrying out signature calculation on the target hash value to obtain a target digital signature.
In a possible implementation manner, the receiving unit 603 is configured to receive, from the block link, a first write time and a first digital signature in the target hash value write information;
the determining unit 605 is further configured to determine, before the extracting unit 604 extracts a target random string from the multimedia object to be authenticated, whether the first digital signature is the target digital signature; if yes, the extracting unit 604 is triggered to execute the step of extracting the target random string from the multimedia object to be authenticated.
Based on the corresponding embodiment of fig. 3, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 7, the apparatus 700 includes an obtaining unit 701, a calculating unit 702, and a sending unit 703:
the obtaining unit 701 is configured to photograph a random character string displayed on a random character string display device and an object to be photographed to obtain a multimedia object, where the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by the random character string generating device;
the calculating unit 702 is configured to calculate a hash value of the multimedia object;
The sending unit 703 is configured to send a hash value writing request to a blockchain, where the hash value writing request includes a hash value of the multimedia object, and the hash value writing request is configured to request writing hash value writing information to the blockchain, where the hash value writing information includes a hash value of the multimedia object and a first writing time, where the first writing time is a time when the photographing device requests writing of the hash value of the multimedia object to the blockchain.
In a possible implementation manner, the hash value writing request further includes a shooting time of the multimedia object recorded by the shooting device, so that the blockchain determines whether to write the hash value writing information into the blockchain according to the first writing time and the shooting time.
Based on the corresponding embodiment of fig. 2, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 8, the apparatus 800 includes a generating unit 801 and a sending unit 802:
the generating unit 801 is configured to generate a random string according to a first preset period, where the random string generated each time is different from the random string generated previously;
The sending unit 802 is configured to send a string write request to a blockchain, where the string write request includes the random string, and the string write request is configured to request to write, to the blockchain, string write information to the blockchain, where the string write information includes a generated random string and a second write time, where the second write time is a time when a random string generating device requests to write the generated random string to the blockchain.
In one possible implementation, the string write request further includes a generation time at which the random string generation device generates a random string, such that the blockchain determines whether to write the string write information to the blockchain based on the second write time and the generation time.
The embodiment of the application also provides an electronic device for processing the multimedia object, which can be a terminal device, taking the terminal device as a smart phone as an example:
Fig. 9 is a block diagram showing a part of a structure of a smart phone related to a terminal device provided by an embodiment of the present application. Referring to fig. 9, the smart phone includes: radio Frequency (r.f. Frequency) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (r.f. Frequency: WIRELESS FIDELITY, wiFi) module 970, processor 980, and power source 990. The input unit 930 may include a touch panel 931 and other input devices 932, the display unit 940 may include a display panel 941, and the audio circuit 960 may include a speaker 961 and a microphone 962. Those skilled in the art will appreciate that the smartphone structure shown in fig. 9 is not limiting of the smartphone and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The memory 920 may be used to store software programs and modules, and the processor 980 performs various functional applications and data processing by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the smart phone, etc. In addition, memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Processor 980 is a control center for the smartphone, connecting various portions of the entire smartphone using various interfaces and lines, performing various functions and processing data for the smartphone by running or executing software programs and/or modules stored in memory 920, and invoking data stored in memory 920. Optionally, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor with a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications programs, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
In this embodiment, the processor 980 in the terminal device may perform the following steps:
calculating a target hash value according to the multimedia object to be authenticated;
Sending a first request to the blockchain, wherein the first request comprises the target hash value;
extracting a target random character string from the multimedia object to be authenticated if a first writing time in target hash value writing information is received from the block link, wherein the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is the time when shooting equipment requests to write the target hash value into the block chain;
sending a second request to the blockchain, wherein the second request comprises the target random character string;
If a second writing time in target character string writing information is received from the block link, determining shooting time of the multimedia object to be identified according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain according to the target random character string from the stored character string writing information, and the second writing time is the time when the random character string generating device requests to write the generated target random character string into the block chain.
Or shooting the random character strings displayed on the object to be shot and the random character string display equipment to obtain the multimedia object, wherein the random character string display equipment displays the random character strings according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by the random character string generation equipment;
Calculating a hash value of the multimedia object;
And sending a hash value writing request to a blockchain, wherein the hash value writing request comprises a hash value of the multimedia object, the hash value writing request is used for requesting to write hash value writing information into the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when shooting equipment requests to write the hash value of the multimedia object into the blockchain.
Or generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated in the previous time;
And sending a character string writing request to a blockchain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting writing character string writing information to the blockchain, the character string writing information comprises a generated random character string and a second writing time, and the second writing time is the time when a random character string generating device requests writing the generated random character string to the blockchain.
The electronic device may further include a server, and as shown in fig. 10, fig. 10 is a block diagram of a server 1000 according to an embodiment of the present application, where the server 1000 may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (Central Processing Units, abbreviated as CPUs) 1022 (e.g., one or more processors) and a memory 1032, and one or more storage media 1030 (e.g., one or more mass storage devices) storing application programs 1042 or data 1044. Wherein memory 1032 and storage medium 1030 may be transitory or persistent. The program stored on the storage medium 1030 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Further, central processor 1022 may be configured to communicate with storage medium 1030 to perform a series of instruction operations in storage medium 1030 on server 1000.
The server 1000 may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input/output interfaces 1058, and/or one or more operating systems 1041, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
In this embodiment, the central processor 1022 in the server 1000 may perform the following steps:
calculating a target hash value according to the multimedia object to be authenticated;
Sending a first request to the blockchain, wherein the first request comprises the target hash value;
extracting a target random character string from the multimedia object to be authenticated if a first writing time in target hash value writing information is received from the block link, wherein the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is the time when shooting equipment requests to write the target hash value into the block chain;
sending a second request to the blockchain, wherein the second request comprises the target random character string;
If a second writing time in target character string writing information is received from the block link, determining shooting time of the multimedia object to be identified according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain according to the target random character string from the stored character string writing information, and the second writing time is the time when the random character string generating device requests to write the generated target random character string into the block chain.
Or generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated in the previous time;
And sending a character string writing request to a blockchain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting writing character string writing information to the blockchain, the character string writing information comprises a generated random character string and a second writing time, and the second writing time is the time when a random character string generating device requests writing the generated random character string to the blockchain.
According to an aspect of the present application, there is provided a computer-readable storage medium for storing program code for executing the multimedia object processing method according to the foregoing embodiments.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations of the above embodiments.
The terms "first," "second," "third," "fourth," and the like in the description of the application and in the above figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (16)
1. A method of processing a multimedia object, the method storing character string write information and hash value write information using a blockchain, the method comprising:
calculating a target hash value according to the multimedia object to be authenticated;
Sending a first request to the blockchain, wherein the first request comprises the target hash value;
extracting a target random character string from the multimedia object to be authenticated if a first writing time in target hash value writing information is received from the block link, wherein the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is the time when shooting equipment requests to write the target hash value into the block chain;
sending a second request to the blockchain, wherein the second request comprises the target random character string;
If a second writing time in target character string writing information is received from the block link, determining shooting time of the multimedia object to be identified according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain according to the target random character string from the stored character string writing information, and the second writing time is the time when the random character string generating device requests to write the generated target random character string into the block chain.
2. The method of claim 1, wherein if the multimedia object to be authenticated is a picture, the determining the photographing time of the multimedia object to be authenticated according to the first writing time and the second writing time includes:
determining a relationship between a difference between the first write time and the second write time and a first threshold;
and if the difference value is smaller than the first threshold value, determining that the shooting time is in the time period of the second writing time and the first writing time.
3. The method of claim 1, wherein if the multimedia object to be authenticated is a video, the calculating a target hash value according to the multimedia object to be authenticated comprises:
acquiring a video frame sequence according to the multimedia object to be identified, wherein the video frame sequence comprises a plurality of target video frames;
and calculating target hash values respectively corresponding to the target video frames.
4. The method of claim 3, wherein the first write time and the second write time are write times corresponding to each target video frame, and wherein determining the shooting time of the multimedia object to be authenticated based on the first write time and the second write time comprises:
Determining a relation between a difference value between a first writing time and a second writing time corresponding to each target video frame and a first threshold value;
And if the difference values are smaller than the first threshold value, determining that the shooting time is within a time period of the second writing time of the first target video frame and the first writing time of the last target video frame in the video frame sequence.
5. The method according to any one of claims 1-4, further comprising:
And carrying out signature calculation on the target hash value to obtain a target digital signature.
6. The method of claim 5, wherein receiving a first write time in the target hash value write information from the chunk link comprises:
Receiving a first write time and a first digital signature in the target hash value write information from the block link;
before the target random character string is extracted from the multimedia object to be authenticated, the method further comprises:
determining whether the first digital signature is the target digital signature;
If yes, executing the step of extracting the target random character string from the multimedia object to be identified.
7. A multimedia object processing apparatus that stores character string write information and hash value write information using a blockchain, the apparatus comprising a calculation unit, a transmission unit, a reception unit, an extraction unit, and a determination unit:
the computing unit is used for computing a target hash value according to the multimedia object to be authenticated;
The sending unit is used for sending a first request to the blockchain, wherein the first request comprises the target hash value;
the extracting unit is configured to extract a target random string from the multimedia object to be authenticated if the receiving unit receives a first writing time in target hash value writing information from the block link, where the target hash value writing information is determined by the block chain from stored hash value writing information according to the target hash value, and the first writing time is a time when the shooting device requests to write the target hash value into the block chain;
the sending unit is used for sending a second request to the blockchain, wherein the second request comprises the target random character string;
The determining unit is configured to determine, if the receiving unit receives a second writing time in target string writing information from the block link, according to the first writing time and the second writing time, a shooting time of the multimedia object to be authenticated, where the target string writing information is determined from stored string writing information by the block chain according to the target random string, and the second writing time is a time when the random string generating device requests writing of the generated target random string into the block chain.
8. A method of multimedia object processing, the method comprising:
Shooting a random character string displayed on a random character string display device and an object to be shot to obtain a multimedia object, wherein the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by a random character string generation device;
Calculating a hash value of the multimedia object;
Sending a hash value writing request to a blockchain, wherein the hash value writing request comprises a hash value of the multimedia object, the hash value writing request is used for requesting to write hash value writing information into the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when shooting equipment requests to write the hash value of the multimedia object into the blockchain;
The first writing time and the second writing time are used for determining shooting time of the multimedia object; the second writing time is a time when the random string generating device requests writing of the generated random string to the blockchain; the character string writing information stored by the blockchain includes the generated random character string and the second writing time.
9. The method of claim 8, wherein the hash value write request further includes a shooting time of the multimedia object recorded by the shooting device, such that the blockchain determines whether to write the hash value write information to the blockchain based on the first write time and the shooting time.
10. A multimedia object processing apparatus, characterized in that the apparatus comprises an acquisition unit, a calculation unit and a transmission unit:
The acquisition unit is used for shooting a random character string displayed on the random character string display device and an object to be shot to obtain a multimedia object, the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period of the random character string generated by the random character string generation device;
the computing unit is used for computing the hash value of the multimedia object;
The sending unit is configured to send a hash value writing request to a blockchain, where the hash value writing request includes a hash value of the multimedia object, and the hash value writing request is used to request the blockchain to write hash value writing information into the blockchain, where the hash value writing information includes a hash value of the multimedia object and a first writing time, and the first writing time is a time when the shooting device requests to write the hash value of the multimedia object into the blockchain;
The first writing time and the second writing time are used for determining shooting time of the multimedia object; the second writing time is a time when the random string generating device requests writing of the generated random string to the blockchain; the character string writing information stored by the blockchain includes the generated random character string and the second writing time.
11. A method of multimedia object processing, the method comprising:
generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated in the previous time;
Transmitting a character string writing request to a blockchain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting writing character string writing information to the blockchain, the character string writing information comprises a generated random character string and a second writing time, and the second writing time is the time when a random character string generating device requests writing the generated random character string to the blockchain;
The second writing time and the first writing time are used for determining shooting time of the multimedia object; the first writing time is the time when the shooting equipment requests to write the hash value of the multimedia object into the blockchain; the hash value writing information stored by the blockchain comprises the hash value of the multimedia object and the first writing time; the multimedia object is obtained by photographing the object to be photographed and the random character string displayed on the random character string display device.
12. The method of claim 11, wherein the string write request further includes a generation time at which the random string generation device generates a random string, such that the blockchain determines whether to write the string write information to the blockchain based on the second write time and the generation time.
13. A multimedia object processing apparatus, characterized in that the apparatus comprises a generating unit and a transmitting unit:
the generation unit is used for generating random character strings according to a first preset period, wherein each generated random character string is different from the random character string generated in the previous time;
The sending unit is configured to send a string write request to a blockchain, where the string write request includes the random string, the string write request is configured to request the blockchain to write string write information to the blockchain, the string write information includes a generated random string and a second write time, and the second write time is a time when a random string generating device requests to write the generated random string to the blockchain;
The second writing time and the first writing time are used for determining shooting time of the multimedia object; the first writing time is the time when the shooting equipment requests to write the hash value of the multimedia object into the blockchain; the hash value writing information stored by the blockchain comprises the hash value of the multimedia object and the first writing time; the multimedia object is obtained by photographing the object to be photographed and the random character string displayed on the random character string display device.
14. An electronic device for multimedia object processing, the electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
The processor is configured to perform the method of any of claims 1-6 or 8-9 or 11-12 according to instructions in the program code.
15. A computer readable storage medium, characterized in that the computer readable storage medium is for storing a program code for performing the method of any one of claims 1-6 or 8-9 or 11-12.
16. A computer program product, the computer program product comprising computer instructions stored in a computer readable storage medium; a processor of a computer device reads the computer instructions from the computer readable storage medium, the processor executing the computer instructions, causing the computer device to perform the method of any one of claims 1-6 or 8-9 or 11-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110162716.1A CN114884663B (en) | 2021-02-05 | 2021-02-05 | Multimedia object processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110162716.1A CN114884663B (en) | 2021-02-05 | 2021-02-05 | Multimedia object processing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114884663A CN114884663A (en) | 2022-08-09 |
CN114884663B true CN114884663B (en) | 2024-06-11 |
Family
ID=82667044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110162716.1A Active CN114884663B (en) | 2021-02-05 | 2021-02-05 | Multimedia object processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114884663B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239522A (en) * | 2017-05-26 | 2017-10-10 | 努比亚技术有限公司 | Picture storage method, equipment and computer-readable storage medium |
CN107632792A (en) * | 2017-10-13 | 2018-01-26 | 郑州云海信息技术有限公司 | The method and apparatus that virtual disk is managed in cloud data system |
WO2018119587A1 (en) * | 2016-12-26 | 2018-07-05 | 深圳前海达闼云端智能科技有限公司 | Data processing method, device, and system, and information acquisition apparatus |
CN109740317A (en) * | 2018-12-29 | 2019-05-10 | 北京奇虎科技有限公司 | A kind of digital finger-print based on block chain deposits card method and device |
CN111444479A (en) * | 2018-12-29 | 2020-07-24 | 北京奇虎科技有限公司 | Method and system for verifying ownership of digital fingerprint |
CN112235323A (en) * | 2020-12-11 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Evidence obtaining method and device based on block chain, electronic equipment and readable storage medium |
-
2021
- 2021-02-05 CN CN202110162716.1A patent/CN114884663B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018119587A1 (en) * | 2016-12-26 | 2018-07-05 | 深圳前海达闼云端智能科技有限公司 | Data processing method, device, and system, and information acquisition apparatus |
CN107239522A (en) * | 2017-05-26 | 2017-10-10 | 努比亚技术有限公司 | Picture storage method, equipment and computer-readable storage medium |
CN107632792A (en) * | 2017-10-13 | 2018-01-26 | 郑州云海信息技术有限公司 | The method and apparatus that virtual disk is managed in cloud data system |
CN109740317A (en) * | 2018-12-29 | 2019-05-10 | 北京奇虎科技有限公司 | A kind of digital finger-print based on block chain deposits card method and device |
CN111444479A (en) * | 2018-12-29 | 2020-07-24 | 北京奇虎科技有限公司 | Method and system for verifying ownership of digital fingerprint |
CN112235323A (en) * | 2020-12-11 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Evidence obtaining method and device based on block chain, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114884663A (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101880935B1 (en) | Photographing apparatus for generating digital image which can be verified by block-chain, digital image generating method using the same, and method for verifying image generated by the same | |
WO2021208952A1 (en) | Block chain-based image data recording, obtaining and verifying | |
CN107169125B (en) | Multimedia resource delivery statistical data acquisition method and device | |
EP3710974B1 (en) | Method and arrangement for detecting digital content tampering | |
US10402594B2 (en) | Information processing apparatus and non-transitory computer readable medium | |
US10019773B2 (en) | Authentication and validation of smartphone imagery | |
US11297500B2 (en) | Authenticating digital evidence | |
JP2007060668A (en) | Authenticating data units of mobile communications device | |
US8312284B1 (en) | Verifiable timestamping of data objects, and applications thereof | |
JP2006086661A (en) | Multimedia recording device, target identification information providing device, server device, verification device, multimedia recording method, target identification information providing method, server method, verification method, and multimedia recording system | |
CN108833431B (en) | Password resetting method, device, equipment and storage medium | |
US20210383029A1 (en) | Information processing program, information processing device, and information processing method | |
US20160188593A1 (en) | Method implemented by computer for capturing evidentiary audiovisual and/or multimedia information and computer program | |
CN107659579B (en) | On-site certificate storing method and device and related certificate storing system | |
KR101628720B1 (en) | Copied image evidence management system for verifying authenticity and integrity | |
CN110839067B (en) | Information providing method and device | |
CN114884663B (en) | Multimedia object processing method, device, equipment and storage medium | |
CN116756750A (en) | Medical sensitive data acquisition desensitization method | |
CN110992219A (en) | Intellectual property protection method and system based on block chain technology | |
CN106713297A (en) | Electronic data fixing platform based on cloud service | |
JPH11220686A (en) | Digital camera | |
JP2019205140A (en) | Imaging apparatus, information processing apparatus, generation method, and verification method | |
US20220053123A1 (en) | Method and apparatus for independent authentication of video | |
Bexheti et al. | Securely Storing and Sharing Memory Cues in Memory Augmentation Systems: A Practical Approach | |
KR102047916B1 (en) | Authentication system and method of photographic informaton |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40074011 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |