CROSS-REFERENCE TO RELATED APPLICATION

This patent application is based on and claims priority pursuant to 35 U.S.C. § 119(a) to Japanese Patent Application No. 2019-171489, filed on Sep. 20, 2019, in the Japan Patent Office, the entire disclosure of which is hereby incorporated by reference herein.

BACKGROUND

Technical Field

Embodiments of the present disclosure generally relate to an information processing apparatus, an information processing method, and a non-transitory computer-readable recording medium, and more particularly, to an information processing apparatus for correcting a zenith of a spherical image, an information processing method, and a non-transitory computer-readable recording medium storing computer-readable program code that causes a computer to perform the information processing method.

Related Art

There is known an imaging apparatus (hereinafter referred to as an omnidirectional imaging apparatus) that captures a so-called omnidirectional image or spherical image with a plurality of wide-angle lenses or fisheye lenses and a plurality of image sensors.

As a technique of correcting a spherical image, there is known a so-called “zenith correction” to correct the spherical image such that the gravitational direction and a vertical direction of the image match. The zenith correction on the spherical image allows a viewer to see the spherical image with a more natural feeling.

There is known a technique of performing the zenith correction based on image data of a captured spherical image.

In the zenith correction based on the image data, the accuracy of extracting a ridge line in the vertical direction has some impacts on the accuracy of the zenith correction.

SUMMARY

In one embodiment of the present disclosure, a novel information processing apparatus includes circuitry. The circuitry is configured to detect at least one line segment in a reference direction from a partial area of an image. The circuitry is configured to calculate an inclination of a plane including coordinates of two points included in the at least one line segment in a spherical coordinate system and a reference point of the spherical coordinate system. The circuitry is configured to correct a zenith of the image based on the inclination of the plane.

Also described are novel information processing method and non-transitory, computer-readable recording medium storing computer-readable program code that causes a computer to perform the information processing method.

