Summary of the invention
This specification embodiment provides a kind of multimedia messages prison broadcasting method, apparatus and system based on block chain, with solution
Data certainly of the existing technology are easily tampered, prison broadcast it is at high cost, the problem of low efficiency.
In order to solve the above technical problems, this specification embodiment is achieved in that
A kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting method, set applied to terminal
It is standby, which comprises
Acquire and obtain the prison multicast data of multimedia messages;
The first data summarization of the prison multicast data is calculated, and is signed to first data summarization;
The first data summarization after the signature is uploaded to service server, with by the service server to the label
Name is verified, and after the signature verification passes through, first data summarization is stored in block chain;
The prison multicast data is sent to service server, so as to the service server calculate the prison multicast data the
Two data summarizations verify second data summarization according to first data summarization;In second data summarization
After being verified, generate the feature of the prison multicast data, and calculate the feature of reference data, by the feature of the prison multicast data with
The feature of the reference data is matched, and realizes that prison is broadcast according to matching result.
In addition, in the method, the multimedia messages include video ads information, the terminal device is acquired and is obtained
The prison multicast data for taking multimedia messages, specifically includes:
The terminal device by camera acquire video ads information in key frame or the terminal device pass through
Camera acquires the video-frequency band in video ads information, and using the key frame or video-frequency band as prison multicast data.
In addition, in the method, the terminal device acquires the key frame in video ads information, packet by camera
It includes:
Default one or more picture frame is as key frame;
The terminal device when being played out to video ads information, by camera to the video ads information into
The detection of row key frame;
When detecting key frame in the video ads information, the key frame is extracted;Or
The terminal device acquires the video ads information when playing out to video ads information, through camera
Complete played data;
Key frame detection is carried out for the complete played data;
When detecting key frame in the complete played data, the key frame is extracted.
In addition, in the method, the camera is wide-angle camera, the field of view angle FOV of the wide-angle camera
For any angle between 120 degree~210 degree.
In addition, in the method, the feature for generating the prison multicast data, comprising: when the prison multicast data is to close
When key frame, the SIFT feature of single-frame images corresponding to the key frame is calculated;It, will be described when the prison multicast data is video-frequency band
Video-frequency band is divided into several single-frame images, calculates separately the SIFT feature of each single-frame images.
In addition, in the method, the reference data includes the normal play data of the video ads information, described
The feature for calculating reference data matches the feature of the prison multicast data with the feature of the reference data, comprising:
The normal play data are divided into several single-frame images, distortion geometry is carried out to each single-frame images
Transformation, obtains transformed fault image, calculates separately the SIFT feature of each fault image;
By the institute in the SIFT feature and the normal play data of all single-frame images corresponding to the prison multicast data
There is the SIFT feature of fault image to be compared one by one.
In addition, in the method, further includes: preset a security module and the security module in the terminal device
Private key signature interface stores private key corresponding with the terminal device in the security module.
In addition, in the method, first data summarization for calculating the prison multicast data, and to first data
Abstract is signed, and is specifically included:
The first data summarization of the prison multicast data is calculated, and using the private key signature interface of the security module, to institute
The first data summarization is stated to sign.
In addition, in the method, it is described to be verified by the service server to the signature, comprising: by institute
The corresponding public key of private key of the service server based on the terminal device is stated to verify the signature.
In addition, in the method, it is described that second data summarization is verified according to first data summarization
Before, further includes:
The service server is obtained by the address information of the SDK that block platform chain the services block chain returned, and
The first data summarization is determined according to the address information.
A kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting method, are applied to business service
Device, which comprises
The first data summarization after the signature that receiving terminal apparatus uploads;
The signature is verified, and after the signature verification passes through, by first data summarization in block chain
In stored;
The prison multicast data that receiving terminal apparatus is sent, and the second data summarization of the prison multicast data is calculated, according to described
First data summarization verifies second data summarization;
After second data summarization is verified, the feature of the prison multicast data is generated, and calculates reference data
Feature, the feature of the prison multicast data is matched with the feature of the reference data, realizes that prison is broadcast according to matching result;
Wherein, the first data summarization after the signature is the first data that the terminal device calculates the prison multicast data
Abstract, and obtained after signing to first data summarization;The prison multicast data is that the terminal device is acquired and obtained
The prison multicast data of the multimedia messages taken.
In addition, in the method, the feature for generating the prison multicast data, comprising: when the prison multicast data is to close
When key frame, the SIFT feature of single-frame images corresponding to the key frame is calculated;It, will be described when the prison multicast data is video-frequency band
Video-frequency band is divided into several single-frame images, calculates separately the SIFT feature of each single-frame images.
In addition, in the method, the reference data includes the normal play data of the video ads information, described
The feature for calculating reference data matches the feature of the prison multicast data with the feature of the reference data, comprising:
The normal play data are divided into several single-frame images, distortion geometry is carried out to each single-frame images
Transformation, obtains transformed fault image, calculates separately the SIFT feature of each fault image;
By the institute in the SIFT feature and the normal play data of all single-frame images corresponding to the prison multicast data
There is the SIFT feature of fault image to be compared one by one.
In addition, in the method, it is described that the signature is verified, comprising: the service server is based on described
The corresponding public key of the private key of terminal device verifies the signature.
In addition, in the method, it is described that second data summarization is verified according to first data summarization
Before, further includes:
The service server is obtained by the address information of the SDK that block platform chain the services block chain returned, and
The first data summarization is determined according to the address information.
A kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting device, set applied to terminal
Standby, described device includes:
Acquisition module, for acquiring and obtaining the prison multicast data of multimedia messages;
Computing module for calculating the first data summarization of the prison multicast data, and carries out first data summarization
Signature;
Uploading module, for the first data summarization after the signature to be uploaded to service server, by the business
Server verifies the signature, and after the signature verification passes through, by first data summarization in block chain
It is stored;
Sending module, for the prison multicast data to be sent to service server, so that the service server calculates institute
The second data summarization for stating prison multicast data, verifies second data summarization according to first data summarization;Institute
It states after the second data summarization is verified, the feature of the prison multicast data is generated, and calculate the feature of the reference data, by institute
The feature for stating prison multicast data is matched with the feature of the reference data, realizes that prison is broadcast according to matching result.
In addition, in said device, the multimedia messages include video ads information, the acquisition module is specifically used
In: the key frame in video ads information is acquired by camera, or the view in video ads information is acquired by camera
Frequency range, and using the key frame or video-frequency band as prison multicast data.
In addition, in said device, the acquisition module is further used for:
Default one or more picture frame is as key frame;
When playing out to video ads information, key frame inspection is carried out to the video ads information by camera
It surveys;
When detecting key frame in the video ads information, the key frame is extracted;Or
When playing out to video ads information, the complete broadcasting number of the video ads information is acquired by camera
According to;
Key frame detection is carried out for the complete played data;
When detecting key frame in the complete played data, the key frame is extracted.
In addition, in said device, the camera is wide-angle camera, the field of view angle FOV of the wide-angle camera
For any angle between 120 degree~210 degree.
In addition, in said device, further includes: the private key signature interface of a default security module and the security module,
Private key corresponding with the terminal device is stored in the security module.
In addition, in said device, the computing module is specifically used for: the first data for calculating the prison multicast data are plucked
It wants, and using the private key signature interface of the security module, signs to first data summarization.
A kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting device, are applied to business service
Device, described device include:
First receiving module, for the first data summarization after the signature of receiving terminal apparatus upload;
Authentication module, for being verified to the signature, and after the signature verification passes through, by first data
Abstract is stored in block chain;
Second receiving module for the prison multicast data that receiving terminal apparatus is sent, and calculates the second of the prison multicast data
Data summarization verifies second data summarization according to first data summarization;
Matching module for after second data summarization is verified, generating the feature of the prison multicast data, and is counted
The feature of the prison multicast data is matched with the feature of the reference data, is tied according to matching by the feature for calculating reference data
Fruit is now supervised and is broadcast;
Wherein, the first data summarization after the signature is the first data that the terminal device calculates the prison multicast data
Abstract, and obtained after signing to first data summarization;The prison multicast data is that the terminal device is acquired and obtained
The prison multicast data of the multimedia messages taken.
In addition, in said device, the matching module is further used for: when the prison multicast data is key frame, meter
Calculate the SIFT feature of single-frame images corresponding to the key frame;When the prison multicast data is video-frequency band, the video-frequency band is drawn
It is divided into several single-frame images, calculates separately the SIFT feature of each single-frame images.
In addition, in said device, the reference data includes the normal play data of the video ads information, described
Matching module is further used for:
The normal play data are divided into several single-frame images, distortion geometry is carried out to each single-frame images
Transformation, obtains transformed fault image, calculates separately the SIFT feature of each fault image;
By the institute in the SIFT feature and the normal play data of all single-frame images corresponding to the prison multicast data
There is the SIFT feature of fault image to be compared one by one.
A kind of multimedia messages prison based on block chain that this specification embodiment provides broadcasts system, and the system comprises ends
End equipment and service server, in which:
The terminal device, for acquiring and obtaining the prison multicast data of multimedia messages;Calculate the of the prison multicast data
One data summarization, and sign to first data summarization;The first data summarization after the signature is uploaded to business
Server, and the prison multicast data is sent to service server;
The service server, for the first data summarization after the signature of receiving terminal apparatus upload;To the signature
It is verified, and after the signature verification passes through, first data summarization and signature value is stored in block chain;
The prison multicast data that receiving terminal apparatus is sent, and the second data summarization of the prison multicast data is calculated, according to first data
Abstract verifies second data summarization;After second data summarization is verified, the prison multicast data is generated
Feature, and calculate the feature of reference data, the feature of the prison multicast data matched with the feature of the reference data,
Realize that prison is broadcast according to matching result.
This specification embodiment use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
By acquiring and obtain the prison multicast data of multimedia messages, the first data summarization of the prison multicast data is calculated, and
It signs to first data summarization, the first data summarization after signature is distributed in block chain;Multicast data will be supervised again
It is sent to service server, so that the service server calculates the second data summarization of the prison multicast data, by the first data
Abstract and the second data summarization are verified, and after being verified, and generate the feature of the prison multicast data, and calculate reference number
According to feature, by it is described prison multicast data feature matched with the feature of the reference data, according to matching result realize prison
It broadcasts.Based on this programme, it can be realized and the automatic prison of multimedia messages is broadcast, be not necessarily to third party intermediary, reduce prison and broadcast cost, energy
It is enough to guarantee that prison multicast data is not tampered, promote working efficiency.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be merely a part but not all of the embodiments of the present application.Based on this specification embodiment, this field
Those of ordinary skill's every other embodiment obtained without creative efforts, all should belong to the application
The range of protection.
Fig. 1 is a kind of schematic diagram for the system overall architecture that the scheme of this specification is related under practical application scene.System
Overall architecture of uniting includes terminal device and cloud server, wherein terminal device can be used for the broadcasting of multimedia messages, cloud clothes
Business device can be used for the storage to prison multicast data, calculating and storage of block chain etc..Terminal device may include such as electronics
The electronic equipment that display screen, electronics speaker etc. are played for video or audio, is also possible to be mounted with the intelligence of intelligent operating system
Energy equipment, such as: intelligent display screen, intelligent projection device, smart television etc. can be integrated with touch screen on the smart machine,
The touch screen is, for example, liquid crystal touch control screen.
In this specification embodiment, multimedia messages include video ads information, audio advertisement information etc., the present embodiment
It is that video ads are as multimedia messages using under line under scene, therefore alleged multimedia in this specification following embodiment
Information refers both to video ads information under line, and terminal device at this time is video ads playback terminal under line, such as: advertisement is broadcast under line
Put large-size screen monitors advertisement machine etc. under screen, line.
This specification embodiment uses block chain technology in the prison to video ads under line is broadcast, since block chain has solely
The attributes such as special decentralization, information can not distort, multinode collective maintainability, publicity, secret protection, thus based on not
It is able to record in believable internet and the data of believable Transaction Information is provided.The work that prison is broadcast is being carried out to video ads under line
In the process, it is necessary first to the content for acquiring video ads broadcasting, using the content as on the data voucher compared with standard content
It passes in server, however the acquisition of either data voucher or upper crossing, the data in terminal or server may all be usurped
Change;And due to advertiser to media provider be completely it is mistrustful, upload data voucher authenticity also it is difficult to ensure that.
This specification embodiment is automatic by the video acquisition device (for example, camera, video recorder etc.) on terminal device
Prison multicast data is obtained, the first data summarization of prison multicast data is calculated and carries out signature processing, by the first data summarization and signature value
It is uploaded to block chain (also referred to as cochain), and prison multicast data is also uploaded to service server (such as cloud server), in cloud
End the first data summarization and the second data summarization are verified, thus learn upload to service server prison multicast data whether
For the prison multicast data that acquired original arrives, i.e. whether prison multicast data is tampered, so as to broadcast result completely credible for prison;Due to automatic collection
Prison multicast data is obtained, and realizes automatic comparison beyond the clouds, therefore no third side personnel intervene, prison is reduced and broadcasts cost, significant increase
Working efficiency.
Based on above-mentioned scene, the scheme of this specification is described in detail below.
Fig. 2 is the process signal that a kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting method
Figure, this method can specifically include following steps:
In step S210, the prison multicast data of multimedia messages is acquired and obtained.
In this specification one or more embodiment, multimedia messages include video ads information, terminal device acquisition
And the prison multicast data of multimedia messages is obtained, can specifically include: terminal device is acquired in video ads information by camera
Key frame or terminal device the video-frequency band in video ads information is acquired by camera, and by key frame or video-frequency band
As prison multicast data.
Specifically, terminal device includes video ads playback terminal under line, and such as: advertisement plays large-size screen monitors under screen, line under line
Advertisement machine etc..Terminal device acquires by acquisition device and obtains the prison multicast data of video ads under line, and acquisition device, which refers to, to be taken the photograph
As head, video recorder etc. have the device of video or image camera function;It, can be according to video under different lines in practical application
Advertisement terminal selects different acquisition devices, such as selects acquisition device according to the screen size of video ads terminal, works as video
When advertisement terminal is intelligent large-screen display, in order to take the content of large-size screen monitors advertisement, while as far as possible with video playing screen
Integrated design needs for camera to be mounted on the side (such as top) of video playing screen, and the bat of adjustable camera lens
Direction is taken the photograph, so that can just take the complete content of screen broadcasting;The off screen curtain of camera meeting at this time is very close, to need
Biggish field of view angle FOV, therefore can be using wide-angle camera as acquisition device, the field of view angle FOV of wide-angle camera
Can be any angle between 120 degree~210 degree, it can use field of view angle FOV between 120 degree~210 degree arbitrarily
The wide-angle camera of angle, such as: it uses field of view angle FOV for 120 degree of wide-angle camera, or uses field of view angle FOV
For 210 degree of wide-angle camera.It is noted that the image or video that are taken using wide-angle camera are usually had very greatly
Distortion, so-called distortion refers to that captured image can be deformed, causes dissimilar with shooting object originally.
Under another embodiment, when video ads terminal be normal size display when, select common camera as
Acquisition device, at this time can front that is common camera is vertical or being obliquely installed on display.Implement in this specification
In example, above-mentioned large-screen display can refer to that screen size is more than or equal to 27 cun of liquid crystal display, the then display of normal size
Device can refer to the liquid crystal display less than 27 cun.Preferably, the resolution ratio of above-mentioned camera is 1080P, the shooting essence of 1080P
Degree both ensure that the clarity of imaging, convenient for differentiating, and not will increase consumables cost.
In this specification one or more embodiment, terminal device acquires the pass in video ads information by camera
Key frame may include following two mode:
Mode one:
Default one or more picture frame is as key frame;Terminal device leads to when playing out to video ads information
It crosses camera and key frame detection is carried out to video ads information;When detecting key frame in video ads information, extracts and close
Key frame.
Specifically, camera is constantly to video when the large-screen display of terminal device plays out video ads information
Advertising information carries out the detection of key frame, when screen is played to the picture frame of video ads information corresponding to default key frame
When, camera shoots currently playing image, and using the image as key frame.
Mode two:
Default one or more picture frame is as key frame;Terminal device leads to when playing out to video ads information
Cross the complete played data of camera acquisition video ads information;Key frame detection is carried out for complete played data;When complete
When detecting key frame in whole played data, key frame is extracted.
Specifically, camera shoots the video when large-screen display of terminal device plays out video ads information
The complete played data of advertising information, terminal device are directed to the complete played data again and carry out key frame detection, play from complete
The key frame is extracted in data.
In step S220, the first data summarization of the prison multicast data is calculated, and first data summarization is carried out
Signature.
In this specification one or more embodiment, the private of a security module and security module is preset in terminal device
Key signature interface stores private key corresponding with terminal device in security module.Specifically, security module can refer at the end
The safe computing environment carried in end equipment stores private key corresponding with terminal device in safe computing environment.
For example, can be carried in the hardware environment of video advertising player so that terminal device is video advertising player under line as an example
Safety chip, and based on the safety chip come Build Security computing environment, using the safe computing environment come storage and maintenance view
The private key that frequency advertisement machine is held provides the computing environment of safety towards video advertising player.
In this specification one or more embodiment, the first data summarization of prison multicast data is calculated, and to the first data
Abstract is signed, and may include following operation:
Above-mentioned data summarization, which specifically can be, calculates the cryptographic Hash that the prison multicast data obtains, institute based on specific hash algorithm
The first cryptographic Hash can be expressed as by stating the first data summarization, i.e., by carrying out Hash operation to prison multicast data, obtain prison multicast data
The first cryptographic Hash;It is based on private key corresponding with terminal device in safe computing environment, and utilizes the private key label of security module
Name interface, carries out signature processing to calculated first cryptographic Hash;It should be pointed out that carrying out signature processing to the first cryptographic Hash
As a result, can be to obtain the signature value of first cryptographic Hash, that is, may include first Hash in the first cryptographic Hash after signing
The signature value of value.
The private key of security module is never appeared there are physics area of isolation, by being based on private key in safe computing environment
It signs to the cryptographic Hash of prison multicast data, so as to ensure signature safety.And it is stored in the cryptographic Hash of prison multicast data
After block chain, so that may not carry out distorting for prison multicast data Hash after cochain;Hash operation is using high security level
SM3 algorithm etc., so that can not backstepping prison multicast data content by Hash.It should be noted that the Hash operation of prison multicast data, base
The processing of the signature of cryptographic Hash and security module can be realized in the credible sensor in terminal device in private key.
Block chain described in this specification can specifically include privately owned chain, shared chain and alliance's chain etc., such as: ant block chain
BaaS etc., in the present specification without being particularly limited to.
In step S230, the first data summarization after the signature is uploaded to service server, by the business
Server verifies the signature, and after the signature verification passes through, by first data summarization in block chain
It is stored.
In this specification one or more embodiment, the mistake that the first data summarization after signature is distributed in block chain
Journey specifically includes that the first cryptographic Hash (may include signature value) after signature is uploaded to service server after, by service server
The corresponding public key of private key based on terminal device verifies signature, and after signature verification passes through, the first cryptographic Hash is existed
It is stored in block chain.
In one embodiment, private key and public key that terminal device is held, can be raw in equipment by equipment manufacturer
The production stage is terminal device generation, and the private key is written in the safe computing environment of the terminal device in advance by equipment manufacturer
Carry out storage and maintenance.
Further, after the first cryptographic Hash and its signature value are successfully distributed to block chain, due to carrying out cochain
When have invoked the SDK (for example, Software Development Kit) of block platform chain service, therefore after calling successfully, block platform chain
The SDK of service will return to the address information txHash of the block chain.
In step S240, the prison multicast data is sent to service server, so that the service server calculates institute
The second data summarization for stating prison multicast data, verifies second data summarization according to first data summarization;Institute
It states after the second data summarization is verified, the feature of the prison multicast data is generated, and calculate the feature of reference data, by the prison
The feature of multicast data is matched with the feature of the reference data, realizes that prison is broadcast according to matching result.
In this specification one or more embodiment, prison multicast data is sent to the behaviour of service server by terminal device
Make, either directly transmitting after getting prison multicast data, is also possible to terminal device for the first data summarization and signature value
It is sent when being distributed to block chain, can also be and be copied in service server when terminal device is offline.This specification is implemented
Step S210- step S240 in example does not constitute the restriction to this specification embodiment realization sequence.
According to previous embodiment, data summarization, which specifically can be, to be calculated the prison multicast data based on specific hash algorithm and obtains
Cryptographic Hash, therefore the second data summarization can be expressed as the second cryptographic Hash;Then service server calculates the second of prison multicast data
Cryptographic Hash verifies the second cryptographic Hash according to the first cryptographic Hash.
Further, service server needs first to obtain before verifying the second cryptographic Hash according to the first cryptographic Hash
The first cryptographic Hash being stored on block chain, according to previous embodiment, after the first cryptographic Hash and signature value success cochain, block
The SDK of platform chain service will return to the address information of the block chain, and service server obtains the address letter of the block chain at this time
Breath, and the first cryptographic Hash is determined according to address information.Again by the way that the first cryptographic Hash and the second cryptographic Hash to be compared, verifying is breathed out
Whether uncommon value is identical.
It in the above-described embodiments, is by the way that by the first cryptographic Hash on block chain, (prison collected to terminal device broadcasts number
Obtained according to Hash operation is carried out) the second cryptographic Hash for being calculated with the prison multicast data uploaded on service server it
Between the comparison that carries out;But in practical application, the comparison being not limited between above-mentioned first cryptographic Hash and the second cryptographic Hash, example
Such as:, can also be by the attached of the first cryptographic Hash and the prison multicast data after the first cryptographic Hash is calculated to prison multicast data in terminal device
Belong to information and form new data structure, calculates the cryptographic Hash of the data structure, obtain third cryptographic Hash;Third cryptographic Hash is carried out
Signature processing, and third cryptographic Hash and its signature value are uploaded into the storage of block chain.Opposite, business is uploaded to multicast data will be supervised
After server, service server calculates the second cryptographic Hash of prison multicast data, then by second cryptographic Hash and uploads prison multicast data
Satellite information forms new data structure, calculates the cryptographic Hash of the data structure, obtains the 4th cryptographic Hash;By by third Hash
Value is compared with the 4th cryptographic Hash, equally may be implemented to the legitimate verification for uploading prison multicast data.Above-mentioned prison multicast data
Satellite information may include supervising temporal information and location information of multicast data etc..
In this specification one or more embodiment, reference data may include the normal play number of video ads information
According to, it can it is considered that advertiser is supplied to the original reference data of media provider, reference data is from operation system, reference number
According to can be pre-configured in service server.Prison multicast data and reference data are stored by service server, is greatly facilitated
Advertiser, which transfers, to be checked.
In this specification one or more embodiment, the feature of prison multicast data is generated, may include:
When supervising multicast data is key frame, the SIFT feature of single-frame images corresponding to key frame is calculated;
When supervising multicast data is video-frequency band, video-frequency band is divided into several single-frame images, calculates separately each single frames figure
The SIFT feature of picture.
Specifically, single-frame images corresponding to key frame refers to that the corresponding picture frame of the key frame, the i.e. picture frame are corresponding
Single width image frame;SIFT, that is, Scale invariant features transform, SIFT are a kind of algorithms of computer vision, it be used to detect with
Locality characteristic in image is described, it finds extreme point in space scale, and extracts its position, scale, invariable rotary
Amount.
In a particular embodiment, the SIFT feature of image can be detected using following steps: a, scale space
Extremum extracting, b, positioning feature point, c, characteristic direction assignment, d, feature point description.
In this specification one or more embodiment, the feature of reference data is calculated, the feature and ginseng of multicast data will be supervised
The feature for examining data is matched, comprising:
Normal play data are divided into several single-frame images, distortion geometric transformation is carried out to each single-frame images, is obtained
To transformed fault image, the SIFT feature of each fault image is calculated separately;
By all distortion figures in the SIFT feature and normal play data of supervising all single-frame images corresponding to multicast data
The SIFT feature of picture is compared one by one.
Specifically, according to above-described embodiment, since the image or video taken using wide-angle camera is with very big
It is the processing done based on fault image when distorting, therefore calculating its SIFT feature to the single-frame images of prison multicast data;And it uploads to
Normal play data in service server are normal images, therefore for the reliability of feature comparison result, first will be needed
Normal play data are divided into several single-frame images, carry out distortion geometric transformation to each single-frame images, obtain transformed
Fault image calculates separately the SIFT feature of each fault image.Geometric transformation is also known as spatial alternation, and being will be in piece image
Coordinate position be mapped to the new coordinate position in other piece image, it does not change the pixel value of image, only flat in image
Rearranging for pixel is carried out on face.Distortion geometric transformation is carried out to single-frame images, it is believed that be abnormal to piece image progress
The geometric transformation of change, what is obtained after transformation is fault image.
In this specification one or more embodiment, lead to not asking for comparison in order to avoid there is broadcast leakage or scarce frame
Topic, can be by all fault images in the SIFT feature and normal play data of supervising all single-frame images corresponding to multicast data
SIFT feature compared one by one, until be matched to the consistent image of SIFT feature.When prison multicast data is single or multiple passes
When key frame, picture frame corresponding with the key frame can also be extracted directly from normal play data, to the figure extracted
As frame carries out distortion geometric transformation, fault image is obtained, to only compare the SIFT feature of these images.
It, can be using the key point for 128 dimensions for calculating two groups of characteristic points in this specification one or more embodiment
Euclidean distance is realized to the matching between the SIFT feature of single-frame images and the SIFT feature of fault image.Euclidean distance is smaller,
Then similarity is higher, when Euclidean distance is less than the threshold value of setting, it is possible to determine that is successful match.After the completion of characteristic matching,
Report can also be generated according to matching result, report stores beyond the clouds, checks reference convenient for advertiser.
Above content mainly describes operation of this specification embodiment applied to terminal equipment side when, and this specification is implemented
Operation when example is also to service server as main body is described.Referring to Fig. 3, the figure shows this specification embodiments to mention
The flow diagram of another multimedia messages prison broadcasting method based on block chain of confession, this method can specifically include following step
It is rapid:
In step s310, the first data summarization and signature value after the signature that receiving terminal apparatus uploads.
In this specification one or more embodiment, the first data summarization after signature is that terminal device calculating prison broadcasts number
According to the first data summarization, and obtain after signing to first data summarization.Since data summarization specifically can be
The cryptographic Hash that the prison multicast data obtains is calculated based on specific hash algorithm, so the first data summarization can be expressed as the first Kazakhstan
Uncommon value.
In step s 320, the signature is verified, and after the signature verification passes through, by first data
Abstract and signature value are stored in block chain.
In this specification one or more embodiment, service server is receiving the first cryptographic Hash (may include signature value)
Afterwards, the corresponding public key of private key based on terminal device verifies signature, and after signature verification passes through, by the first cryptographic Hash
It is stored in block chain with signature value.
In step S330, the prison multicast data that receiving terminal apparatus is sent, and calculate the second data of the prison multicast data
Abstract, verifies second data summarization according to first data summarization.
In this specification one or more embodiment, prison multicast data is the multimedia messages that terminal device is acquired and obtained
Prison multicast data, the Hash that the prison multicast data obtains is calculated based on specific hash algorithm since data summarization specifically can be
Value, so the second data summarization can be expressed as the second cryptographic Hash.The second cryptographic Hash is carried out according to the first cryptographic Hash to verify it
Before, it can also include: that service server is obtained by the address information of the SDK that block platform chain the services block chain returned,
And the first cryptographic Hash is determined according to address information.
In step S340, after second data summarization is verified, the feature of the prison multicast data is generated, and count
The feature of the prison multicast data is matched with the feature of the reference data, is tied according to matching by the feature for calculating reference data
Fruit is now supervised and is broadcast.
In this specification one or more embodiment, the feature of prison multicast data is generated, comprising:
When supervising multicast data is key frame, the SIFT feature of single-frame images corresponding to key frame is calculated;
When supervising multicast data is video-frequency band, video-frequency band is divided into several single-frame images, calculates separately each single frames figure
The SIFT feature of picture.
Specifically, single-frame images corresponding to key frame refers to that the corresponding picture frame of the key frame, the i.e. picture frame are corresponding
Single width image frame;SIFT, that is, Scale invariant features transform, SIFT are a kind of algorithms of computer vision, it be used to detect with
Locality characteristic in image is described, it finds extreme point in space scale, and extracts its position, scale, invariable rotary
Amount.
In a particular embodiment, the SIFT feature of image can be detected using following steps: a, scale space
Extremum extracting, b, positioning feature point, c, characteristic direction assignment, d, feature point description.
In this specification one or more embodiment, the feature of reference data is calculated, the feature and ginseng of multicast data will be supervised
The feature for examining data is matched, comprising:
Normal play data are divided into several single-frame images, distortion geometric transformation is carried out to each single-frame images, is obtained
To transformed fault image, the SIFT feature of each fault image is calculated separately;
By all distortion figures in the SIFT feature and normal play data of supervising all single-frame images corresponding to multicast data
The SIFT feature of picture is compared one by one.
Specifically, according to above-described embodiment, since the image or video taken using wide-angle camera is with very big
It is the processing done based on fault image when distorting, therefore calculating its SIFT feature to the single-frame images of prison multicast data;And business takes
The received normal play data of device of being engaged in are normal images, therefore for the reliability of feature comparison result, are needed standard first
Played data is divided into several single-frame images, carries out distortion geometric transformation to each single-frame images, obtains transformed distortion
Image calculates separately the SIFT feature of each fault image.Geometric transformation is also known as spatial alternation, is by the seat in piece image
Cursor position is mapped to the new coordinate position in other piece image, it does not change the pixel value of image, only on the image plane
Carry out rearranging for pixel.Distortion geometric transformation is carried out to single-frame images, it is believed that distorted to piece image
Geometric transformation, what is obtained after transformation is fault image.
In this specification one or more embodiment, lead to not asking for comparison in order to avoid there is broadcast leakage or scarce frame
Topic, can be by all fault images in the SIFT feature and normal play data of supervising all single-frame images corresponding to multicast data
SIFT feature compared one by one, until be matched to the consistent image of SIFT feature.When prison multicast data is single or multiple passes
When key frame, picture frame corresponding with the key frame can also be extracted directly from normal play data, to the figure extracted
As frame carries out distortion geometric transformation, fault image is obtained, to only compare the SIFT feature of these images.
It, can be using the key point for 128 dimensions for calculating two groups of characteristic points in this specification one or more embodiment
Euclidean distance is realized to the matching between the SIFT feature of single-frame images and the SIFT feature of fault image.Euclidean distance is smaller,
Then similarity is higher, when Euclidean distance is less than the threshold value of setting, it is possible to determine that is successful match.After the completion of characteristic matching,
Report can also be generated according to matching result, report stores beyond the clouds, checks reference convenient for advertiser.
In the present embodiment, acquire and obtain prison multicast data, calculate the first cryptographic Hash of prison multicast data, to the first cryptographic Hash into
The processing of row signature, and first cryptographic Hash cochain etc. is operated, the side recorded with step S210- step S230 in previous embodiment
Method process is identical, and details are not described herein.
Based on same thinking, this specification embodiment additionally provide it is a kind of based on block chain multimedia messages prison broadcast dress
It sets, if Fig. 4 is that a kind of multimedia messages based on block chain that this specification embodiment provides supervise broadcasting device, is set applied to terminal
Standby, which specifically includes that
Acquisition module 401, for acquiring and obtaining the prison multicast data of multimedia messages;
Computing module 402, for calculate it is described prison multicast data the first data summarization, and to first data summarization into
Row signature;
Uploading module 403, for the first data summarization after the signature to be uploaded to service server, by the industry
Business server verifies the signature, and after the signature verification passes through, by first data summarization in block chain
In stored;
Sending module 404, for the prison multicast data to be sent to service server, so as to service server calculating
Second data summarization of the prison multicast data, verifies second data summarization according to first data summarization;?
After second data summarization is verified, the feature of the prison multicast data is generated, and calculates the feature of the reference data, it will
The feature of the prison multicast data is matched with the feature of the reference data, realizes that prison is broadcast according to matching result.
According to an embodiment of the present application, the multimedia messages include video ads information, and the acquisition module 401 is specific
For: the key frame in video ads information is acquired by camera, or is acquired in video ads information by camera
Video-frequency band, and using the key frame or video-frequency band as prison multicast data.
According to an embodiment of the present application, in said device, the acquisition module 401 is further used for:
Default one or more picture frame is as key frame;
When playing out to video ads information, key frame inspection is carried out to the video ads information by camera
It surveys;
When detecting key frame in the video ads information, the key frame is extracted;Or
When playing out to video ads information, the complete broadcasting number of the video ads information is acquired by camera
According to;
Key frame detection is carried out for the complete played data;
When detecting key frame in the complete played data, the key frame is extracted.
According to an embodiment of the present application, in said device, the camera is wide-angle camera, the wide-angle camera
Field of view angle FOV be 120 degree~210 degree between any angle.
According to an embodiment of the present application, further includes: the private key signature interface of a default security module and the security module,
Private key corresponding with the terminal device is stored in the security module.
According to an embodiment of the present application, in said device, the computing module 402 is specifically used for: calculating the prison and broadcasts
First data summarization of data, and using the private key signature interface of the security module, first data summarization is signed
Name.
Referring to Fig. 5, broadcasting device is supervised for another multimedia messages based on block chain that this specification embodiment provides, is answered
For service server, which is specifically included that
First receiving module 501, for the first data summarization and signature value after the signature of receiving terminal apparatus upload;
Authentication module 502, for being verified to the signature, and after the signature verification passes through, by described first
Data summarization is stored in block chain;
Second receiving module 503 for the prison multicast data that receiving terminal apparatus is sent, and calculates the of the prison multicast data
Two data summarizations verify second data summarization according to first data summarization;
Matching module 504, for after second data summarization is verified, generating the feature of the prison multicast data,
And calculate the feature of reference data, by it is described prison multicast data feature matched with the feature of the reference data, according to
Realize that prison is broadcast with result;
Wherein, the first data summarization after the signature is the first data that the terminal device calculates the prison multicast data
Abstract, and obtained after signing to first data summarization;The prison multicast data is that the terminal device is acquired and obtained
The prison multicast data of the multimedia messages taken.
According to an embodiment of the present application, in said device, the matching module 504 is further used for: when the prison is broadcast
When data are key frame, the SIFT feature of single-frame images corresponding to the key frame is calculated;When the prison multicast data is video-frequency band
When, the video-frequency band is divided into several single-frame images, calculates separately the SIFT feature of each single-frame images.
According to an embodiment of the present application, the reference data includes the normal play data of the video ads information, institute
Matching module 504 is stated to be further used for:
The normal play data are divided into several single-frame images, distortion geometry is carried out to each single-frame images
Transformation, obtains transformed fault image, calculates separately the SIFT feature of each fault image;
By the institute in the SIFT feature and the normal play data of all single-frame images corresponding to the prison multicast data
There is the SIFT feature of fault image to be compared one by one.
Based on same thinking, this specification embodiment additionally provides a kind of multimedia messages prison based on block chain and broadcasts and be
System, if Fig. 6 is that a kind of multimedia messages prison based on block chain that this specification embodiment provides broadcasts system, the system 600 is main
It to include terminal device 601 and service server 602, in which:
The terminal device 601, for acquiring and obtaining the prison multicast data of multimedia messages;Calculate the prison multicast data
First data summarization, and sign to first data summarization;The first data summarization after the signature is uploaded to industry
Business server, and the prison multicast data is sent to service server.
The service server 602, for the first data summarization after the signature of receiving terminal apparatus upload;To the label
Name is verified, and after the signature verification passes through, first data summarization and signature value are deposited in block chain
Storage;The prison multicast data that receiving terminal apparatus is sent, and the second data summarization of the prison multicast data is calculated, according to first number
Second data summarization is verified according to abstract;After second data summarization is verified, generates the prison and broadcast number
According to feature, and calculate the feature of reference data, the feature of the feature of the prison multicast data and the reference data carried out
Match, realizes that prison is broadcast according to matching result.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, nonvolatile computer storage media embodiment, since it is substantially similar to the method embodiment, so description
It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Device that this specification embodiment provides, electronic equipment, nonvolatile computer storage media with method are corresponding
, therefore, device, electronic equipment, nonvolatile computer storage media also have the Advantageous effect similar with corresponding method
Fruit, since the advantageous effects of method being described in detail above, which is not described herein again corresponding intrument,
The advantageous effects of electronic equipment, nonvolatile computer storage media.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that including described
There is also other identical elements in the process, method of element, commodity or equipment.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects,
Component, data structure etc..Specification can also be practiced in a distributed computing environment, in these distributed computing environments,
By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module can
To be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely this specification embodiments, are not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.