Patent ID: 11930307
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 0:
1. An image processing method, comprising:
acquiring, via an input device, an image to be processed;
converting, via a processor, the image to be processed into a three-channel YUV image;
performing, via the processor, a convolution operation on a Y-channel image, a U-channel image and a V-channel image in the three-channel YUV image to generate an R-channel image, a G-channel image and a B-channel image, respectively, and acquiring a three-channel RGB image; and
pre-processing, via the processor, the three-channel RGB image,
wherein the converting the image to be processed into the three-channel YUV image comprises:
dividing the image to be processed into a first Y-channel image and a UV-channel image;
adjusting the first Y-channel image to acquire the Y-channel image of dimensions of (N, 1, W, H);
splitting the UV-channel image to acquire a U-channel image of dimensions of (N, 1, W*0.5, H*0.5) and a V-channel image of the dimensions of (N, 1, W*0.5, H*0.5);
performing double sampling on the U-channel image of the dimensions of (N, 1, W*0.5, H*0.5) and the V-channel image of the dimensions of (N, 1, W*0.5, H*0.5) to acquire the U-channel image of the dimensions of (N, 1, W, H) and the V-channel image of the dimensions of (N, 1, W, H) respectively; and
merging the Y-channel image of the dimensions of (N, 1, W, H), the U-channel image of the dimensions of (N, 1, W, H) and the V-channel image of the dimensions of (N, 1, W, H) to acquire the YUV image of dimensions of (N, 3, W, H); and
wherein, N represents the number of images to be processed, 1 represents that there is 1 channel in the Y-channel image, the U-channel image, or the V-channel image, 3 represents that there are 3 channels in the YUV image, W is a width of the image to be processed, and H is a height of the image to be processed.