An electronic device, such as mobile terminal devices, with a
photographing function, and in the case where a photographing target is a
person, enhances its function for protecting the photographing target
from being photographed without consent by such as spy shots. This can be
realized by an electronic device with a photographing function comprising
a target judging part for judging whether the photographing target is a
person or not; a photographing inquiry part for issuing an inquiry
information for approval/disapproval of the photographing based on the
judgment result of the target judging part if the target is a person and
making an inquiry for the target about whether the photographing is
approved or not with the inquiry information; a response information
acquisition part (for acquiring a response information issued from the
target; and a photographing control part for outputting in response to
the inquiry information either a photographing approval information
representing an approval of photographing the target or a photographing
prohibition information representing a ban of photographing the target,
based on the response information the response information acquisition
part has acquired.