CN110149521A - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN110149521A
CN110149521A CN201910279484.0A CN201910279484A CN110149521A CN 110149521 A CN110149521 A CN 110149521A CN 201910279484 A CN201910279484 A CN 201910279484A CN 110149521 A CN110149521 A CN 110149521A
Authority
CN
China
Prior art keywords
frame
macro block
encrypted
image
encryption
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
CN201910279484.0A
Other languages
Chinese (zh)
Other versions
CN110149521B (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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202210281222.XA priority Critical patent/CN114640855A/en
Priority to CN201910279484.0A priority patent/CN110149521B/en
Publication of CN110149521A publication Critical patent/CN110149521A/en
Application granted granted Critical
Publication of CN110149521B publication Critical patent/CN110149521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure provides a kind of data processing method and system, is related to electronic information technical field, is able to solve data encryption, the big problem of resource consumption in decrypting process.The specific technical proposal is: data processing method, is applied to data encryption device, by obtaining image frame sequence, and at least one I frame in described image frame sequence is found;According to predetermined encryption algorithm, at least one described I frame is encrypted, and according to other frame images of unencryption in described at least one target frame image and described image frame sequence encrypted, generates encrypted image frame sequence.The disclosure is when encrypting image frame sequence, it is to be encrypted according to the content of frame image into selective row, to, reduce the data processing resources consumption of data encryption equipment, especially in real-time Transmission image frame sequence, the reduction of encryption data amount can effectively reduce transmission delay, improve the display effect of real-time Transmission.The disclosure is for data encryption, decryption.

Description

Data processing method and system
Technical field
This disclosure relates to electronic information technical field more particularly to data processing method and system.
Background technique
In order to guarantee the safety of data, can be transmitted by the way of encryption in data processing.
In the prior art, Data Encryption Transmission scheme are as follows: after data processing system is to every a source data encryption, lead to The transmitting terminal for crossing data encryption device is sent to the receiving end of data decryption apparatus, and data decryption apparatus is to the source data encrypted It is decrypted.In the process, because in data encryption device needing that each part of data are encrypted, and correspondingly, Data decryption apparatus is also required to be decrypted, therefore, data encryption device and data decryption apparatus to every a encrypted data Data processing resource consumption it is very big.For the application of transmission real-time pictures, both ends can be further increased The time delay of the resource consumption, increase image transmitting that are encrypted or decrypted.
Summary of the invention
The embodiment of the present disclosure provides a kind of data processing method and system, when being able to solve transmitting encrypted data caused by money The problem of source consumes.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of data processing method is provided, data encryption device is applied to, it should Method includes:
Image frame sequence is obtained, and finds at least one I frame in image frame sequence;
According to predetermined encryption algorithm, at least one I frame is encrypted;
According to other picture frames of unencryption at least one the I frame and image frame sequence encrypted, generation has encrypted figure As frame sequence.
In one embodiment, at least one I frame is encrypted according to predetermined encryption algorithm in this method, comprising:
It identifies at least one macro block in target frame image, according to recognition result, determines that at least one macro block is corresponding in I frame Type, type includes: literal type or image type;
According to the corresponding type of at least one macro block in I frame, at least one I frame is encrypted.
In one embodiment, at least one I frame is encrypted according to predetermined encryption algorithm in this method, comprising:
When the corresponding type of at least one macro block is image type in frame, it is corresponding to obtain at least one image type macro block Target pixel value;
According to the comparing result of at least one image type macro block corresponding target pixel value and presetted pixel value, determine extremely A few image type macro block is effective macro block or invalid macro block;
By encrypting at least one effective macro block and the corresponding macro block of literal type, not encrypting at least one invalid macro block, At least one I frame is encrypted.
In one embodiment, at least one I frame is encrypted according to predetermined encryption algorithm in this method, comprising:
Do not encrypt by the corresponding macro block of encryption literal type and the corresponding macro block of image type, at least one I frame into Row encryption.
In one embodiment, encrypted image frame sequence is generated in this method, comprising:
According to the corresponding Encryption Algorithm of at least one picture frame and encrypted state in image frame sequence, image frame sequence is generated In the corresponding encryption information of at least one picture frame;
After at least one picture frame in encryption information tag image frame sequence, encrypted image frame sequence is generated.
The data processing method that the embodiment of the present disclosure provides is applied to data encryption device, by obtaining image frame sequence, And find at least one I frame in image frame sequence;According to predetermined encryption algorithm, at least one I frame is encrypted, and root According to other frame images of unencryption at least one the target frame image and image frame sequence encrypted, encrypted image frame is generated Sequence.The disclosure is the content according to frame image into selective row encryption when encrypting to image frame sequence, thus, drop The data processing resources consumption of low data encryption equipment, especially in real-time Transmission image frame sequence, encryption data amount subtracts It is few, transmission delay can be effectively reduced, the display effect of real-time Transmission is improved.
According to the second aspect of an embodiment of the present disclosure, a kind of data processing method is provided, data decryption apparatus is applied to, it should Method includes:
Image frame sequence is obtained, and finds at least one I frame in image frame sequence;
According to default decipherment algorithm, at least one I frame is decrypted;
According to other frame images that do not decrypt at least one the I frame and image frame sequence decrypted, figure has been decrypted in generation As frame sequence.
In one embodiment, at least one I frame image is decrypted according to decipherment algorithm is preset in this method, is wrapped It includes:
The corresponding code flow structure information of at least one I frame is obtained, at least one in the code flow structure information, including I frame is macro The corresponding parameter information of block and encryption information;
According to code flow structure information, the corresponding decryption sequence of at least one macro block in I frame is determined.
In one embodiment, at least one I frame is decrypted according to decipherment algorithm is preset in this method, further includes:
According at least one corresponding encryption information of I frame, at least one encryption macro block at least one I frame is determined, encrypt Information is used to indicate whether at least one macro block at least one I frame is encrypted;
By decrypting remaining macro block not encrypted at least one encryption macro block and at least one non-decrypting I frame, at least One I frame is decrypted.
The data processing method that the embodiment of the present disclosure provides is applied to data decryption apparatus, by obtaining image frame sequence, And find at least one I frame in image frame sequence;According to default decipherment algorithm, at least one I frame is decrypted, and root According to other frame images that do not decrypt at least one the I frame and image frame sequence decrypted, decrypted image frame sequence is generated.This Be disclosed in when image frame sequence is decrypted, be decrypted according to the content of frame image into selective row, thus, reduce data Data processing resources consumption in decrypting process, especially in real-time Transmission image frame sequence, the reduction of ciphertext data amount can It is effective to reduce transmission delay, improve the display effect of real-time Transmission.
According to the third aspect of an embodiment of the present disclosure, a kind of data processing system is provided, which includes: data encryption dress It sets and data decryption apparatus;Data encryption device is connected with data decryption apparatus;
The data encryption device, for obtaining image frame sequence, and find in described image frame sequence at least one A I frame;
According to predetermined encryption algorithm, at least one described I frame is encrypted;
According to other picture frames of unencryption in described at least one I frame and described image frame sequence encrypted, generate Encrypted image frame sequence and to the data decryption apparatus send;
The data decryption apparatus for obtaining the encrypted image frame sequence, and is found in the target video At least one I frame;
According to default decipherment algorithm, at least one described I frame is decrypted;
According to other picture frames that do not decrypted in described at least one I frame and the target video decrypted, generate Decrypted image frame sequence.
In one embodiment, the data encryption device in the system, is also used to,
It identifies at least one macro block in the target frame image, according to the recognition result, determines in the I frame at least The corresponding type of one macro block, type include: literal type or image type;
According to the corresponding type of at least one macro block in I frame, at least one I frame is encrypted.
In one embodiment, the data decryption apparatus in the system, is also used to,
According at least one described corresponding encryption information of I frame, determine that at least one encryption is macro at least one described I frame Block, the encryption information are used to indicate whether at least one macro block at least one described I frame is encrypted;
It is macro by decrypting remaining that do not encrypt at least one described encryption macro block and at least one non-decrypting described I frame At least one described I frame is decrypted in block.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart for data processing method that the embodiment of the present disclosure provides;
Fig. 2 is a kind of flow chart 1 for data processing method that the embodiment of the present disclosure provides;
Fig. 3 is a kind of structure chart for data processing system that the embodiment of the present disclosure provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of data processing method, data encryption device is used for, as shown in Figure 1, at the data Reason method the following steps are included:
101, image frame sequence is obtained, and finds at least one I frame in image frame sequence.
In an alternative embodiment, image frame sequence can be generated according to target video data.
According to high compression digital video coding-coding device standard H.264/AVC (Advanced video Coding, advanced video Coding) image frame sequence is classified are as follows: encoding and decoding processing is carried out after I frame image data, P frame image data, B frame image data;I Frame refers to complete coded frame image, the as reference frame of coded treatment;What P frame referred to the I frame generation before referring to only includes poor The frame image of different code segment;B frame refers to the frame image of the frame coding of reference front and back.
Therefore, the disclosure first filters out at least one I frame in image frame sequence in encrypted image frame sequence, can Enough guarantee the quality of data processing, and can guarantee the safety of data.
102, according to predetermined encryption algorithm, at least one I frame is encrypted.
In an alternative embodiment, according to predetermined encryption algorithm, at least one I frame is encrypted, comprising:
It identifies at least one macro block in target frame image, according to recognition result, determines that corresponding in I frame at least one is macro Block is literal type macro block or image type macro block;
According to the corresponding type of at least one macro block in I frame, at least one I frame is encrypted.
In specific encryption, according to the corresponding type of at least one macro block in I frame, at least one I frame is carried out Encryption, including, according to predetermined encryption algorithm, to the corresponding macro block of at least one image type or at least one text in I frame The corresponding macro block of type is encrypted.Two specific embodiments are set forth below to illustrate respectively:
In the first example, macro by the corresponding whole macro blocks of encryption literal type and the corresponding part of encrypted image type Block encrypts at least one I frame, wherein the corresponding effective macro block of encrypted image type, comprising:
When the corresponding type of at least one macro block is image type in frame, the corresponding mesh of at least one image macro is obtained Mark pixel value;
According to the comparing result of at least one image macro corresponding target pixel value and presetted pixel value, at least one is determined A image macro is effective macro block or invalid macro block;
By encrypting at least one effective macro block, the corresponding macro block of literal type and not encrypting at least one invalid macro block, At least one I frame is encrypted.
It enumerates specific example elaboration herein, how macro block is divided into effective image macro block or invalid image macro: packet It includes:
Firstly, determining that presetted pixel value selects the pixel value of a target pixel points as default picture in current macro Element value;The target pixel points can be the pixel of any position in current macro or the pixel for designated position.
Secondly, calculating the difference between at least one corresponding target pixel value of image type macro block and presetted pixel value;
Finally, when the difference of the corresponding target pixel value of image type macro block and presetted pixel value is in preset value, really Determining image macro is invalid macro block, otherwise it is assumed that current image block is effective image block.For example, the corresponding color of presetted pixel value Color numerical value be 200, if the corresponding pixel value of remaining macro block and 200 difference in the range of 0~3, the task image is macro The difference of the corresponding target pixel value of block and presetted pixel value is in preset value, it can is considered solid block of color, not encryption.
In this example, because for the macro block of pure color, i.e., whole pixel values are all identical during image real time transfer Color value, it is believed that include effective content image block;On this basis, then Rule of judgment expanded, For example, when the difference of all pixels color value in a macro block is in preset value, for example, 8bit color depth has 256 color values, When difference can not visually be identified at 1~2, also it may determine that as solid block of color.It is directly encrypted for effective image block, For invalid image block, without being encrypted, directly transmit;The resource of encryption can be saved.
In the second example, by only encrypting the corresponding whole macro blocks of literal type and not encrypt image type corresponding macro Block encrypts at least one I frame.Specific steps include:
Firstly, obtaining an I frame, it is divided into the macro block of M × N, wherein M is not less than 1 not less than 1, N;
Secondly, identifying each macro block, and according to recognition result, each macro block is divided into literal type macro block or image class Type macro block;
Finally, only being encrypted to literal type macro block, to image type macro block without encryption.
In the step, the corresponding macro block of all literal types is directly encrypted, it is corresponding to obtain encrypted text Type of mb;The corresponding macro block of image type is directly transmitted without encryption.
In this example, after each macro block is divided into image type or literal type, only to all literal types pair The macro block answered is encrypted, and is not encrypted to the corresponding macro block of image type, and is directly transmitted.The program is relatively applicable in In office, its main feature is that: text information is more in the image transmitted and is related to more more important key message, and image is believed Breath does not need the scene of encryption.
The disclosure encrypts at least one I frame according to predetermined encryption algorithm in an alternative embodiment, wherein default add Close algorithm includes multiple encryption algorithms.
Optinal plan one: predetermined encryption algorithm may include symmetric encipherment algorithm and rivest, shamir, adelman.
Optinal plan two: the selection of predetermined encryption algorithm can be calculated by presetting Encryption Algorithm pond and by encryption Method pond determines predetermined encryption algorithm;It include wherein preset quantity kind Encryption Algorithm in Encryption Algorithm pond, to macro block to be encrypted When being encrypted, Encryption Algorithm is successively selected in sequence, alternatively, selecting from Encryption Algorithm pond at random when encrypting each time One kind is for encrypting current macro.
Further, specific example is enumerated to illustrate how to determine predetermined encryption algorithm by Encryption Algorithm pond.Including passing through Preset order selects Encryption Algorithm or random sequence to select Encryption Algorithm.
Example one selects predetermined encryption algorithm according to preset order, comprising: and it include 8 kinds of Encryption Algorithm in Encryption Algorithm pond, And preset order is arranged to this 8 kinds of Encryption Algorithm, for example, being numbered according to 1-8, then when encrypting each time, in sequence Encryption Algorithm in poll Encryption Algorithm pond, determines currently used Encryption Algorithm, carries out to current macro block to be encrypted Encryption selects next Encryption Algorithm, e.g., last time encryption uses 3 algorithms, then current crypto uses 4 when encrypting next time Algorithm, encryption uses 5 algorithms next time, and so on, when using last a kind of that is, the 8th kind of Encryption Algorithm encryption and then secondary When being encrypted, then successively selected since the first Encryption Algorithm again.
Example two selects predetermined encryption algorithm according to random sequence, it may be assumed that the selection of predetermined encryption algorithm can also be each It is secondary when treating encryption macro block and being encrypted, a kind of Encryption Algorithm is selected from Encryption Algorithm pond at random, to current macro block to be encrypted It is encrypted.Random number generator of the value range from 1-8 is preset, it is random by random number generator when encrypting each time A number is generated, and the corresponding Encryption Algorithm of the number is confirmed as when time used Encryption Algorithm, for example, generating number When being 7, then the 7th kind of Encryption Algorithm is selected.
The disclosure is encrypted when at least one macro block encrypts in I frame using multiple encryption algorithms, to substantially mention The difficulty that data are cracked has been risen, the safety of data encryption is improved.
103, according to other picture frames of unencryption at least one the I frame and image frame sequence encrypted, generation has added Close image frame sequence.
In an alternative embodiment, encrypted image frame sequence is generated, comprising:
According to the corresponding Encryption Algorithm of at least one picture frame and encrypted state in image frame sequence, image frame sequence is generated In the corresponding encryption information of at least one picture frame;
After at least one picture frame in encryption information tag image frame sequence, encrypted image frame sequence is generated.
Specifically, obtain at least one macro block in picture frame during encryption picture frame and correspond to header packet information, The header packet information is used to indicate the encryption information of macro block, the header packet information, including two data bit, one of data bit are used for Indicate encrypted state, that is, whether current macro is encrypted, another data bit is used to indicate Encryption Algorithm, i.e. current macro Cryptography information.
Specific example elaboration: the generation of two data bit in the header packet information of the macro block is enumerated herein, wherein the macro block Be used to indicate in header packet information current macro encrypted state the corresponding length of data bit can for 1bit (binary digit, Bit), that is, indicate whether macro block is encrypted by 0 or 1, for example, when macro block is to be encrypted, by the bit of the data bit Value is set to 0, and when macro block is encrypted, the bit value of the data bit is set to 1.It is used to indicate in the header packet information of the macro block current The corresponding length of the data bit of the Encryption Algorithm of macro block then depends on the type of Encryption Algorithm in Encryption Algorithm pond, for example, working as When Encryption Algorithm is 8 kinds, the data bit can be set at least 3bit.
In an alternative embodiment, the disclosure is after generating encrypted image frame sequence, to the reception device of image frame sequence It sends.
The data processing method that the embodiment of the present disclosure provides is applied to data encryption device, by obtaining image frame sequence, And find at least one I frame in image frame sequence;According to predetermined encryption algorithm, at least one I frame is encrypted, and root According to other frame images of unencryption at least one the target frame image and image frame sequence encrypted, encrypted image frame is generated Sequence.The disclosure is the content according to frame image into selective row encryption when encrypting to image frame sequence, thus, drop The data processing resources consumption of low data encryption equipment, especially in real-time Transmission image frame sequence, encryption data amount subtracts It is few, transmission delay can be effectively reduced, the display effect of real-time Transmission is improved.
Embodiment two
Based on the data processing method that the corresponding embodiment of above-mentioned Fig. 1 provides, another embodiment of the disclosure provides a kind of number According to processing method, this method can be applied to data decryption apparatus, for example, data decryption apparatus can be terminal device or network Server etc. does not represent the disclosure and is confined to this.Referring to shown in Fig. 2, data processing method provided in this embodiment include with Lower step:
201, image frame sequence is obtained, and finds at least one I frame in image frame sequence.
At least one I frame image is decrypted according to default decipherment algorithm in alternative embodiment, comprising:
The corresponding code flow structure information of at least one I frame is obtained, at least one in the code flow structure information, including I frame is macro The corresponding parameter information of block and encryption information;
According to code flow structure information, the corresponding decryption sequence of at least one macro block in I frame is determined.
Further, the corresponding code flow structure information of I frame is the disclosure when obtaining image frame sequence, is to pass through reading Image frame sequence after coding corresponds to the data packet header information that at least one macro block is obtained in bit stream data, which is used for Whether type, the length for identifying respective macroblock are also used to identify current macro and are encrypted and corresponding Encryption Algorithm.According to I frame In the corresponding packet header of all macro blocks, generate the code flow structure information of I frame.
Therefore, the corresponding code flow structure information of at least one I frame, including, the corresponding parameter letter of at least one macro block in I frame Breath and encryption information;
Parameter information therein, including, the setting of the type, macro block and corresponding frame of macro block;
Encryption information therein, including, whether macro block is encrypted and corresponding Encryption Algorithm
In a particular embodiment, according to code flow structure information, confirm the sequence of each macro block in current I frame, in sequence Group is combined into complete frame picture, including
In transmission process, the frame image in image frame sequence is encoded at least one macro block, for example, including in I frame Four macro blocks, successively are as follows: A macro block, B macro block, C macro block, D macro block, corresponding preset order are as follows: A macro block, B macro block, C macro block, D macro block successively transmits four macro blocks according to preset order;But because the influence of Internet resources, data decryption apparatus obtain The macro block order in frame image got may be disturbed, e.g. A macro block, B macro block, D macro block, C macro block;If according to mistake Macro block order be decoded decryption after image may with source images occur relatively large deviation, influence display effect.
Therefore, when obtaining image frame sequence, first according to preset order, adjustment receives at least one in frame image the disclosure Then the processing sequence of a macro block is decrypted and decodes again, to further improve the quality and efficiency of decryption.
202, according to decipherment algorithm is preset, at least one I frame image is decrypted.
In an alternative embodiment, at least one I frame image data, method is decrypted further include:
According at least one corresponding encryption information of I frame, at least one encryption macro block at least one I frame is determined, encrypt Information is used to indicate whether at least one macro block in I frame is encrypted;
By decrypting remaining macro block not encrypted at least one encryption macro block and at least one non-decrypting I frame, at least One I frame is decrypted.
In a particular embodiment, the encrypted identification information in code flow structure information is corresponded to for I frame, I frame can be found In be encrypted macro block.
Further, when decrypting the encryption macro block, the encryption information of encrypted macro block can be further parsed,
If the encryption information includes the corresponding Encryption Algorithm of the encryption macro block, according to the corresponding Encryption Algorithm of the macro block, Select corresponding decipherment algorithm that current macro is decrypted;
If the encryption information does not include the corresponding Encryption Algorithm of the encryption macro block, can be carried out using default decipherment algorithm Decryption.
The disclosure determines at least one macro block being encrypted in I frame by least one corresponding encryption information of I frame, and At least one encrypted macro block is only decrypted, the data volume being decrypted is reduced, realizes the skill for improving data deciphering efficiency Art effect.
203, according to other picture frames that do not decrypt at least one the I frame and image frame sequence decrypted, generation has been solved Close image frame sequence.
For in Encryption Algorithm, I frame is only encrypted, therefore only decrypt I frame in decryption, improve the efficiency of decryption.
The data processing method that the embodiment of the present disclosure provides is applied to data decryption apparatus, by obtaining image frame sequence, And find at least one I frame in image frame sequence;According to default decipherment algorithm, at least one I frame is decrypted, and root According to other frame images that do not decrypt at least one the I frame and image frame sequence decrypted, decrypted image frame sequence is generated.This Be disclosed in when image frame sequence is decrypted, be decrypted according to the content of frame image into selective row, thus, reduce data Data processing resources consumption in decrypting process, especially in real-time Transmission image frame sequence, the reduction of ciphertext data amount can It is effective to reduce transmission delay, improve the display effect of real-time Transmission.
Embodiment three
It is following for disclosure system reality based on data processing method described in the corresponding embodiment of above-mentioned Fig. 1 and Fig. 2 Example is applied, can be used for executing embodiments of the present disclosure.
The embodiment of the present disclosure provides a kind of data processing system, as shown in figure 3, the data processing equipment 30 includes: data Encryption device 301 and data decryption apparatus 302;
Data encryption device is connected with data decryption apparatus;
Data encryption device for obtaining image frame sequence, and finds at least one I frame in image frame sequence;
According to predetermined encryption algorithm, at least one I frame is encrypted;
According to other picture frames of unencryption at least one the I frame and image frame sequence encrypted, generation has encrypted figure It is sent as frame sequence and to data decryption apparatus;
Data decryption apparatus for obtaining encrypted image frame sequence, and finds at least one I in target video Frame;
According to default decipherment algorithm, at least one I frame is decrypted;
According to other picture frames that do not decrypt at least one the I frame and target video decrypted, decrypted image is generated Frame sequence.
In an alternative embodiment, the data encryption device 301, is also used to,
It identifies at least one macro block in target frame image, according to recognition result, determines that at least one macro block is corresponding in I frame Type, type includes: text or image;
According to the corresponding type of at least one macro block in I frame, at least one I frame is encrypted.
In an alternative embodiment, the data encryption device 301, further includes: receiver, processor and transmitter,
The receiver, for receiving image frame sequence;
The processor, for being encrypted at least one I frame according to predetermined encryption algorithm;
According to other picture frames of unencryption at least one the I frame and image frame sequence encrypted, generation has encrypted figure As frame sequence;
The transmitter, for sending encrypted image frame sequence to data decryption apparatus.
In an alternative embodiment, data decryption apparatus 302 are also used to,
According at least one corresponding encryption information of I frame, at least one encryption macro block at least one I frame is determined, should add Confidential information is used to indicate whether at least one macro block at least one I frame is encrypted;
By decrypting remaining macro block not encrypted at least one encryption macro block and at least one non-decrypting I frame, at least One I frame is decrypted.
In an alternative embodiment, the data decryption apparatus 302, further includes: receiver, processor and transmitter,
The receiver, for receiving encrypted image frame sequence;
The processor, for according to predetermined encryption algorithm, at least one I frame to be decrypted;
According to other picture frames that do not decrypt at least one the I frame and image frame sequence decrypted, figure has been decrypted in generation As frame sequence;
The transmitter, for sending decrypted image frame sequence to data presentation device.
The data processing system that the embodiment of the present disclosure provides, the system include data encryption device and data decryption apparatus, The system by obtaining image frame sequence, and finds at least one I in image frame sequence during handling data Frame;According to predetermined encryption, decipherment algorithm, at least one I frame is encrypted, is decrypted, and according at least one the I frame encrypted With other frame images of unencryption in image frame sequence, encrypted image frame sequence is generated;Or according at least one I encrypted Other frame images of unencryption in frame and image frame sequence generate encrypted image frame sequence;The disclosure is to image frame sequence It is the content according to frame image into selective row encryption, decryption when being encrypted, being decrypted, thus, reduce data processing system Data processing resources consumption, especially in real-time Transmission image frame sequence, the reduction of encryption data amount can be reduced effectively Transmission delay improves the display effect of real-time Transmission.
Based on data processing method described in the corresponding embodiment of above-mentioned Fig. 1 and Fig. 2, the embodiment of the present disclosure is also provided A kind of computer readable storage medium, for example, non-transitorycomputer readable storage medium can be read-only memory (English: Read Only Memory, ROM), random access memory (English: Random Access Memory, RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..It is stored with computer instruction on the storage medium, for executing above-mentioned Fig. 1 and Fig. 2 pairs Data processing method described in the embodiment answered, details are not described herein again.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.

Claims (11)

1. a kind of data processing method, which is characterized in that be applied to data encryption device, which comprises
Image frame sequence is obtained, and finds at least one I frame in described image frame sequence;
According to predetermined encryption algorithm, at least one described I frame is encrypted;
According to other picture frames of unencryption in described at least one I frame and described image frame sequence encrypted, generation has added Close image frame sequence.
2. the method according to claim 1, wherein described according to predetermined encryption algorithm, at least one described I Frame is encrypted, comprising:
It identifies at least one macro block in the target frame image, according to the recognition result, determines at least one in the I frame The corresponding type of macro block, the type include: literal type or image type;
According to the corresponding type of at least one macro block in the I frame, at least one described I frame is encrypted.
3. according to the method described in claim 2, it is characterized in that, described according to predetermined encryption algorithm, at least one described I Frame is encrypted, comprising:
When the corresponding type of at least one macro block is image type in the frame, at least one described image type macro block is obtained Corresponding target pixel value;
According to the comparing result of at least one image type the macro block corresponding target pixel value and presetted pixel value, institute is determined Stating at least one image type macro block is effective macro block or invalid macro block;
By encrypting at least one effective macro block and the corresponding macro block of the literal type, not encrypting at least one described nothing Macro block is imitated, at least one described I frame is encrypted.
4. according to the method described in claim 2, it is characterized in that, described according to predetermined encryption algorithm, at least one described I Frame is encrypted, comprising:
By encrypting the corresponding macro block of the literal type and not encrypting the corresponding macro block of described image type, to described at least one A I frame is encrypted.
5. the method according to claim 1, wherein described generate encrypted image frame sequence, comprising:
According to the corresponding Encryption Algorithm of at least one picture frame and encrypted state in described image frame sequence, described image frame is generated The corresponding encryption information of at least one picture frame in sequence;
It is marked in described image frame sequence after at least one picture frame according to the encryption information, generates the encrypted image frame Sequence.
6. a kind of data processing method, which is characterized in that be applied to data decryption apparatus, which comprises
Image frame sequence is obtained, and finds at least one I frame in described image frame sequence;
According to default decipherment algorithm, at least one described I frame is decrypted;
According to other frame images that do not decrypt in described at least one I frame and described image frame sequence decrypted, generation has been solved Close image frame sequence.
7. according to the method for claim 6, which is characterized in that the basis presets decipherment algorithm, to it is described at least Before one I frame image is decrypted, further includes:
Obtain the corresponding code flow structure information of at least one I frame, in the code flow structure information, including the I frame at least The corresponding parameter information of one macro block and encryption information;
According to the code flow structure information, the corresponding decryption sequence of at least one macro block in the I frame is determined.
8. according to the method for claim 7, which is characterized in that the basis presets decipherment algorithm, to it is described at least One I frame is decrypted, the method also includes:
According at least one described corresponding encryption information of I frame, at least one encryption macro block at least one described I frame is determined, The encryption information is used to indicate whether at least one macro block at least one described I frame is encrypted;
It is right by decrypting remaining macro block not encrypted at least one described encryption macro block and at least one non-decrypting described I frame At least one described I frame is decrypted.
9. a kind of data processing system characterized by comprising data encryption device and data decryption apparatus;
The data encryption device is connected with the data decryption apparatus;
The data encryption device for obtaining image frame sequence, and finds at least one I in described image frame sequence Frame;
According to predetermined encryption algorithm, at least one described I frame is encrypted;
According to other picture frames of unencryption in described at least one I frame and described image frame sequence encrypted, generation has added Close image frame sequence is simultaneously sent to the data decryption apparatus;
The data decryption apparatus for obtaining the encrypted image frame sequence, and is found in the target video extremely A few I frame;
According to default decipherment algorithm, at least one described I frame is decrypted;
According to other picture frames that do not decrypt in described at least one I frame and the target video decrypted, generation has been decrypted Image frame sequence.
10. system according to claim 9, which is characterized in that the data encryption device is also used to,
It identifies at least one macro block in the target frame image, according to the recognition result, determines at least one in the I frame The corresponding type of macro block, the type include: literal type or image type;
According to the corresponding type of at least one macro block in the I frame, at least one described I frame is encrypted.
11. system according to claim 9, which is characterized in that the data decryption apparatus is also used to,
According at least one described corresponding encryption information of I frame, at least one encryption macro block at least one described I frame is determined, The encryption information is used to indicate whether at least one macro block at least one described I frame is encrypted;
It is right by decrypting remaining macro block not encrypted at least one described encryption macro block and at least one non-decrypting described I frame At least one described I frame is decrypted.
CN201910279484.0A 2019-04-09 2019-04-09 Data processing method and system Active CN110149521B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210281222.XA CN114640855A (en) 2019-04-09 2019-04-09 Data processing method and system
CN201910279484.0A CN110149521B (en) 2019-04-09 2019-04-09 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910279484.0A CN110149521B (en) 2019-04-09 2019-04-09 Data processing method and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210281222.XA Division CN114640855A (en) 2019-04-09 2019-04-09 Data processing method and system

Publications (2)

Publication Number Publication Date
CN110149521A true CN110149521A (en) 2019-08-20
CN110149521B CN110149521B (en) 2022-03-22

Family

ID=67588281

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910279484.0A Active CN110149521B (en) 2019-04-09 2019-04-09 Data processing method and system
CN202210281222.XA Pending CN114640855A (en) 2019-04-09 2019-04-09 Data processing method and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210281222.XA Pending CN114640855A (en) 2019-04-09 2019-04-09 Data processing method and system

Country Status (1)

Country Link
CN (2) CN110149521B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683271A (en) * 2020-04-27 2020-09-18 中国科学院微电子研究所 Video encryption method, terminal equipment and computer storage medium
CN111800634A (en) * 2020-06-30 2020-10-20 西安万像电子科技有限公司 Image processing method and device
CN115278311A (en) * 2022-07-26 2022-11-01 中国工商银行股份有限公司 Video encryption method and device based on macro block

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333973A (en) * 1998-11-20 2002-01-30 艾利森电话股份有限公司 Method and device for encryption of images
CN1617584A (en) * 2004-12-06 2005-05-18 武汉大学 Dynamic random mess correction and enciphering-deenciphering method for video frequency information
CN101106527A (en) * 2007-07-31 2008-01-16 中国网络通信集团公司 Point-to-point information transfer method, system and network gateway unit
CN102281261A (en) * 2010-06-10 2011-12-14 杭州华三通信技术有限公司 Data transmission method, system and apparatus
CN103747258A (en) * 2014-01-27 2014-04-23 中国科学技术大学 Encryption processing method for high-performance video coding standard
JP2014155041A (en) * 2013-02-08 2014-08-25 Nippon Telegr & Teleph Corp <Ntt> Remote video distribution method and remote video distribution system
CN104581201A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Video encryption method and device
CN105471860A (en) * 2015-11-19 2016-04-06 浙江宇视科技有限公司 Video data transmission method and apparatus
CN105959708A (en) * 2016-06-07 2016-09-21 浪潮软件股份有限公司 Encryption method of video data
CN106470345A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 Video-encryption transmission method and decryption method, apparatus and system
CN108900849A (en) * 2018-07-26 2018-11-27 苏州科达科技股份有限公司 Video data encryption method, system, equipment and storage medium

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2842796B2 (en) * 1994-12-06 1999-01-06 富士通株式会社 Moving image encryption processing method and apparatus, and encrypted moving image decryption processing method and apparatus
GB2379299B (en) * 2001-09-04 2006-02-08 Imagination Tech Ltd A texturing system
JP4217969B2 (en) * 2003-12-08 2009-02-04 富士ゼロックス株式会社 Image processing apparatus and program
JP4826378B2 (en) * 2006-07-28 2011-11-30 富士ゼロックス株式会社 Image processing apparatus, image processing method, and program
WO2011125188A1 (en) * 2010-04-07 2011-10-13 三菱電機株式会社 Video encryption device, video decoding device, video encryption program, and video encryption method
CN102176759A (en) * 2011-02-15 2011-09-07 天津理工大学 Method for encrypting video streaming information based on hyper-chaotic sequence
CN103235946A (en) * 2013-04-08 2013-08-07 上海合合信息科技发展有限公司 Divulgence-preventive processing method for artificially identifying information of business cards
CN103747261B (en) * 2013-12-31 2017-06-27 北京工业大学 H.264 compression domain hierarchical perception encryption method based on motion reference structure
CN103716637A (en) * 2014-01-15 2014-04-09 北京工业大学 H.264 compressed domain layered video encryption method based on content analysis
CN104036447B (en) * 2014-03-12 2017-04-05 西南交通大学 PNG electronic invoices image watermark based on block sort is embedded in and authentication method
CN104301727B (en) * 2014-09-22 2018-02-23 中国人民解放军重庆通信学院 Quality controllable H.264 video-aware AES based on CABAC
CN104735457A (en) * 2015-03-27 2015-06-24 南京中新赛克科技有限责任公司 Video encryption and decryption method based on H.264 code
KR20160118117A (en) * 2015-04-01 2016-10-11 세종대학교산학협력단 Apparatus and method for secure transmission of video data
CN105049877A (en) * 2015-06-02 2015-11-11 阔地教育科技有限公司 Encryption method and device for live and recorded broadcast interaction system
CN106850515A (en) * 2015-12-07 2017-06-13 中国移动通信集团公司 A kind of data processing method and video acquisition device, decoding apparatus
CN105472392B (en) * 2015-12-11 2018-11-20 西安万像电子科技有限公司 Screen video decoding method and codec based on the compression of gradual character block
CN106203131A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 A kind of image encryption method and mobile terminal
CN107172433A (en) * 2017-04-28 2017-09-15 安徽四创电子股份有限公司 A kind of video encryption method
CN107426172A (en) * 2017-06-05 2017-12-01 国政通科技股份有限公司 The matching method for pushing and device of a kind of identity information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333973A (en) * 1998-11-20 2002-01-30 艾利森电话股份有限公司 Method and device for encryption of images
CN1617584A (en) * 2004-12-06 2005-05-18 武汉大学 Dynamic random mess correction and enciphering-deenciphering method for video frequency information
CN101106527A (en) * 2007-07-31 2008-01-16 中国网络通信集团公司 Point-to-point information transfer method, system and network gateway unit
CN102281261A (en) * 2010-06-10 2011-12-14 杭州华三通信技术有限公司 Data transmission method, system and apparatus
JP2014155041A (en) * 2013-02-08 2014-08-25 Nippon Telegr & Teleph Corp <Ntt> Remote video distribution method and remote video distribution system
CN103747258A (en) * 2014-01-27 2014-04-23 中国科学技术大学 Encryption processing method for high-performance video coding standard
CN104581201A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Video encryption method and device
CN106470345A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 Video-encryption transmission method and decryption method, apparatus and system
CN105471860A (en) * 2015-11-19 2016-04-06 浙江宇视科技有限公司 Video data transmission method and apparatus
CN105959708A (en) * 2016-06-07 2016-09-21 浪潮软件股份有限公司 Encryption method of video data
CN108900849A (en) * 2018-07-26 2018-11-27 苏州科达科技股份有限公司 Video data encryption method, system, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YEONGYUN KIM;SUNG HO JIN;TAE MEON BAE;YONG MAN RO: "A selective video encryption for the region of interest in scalable video coding", 《TENCON 2007 - 2007 IEEE REGION 10 CONFERENCE》 *
唐金艺,江玮,杨磊: "NDN网络下一种基于I帧加密的在线视频安全访问控制研究", 《网络空间安全》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683271A (en) * 2020-04-27 2020-09-18 中国科学院微电子研究所 Video encryption method, terminal equipment and computer storage medium
CN111683271B (en) * 2020-04-27 2022-05-06 中国科学院微电子研究所 Video encryption method, terminal equipment and computer storage medium
CN111800634A (en) * 2020-06-30 2020-10-20 西安万像电子科技有限公司 Image processing method and device
CN115278311A (en) * 2022-07-26 2022-11-01 中国工商银行股份有限公司 Video encryption method and device based on macro block

Also Published As

Publication number Publication date
CN114640855A (en) 2022-06-17
CN110149521B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
JP5615273B2 (en) Method and apparatus for selective data encryption
Rashmi et al. An improved method for reversible data hiding steganography combined with cryptography
EP2832102B1 (en) Methods and systems for cryptographic access control of video
CN113824728B (en) Network communication method and system based on data encryption
CN108566500A (en) The reversible hidden method of adapting to image encrypted domain based on Hybrid Encryption mechanism
CN110149521A (en) Data processing method and system
KR101139580B1 (en) Transmitting apparatus, receiving apparatus, and data transmitting system
US10320557B2 (en) Encoder, decoder and methods employing partial data encryption
CN106254382B (en) Media data processing method and device
CN100571388C (en) The scalable data sequence of encrypting is gradually carried out the method for stretching
CN104065968B (en) A kind of video data encryption and decryption method and device
CN103973937A (en) Information hiding method based on wireless multimedia sensor network
CN111050021A (en) Image privacy protection method based on two-dimensional code and reversible visual watermark
CN113612794A (en) Stream media data encryption transmission method and device, computer equipment and storage medium
CN102265634B (en) Transmission, reception and identification methods, security processor and information recording medium for said methods
CN101390332B (en) Method and apparatus for synchronous stream cipher encryption with reserved codes
CN115426627B (en) Industrial Internet of things data acquisition box based on 5G network
KR101899554B1 (en) Security system for transmitting video data
Chen et al. A robust selective encryption scheme for H. 265/HEVC video
CN107294946A (en) Data protection method
Abomhara et al. An experiment of scalable video security solution using H. 264/AVC and advanced encryption standard (AES): Selective cryptography
CN201663660U (en) Data encryption and data decryption system of digital video
Menon et al. Triple layer data hiding mechanism using cryptography and Steganography
CN112104874A (en) Data transmission method and system
CN102687519B (en) The reception of video stream and transfer approach, recording medium, conveyer and reversal block

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