Patent ID: 11935155
Assignee: CANON KABUSHIKI KAISHA
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. An information processing apparatus comprising:
a hardware processor; and
a memory for storing instructions to be executed by the hardware processor, wherein, when the instructions stored in the memory are executed by the hardware processor, the information processing apparatus functions as:
an extraction unit configured to extract a foreground object region from a captured image captured by an image capturing unit,
a generation unit configured to generate a mask image corresponding to the foreground object region in the captured image and having colors different depending on a respective luminance value of each of divided regions of the foreground object region,
a combining unit configured to combine the mask image generated by the generation unit and a predetermined image to generate an output image, and
a setting unit configured to set a first luminance range and a second luminance range different from the first luminance range, wherein the first luminance range and the second luminance range do not overlap,
wherein, for each divided region of the divided regions of the foreground object region, the generation unit determines a first color as a color used for generating a region of the mask image corresponding to said divided region in a case where the respective luminance value of said divided region falls within the first luminance range, determines a second color different from the first color as a color used for generating the region of the mask image corresponding to said divided region in a case where the respective luminance value of the divided region falls within the second luminance range, and generates the region of the mask image corresponding to said divided region using the color determined for said divided region, and
wherein the setting unit extracts a region having a specific range of colors from the captured image, wherein the region having the specific range of colors includes one or more of the divided regions, and sets the first luminance range and the second luminance range depending on the minimum luminance value and the maximum luminance value of the respective luminance values of the one or more of the divided regions included in the region having the specific range of colors.