A projecting device for projecting a projection image including a content image onto a projection surface, the projecting device comprising:
- a projector configured to project the projection image onto the projection surface within a projection angle of view of the projector, the projection angle of view defining a maximum projection region for projecting of the projection image;
- a first detector configured to detect a person;
- an image processor configured to generate the content image;
- a driver configured to change an orientation of the projector in order to change a direction of the projection angle of view;
- and
- a controller configured to:
- calculate a position of the detected person, a target position relative to the detected person, a shift direction of the content image, a shift amount of the content image, and a display position to be projected on the projection surface, wherein the target position is a position where the content image is visible to the person depending on movement of the detected person,
- control the image processor, the driver, and at least a part of the first detector,
- determine, using the calculated position of the detected person, the target position for the content image, and determining whether the target position is within a range of the maximum region, and determining whether the target position is outside of the range of the maximum projection region,
- control the image processor to project the content image to the target position, and change the position of the content image within the projection image according to the shift direction and the shift amount without changing the orientation of the projector in response to the controller determining that the target position is within a range of the maximum region, and
- calculate a projection direction, control the image processor to change the position of the content image to a shifted position at a most end of the projection image in the shift direction, and control the driver to change the direction of the projection angle of view by an amount of a difference between the shifted position and the target position in response to the controller determining that the target position is outside of the range of the maximum region;
- wherein the target position being determined by the controller to be outside of the range of the maximum projection region results in the controller controlling the image processor to cause a display position of the content image within the projection angle of view to approach the target position as the projector projects in a state in which the optical axis is orthogonal to the projection surface, the display position of the content image being variable within the projection angle of view.