An image processing apparatus comprising: detection means configured to detect region information of an object in an image; acquisition means configured to detect a predetermined object region that is a part of the object from the region information of the object, and to acquire luminance information of a periphery of the predetermined object region; and relighting means configured to perform processing for correcting brightness of the object in the image by adding an effect of virtual light, wherein the relighting means is configured to correct the brightness of the object including the predetermined object region in accordance with luminance of the periphery of the predetermined object region obtained from the luminance information, characterized in that the relighting means is configured to perform correction so as to reduce the brightness correction of the object including the predetermined object region when the luminance of the periphery of the predetermined object region is included in a predetermined luminance range, by controlling parameters for a virtual light source that irradiates the virtual light so that the higher the luminance of the periphery of the predetermined object region, the weaker the virtual light with which the object including the predetermined object region is irradiated, wherein the predetermined luminance range comprises, out of luminance values 0 to YC, luminance values YA to YB which, when converted by gamma characteristics, change more than luminance values YB to YC when converted by the gamma characteristics, and wherein luminance values 0 to YA are low luminance. detection means configured to detect region information of an object in an image; acquisition means configured to detect a predetermined object region that is a part of the object from the region information of the object, and to acquire luminance information of a periphery of the predetermined object region; and relighting means configured to perform processing for correcting brightness of the object in the image by adding an effect of virtual light, wherein the relighting means is configured to correct the brightness of the object including the predetermined object region in accordance with luminance of the periphery of the predetermined object region obtained from the luminance information, characterized in that the relighting means is configured to perform correction so as to reduce the brightness correction of the object including the predetermined object region when the luminance of the periphery of the predetermined object region is included in a predetermined luminance range, by controlling parameters for a virtual light source that irradiates the virtual light so that the higher the luminance of the periphery of the predetermined object region, the weaker the virtual light with which the object including the predetermined object region is irradiated, wherein the predetermined luminance range comprises, out of luminance values 0 to YC, luminance values YA to YB which, when converted by gamma characteristics, change more than luminance values YB to YC when converted by the gamma characteristics, and wherein luminance values 0 to YA are low luminance.