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 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 an omnidirectional image;
- and
- a second camera module configured to be positioned a certain distance away from the first camera module and capture an omnidirectional image,
- wherein each of the first camera module and the second camera module includes two lenses formed in opposite directions, and
- the generating of the image frame includes generating one image frame using information on images of the subject simultaneously acquired from the lenses of the first camera module and the lenses of the second camera module.