Information processing device and information processing method
An information processing device includes a detector that detects a feature area with a predetermined feature from a captured image, and a separator that separates the feature area along a principal inertia axis of the feature area.
1 . An information processing device, comprising:
a detector configured to detect a feature area including an object and a shadow of the object from a captured image; and
a separator configured to separate the feature area along a principal inertia axis of the feature area, wherein
when a center of gravity of the feature area is located in a first quadrant or a third quadrant of four quadrants obtained with a horizontal axis and a vertical axis including a center of a rectangle circumscribing the feature area, the separator separates the feature area into an area of the object and an area of the shadow along, of two principal inertia axes of the feature area, a principal inertia axis with a smaller declination from the horizontal axis, and
when the center of gravity of the feature area is located in a second quadrant or a fourth quadrant of the four quadrants, the separator separates the feature area into the area of the object and the area of the shadow along, of the two principal inertia axes of the feature area, a principal inertia axis with a greater declination from the horizontal axis.
2 . The information processing device according to claim 1 , further comprising:
a determiner configured to determine whether two separate areas obtained by separating the feature area with the separator are used or the feature area is used,
wherein when an evaluation value corresponding to a proportion of the feature area occupying a rectangle circumscribing the feature area is less than a predetermined threshold, the determiner determines to use the two separate areas, and
when the evaluation value is greater than or equal to the predetermined threshold, the determiner determines to use the feature area.
3 . The information processing device according to claim 2 , wherein
the evaluation value is a proportion of a total area of rectangles circumscribing the two separate areas to an area of the rectangle circumscribing the feature area.
4 . The information processing device according to claim 2 , wherein
the evaluation value is a proportion of a logical sum of areas of rectangles circumscribing the two separate areas to an area of the rectangle circumscribing the feature area.
5 . The information processing device according to claim 2 , further comprising:
an identifier configured to identify an object included in a rectangle circumscribing an area to be used as a predetermined object or another object,
wherein when the two separate areas are to be used, the identifier identifies, as the predetermined object or another object, an object included in a rectangle circumscribing each of the two separate areas.
6 . The information processing device according to claim 5 , wherein
the predetermined object is a human.
7 . The information processing device according to claim 1 , wherein
the detector detects an area with a motion as the feature area.
8 . The information processing device according to claim 1 , wherein
the detector detects an area having a pixel value within a predetermined range as the feature area.
9 . The information processing device according to claim 1 , wherein
the detector detects an area surrounded by an edge as the feature area.
10 . An information processing method, comprising:
detecting a feature area including an object and a shadow of the object from a captured image; and
separating the feature area along a principal inertia axis of the feature area, wherein
when a center of gravity of the feature area is located in a first quadrant or a third quadrant of four quadrants obtained with a horizontal axis and a vertical axis including a center of a rectangle circumscribing the feature area, the feature area is separated into an area of the object and an area of the shadow along, of two principal inertia axes of the feature area, a principal inertia axis with a smaller declination from the horizontal axis, and
when the center of gravity of the feature area is located in a second quadrant or a fourth quadrant of the four quadrants, the feature area is separated into the area of the object and the area of the shadow along, of the two principal inertia axes of the feature area, a principal inertia axis with a greater declination from the horizontal axis.
11 . A non-transitory computer readable medium storing a program for causing a computer to perform operations included in the information processing method according to claim 10 .