A method of generating a panoramic image in a panoramic imaging apparatus, the method comprising:
- receiving an operation mode;
- capturing an omnidirectional image based on the received operation mode;
- and
- generating an image frame readable by a virtual reality device based on image information of a subject acquired by capturing the omnidirectional image,
- wherein the panoramic imaging apparatus comprises:
- a first camera module configured to capture a first omnidirectional image;
- a second camera module configured to be positioned a certain distance away from the first camera module and capture a second omnidirectional image;
- a sensor section configured to determine whether the sensor section is tilted toward a predetermined axis;
- and
- a light emitter configured to notify the user of an operation mode of the panoramic imaging apparatus,
- the generating of the image frame includes generating the image frame using at least one of the first omnidirectional image and the second omnidirectional image of the subject simultaneously acquired from the two lenses of the first camera module and the lenses of the second camera module, and
- the controller sets the operation mode of the panoramic imaging apparatus to a first mode if the sensor section determines that the first camera module and the second camera module are positioned at the same height from the ground, and the controller sets the operation mode of the panoramic imaging apparatus to a second mode if the sensor section determines that the first camera module and the second camera module are not positioned at the same height from the ground.