CN109905765A - Video retroactive method and device - Google Patents

Video retroactive method and device Download PDF

Info

Publication number
CN109905765A
CN109905765A CN201711310202.6A CN201711310202A CN109905765A CN 109905765 A CN109905765 A CN 109905765A CN 201711310202 A CN201711310202 A CN 201711310202A CN 109905765 A CN109905765 A CN 109905765A
Authority
CN
China
Prior art keywords
key frame
video
secret
pixel set
frame
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.)
Granted
Application number
CN201711310202.6A
Other languages
Chinese (zh)
Other versions
CN109905765B (en
Inventor
吴朝晖
程昌辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201711310202.6A priority Critical patent/CN109905765B/en
Publication of CN109905765A publication Critical patent/CN109905765A/en
Application granted granted Critical
Publication of CN109905765B publication Critical patent/CN109905765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provides a kind of video retroactive method and device.The method is applied to electronic equipment, which comprises obtains video of divulging a secret, wherein the variable quantity of the pixel set of the video of divulging a secret is related with user information of divulging a secret to the relationship of time;Original video corresponding with the video of divulging a secret is obtained to obtain key frame information;Multipair key frame is obtained from the video of divulging a secret according to the key frame information, and time difference corresponding with each pair of key frame is calculated;The user information of divulging a secret is obtained according to multiple time differences, realizes the retrospect to the video of divulging a secret.User information of divulging a secret can be obtained to corresponding time difference by obtaining each key frame in video of divulging a secret as a result,.

Description

Video retroactive method and device
Technical field
The present invention relates to fields of communication technology, in particular to a kind of video retroactive method and device.
Background technique
Direct video information of the image of video monitoring camera shooting as primary scene, has very high information valence Value cannot be issued arbitrarily to public sphere.However as behaviour such as the universal and cell-phone camera of smart phone, publication videos The simplicity of work, so that the phenomenon that video is divulged a secret by mobile phone photographed screen is extremely serious.
Generally video is traced using OSD denotation approach at present.However, being directed to this mode, blabber can have Meaning is covered or is avoided in plain text, to destroy video tracing information.If in the picture by plaintext load, while guaranteeing that size is sufficiently large To avoid covered or avoid in plain text, then daily monitoring user can be interfered to watch image.
Summary of the invention
In order to overcome above-mentioned deficiency in the prior art, technical problem to be solved by the invention is to provide a kind of videos to chase after It traces back method and device, when can not there is no OSD mark in video of divulging a secret, by obtaining in video of divulging a secret each key frame to right The time difference answered can be obtained user information of divulging a secret.
The embodiment of the present invention provides a kind of video retroactive method, is applied to electronic equipment, which comprises
Acquisition is divulged a secret video, wherein the variable quantity and the relationship of time of the pixel set of the video of divulging a secret and use of divulging a secret Family information is related;
Original video corresponding with the video of divulging a secret is obtained to obtain key frame information;
Multipair key frame is obtained from the video of divulging a secret according to the key frame information, and is calculated and each pair of key The corresponding time difference of frame;
The user information of divulging a secret is obtained according to multiple time differences, realizes the retrospect to the video of divulging a secret.
The embodiment of the present invention also provides a kind of video retrospective device, is applied to electronic equipment, and described device includes:
First obtains module, divulges a secret video for obtaining, wherein the variable quantity of the pixel set of the video of divulging a secret and when Between relationship it is related to user information of divulging a secret;
Second obtains module, for obtaining original video corresponding with the video of divulging a secret to obtain key frame information;
Computing module for obtaining multipair key frame from the video of divulging a secret according to the key frame information, and calculates Obtain time difference corresponding with each pair of key frame;
Processing module, for obtaining the user information of divulging a secret according to multiple time differences, realization is divulged a secret to described The retrospect of video.
In terms of existing technologies, the invention has the following advantages:
The embodiment of the present invention provides a kind of video retroactive method and device.The method is applied to electronic equipment.It obtains first Take divulge a secret video and original video corresponding with the video of divulging a secret, wherein the variable quantity of the pixel set of the video of divulging a secret Related with user information of divulging a secret to the relationship of time, the original video includes key frame information.And then according to the key frame Information obtains multipair key frame corresponding with the key frame information from the video of divulging a secret, and is calculated and each pair of key The corresponding time difference of frame.Finally multiple time differences are handled to obtain the user information of divulging a secret, are realized to institute State the retrospect for video of divulging a secret.Thus, it is possible to which by obtaining, each key frame is to corresponding time difference in video of divulging a secret, to obtain Must divulge a secret user information, avoid when not identified for the display of video retrospect in the video of divulging a secret that screen mode is divulged a secret by taking the photograph The case where cannot achieve video retrospect.
For enable invention above objects, features, and advantages be clearer and more comprehensible, present pre-ferred embodiments are cited below particularly, and Cooperate appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the block diagram of electronic equipment provided in an embodiment of the present invention.
Fig. 2 is one of the flow diagram of video retroactive method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram for the sub-step that step S230 includes in Fig. 2.
Fig. 4 is the flow diagram for the sub-step that step S240 includes in Fig. 2.
Fig. 5 is the two of the flow diagram of video retroactive method provided in an embodiment of the present invention.
Fig. 6 is the flow diagram for the sub-step that step S100 includes in Fig. 5.
Fig. 7 is the flow diagram for the sub-step that sub-step S120 includes in Fig. 6.
Fig. 8 is the flow diagram for the sub-step that sub-step S121 includes in Fig. 7.
Fig. 9 is the flow diagram for the sub-step that sub-step S130 includes in Fig. 6.
Figure 10 is the schematic diagram of time interval sequence provided in an embodiment of the present invention.
Figure 11 is one of the flow diagram of sub-step that sub-step S132 includes in Fig. 9.
Figure 12 is the two of the flow diagram for the sub-step that sub-step S132 includes in Fig. 9.
Figure 13 is sequence of frames of video schematic diagram before and after encryption provided in an embodiment of the present invention.
The block diagram of retrospective device when Figure 14 is provided in an embodiment of the present invention.
Figure 15 is the block diagram of encrypting module in Figure 14.
Icon: 100- electronic equipment;110- memory;120- storage control;130- processor;200- video retrospect dress It sets;210- encrypting module;211- acquisition of information submodule;212- original video acquisition submodule;213- encrypts submodule;220- First obtains module;230- second obtains module;240- computing module;250- processing module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
With reference to the accompanying drawing, it elaborates to some embodiments of the present invention.In the absence of conflict, following Feature in embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, Fig. 1 is the block diagram of electronic equipment 100 provided in an embodiment of the present invention.The electronic equipment 100 may be, but not limited to, smart phone, tablet computer, desktop computer etc..The electronic equipment 100 includes: memory 110, storage control 120, processor 130 and video retrospective device 200.
It is directly or indirectly electrically connected between the memory 110, storage control 120 and each element of processor 130, To realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal wire between each other It realizes and is electrically connected.Video retrospective device 200 is stored in memory 110, the video retrospective device 200 includes at least one The software function module that can be stored in the form of software or firmware (firmware) in the memory 110.The processor 130 software programs and module being stored in memory 110 by operation, such as the video retrospective device in the embodiment of the present invention 200, thereby executing various function application and data processing, i.e. video retroactive method in the realization embodiment of the present invention.
Wherein, the memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 110 is for storing program, the processor 130 after receiving and executing instruction, Execute described program.The processor 130 and other possible components can control the access of memory 110 in the storage It is carried out under the control of device 120.
The processor 130 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 130 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..It can also be digital signal processor (DSP), specific integrated circuit (ASIC), scene Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is that microprocessor or the processor are also possible to any conventional processor etc..
It is appreciated that structure shown in FIG. 1 is only to illustrate, electronic equipment 100 may also include it is more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its Combination is realized.
Referring to figure 2., Fig. 2 is one of the flow diagram of video retroactive method provided in an embodiment of the present invention.The side Method is applied to the electronic equipment 100.The detailed process of video retroactive method is described in detail below.
Step S210 obtains video of divulging a secret.
In the present embodiment, the user that divulges a secret can shoot a video in a manner of screen to take the photograph by smart phone, tablet computer etc. Shooting video is obtained, and then is divulged a secret.After discovery video is got compromised, the shooting video is handled to obtain view of divulging a secret Frequency Videophone.Wherein, the processing may include, but be not limited to, and deduct divulge a secret video and video correction from shooting video Deng.Video of divulging a secret is deducted to refer to environmental factor removing unrelated with the video of divulging a secret in the shooting video.
In the present embodiment, the variable quantity of the pixel set of the video of divulging a secret and the relationship of time and user information of divulging a secret It is related.
Step S220 obtains original video corresponding with the video of divulging a secret to obtain key frame information.
In the present embodiment, it divulges a secret described in the acquisition after video, based on video acquisition and the video of divulging a secret of divulging a secret Corresponding original video.Wherein, the original video may include digital video code stream and key frame information etc..The video counts Character code stream same camera corresponding with the video of divulging a secret.
Step S230 obtains multipair key frame from the video of divulging a secret according to the key frame information, and is calculated Time difference corresponding with each pair of key frame.
In the present embodiment, the key frame information includes the first object pixel set of each pair of key frame, the second target Pixel set and corresponding object variations amount.Wherein, each pair of key frame includes two frame key frames: the first key frame and the second key Frame.The first object pixel set is the selected pixels set in first key frame, second object pixel Collection is combined into the second key frame pixel set corresponding with the first object pixel set.The object variations amount is described the One object pixel set is by first key frame to the variable quantity of second key frame.
Referring to figure 3., the flow diagram for the sub-step that step S230 includes in Fig. 3 Fig. 2.Step S230 can wrap enclosed tool Step S231, sub-step S232 and sub-step S233.
Sub-step S231 is obtained from multiple image corresponding with the video of divulging a secret according to the first object pixel set Take the first key frame.
In the present embodiment, by the video Video that divulges a secretphoneIt is converted into image sequence pFrame frame by framex, Jin Ergen According to the first object pixel set from pFramexThe first key frame of middle acquisition.
Wherein, the first object pixel set can only include a pixel sub-set, also may include multiple pixels Subclass.When the first object pixel set includes multiple pixel sub-sets, can more rapidly, accurately from pFramex The first key frame of middle acquisition.
Sub-step S232, according to first key frame, object variations amount, first object pixel set and the second target picture Element set obtains the second key frame from multiple image corresponding with the video of divulging a secret.
In the present embodiment, it is based on pFramexDescribed in multiframe consecutive image after the first key frame, calculate described first Object pixel is integrated into the variable quantity in the multiframe consecutive image.In the variable quantity and the object pixel set being calculated When closest or identical, using the corresponding frame image of the variable quantity as the second key frame.
It, can also be second according to the second object pixel set assisted lookup in the embodiment of the present embodiment Key frame.
Sub-step S233 calculates the time difference between first key frame and the second key frame, obtains and key frame To corresponding time difference.
In the present embodiment, multipair key frame successively can be obtained from the video of divulging a secret in the manner described above, in turn The multiple and key frame being sequentially arranged is obtained to corresponding time difference.For example, video of divulging a secret includes in chronological order Video-frequency band 1, the video-frequency band 2 of arrangement then include first pair of key frame in video-frequency band 1, then include second pair of key in video-frequency band 2 Frame can obtain and the corresponding time difference of first pair of key frame and time difference corresponding with second pair of key frame in a manner described Value.Wherein, video-frequency band 1 and video-frequency band 2 can be spaced an at least frame image, can also be with direct neighbor.
Step S240 obtains the user information of divulging a secret according to multiple time differences, realizes to the video of divulging a secret Retrospect.
Referring to figure 4., Fig. 4 is the flow diagram for the sub-step that step S240 includes in Fig. 2.Step S240 may include Sub-step S241 and sub-step S242.
Sub-step S241 filters out minimum time difference in multiple time differences by comparing.
Sub-step S242 handles to obtain user's letter of divulging a secret according to the minimum time difference and multiple time differences Breath.
In the present embodiment, by the minimum time value in multiple time differences and each time difference in multiple time differences Value is compared, and then carries out the operation such as being rounded, the user information of divulging a secret indicated with acquisition with numeric form.
For example, the multiple time differences obtained in the manner described above are as follows: pT1、pT2、pT2、pT3、pT4、pT5, multiple times Minimum time difference is pT in differencemin.According to formulaThe every place value for obtaining user information of divulging a secret, into And obtain user information of divulging a secret: IDuser=Value1,Value2,Value3,Value4,Value5
Since the variable quantity of the pixel set of the video of divulging a secret is related with user information of divulging a secret to the relationship of time, because This still can basis even if video is leaked out in a manner of taking the photograph screen, and does not have the OSD of plaintext or cipher text in screen The time difference of key frame pair obtains user information of divulging a secret, to realize that video traces.
Referring to figure 5., Fig. 5 is the two of the flow diagram of video retroactive method provided in an embodiment of the present invention.In step Before S210, the method can also include step S100.
User information is added in the original video by step S100, to obtain encrypted video.
Fig. 6 is please referred to, Fig. 6 is the flow diagram for the sub-step that step S100 includes in Fig. 5.Step S100 may include Sub-step S110, sub-step S120 and sub-step S130.
Sub-step S110 receives the video call instruction of input, obtains user's letter corresponding with the video call instruction Breath.
In the present embodiment, it when receiving the video call instruction of input, obtains corresponding with the video call instruction User information.Wherein, the user information can be User ID or other can be used to indicate that the identification information of user identity.
Sub-step S120 obtains the original video.
Fig. 7 is please referred to, Fig. 7 is the flow diagram for the sub-step that sub-step S120 includes in Fig. 6.Sub-step S120 can be with Including sub-step S121 and sub-step S122.
Sub-step S121, obtains corresponding with video call instruction digital video code stream, and from the digital video Successively selection obtains multipair key frame in code stream, and obtains key frame information corresponding with the multipair key frame.
In the present embodiment, after obtaining digital video code stream corresponding with the video call instruction, institute can be based on State the key frame pair that user information obtains respective numbers from the digital video code stream, with obtain include digital video code stream and The original video of key frame information.Wherein, selection obtains multipair key frame sequentially in time.
Fig. 8 is please referred to, Fig. 8 is the flow diagram for the sub-step that sub-step S121 includes in Fig. 7.Sub-step S121 can be with Including sub-step S1211 and sub-step S1212.
Sub-step S1211 selects a frame image as the first key frame from the digital video code stream, and from described Selection obtains first object pixel set in one key frame.
In the present embodiment, arbitrarily select a frame image as from the multiple image of the digital video code stream first First key frame of a pair of of key frame, and from described first in a manner of specific image, particular color pixel set, fixed position etc. Selected pixels set is as the first object pixel set in key frame.
Sub-step S1212 obtains the second key frame and with described first from the multiple image after first key frame The corresponding object variations amount of object pixel set and the second object pixel set.
In the embodiment of the present embodiment, based on the continuous multiple frames image after first key frame, described the is calculated One object pixel is integrated into the variable quantity in continuous multiple frames image in every frame image.Wherein, the variable quantity can be shape and change Change, change in location, color change etc..
When the variable quantity meets default variable quantity threshold value, the variable quantity of the default variable quantity threshold value will be met As the object variations amount, and will frame image corresponding with the object variations amount as second key frame, and by institute Pixel set corresponding with the first object pixel set is stated in the second key frame as the second object pixel set.By making The object variations amount meets default variable quantity threshold value, can be in order to obtaining second key frame in video of divulging a secret.
In the another embodiment of the present embodiment, since variable quantity can be can be set by accumulated time One preset interval time.According to it is corresponding with first key frame at the time of and the preset interval time obtain a moment value, And then will frame image corresponding with the moment value as the second key frame, and obtain the second object pixel set and target and become Change amount.Wherein, the preset interval time can be set according to the actual situation, such as 1 second.
Next based on the multiple image after first pair of key frame, repeating sub-step S1211 and S1212 can be from institute It states and successively obtains multipair key frame in digital video code stream.
The key frame information is added in the digital video code stream and obtains the original video by sub-step S122.
In the embodiment of the present embodiment, it can also be added to each pair of key frame as the key frame information together In the digital video code stream.
In the embodiment of the present embodiment, the key frame information that the electronic equipment 100 will acquire is added to institute It states in digital video code stream, obtains the original video, and the original video is stored, to divulge a secret in generation video When retrospect video when use.
In the another embodiment of the present embodiment, the electronic equipment 100 is according to the video call instruction and use Family information sends video call request to camera.Other between camera or the electronic equipment 100 and the camera Equipment (for example, medium distribution device) obtains the key frame information, and the key frame information is added to the video counts To obtain the original video in character code stream, and the original video is sent to the electronic equipment 100.
Sub-step S130 changes the variable quantity of pixel set and time in the original video according to the user information Relationship, to obtain encrypted video.
Fig. 9 is please referred to, Fig. 9 is the flow diagram for the sub-step that sub-step S130 includes in Fig. 6.Sub-step S130 can be with Including sub-step S131 and sub-step S132.
Sub-step S131, based on time difference of any pair of key frame in the original video in multipair key frame by institute It states user information and is converted to time interval sequence.
In the present embodiment, the user information is indicated with numerical value, and converts corresponding time interval for each numerical value Value, to obtain time interval sequence.Wherein, the proportionate relationship of each time interval value and the user in the time interval sequence Information is related.
Figure 10 is please referred to, Figure 10 is the schematic diagram of time interval sequence provided in an embodiment of the present invention.For example, using numerical tabular The user information ID shownuserIt is 34212, Value1=3, Value2=4, Value3=2, Value4=1, Value5=2.According to Time difference Δ t and formula T of any pair of key frame in the original video in the multipair key frame of selectionn=Valuen× (k × Δ t) obtains multiple time interval values: T1、T2、T3、T4、T5, and then obtain time interval sequence shown in Figure 10.Wherein, scheme K=1/2 in time interval sequence shown in 10.K indicates that minimum time interval unit accounts for the ratio of Δ t, and numerical value can arbitrarily be set.
Sub-step S132, successively according to each time interval value change in the original video variable quantity of pixel set and when Between relationship, to obtain encrypted video.
In the present embodiment, successively become according to the target that each time interval value changes each pair of key frame in the original video The corresponding relationship of change amount and time encrypts the original video according to the user information with realizing.Below with basis First bit value of the user information change in the original video for the variable quantity of pixel set and the relationship of time into Row illustrates.
Figure 11 is please referred to, Figure 11 is one of the flow diagram of sub-step that sub-step S132 includes in Fig. 9.Sub-step S132 may include sub-step S1321, sub-step S1322, sub-step S1323 and sub-step S1324.
Sub-step S1321 calculates the frame number in time interval value.
In the present embodiment, according to frame per second and time interval value T1Obtain time interval value T1Interior frame number F.Wherein, frame Rate indicates the frame number of broadcasting per second.For example, frame per second is 24 frames/second, the frame number F in the corresponding time interval value is 24T1
Sub-step S1322, it is all between first key frame and the second key frame from being obtained in the original video Frame image, and grabbed frame by frame and the first object based on all frame images between first key frame and the second key frame The corresponding multiple pixel sets of pixel set.
Sub-step S1323, according in object variations amount corresponding with the first object pixel set and time interval Frame number carries out interpolation to multiple pixel sets of crawl, obtains encryption set image frame sequence.
Encryption set image frame sequence is blended into first key frame to described the by sub-step S1324 one by one On all frame images between two key frames.
In the present embodiment, the first key frame and the second key frame based on first pair of key frame, from the original video Image in obtain by first key frame to second key frame all frame images.Described crucial by described first Frame grabs multiple pixels corresponding with the first object pixel set into all frame images of second key frame frame by frame Gather (including first object pixel set and second object pixel set).Become according to the multiple pixel set, the target Change amount and time interval value T corresponding with first pair of key frame1Interior frame number F carries out interpolation, obtains encryption integrated images Frame sequence.Image frame sequence is gathered by the encryption and by all frame images of first key frame to second key frame Synthesis obtains encrypted video section corresponding with first pair of key frame, that is, corresponding with first bit value of user information Encrypted video section.
Wherein, when grabbing multiple pixel sets corresponding with the first object pixel set frame by frame, if described first Object pixel set includes multiple pixel sub-sets, then can only grab collection corresponding with one of pixel sub-set frame by frame It closes.
In the embodiment of the present embodiment, the method that asymptotics can be used carries out interpolation, obtains encryption set figure As frame sequence.Wherein, the method may be, but not limited to, quadratic linear interpolation algorithm, bicubic interpolation etc..
Next for the image after first pair of key frame in the original video, repeating above-mentioned interpolation procedure be can be obtained Encrypted video corresponding with the user information bits per inch value.
Aforesaid way changes the time OSD of original video, jumps the number of seconds of the time OSD in the image shown It is not correct time number of seconds jump.By the relationship between OSD jump and original image frame, the time difference is calculated.Pass through one The relativity in user information between each bit value is calculated in the time difference of sequence, and then obtains user information.
In the embodiment of the present embodiment, interpolation can also be carried out for entire frame image.
Figure 12 is please referred to, Figure 12 is the two of the flow diagram for the sub-step that sub-step S132 includes in Fig. 9.Sub-step S132 may include sub-step 1321, sub-step 1326 and sub-step 1327.
Sub-step 1321 calculates the frame number in time interval value.
Sub-step 1326, from all frames obtained in the original video between first key frame and the second key frame Image.
Sub-step 1327, according to the frame in object variations amount corresponding with the first object pixel set and time interval It is several that interpolation is carried out by first key frame to all frame images between second key frame in the original video.
In the present embodiment, according to frame per second and time interval value T1Obtain time interval value T1Interior frame number F.Based on The first key frame and the second key frame of a pair of of key frame are obtained from the image of the original video by first key frame To all frame images of second key frame.And then using for by the way of entire frame image interpolation, become according to the target Change amount, by first key frame to second key frame all frame images and it is corresponding with first pair of key frame when Between spacing value T1Interior frame number F carries out interpolation, obtains encrypted video section corresponding with first pair of key frame, that is, with institute State the corresponding encrypted video section of the first bit value of user information.
By changing the specific pixel set in video characteristically (shape, color etc.) between variable quantity and time User information is attached in this variation relation by relationship.Still retain user information after video screen shot as a result, thus real Existing video retrospect.Wherein, the change of this relationship can be the interpolation based on whole frame, change the sequence of frames of video of original video; It is also possible to be attached in the sequence of frames of video of original video after one of pixel set is carried out interpolation change.
Figure 13 is please referred to, Figure 13 is sequence of frames of video schematic diagram before and after encryption provided in an embodiment of the present invention.In Figure 13, The first object pixel set includes pa0And pb0.In the sequence of frames of video of the original video, the first key frame Frame0 With the second key frame FrameΔtBetween time interval be Δ t, be played to the second key frame FrameΔtWhen, pa0Variable quantity reach To Δ pa, become paΔt, pb0Variable quantity reaches Δ pb, become pbΔt
In the sequence of frames of video of the corresponding encrypted video, it is being played to and the first key frame Frame0Distance The frame Frame of Δ tΔtWhen, pb0Variable quantity reaches Δ pb, become pbΔt, and pa0Variable quantity is not up to Δ pa, reach t0+T1Moment When, pa0Variable quantity reaches Δ pa, become paΔt.The time difference of first key frame and the second key frame becomes T from Δ t1, and add The corresponding time difference of each pair of key frame is related to user information in close video, therefore can be when video is got compromised, according to view The corresponding time difference of each pair of key frame obtains user information in frequency, realizes video retrospect, while will not interfere daily monitoring User watches video.
Figure 14 is please referred to, Figure 14 is the block diagram of video retrospective device 200 provided in an embodiment of the present invention.The view Frequency retrospective device 200 is applied to the electronic equipment 100.The video retrospective device 200 may include the first acquisition module 220, second module 230, computing module 240 and processing module 250 are obtained.
First obtains module 220, for obtaining video of divulging a secret.
Wherein, the variable quantity of the pixel set of the video of divulging a secret is related with user information of divulging a secret to the relationship of time.
In the present embodiment, the first acquisition module 220 is used to execute the step S210 in Fig. 2, about described first The specific descriptions for obtaining module 220 are referred to the description of step S210 in Fig. 2.
Second obtains module 230, for obtaining original video corresponding with the video of divulging a secret to obtain key frame information.
In the present embodiment, the second acquisition module 230 is used to execute the step S220 in Fig. 2, about described second The specific descriptions for obtaining module 230 are referred to the description of step S220 in Fig. 2.
Computing module 240 for obtaining multipair key frame from the video of divulging a secret according to the key frame information, and is counted Calculation obtains time difference corresponding with each pair of key frame.
Each pair of key frame includes two frame key frames, and the key frame information includes the first object set of pixels of each pair of key frame It closes, the second object pixel set and corresponding object variations amount, the computing module 240 is according to the key frame information from described It divulges a secret and obtains multipair key frame in video, and the mode that time difference corresponding with each pair of key frame is calculated includes:
The first key is obtained from multiple image corresponding with the video of divulging a secret according to the first object pixel set Frame;
According to first key frame, object variations amount, first object pixel set and the second object pixel set from The second key frame is obtained in the corresponding multiple image of the video of divulging a secret;
The time difference between first key frame and the second key frame is calculated, is obtained with key frame to the corresponding time Difference.
In the present embodiment, the computing module 240 is used to execute the step S230 in Fig. 2, about the computing module 240 specific descriptions are referred to the description of step S230 in Fig. 2.
Processing module 250, for obtaining the user information of divulging a secret according to multiple time differences, realization is let out to described The retrospect of close video.
In the present embodiment, the processing module 250 is used to execute the step S240 in Fig. 2, about the processing module 250 specific descriptions are referred to the description of step S240 in Fig. 2.
Referring once again to Figure 14, the video retrospective device 200 can also include encrypting module 210.The encrypting module 210 for user information to be added in the original video, to obtain encrypted video.
Figure 15 is please referred to, Figure 15 is the block diagram of encrypting module 210 in Figure 14.The encrypting module 210 can wrap Include acquisition of information submodule 211, original video acquisition submodule 212 and encryption submodule 213.
Acquisition of information submodule 211, video call instruction for receiving input obtain and the video call instruction pair The user information answered.
Original video acquisition submodule 212, for obtaining the original video.
Submodule 213 is encrypted, for changing the variable quantity of pixel set in the original video according to the user information With the relationship of time, to obtain encrypted video.
The encryption submodule 213 according to the user information change in the original video variable quantity of pixel set with The relationship of time includes: in a manner of obtaining encrypted video
Based on time difference of any pair of key frame in the original video in multipair key frame by the user information Be converted to time interval sequence, wherein the proportionate relationship of each time interval value and the user believe in the time interval sequence Manner of breathing closes;
Successively change the relationship of the variable quantity of pixel set and time in the original video according to each time interval value, with Obtain encrypted video.
In the present embodiment, the encrypting module 210 is used to execute the step S100 in Fig. 5, about the encrypting module 210 specific descriptions are referred to the description of step S100 in Fig. 5.
In conclusion the present invention provides a kind of video retroactive method and device.The method is applied to electronic equipment.First Acquisition is divulged a secret video and original video corresponding with the video of divulging a secret, wherein the variation of the pixel set of the video of divulging a secret Amount is related with user information of divulging a secret to the relationship of time, and the original video includes key frame information.And then according to the key Frame information obtains multipair key frame corresponding with the key frame information from the video of divulging a secret, and is calculated and each pair of pass The corresponding time difference of key frame.Finally multiple time differences are handled to obtain the user information of divulging a secret, realization pair The retrospect of the video of divulging a secret.Thus, it is possible to by obtaining each key frame of divulging a secret in video to corresponding time difference, thus Acquisition is divulged a secret user information, avoids identifying by taking the photograph the display in the video of divulging a secret that screen mode is divulged a secret not for video retrospect When cannot achieve video retrospect the case where.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (14)

1. a kind of video retroactive method, which is characterized in that be applied to electronic equipment, which comprises
Acquisition is divulged a secret video, wherein the variable quantity and the relationship of time of the pixel set of the video of divulging a secret and user's letter of divulging a secret Manner of breathing closes;
Original video corresponding with the video of divulging a secret is obtained to obtain key frame information;
Multipair key frame is obtained from the video of divulging a secret according to the key frame information, and is calculated and each pair of key frame pair The time difference answered;
The user information of divulging a secret is obtained according to multiple time differences, realizes the retrospect to the video of divulging a secret.
2. the method according to claim 1, wherein the key frame information includes the first mesh of each pair of key frame Mark pixel set, the second object pixel set and corresponding object variations amount, each pair of key frame includes two frame key frames, and described When obtaining multipair key frame from the video of divulging a secret according to the key frame information, and being calculated corresponding with each pair of key frame Between difference the step of include:
The first key frame is obtained from multiple image corresponding with the video of divulging a secret according to the first object pixel set;
According to first key frame, object variations amount, first object pixel set and the second object pixel set from it is described The second key frame is obtained in the corresponding multiple image of video of divulging a secret;
The time difference between first key frame and the second key frame is calculated, is obtained with key frame to the corresponding time difference Value.
3. the method according to claim 1, wherein described obtain described divulge a secret according to multiple time differences The step of user information includes:
Minimum time difference in multiple time differences is filtered out by comparing;
It is handled to obtain the user information of divulging a secret according to the minimum time difference and multiple time differences.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
User information is added in the original video, to obtain encrypted video;
Described that user information is added in the original video, to obtain encrypted video the step of includes:
The video call instruction of input is received, user information corresponding with the video call instruction is obtained;
Obtain the original video;
Change the relationship of the variable quantity of pixel set and time in the original video, according to the user information to be encrypted Video.
5. according to the method described in claim 4, it is characterized in that, the step of acquisition original video include:
Digital video code stream corresponding with the video call instruction is obtained, and is successively selected from the digital video code stream To multipair key frame, and obtain key frame information corresponding with the multipair key frame, wherein key frame is to quantity and the use Family information is related;
The key frame information is added in the digital video code stream and obtains the original video.
6. according to the method described in claim 5, it is characterized in that, described successively select to obtain from the digital video code stream Multipair key frame, and the step of obtaining key frame information corresponding with the multipair key frame includes:
It selects a frame image as the first key frame from the digital video code stream, and is selected from first key frame To first object pixel set;
The second key frame and corresponding with the first object pixel set is obtained from the multiple image after first key frame Object variations amount and the second object pixel set.
7. according to the method described in claim 6, it is characterized in that, being obtained in the multiple image from after first key frame The step of taking the second key frame and object variations amount corresponding with the first object pixel set and the second object pixel set Include:
Based on the continuous multiple frames image after first key frame, the first object pixel set is calculated in continuous multiple frames image In variable quantity in every frame image;
When the variable quantity meets default variable quantity threshold value, will meet the variable quantity of the default variable quantity threshold value as The object variations amount, and will frame image corresponding with the object variations amount as second key frame, and by described Pixel set corresponding with the first object pixel set is as the second object pixel set in two key frames.
8. according to the method described in claim 5, it is characterized in that, described change the original video according to the user information The variable quantity of middle pixel set and the relationship of time, to obtain encrypted video the step of include:
The user information is converted based on time difference of any pair of key frame in the original video in multipair key frame For time interval sequence, wherein the proportionate relationship of each time interval value and the user information phase in the time interval sequence It closes;
Change the relationship of the variable quantity of pixel set and time in the original video, according to each time interval value successively to obtain Encrypted video.
9. according to the method described in claim 8, it is characterized in that, described change the original video according to each time interval value The step of variable quantity and the relationship of time of middle pixel set includes:
Calculate the frame number in time interval value;
From all frame images obtained in the original video between first key frame and the second key frame, and based on described All frame images between first key frame and the second key frame grab corresponding more with the first object pixel set frame by frame A pixel set;
According to the frame number in object variations amount corresponding with the first object pixel set and time interval to the multiple of crawl Pixel set carries out interpolation, obtains encryption set image frame sequence;
Encryption set image frame sequence is blended into first key frame to the institute between second key frame one by one Have on frame image.
10. according to the method described in claim 8, it is characterized in that, described change the original view according to each time interval value The step of relationship of the variable quantity of pixel set and time, includes: in frequency
Calculate the frame number in time interval value;
From all frame images obtained in the original video between first key frame and the second key frame;
According to the frame number in object variations amount corresponding with the first object pixel set and time interval to the original view Interpolation is carried out by first key frame to all frame images between second key frame in frequency.
11. a kind of video retrospective device, which is characterized in that be applied to electronic equipment, described device includes:
First obtains module, divulges a secret video for obtaining, wherein the variable quantity of the pixel set of the video of divulging a secret and time Relationship is related to user information of divulging a secret;
Second obtains module, for obtaining original video corresponding with the video of divulging a secret to obtain key frame information;
Computing module for obtaining multipair key frame from the video of divulging a secret according to the key frame information, and is calculated Time difference corresponding with each pair of key frame;
Processing module is realized for obtaining the user information of divulging a secret according to multiple time differences to the video of divulging a secret Retrospect.
12. device according to claim 11, which is characterized in that each pair of key frame includes two frame key frames, the key Frame information includes the first object pixel set of each pair of key frame, the second object pixel set and corresponding object variations amount, institute It states computing module and multipair key frame is obtained from the video of divulging a secret according to the key frame information, and be calculated and each pair of pass The mode of the corresponding time difference of key frame includes:
The first key frame is obtained from multiple image corresponding with the video of divulging a secret according to the first object pixel set;
According to first key frame, object variations amount, first object pixel set and the second object pixel set from it is described The second key frame is obtained in the corresponding multiple image of video of divulging a secret;
The time difference between first key frame and the second key frame is calculated, is obtained with key frame to the corresponding time difference Value.
13. device according to claim 12, which is characterized in that described device further include:
Encrypting module, for user information to be added in the original video, to obtain encrypted video;
The encrypting module includes:
Acquisition of information submodule, video call instruction for receiving input obtain use corresponding with the video call instruction Family information;
Original video acquisition submodule, for obtaining the original video;
Submodule is encrypted, for changing the variable quantity of pixel set and time in the original video according to the user information Relationship, to obtain encrypted video.
14. device according to claim 13, which is characterized in that the encryption submodule changes according to the user information The relationship of the variable quantity of pixel set and time in the original video includes: in a manner of obtaining encrypted video
The user information is converted based on time difference of any pair of key frame in the original video in multipair key frame For time interval sequence, wherein the proportionate relationship of each time interval value and the user information phase in the time interval sequence It closes;
Change the relationship of the variable quantity of pixel set and time in the original video, according to each time interval value successively to obtain Encrypted video.
CN201711310202.6A 2017-12-11 2017-12-11 Video tracing method and device Active CN109905765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711310202.6A CN109905765B (en) 2017-12-11 2017-12-11 Video tracing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711310202.6A CN109905765B (en) 2017-12-11 2017-12-11 Video tracing method and device

Publications (2)

Publication Number Publication Date
CN109905765A true CN109905765A (en) 2019-06-18
CN109905765B CN109905765B (en) 2021-09-28

Family

ID=66942555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711310202.6A Active CN109905765B (en) 2017-12-11 2017-12-11 Video tracing method and device

Country Status (1)

Country Link
CN (1) CN109905765B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014609A (en) * 2019-12-19 2021-06-22 浙江宇视科技有限公司 Multimedia file processing and tracing method, device, equipment and medium
CN113076547A (en) * 2021-03-31 2021-07-06 重庆风云际会智慧科技有限公司 Illegal evidence tracing system based on block chain

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090073311A1 (en) * 2005-04-28 2009-03-19 Koichi Hamada Frame rate conversion device and video display device
CN102340668A (en) * 2011-09-30 2012-02-01 上海交通大学 Reconfigurable technology-based implementation method of MPEG2 (Moving Pictures Experts Group 2) luminance interpolation
CN102714744A (en) * 2010-11-10 2012-10-03 索尼公司 Image data transmission device, image data transmission method, image data reception device, and image data reception method
US20140259056A1 (en) * 2013-03-05 2014-09-11 Brandon Grusd Systems and methods for providing user interactions with media
CN104239420A (en) * 2014-10-20 2014-12-24 北京畅景立达软件技术有限公司 Video fingerprinting-based video similarity matching method
US20160366463A1 (en) * 2014-02-26 2016-12-15 Tencent Technology (Shenzhen) Company Limited Information pushing method, terminal and server
CN106982355A (en) * 2017-04-06 2017-07-25 浙江宇视科技有限公司 The video monitoring system and anti-leak server of a kind of anti-image leakage
CN107027055A (en) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 A kind of video based on digital watermark is traced to the source and encryption method
CN107133906A (en) * 2017-04-28 2017-09-05 安徽四创电子股份有限公司 A kind of video source tracing method based on digital watermark

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090073311A1 (en) * 2005-04-28 2009-03-19 Koichi Hamada Frame rate conversion device and video display device
CN102714744A (en) * 2010-11-10 2012-10-03 索尼公司 Image data transmission device, image data transmission method, image data reception device, and image data reception method
CN102340668A (en) * 2011-09-30 2012-02-01 上海交通大学 Reconfigurable technology-based implementation method of MPEG2 (Moving Pictures Experts Group 2) luminance interpolation
US20140259056A1 (en) * 2013-03-05 2014-09-11 Brandon Grusd Systems and methods for providing user interactions with media
US20160366463A1 (en) * 2014-02-26 2016-12-15 Tencent Technology (Shenzhen) Company Limited Information pushing method, terminal and server
CN104239420A (en) * 2014-10-20 2014-12-24 北京畅景立达软件技术有限公司 Video fingerprinting-based video similarity matching method
CN106982355A (en) * 2017-04-06 2017-07-25 浙江宇视科技有限公司 The video monitoring system and anti-leak server of a kind of anti-image leakage
CN107027055A (en) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 A kind of video based on digital watermark is traced to the source and encryption method
CN107133906A (en) * 2017-04-28 2017-09-05 安徽四创电子股份有限公司 A kind of video source tracing method based on digital watermark

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014609A (en) * 2019-12-19 2021-06-22 浙江宇视科技有限公司 Multimedia file processing and tracing method, device, equipment and medium
CN113014609B (en) * 2019-12-19 2023-03-24 浙江宇视科技有限公司 Multimedia file processing and tracing method, device, equipment and medium
CN113076547A (en) * 2021-03-31 2021-07-06 重庆风云际会智慧科技有限公司 Illegal evidence tracing system based on block chain

Also Published As

Publication number Publication date
CN109905765B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
US8396316B2 (en) Method and apparatus for processing image
CN102572265B (en) The auto-focusing with the image statistics data of rough and meticulous auto-focusing mark is used to control
CN111383186B (en) Image processing method and device and terminal equipment
CN105207772B (en) It safely exchanges the encryption method of message and realizes the equipment and system of this method
US10306210B2 (en) Image processing apparatus and image capturing apparatus
CN105763762B (en) A kind of image encryption and the method and apparatus of decryption
CN112100679B (en) Data processing method and device based on privacy protection and server
CN108600783B (en) Frame rate adjusting method and device and terminal equipment
CN112035320B (en) Service monitoring method and device, electronic equipment and readable storage medium
CN112040145B (en) Image processing method and device and electronic equipment
CN105049679A (en) Image processing device and image processing method
CN109902506A (en) A kind of local difference private data sharing method and system of more privacy budgets
CN109905765A (en) Video retroactive method and device
CN113168669A (en) Image processing method and device, electronic equipment and readable storage medium
CN108600644B (en) Photographing method and device and wearable device
CN105005599A (en) Photograph sharing method and mobile terminal
CA2566281A1 (en) Apparatus, system, and method for protecting content using fingerprinting and real-time evidence gathering
CN111491088B (en) Security camera, image encryption method and device and electronic equipment
CN112115811A (en) Image processing method and device based on privacy protection and electronic equipment
CN110689565A (en) Depth map determination method and device and electronic equipment
CN109145987A (en) model generating method and device
CN107786857B (en) A kind of image restoring method and device
CN111026708B (en) Thermal imager image file storage method, device, equipment and storage medium
CN107733874A (en) Information processing method, device, computer equipment and storage medium
CN116756750A (en) Medical sensitive data acquisition desensitization method

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
GR01 Patent grant
GR01 Patent grant