The invention requests to protect a video coding CU block classification method based on a lightweight
deep learning model, and is suitable for the field of video coding. The method comprises the following steps: firstly, carrying out block
processing on an input image, dividing the input image into a plurality of 128 * 128-
pixel image blocks, and extracting brightness information of each image block; after normalization
processing, brightness data is used as input of a
deep learning model and is used for generating classification probabilities of multiple categories. For the subunits of each image block, the probabilities of different categories are compared pixel by pixel, and a category
label with the highest probability is allocated to the subunits. And then, based on the
classification result of the subunits, counting the number of each category in each CU block, and allocating a corresponding type to the CU block according to statistical information. The CU block can belong to multiple categories simultaneously, and the final category of the CU block is determined through
bitwise operation. According to the method, through accurate CU block classification, the coding efficiency is improved, data support is provided for subsequent mode division and selection, and the method is suitable for video coding application scenes with high real-time performance requirements.