A video coding method and device
A video encoding and encoding technology, applied in the field of video encoding and decoding, can solve the problems of incomplete foreground area of playback screen and distortion of moving objects, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0077] An embodiment of the present invention provides a video encoding method. See figure 1 , the flow of the video encoding method in the embodiment of the present invention is described as follows.
[0078] Step 101: Based on a preset Gaussian mixture model, determine the foreground area in the video image of the video to be encoded in units of pixel blocks, where each pixel block includes n pixels, and n is a positive integer.
[0079] Step 102: Based on a preset edge detection model, determine the foreground edge area in the video image in units of pixel blocks.
[0080] Step 103: Superimposing the foreground area and the foreground edge area to obtain a first image mask at the pixel block level of the video image, the first image mask is used to identify the area of interest and the background area in the video image, and the area of interest includes the foreground area and the background area. The foreground edge area, the background area is the area in the video...
Embodiment 2
[0183] Based on the same inventive concept, an embodiment of the present invention provides a video encoding device. See Figure 4 , Figure 4 It is a structural block diagram of the video encoding device. The video encoding device includes a foreground and background segmentation module 401, an image mask processing module 402 and an encoding module 403, wherein:
[0184] The foreground and background segmentation module 401 is used to determine the foreground area in the video image of the video to be encoded in units of pixel blocks based on a preset Gaussian mixture model, wherein each pixel block includes n pixels, and n is a positive integer; based on the preset The edge detection model is set to determine the foreground edge area in the video image in units of pixel blocks; the foreground area and the foreground edge area are superimposed to obtain the first image mask at the pixel block level of the video image, and the first image mask is used to identify the video ...
Embodiment 3
[0220] Based on the same inventive concept, an embodiment of the present invention provides a computer device, including:
[0221] at least one processor, and
[0222] memory coupled to at least one processor;
[0223] Wherein, the memory stores instructions executable by at least one processor, and at least one processor executes the method described in Embodiment 1 by executing the instructions stored in the memory.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


