Image processing apparatus, image processing method, and non-transitory computer readable medium
View Patent ↗According to one embodiment, a photographing image including a user region is acquired. The user region is detected from the photographing image. The user region in the photographing image is changed so that a user's direction in the user region cannot be decided, and the photographing image in which the user region is changed is acquired as a change image. A position of the user region in the photographing image is calculated. An image of a back side-cloth is compounded with the user region in the change image at the position.
1. An apparatus for processing an image, comprising
a computer processor; and
hardware storage communicatively coupled to the computer processor, the hardware storage storing a program that, when executed by the computer processor, causes the computer processor to perform operations comprising:
acquiring a photograph image of a user;
detecting a user region from the photograph image, and deciding a user's direction in the user region by detecting a face region of the user from the photograph image;
if the user's direction is forward-facing and if a back side image of a garment is to be compounded with the user region, acquiring a changed image by changing the photograph image to an image from which the user's direction in the user region cannot be decided;
calculating a position of the user region in the photograph image; and
compounding the back side image of the garment with the user region in the changed image at the calculated position.
2. The apparatus according to claim 1 , wherein
the changed image is acquired by changing a luminance of the user region in the photograph image.
3. The apparatus according to claim 2 , wherein
the changed image is acquired by executing single-colorization of the user region in the photograph image.
4. The apparatus according to claim 3 , wherein:
the hardware storage is configured to store a plurality of back side images of garments; and the apparatus further comprises:
a selection device configured to select and extract a back side image of a garment from the hardware storage, based on input to the selection device.
5. The apparatus according to claim 4 , wherein
the position of the user region in the photograph image is calculated based on a kind of garment selected according to input to the selection device.
6. A method for processing an image, comprising:
acquiring a photograph image of a user;
detecting a user region from the photograph image;
deciding a user's direction in the user region by detecting a face region of the user from the photograph image;
if the user's direction is forward-facing and if a back side image of a garment is to be compounded with the user region, acquiring a changed image by changing the photograph image to an image from which the user's direction in the user region cannot be decided;
calculating a position of the user region in the photograph image; and
compounding the back side image of the garment with the user region in the changed image at the calculated position.
7. A non-transitory computer readable medium storing a program that, when executed by a computer, causes the computer to perform operations for processing an image, the operations comprising:
acquiring a photograph image of a user;
detecting a user region from the photographing image;
deciding a user's direction in the user region by detecting a face region of the user from the photograph image;
if the user's direction is forward-facing and if a back side image of a garment is to be compounded with the user region, acquiring a changed image by changing the photograph image to an image from which the user's direction in the user region cannot be decided;
calculating a position of the user region in the photograph image; and
compounding the back side image of the garment with the user region in the changed image at the calculated position.