Video denoising method and mobile terminal, and storage medium
AssigneeBigo Technology Pte. Ltd.
InventorsMin Yang, Bingyi Song
Life of this patent
Estimating the term…
Abstract
Provided is a video denoising method, applicable to a mobile terminal. The method includes acquiring video data, acquiring environmental parameters related to denoising in an environment of the mobile terminal, calculating an extent of conflict between the environment and the denoising based on the environmental parameters, and determining, based on the extent of conflict, a state of denoising the video data.
Claims18
A video denoising method, applicable to a mobile terminal, the method comprising:
- acquiring video data;
- acquiring environmental parameters related to denoising in an environment of the mobile terminal;
- calculating an extent of conflict between the environment and the denoising based on the environmental parameters;
- and
- determining, based on the extent of conflict, a state of denoising the video data;
- selecting environmental parameters functioned in the denoising from the acquired environmental parameters related to the denoising in the case that the state allows denoising the video data, and determining the selected environmental parameters as target parameters;
- calculating a strength of the denoising based on the target parameters, wherein the strength of the denoising is positively correlated with the target parameters;
- and
- performing the denoising on the video data based on the strength,
- wherein calculating the extent of conflict between the environment and the denoising based on the environmental parameters comprises:
- substituting the environmental parameters related to the denoising into a predetermined mapping function, calculating a matching degree of a current environment of the mobile terminal and the denoising, and determining the matching degree as the extent of conflict, wherein a target weight is set for each of the environmental parameters to adjust importance of the environmental parameters;
- and
- wherein performing the denoising on the video data based on the strength comprises:
- determining a first mixing coefficient generated for reference image data in response to the denoising being three-dimensional denoising, wherein the reference image data is a previous frame of image data with noise reduced;
- calculating an eighth product of the strength and the first mixing coefficient, determining the eighth product as a new first mixing coefficient, and setting the new first mixing coefficient for the reference image data;
- calculating a second mixing coefficient based on the new first mixing coefficient, and setting the second mixing coefficient for original image data, wherein the original image data is a current frame of image data to be noise reduced;
- and
- acquiring target image data by superposing the original image data with the second mixing coefficient on the reference image data with the new first mixing coefficient.
A video denoising mobile terminal, comprising:
- one or more processors;
- a memory, configured to store one or more programs;
- wherein the one or more processors, when loading and running the one or more programs, are caused to perform:
- acquiring video data;
- acquiring environmental parameters related to denoising in an environment of the mobile terminal;
- calculating an extent of conflict between the environment and the denoising based on the environmental parameters;
- determining, based on the extent of conflict, a state of denoising the video data;
- selecting environmental parameters functioned in the denoising from the acquired environmental parameters related to the denoising in the case that the state allows denoising the video data, and determining the selected environmental parameters as target parameters;
- calculating a strength of the denoising based on the target parameters, wherein the strength of the denoising is positively correlated with the target parameters;
- and
- performing the denoising on the video data based on the strength, wherein calculating the extent of conflict between the environment and the denoising based on the environmental parameters comprises:
- substituting the environmental parameters related to the denoising into a predetermined mapping function, calculating a matching degree of a current environment of the mobile terminal and the denoising, and determining the matching degree as the extent of conflict, wherein a target weight is set for each of the environmental parameters to adjust importance of the environmental parameters;
- and
- wherein performing the denoising on the video data based on the strength comprises:
- determining a first mixing coefficient generated for reference image data in response to the denoising being three-dimensional denoising, wherein the reference image data is a previous frame of image data with noise reduced;
- calculating an eighth product of the strength and the first mixing coefficient, determining the eighth product as a new first mixing coefficient, and setting the new first mixing coefficient for the reference image data;
- calculating a second mixing coefficient based on the new first mixing coefficient, and setting the second mixing coefficient for original image data, wherein the original image data is a current frame of image data to be noise reduced;
- and
- acquiring target image data by superposing the original image data with the second mixing coefficient on the reference image data with the new first mixing coefficient.
A non-transitory computer-readable storage medium storing one or more computer programs therein, wherein the one or more computer programs, when loaded and run by a processor, cause the processor to perform:
- acquiring video data;
- acquiring environmental parameters related to denoising in an environment of a mobile terminal;
- calculating an extent of conflict between the environment and the denoising based on the environmental parameters;
- determining, based on the extent of conflict, a state of denoising the video data;
- selecting environmental parameters functioned in the denoising from the acquired environmental parameters related to the denoising in the case that the state allows denoising the video data, and determining the selected environmental parameters as target parameters;
- calculating a strength of the denoising based on the target parameters, wherein the strength of the denoising is positively correlated with the target parameters;
- and
- performing the denoising on the video data based on the strength, wherein calculating the extent of conflict between the environment and the denoising based on the environmental parameters comprises:
- substituting the environmental parameters related to the denoising into a predetermined mapping function, calculating a matching degree of a current environment of the mobile terminal and the denoising, and determining the matching degree as the extent of conflict, wherein a target weight is set for each of the environmental parameters to adjust importance of the environmental parameters;
- and
- wherein performing the denoising on the video data based on the strength comprises:
- determining a first mixing coefficient generated for reference image data in response to the denoising being three-dimensional denoising, wherein the reference image data is a previous frame of image data with noise reduced;
- calculating an eighth product of the strength and the first mixing coefficient, determining the eighth product as a new first mixing coefficient, and setting the new first mixing coefficient for the reference image data;
- calculating a second mixing coefficient based on the new first mixing coefficient, and setting the second mixing coefficient for original image data, wherein the original image data is a current frame of image data to be noise reduced;
- and
- acquiring target image data by superposing the original image data with the second mixing coefficient on the reference image data with the new first mixing coefficient.
Dependencies are inferred from the claim text.