×

Real-time video denoising method and terminal during coding, and non-volatile computer readable storage medium

  • US 10,587,874 B2
  • Filed: 09/08/2017
  • Issued: 03/10/2020
  • Est. Priority Date: 11/18/2015
  • Status: Active Grant
First Claim
Patent Images

1. A video denoising method, comprising:

  • at an electronic device having one or more processors and memory;

    receiving a video stream comprising a sequence of image frames from a video source;

    while receiving the video stream from the video source, performing denoising on a respective frame of the sequence of image frames in the video stream to obtain a processed frame, including;

    detecting, at the electronic device, a bandwidth change in a current network status of a network connection between the electronic device and a remote destination device;

    determining a current value for a predefine flatness threshold for detecting a flat area within the respective frame of the video stream in accordance with the bandwidth change in the current network status of the network connection, wherein a difference between any two adjacent pixel values in the flat area is smaller than the predefined flatness threshold;

    identifying one or more flat areas within the respective frame in accordance with the predefined flatness threshold that has been determined in accordance with the bandwidth change in the current network status of the network connection; and

    performing, using a predefined filter, a first denoising process on the one or more flat areas that have been identified in accordance with the predefined flatness threshold that has been adjusted in accordance with the bandwidth change in the current network status of the network connection;

    after performing the first denoising process, determining a prediction type of the respective frame;

    in accordance with a determination that the prediction type of the respective frame is a forward predicted frame (P-frame), performing a second denoising process during compression encoding of the respective frame, including;

    in accordance with a determination that a respective sub-macroblock of the respective frame is an inter sub-macroblock, performing an integer discrete cosine transform (DCT) operation on the respective inter sub-macroblock to obtain low-frequency component coefficients and high-frequency component coefficients of the respective inter sub-macroblock;



    determining a component offset value in accordance with the bandwidth change in the current network status of the network connection;

    subtracting the component offset value from each of the high-frequency component coefficients of the respective inter sub-macroblock of the respective frame if an absolute value of a respective high-frequency component coefficient is greater than the component offset value; and

    sending the processed frame to the remote destination device.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×