Method and apparatus for the region of interest encryption in hevc/h.265 video based on the coding unit
View Patent ↗A method and apparatus for encrypting an ROI in a HEVC/H.265 video based on a coding unit are disclosed. The method, which is performed by an encryption apparatus, may include identifying a coding unit related to an ROI that is generated for each frame as the frames that constitute a video are partitioned as a tile, and performing selective encryption on the identified coding unit.
1 . A method of encrypting a region of interest (ROI) in a video encoded with a codec corresponding to HEVC (H.265), the method being performed by an encryption apparatus and comprising:
detecting the ROI in the video by using an object detection model and obtaining coordinate data of the detected ROI;
separately identifying a tile related to the ROI and a tile not related to the ROI, based on the obtained coordinate data;
separately identifying a coding unit related to the ROI and a coding unit not related to the ROI, based on the obtained coordinate data and the identified tile related to the ROI, the identified coding unit representing a processing unit for selective encryption which is distinct from the identified tile;
restricting encryption propagation by preventing prediction processes from referencing pixel data outside of a boundary of a coding tree unit (CTU) containing the identified coding unit related to the ROI; and
performing selective encryption on one or more syntax elements corresponding to the identified coding unit related to the ROI,
wherein performing the selective encryption comprises performing the selective encryption on the identified coding unit related to the ROI based on context-adaptive binary arithmetic coding (CABAC) for parameters of the codec corresponding to HEVC (H.265);
wherein the syntax elements are selected from a group consisting of a motion vector (MV), an MV sign, a transform coefficient (TC), a TC sign, and an intra prediction mode (IPM), and
wherein the selective encryption is performed on a suffix part of a binarized representation of the syntax elements by applying an AES-CFB algorithm to perform an XOR operation between the suffix part and a generated key stream.
2 . The method of claim 1 , wherein the object detection model is trained to detect a face as an object by using learning data for object detection based on a YOLOv4 object detection algorithm.
3 . The method of claim 1 , wherein the step of separately identifying the coding unit comprises partitioning the identified coding unit into at least one prediction unit through intra prediction or inter prediction for the identified coding unit.
4 . The method of claim 3 , wherein the step of separately identifying the coding unit further comprises performing entropy encoding on the identified coding unit via a discrete coefficient transform (DCT) and quantization.
5 . The method of claim 1 , wherein performing the selective encryption comprises performing the selective encryption based on the CABAC during an entropy encoding process for the identified coding unit related to the ROI.
6 . A non-transitory computer-readable recording medium storing instructions for executing the method of claim 1 on the encryption apparatus.
7 . An encryption apparatus for encrypting a region of interest (ROI) in a video encoded with a codec corresponding to HEVC (H.265) comprising:
at least one processor configured to
detect the ROI in the video by using an object detection model and obtaining coordinate data of the detected ROI,
separately identify a tile related to the ROI and a tile not related to the ROI, based on the obtained coordinate data,
separately identify a coding unit related to the ROI and a coding unit not related to the ROI, based on the obtained coordinate data and the identified tile related to the ROI, the identified coding unit representing a processing unit for selective encryption which is distinct from the identified tile,
restrict encryption propagation by preventing prediction processes from referencing pixel data outside of a boundary of a coding tree unit (CTU) containing the identified coding unit related to the ROI, and
perform selective encryption on one or more syntax elements corresponding to the identified coding unit related to the ROI,
wherein the processor is configured to perform the selective encryption by performing the selective encryption on the identified coding unit related to the ROI based on context-adaptive binary arithmetic coding (CABAC) for parameters of the codec corresponding to HEVC (H.265);
wherein the syntax elements are selected from a group consisting of a motion vector (MV), an MV sign, a transform coefficient (TC), a TC sign, and an intra prediction mode (IPM), and
wherein the selective encryption is performed on a suffix part of a binarized representation of the syntax elements by applying an AES-CFB algorithm to perform an XOR operation between the suffix part and a generated key stream.