Image processing method and apparatus
First Claim
Patent Images
1. An image processing method, comprising:
- photographing, by a terminal, an original image;
obtaining, by the terminal, image data of the original image and a measured ambient infrared intensity I corresponding to the original image;
removing, by the terminal, effects of ambient infrared light on the original image, wherein removing the effects of ambient infrared light on the original image comprises;
obtaining infrared image data which corresponds to the measured ambient infrared intensity I according to a pre-tested correspondence between tested infrared intensities and respective infrared image data;
obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I; and
obtaining a corrected image according to the corrected image data; and
outputting, by the terminal, the corrected image;
wherein the pre-tested correspondence is a relationship set comprising n groups of tested infrared intensities Ix, and infrared image data Mx, wherein n is a positive integer greater than 1;
wherein the infrared image data Mx is infrared image data obtained corresponding to the tested infrared intensities Ix for integer values of x from 1 to n;
wherein obtaining the infrared image data which corresponds to the measured ambient infrared intensity I according to the pre-tested correspondence comprises;
determining, from the pre-tested correspondence, that the measured ambient infrared intensity I is between a tested infrared intensity Im and a tested infrared intensity Im+1, wherein m is a positive integer less than n; and
determining, according to a preset selection policy, infrared image data Mm corresponding to the tested infrared intensity Im or infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the measured ambient infrared intensity I.
2 Assignments
0 Petitions
Accused Products
Abstract
An image processing method, including: obtaining image data of a photographed original image, and obtaining ambient infrared intensity I that is used when the original image is photographed; obtaining infrared image data corresponding to I according to a preset correspondence between tested infrared intensity and infrared image data; obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to I; and obtaining a corresponding corrected image according to the corrected image data, and outputting the corrected image.
-
Citations
14 Claims
-
1. An image processing method, comprising:
-
photographing, by a terminal, an original image; obtaining, by the terminal, image data of the original image and a measured ambient infrared intensity I corresponding to the original image; removing, by the terminal, effects of ambient infrared light on the original image, wherein removing the effects of ambient infrared light on the original image comprises; obtaining infrared image data which corresponds to the measured ambient infrared intensity I according to a pre-tested correspondence between tested infrared intensities and respective infrared image data; obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I; and obtaining a corrected image according to the corrected image data; and outputting, by the terminal, the corrected image; wherein the pre-tested correspondence is a relationship set comprising n groups of tested infrared intensities Ix, and infrared image data Mx, wherein n is a positive integer greater than 1; wherein the infrared image data Mx is infrared image data obtained corresponding to the tested infrared intensities Ix for integer values of x from 1 to n; wherein obtaining the infrared image data which corresponds to the measured ambient infrared intensity I according to the pre-tested correspondence comprises; determining, from the pre-tested correspondence, that the measured ambient infrared intensity I is between a tested infrared intensity Im and a tested infrared intensity Im+1, wherein m is a positive integer less than n; and determining, according to a preset selection policy, infrared image data Mm corresponding to the tested infrared intensity Im or infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the measured ambient infrared intensity I. - View Dependent Claims (2, 3, 4, 5, 11, 12)
-
-
6. A terminal, comprising:
-
a camera; an infrared sensor; a processor; a memory; and a display apparatus; wherein the camera is configured to photograph an original image; wherein the infrared sensor is configured to obtain a measured ambient infrared intensity I corresponding to the original image; wherein the memory is configured to store a pre-tested correspondence between tested infrared intensities and respective infrared image data; wherein the processor is configured to; obtain image data of the photographed original image, and obtain the measured ambient infrared intensity I; remove effects of ambient infrared light on the original image, wherein removing the effects of ambient infrared light on the original image comprises;
obtaining infrared image data corresponding to the measured ambient infrared intensity I according to the pre-tested correspondence;
obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I; and
obtaining a corrected image according to the corrected image data; andoutput the corrected image to the display apparatus; wherein the display apparatus is configured to display the corrected image; wherein the pre-tested correspondence is a relationship set comprising n groups of tested infrared intensities Ix and infrared image data Mx, wherein n is a positive integer greater than 1; wherein the infrared image data Mx is infrared image data obtained corresponding to the tested infrared intensities Ix for integer values of x from 1 to n; wherein obtaining the infrared image data corresponding to the measured ambient infrared intensity I according to the pre-tested correspondence comprises; determining, from the pre-tested correspondence, that the measured ambient infrared intensity I is between a tested infrared intensity Im and a tested infrared intensity Im+1, wherein m is a positive integer less than n; and determining, according to a preset selection policy, infrared image data Mm corresponding to the tested infrared intensity Im or infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the measured ambient infrared intensity I. - View Dependent Claims (7, 8, 9, 10, 13, 14)
-
Specification