Patent attributes
An image processing method and apparatus are provided. The image processing method includes collecting at least two exposure frames with different brightness in a same scene during different exposure time; combining, for each exposure frame, a raw data unit arranged repeatedly in the exposure frame to obtain first brightness data after the combining; acquiring a correction parameter of all exposure frames according to all first brightness data and performing weighting processing on all the exposure frames by using the correction parameter to obtain a high dynamic range (HDR) image of corrected raw data. The foregoing method can resolve a problem in the prior art that colors, brightness, and contrast of an image obtained from Raw data are severely distorted.