An electronic apparatus, comprising: a memory; and a processor configured to: obtain a panoramic image by overlapping a partial area of a first image frame stored in the memory with a partial area of at least one second image frame stored in the memory based on pixel information of the first image frame and pixel information of the at least one second image frame, identify an area of a predetermined shape of maximum size within the panoramic image, and identify each of a plurality of objects from the entire panoramic image or the area in the predetermined shape, identify a plurality of respective object areas including the plurality of objects, assign a weighted value to each of the plurality of respective object areas based on at least one of: a number of overlapping image frames of each of the plurality of respective object areas of the panoramic image; or a capturing time of an image frame in each of the plurality of respective object areas, and identify at least one object among the plurality of objects based on the weighted values of the plurality of respective object areas. a memory; and a processor configured to: obtain a panoramic image by overlapping a partial area of a first image frame stored in the memory with a partial area of at least one second image frame stored in the memory based on pixel information of the first image frame and pixel information of the at least one second image frame, identify an area of a predetermined shape of maximum size within the panoramic image, and identify each of a plurality of objects from the entire panoramic image or the area in the predetermined shape, identify a plurality of respective object areas including the plurality of objects, assign a weighted value to each of the plurality of respective object areas based on at least one of: a number of overlapping image frames of each of the plurality of respective object areas of the panoramic image; or a capturing time of an image frame in each of the plurality of respective object areas, and identify at least one object among the plurality of objects based on the weighted values of the plurality of respective object areas. obtain a panoramic image by overlapping a partial area of a first image frame stored in the memory with a partial area of at least one second image frame stored in the memory based on pixel information of the first image frame and pixel information of the at least one second image frame, identify an area of a predetermined shape of maximum size within the panoramic image, and identify each of a plurality of objects from the entire panoramic image or the area in the predetermined shape, identify a plurality of respective object areas including the plurality of objects, assign a weighted value to each of the plurality of respective object areas based on at least one of: a number of overlapping image frames of each of the plurality of respective object areas of the panoramic image; or a capturing time of an image frame in each of the plurality of respective object areas, and a number of overlapping image frames of each of the plurality of respective object areas of the panoramic image; or a capturing time of an image frame in each of the plurality of respective object areas, and identify at least one object among the plurality of objects based on the weighted values of the plurality of respective object areas.