The present invention provides a method and
system for color shading correction for a panoramic camera. The method comprises: acquiring a raw image of a YUV422 format of each lens in a panoramic camera, and converting each raw image into raw images with a Bayer format; performing statistics of R and
B channel gain values of each camera in different rings according to the raw images with a Bayer format; calculating a polynomial fitting function of R and
B channel gain values of each camera and integrated R and B
gain values of each camera according to the R and
B channel gain values, and calculating integrated average R and B gain values of all the cameras; and respectively calculating a color shading correction coefficient of each camera according to the integrated average R and B gain values and intensive R and B gain values. The method and
system for color shading correction for a panoramic camera can allow the colors of a
single camera in a panoramic image to be uniform and make colors of all the lenses consistent.