BACKGROUND OF THE INVENTION

Field of the Invention

The present invention relates to an image processing apparatus, an image processing method, and a non-transitory computer-readable storage medium, and particularly to an image analysis technique.

Description of the Related Art

Conventionally, there is known a technique in which when analyzing a video captured by a network camera, information representing an analysis target region is superimposed and displayed on the video. For example, Japanese Patent Laid-Open No. 2008-182456 discloses a technique of displaying, on an image, a plurality of rectangles each representing a detection range of a moving object or a still object, and displaying the title of the detection range on the upper portion of each rectangle. Furthermore, Japanese Patent No. 6261190 discloses a technique of setting a detection region by a polygon and displaying it on a video.

When regions as video analysis targets are set by a plurality of polygons in one screen, identification information may be displayed together with each polygon representing each region. At this time, since the shapes of the regions are not uniform, if identification information is displayed at a fixed position for each region, the problem that the correspondence between the region and the identification information may not be recognized clearly may arise.

SUMMARY OF THE INVENTION

The present invention provides a technique for arranging, at a position where the visibility is better, information concerning a polygonal region set on a screen.

According to the first aspect of the present invention, there is provided an image processing apparatus comprising: a specifying unit configured to specify a longest side among sides of a polygonal region set on an image captured by an image capturing unit; and a display control unit configured to cause a display unit to display the image on which the polygonal region and information concerning the polygonal region are superimposed, wherein the display control unit causes the display unit to display the information at a position based on the longest side specified by the specifying unit.

According to the second aspect of the present invention, there is provided an image processing method comprising: specifying a longest side among sides of a polygonal region set on an image captured by an image capturing unit; and causing a display unit to display the image on which the polygonal region and information concerning the polygonal region are superimposed, wherein in the causing the display unit, the information is displayed at a position based on the specified longest side.

According to the third aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a computer program for causing a computer to function as: a specifying unit configured to specify a longest side among sides of a polygonal region set on an image captured by an image capturing unit; and a display control unit configured to cause a display unit to display the image on which the polygonal region and information concerning the polygonal region are superimposed, wherein the display control unit causes the display unit to display the information at a position based on the longest side specified by the specifying unit.

Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).

