Electronic apparatus and controlling method thereof
An electronic apparatus is disclosed. The electronic apparatus comprises: a first camera having a first image capturing angle; a second camera having a second image capturing angle larger than the first image capturing angle; and a processor which when a portion of a target object is identified and an obstacle object overlapping the other portion of the target object is identified from at least one of a first captured image acquired from the first camera and a second captured image acquired from the second camera, acquires location information of the identified obstacle object, identifies a region of interest in the second captured image on the basis of the acquired location information of the obstacle object, and identifies the other portion of the target object on the basis of the region of interest in the second captured image.
1 . An electronic apparatus comprising:
a first camera having a first angle of view;
a second camera having a second angle of view greater than the first angle of view;
memory storing instructions; and
at least one processor configured to execute the instructions,
wherein the instructions, when executed by the at least one processor, cause the electronic apparatus to:
acquire a first captured image through the first camera,
identify a first portion of a target object and an obstacle object overlapping a second portion of the target object in the first captured image,
identify location information and size information of the obstacle object based on the first captured image,
determine an image capturing location of the second camera based on the identified location information and size information of the obstacle object,
control the second camera to acquire a second captured image in the determined image capturing location,
identify a region of interest of the second captured image based on the location information of the obstacle object,
identify the second portion of the target object based on the region of interest of the second captured image,
generate a combined image including an entire image of the target object by combining a region of the first captured image including the target object and the obstacle object with the region of interest of the second captured image, and
identify the target object based on the combined image, and
wherein the region of interest includes a portion of the target object occluded by the obstacle object.
2 . The electronic apparatus of claim 1 , wherein the first captured image comprises an image captured by the first camera in a first image capturing location, and the second captured image comprises an image captured by the second camera in a second image capturing location different from the first image capturing location.
3 . The electronic apparatus of claim 2 , wherein the instructions, when executed by the at least one processor, further cause the electronic apparatus to:
acquire a third captured image through the second camera in a third image capturing location different from the first image capturing location and the second image capturing location,
identify a region of interest of the third captured image based on the location information of the obstacle object, and
identify the second portion of the target object based on the region of interest of the second captured image and the region of interest of the third captured image.
4 . The electronic apparatus of claim 3 ,
wherein the second image capturing location is located in a first direction relative to the first image capturing location, and
the third image capturing location is located in a second direction different from the first direction relative to the first image capturing location.
5 . The electronic apparatus of claim 4 , wherein the instructions, when executed by the at least one processor, further cause the electronic apparatus to:
identify a region of interest of the second captured image based on direction information corresponding to the second image capturing location and the location information of the obstacle object, and
identify a region of interest of the third captured image based on direction information corresponding to the third image capturing location and the location information of the obstacle object.
6 . The electronic apparatus of claim 1 , wherein the instructions, when executed by the at least one processor, further cause the electronic apparatus to:
acquire first information of the target object based on the first portion of the target object, and
acquire second information of the target object based on the second portion of the target object.
7 . The electronic apparatus of claim 1 , further comprising:
a light emitter,
wherein the instructions, when executed by the at least one processor, further cause the electronic apparatus to:
identify a region of interest of the first captured image,
identify a location corresponding to an area adjacent to the region of interest of the first captured image and the region of interest of the second captured image, and
control the light emitter to irradiate a light greater than or equal to a threshold strength on the identified location.
8 . The electronic apparatus of claim 7 ,
wherein the instructions, when executed by the at least one processor, further cause the electronic apparatus to change a light emitting angle of the light emitter to cause the light to be irradiated on the identified location.
9 . A method of controlling an electronic apparatus, the method comprising:
acquiring a first captured image through a first camera having a first angle of view;
identifying a first portion of a target object and an obstacle object overlapping a second portion of the target object in the first captured image;
identifying location information and size information of the obstacle object based on the first captured image;
determining an image capturing location of a second camera based on the location information and size information of the obstacle object, wherein the second camera has a second angle of view greater than the first angle of view;
controlling the second camera to acquire a second captured image in the determined image capturing location;
identifying a region of interest of the second captured image based on the location information of the obstacle object;
identifying the second portion of the target object based on the region of interest of the second captured image;
generating a combined image including an entire image of the target object by combining a region of the first captured image including the target object and the obstacle object with the region of interest of the second captured image; and
identifying the target object based on the combined image,
wherein the region of interest includes a portion of the target object occluded by the obstacle object.
10 . The method of claim 9 ,
wherein the first captured image comprises an image captured by the first camera in a first image capturing location, and the second captured image comprises an image captured by the second camera in a second image capturing location different from the first image capturing location.
11 . The method of claim 10 , further comprising:
acquiring a third captured image captured through the second camera in a third image capturing location different from the first image capturing location and the second image capturing location;
identifying a region of interest of the third captured image based on the identified location information of the identified obstacle object; and
identifying the second portion of the target object based on the region of interest of the second captured image and the region of interest of the third captured image.
12 . The method of claim 11 ,
wherein the second image capturing location is located in a first direction relative to the first image capturing location, and the third image capturing location is located in a second direction different from the first direction relative to the first image capturing location.
13 . An electronic apparatus comprising:
a first camera having a first angle of view;
a second camera having a second angle of view greater than the first angle of view;
memory storing instructions; and
at least one processor configured to execute the instructions,
wherein the instructions, when executed by the at least one processor, cause the electronic apparatus to:
acquire a first captured image through the first camera,
acquire a second captured image through the second camera, and
based on identification of a first portion of a target object in either the first captured image or the second captured image and identification of an obstacle object overlapping a second portion of the target object in either the first captured image or the second captured image: acquire location information of the identified obstacle object, identify a region of interest of the second captured image based on the acquired location information of the identified obstacle object, and identify the second portion of the target object based on the region of interest of the second captured image.