Image processing method
An image processing apparatus according to the present invention includes: a position detecting unit configured to detect the position of a specific object in an image; a distribution generating unit configured to generate the distribution in the image of the specific object; and an imaging information generating unit configured to generate information used at the time capturing a new image based on the distribution.
1. An image processing method comprising:
detecting a position of a specific object in an image;
generating a distribution in the image of the specific object;
generating, as the distribution, information representing a division region where the specific object is located in the image among division regions obtained by dividing the image into a plurality of regions;
generating a connection region obtained by connecting all the division regions where the specific object is located based on the distribution; and
generating information used at time of capturing a new image based on the distribution and the connection region.
2. The image processing method according to claim 1 , comprising
calculating a position of a center of gravity of the connection region in the image, and generating the information used at time of capturing the new image based on the position of the center of gravity.
3. The image processing method according to claim 2 , comprising
calculating the position of the center of gravity of the connection region in the image in accordance with a detection status of the specific object in each of the division regions.
4. The image processing method according to claim 1 , comprising
generating information of changing setting at time of capturing the new image with an image capture device based on the distribution.
5. The image processing method according to claim 4 , comprising
generating information of changing a shooting range at time of capturing the new image with the image capture device based on the distribution.
6. The image processing method according to claim 4 , comprising
generating information of changing a quality at time of capturing the new image with the image captured device based on the distribution.
7. The image processing method according to claim 1 , comprising:
performing detection of the position of the specific object in the image on a plurality of images; and
generating the distribution in the image of the specific object based on the positions of the specific objects detected from the plurality of images.
8. The image processing method according to claim 1 , comprising
detecting a position of a person's face that is the specific object.
9. An image processing apparatus comprising:
at least one memory configured to store instructions; and
at least one processor configured to execute the instructions to:
detect a position of a specific object in an image;
generate a distribution in the image of the specific object;
generate, as the distribution, information representing a division region where the specific object is located in the image among division regions obtained by dividing the image into a plurality of regions;
generate a connection region obtained by connecting all the division regions where the specific object is located based on the distribution; and
generate information used at time of capturing a new image based on the distribution and the connection region.
10. The image processing apparatus according to claim 9 , wherein the at least one processor is configured to execute the instructions to
calculate a position of a center of gravity of the connection region in the image, and generate the information used at time of capturing the new image based on the position of the center of gravity.
11. The image processing apparatus according to claim 10 , wherein the at least one processor is configured to execute the instructions to
calculate the position of the center of gravity of the connection region in the image in accordance with a detection status of the specific object in each of the division regions.
12. The image processing apparatus according to claim 9 , wherein the at least one processor is configured to execute the instructions to
generate information of changing setting at time of capturing the new image with an image capture device based on the distribution.
13. A non-transitory computer-readable medium having a computer program stored therein, the computer program comprising instructions for causing a processor of an information processing apparatus to execute:
a process to detect a position of a specific object in an image;
a process to generate a distribution in the image of the specific object;
a process to generate, as the distribution, information representing a division region where the specific object is located in the image among division regions obtained by dividing the image into a plurality of regions;
a process to generate a connection region obtained by connecting all the division regions where the specific object is located based on the distribution; and
a process to generate information used at time of capturing a new image based on the distribution and the connection region.