KR20220099827A - Electronic apparatus and control method thereof - Google Patents
Electronic apparatus and control method thereof Download PDFInfo
- Publication number
- KR20220099827A KR20220099827A KR1020210002168A KR20210002168A KR20220099827A KR 20220099827 A KR20220099827 A KR 20220099827A KR 1020210002168 A KR1020210002168 A KR 1020210002168A KR 20210002168 A KR20210002168 A KR 20210002168A KR 20220099827 A KR20220099827 A KR 20220099827A
- Authority
- KR
- South Korea
- Prior art keywords
- user
- camera
- face
- electronic device
- image
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- H04N5/2258—
-
- H04N5/247—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20132—Image cropping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Abstract
Description
본 개시는 전자 장치 및 그 제어 방법에 대한 것으로, 더욱 상세하게는 객체를 촬영하여 이미지를 획득하는 전자 장치 및 그 제어 방법에 대한 것이다.The present disclosure relates to an electronic device and a method for controlling the same, and more particularly, to an electronic device for acquiring an image by photographing an object and a method for controlling the same.
최근 스마트폰에 내장된 카메라의 성능이 급속도로 발전됨에 따라, 스마트폰을 이용한 동영상 촬영 수요가 급증했다. 그에 따라, 스마트폰 제조사들은 카메라의 성능 및 사용성 강화에 초점을 맞춰 제품을 개발하고 있다.Recently, as the performance of the built-in camera in a smartphone has rapidly developed, the demand for video recording using a smartphone has rapidly increased. Accordingly, smartphone manufacturers are developing products focusing on enhancing camera performance and usability.
다만, 현재까지 움직이는 객체(피사체)의 촬영에 있어서는 큰 발전을 보이지 않고 있다. 객체가 정지한 경우는 동영상 촬영에 어려움이 적지만, 움직이는 객체를 촬영하는 경우, 사용자는 스마트폰의 화면을 응시하고 영상 속 피사체의 움직임에 집중해야 한다. 그렇지 않은 경우, 객체가 스마트폰의 카메라 화각 밖으로 나가거나 화면의 중심에서 벗어나게 된다. 특히, 움직이는 객체를 스마트폰으로 촬영하는 경우, 객체가 화면에 잘 보이도록 촬영하기 위해서 객체를 클로즈업할 수도 있고, 이 경우 객체의 움직임에 따라서 객체가 화면 밖으로 나가게 되거나, 화면 중앙에서 벗어나 원하지 않는 영상이 생성될 가능성이 높다.However, there has not been much progress in shooting a moving object (subject) so far. When the object is still, there is little difficulty in shooting a video, but when shooting a moving object, the user must gaze at the screen of the smartphone and focus on the movement of the subject in the image. Otherwise, the object goes out of the camera angle of view of the smartphone or off the center of the screen. In particular, when shooting a moving object with a smartphone, the object may be close-up in order to take a picture so that the object can be seen clearly on the screen. It is highly probable that this will be created
즉, 사용자는 객체를 촬영하는 동안 실제 객체의 움직임에 집중하지 못하고, 스마트폰 화면을 주시해야 하는 문제가 있다.That is, there is a problem in that the user cannot focus on the movement of the actual object while photographing the object, and must keep an eye on the smartphone screen.
그에 따라, 사용자가 스마트폰 화면을 주시하지 않으면서도 객체를 놓치지 않고 촬영할 수 있는 기능이 개발될 필요가 있다.Accordingly, there is a need to develop a function that allows the user to take a picture without missing an object without looking at the screen of the smartphone.
본 개시는 상술한 필요성에 따른 것으로, 본 개시의 목적은 객체의 위치를 식별하여 사용자가 촬영하고자 하는 객체를 포함하는 이미지를 획득하는 전자 장치 및 그 제어 방법을 제공함에 있다.SUMMARY OF THE INVENTION The present disclosure has been made in accordance with the above-mentioned necessity, and an object of the present disclosure is to provide an electronic device for acquiring an image including an object to be photographed by a user by identifying the location of the object, and a method for controlling the same.
이상과 같은 목적을 달성하기 위한 본 개시의 일 실시 예에 따르면, 전자 장치는 제1 카메라, 제2 카메라 및 상기 제1 카메라 및 상기 제2 카메라와 연결되어 상기 전자 장치를 제어하는 프로세서를 포함하며, 상기 프로세서는 상기 제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하고, 상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하며, 상기 객체의 위치에 기초하여 상기 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)할 수 있다.According to an embodiment of the present disclosure for achieving the above object, an electronic device includes a first camera, a second camera, and a processor connected to the first camera and the second camera to control the electronic device, , when the front image of the electronic device is obtained through the first camera, the processor identifies the user's face direction from the front image, and determines the position of the object in the rear of the electronic device based on the user's face direction and, based on the position of the object, a region of the rear image of the electronic device acquired through the second camera may be cropped.
또한, 상기 프로세서는 상기 제2 카메라를 통해 복수의 후방 이미지를 획득하고, 상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며, 상기 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득할 수 있다.In addition, the processor acquires a plurality of rear images through the second camera, crops one region of each of the plurality of rear images based on the position of the object, and based on the cropped plurality of rear image regions A video including a plurality of acquired frames may be acquired.
그리고, 상기 프로세서는 상기 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고, 상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경된 것으로 식별되면, 상기 변경된 사용자의 얼굴 방향에 기초하여 상기 객체의 변경된 위치를 식별하며, 상기 객체의 위치 및 상기 변경된 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.In addition, the processor acquires a plurality of front images through the first camera while the plurality of rear images are acquired, and when it is identified from the plurality of front images that the direction of the user's face is changed, the changed user's face The changed position of the object may be identified based on the direction, and a different region may be cropped in each of the plurality of rear images based on the position of the object and the changed position of the object.
또한, 상기 프로세서는 상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각으로부터 상기 객체의 이미지 내의 위치를 식별하고, 상기 객체의 이미지 내의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.Further, the processor is further configured to identify a location in the image of the object from each of the plurality of back images based on the location of the object, and to crop a different region in each of the plurality of back images based on the location in the image of the object. can
그리고, 상기 프로세서는 상기 객체의 위치가 상기 제2 카메라의 화각 외부인 경우, 상기 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공할 수 있다.In addition, when the position of the object is outside the angle of view of the second camera, the processor may provide guide information warning that the object is not captured.
또한, 상기 프로세서는 상기 제2 카메라를 통해 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고, 상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경되어 상기 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간에 기초하여 상기 제1 객체 또는 상기 제2 객체 중 적어도 하나에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.In addition, the processor acquires a plurality of front images through the first camera while a plurality of rear images are obtained through the second camera, and the user's face direction is changed from the plurality of front images When the object to which the face direction faces is changed from the first object to the second object, the plurality of objects based on at least one of the first object or the second object based on a time when the face direction of the user faces the second object One region of each of the rear images of may be cropped.
그리고, 상기 프로세서는 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 제1 임계 시간 미만이면 상기 제1 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하고, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제1 임계 시간 이상이고 제2 임계 시간 미만이면 상기 제1 객체 및 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제2 임계 시간 이상이면 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.In addition, the processor is configured to crop one region of each of the plurality of rear images based on the first object when a time in which the user's face direction faces the second object is less than a first threshold time, and the user's face direction If the time towards the second object is longer than the first threshold time and less than the second threshold time, crop a region of each of the plurality of rear images based on the first object and the second object, When the time for the face direction toward the second object is equal to or greater than the second threshold time, one region of each of the plurality of rear images may be cropped based on the second object.
또한, 상기 프로세서는 상기 제2 카메라를 통한 이미지 촬영 명령 또는 동영상 촬영 명령이 입력되면, 상기 제1 카메라를 턴 온하여 상기 전자 장치의 전방을 촬영하여 상기 전방 이미지를 획득할 수 있다.In addition, when an image capturing command or a moving picture capturing command through the second camera is input, the processor may turn on the first camera to photograph the front of the electronic device to obtain the front image.
그리고, 상기 프로세서는 상기 전방 이미지로부터 상기 사용자의 얼굴을 식별하고, 상기 사용자의 얼굴 내부의 복수의 특징점에 기초하여 상기 사용자의 얼굴 방향을 식별할 수 있다.In addition, the processor may identify the user's face from the front image, and identify the user's face direction based on a plurality of feature points inside the user's face.
한편, 본 개시의 일 실시 예에 따르면, 전자 장치의 제어 방법은 제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하는 단계, 상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하는 단계 및 상기 객체의 위치에 기초하여 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)하는 단계를 포함한다.Meanwhile, according to an embodiment of the present disclosure, a method of controlling an electronic device includes: when a front image of the electronic device is acquired through a first camera, identifying a direction of the user's face from the front image; identifying the position of the object at the rear of the electronic device based on .
또한, 상기 제2 카메라를 통해 복수의 후방 이미지를 획득하는 단계를 더 포함하고, 상기 크롭하는 단계는 상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며, 상기 제어 방법은 상기 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득하는 단계를 더 포함할 수 있다.In addition, the method further includes acquiring a plurality of rear images through the second camera, wherein the cropping includes cropping a region of each of the plurality of rear images based on the position of the object, the control method comprising: The method may further include acquiring a video including a plurality of frames acquired based on the plurality of cropped rear image regions.
그리고, 상기 복수의 후방 이미지를 획득하는 단계는 상기 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고, 상기 객체의 위치를 식별하는 단계는 상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경된 것으로 식별되면, 상기 변경된 사용자의 얼굴 방향에 기초하여 상기 객체의 변경된 위치를 식별하며, 상기 크롭하는 단계는 상기 객체의 위치 및 상기 변경된 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.And, the acquiring of the plurality of rear images includes acquiring a plurality of front images through the first camera while the plurality of rear images are acquired, and the step of identifying the position of the object is performed from the plurality of front images. When it is identified that the user's face direction is changed, the changed position of the object is identified based on the changed face direction of the user, and the cropping includes the plurality of the plurality of objects based on the position of the object and the changed position of the object. You can crop a different area in each of the back images.
또한, 상기 크롭하는 단계는 상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각으로부터 상기 객체의 이미지 내의 위치를 식별하고, 상기 객체의 이미지 내의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.In addition, the cropping may include identifying a position in the image of the object from each of the plurality of rear images based on the position of the object, and selecting a different region in each of the plurality of rear images based on the position in the image of the object. can be cropped
그리고, 상기 객체의 위치가 상기 제2 카메라의 화각 외부인 경우, 상기 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공하는 단계를 더 포함할 수 있다.The method may further include providing guide information warning that the object is not captured when the position of the object is outside the angle of view of the second camera.
또한, 상기 제2 카메라를 통해 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하는 단계를 더 포함하고, 상기 크롭하는 단계는 상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경되어 상기 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간에 기초하여 상기 제1 객체 또는 상기 제2 객체 중 적어도 하나에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.In addition, the method further includes acquiring a plurality of front images through the first camera while a plurality of rear images are acquired through the second camera, wherein the cropping includes the user's face from the plurality of front images When the direction is changed and the object to which the user's face direction is directed is changed from the first object to the second object, one of the first object or the second object based on the time when the user's face direction faces the second object One region of each of the plurality of rear images may be cropped based on at least one.
그리고, 상기 크롭하는 단계는 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 제1 임계 시간 미만이면 상기 제1 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하고, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제1 임계 시간 이상이고 제2 임계 시간 미만이면 상기 제1 객체 및 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제2 임계 시간 이상이면 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.In addition, the cropping includes cropping one region of each of the plurality of rear images based on the first object when the time in which the face direction of the user faces the second object is less than a first threshold time, and When a time in which a face direction faces the second object is longer than the first threshold time and less than a second threshold time, crop a region of each of the plurality of rear images based on the first object and the second object, wherein If the time for the user's face toward the second object is equal to or greater than the second threshold time, one region of each of the plurality of rear images may be cropped based on the second object.
또한, 상기 제2 카메라를 통한 동영상 촬영 명령이 입력되면, 상기 제1 카메라를 턴 온하여 상기 전자 장치의 전방을 촬영하여 상기 전방 이미지를 획득하는 단계를 더 포함할 수 있다.The method may further include, when a video capturing command is input through the second camera, turning on the first camera to photograph the front of the electronic device to obtain the front image.
그리고, 상기 사용자의 얼굴 방향을 식별하는 단계는 상기 전방 이미지로부터 상기 사용자의 얼굴을 식별하고, 상기 사용자의 얼굴 내부의 복수의 특징점에 기초하여 상기 사용자의 얼굴 방향을 식별할 수 있다.In addition, the identifying of the user's face direction may include identifying the user's face from the front image, and identifying the user's face direction based on a plurality of feature points inside the user's face.
한편, 본 개시의 일 실시 예에 따르면, 전자 장치의 동작 방법을 실행하기 위한 프로그램이 저장된 비일시적 컴퓨터 판독가능 기록매체에 있어서, 상기 동작 방법은 제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하는 단계, 상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하는 단계 및 상기 객체의 위치에 기초하여 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)하는 단계를 포함한다.Meanwhile, according to an embodiment of the present disclosure, in a non-transitory computer-readable recording medium storing a program for executing a method of operating an electronic device, the operating method includes obtaining a front image of the electronic device through a first camera , identifying the user's face direction from the front image, identifying the position of the object at the rear of the electronic device based on the user's face direction, and acquiring through a second camera based on the position of the object and cropping a region of the rear image of the electronic device.
이상과 같은 본 개시의 다양한 실시 예에 따르면, 전자 장치는 사용자의 얼굴 방향을 식별하고, 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하며, 객체의 위치에 기초하여 획득된 이미지의 일 영역을 크롭함에 따라 사용자가 촬영하고자 하는 객체를 포함하는 이미지를 획득할 수 있다.According to various embodiments of the present disclosure as described above, the electronic device identifies the direction of the user's face, identifies the position of the object based on the direction of the user's face, and selects a region of an image obtained based on the position of the object. By cropping, an image including an object that the user wants to photograph may be acquired.
또한, 전자 장치는 사용자의 얼굴 방향에 기초하여 객체를 자동으로 식별하기 때문에 사용자가 촬영 중에 촬영 화면을 주시할 필요 없이 객체를 주시하면서 촬영할 수 있어 사용자 편의성이 증대된다.In addition, since the electronic device automatically identifies the object based on the direction of the user's face, the user can take a picture while looking at the object without the need for the user to look at the shooting screen during shooting, thereby increasing user convenience.
도 1a는 본 개시의 일 실시 예에 따른 전자 장치의 구성을 나타내는 블럭도이다.
도 1b는 본 개시의 일 실시 예에 따른 전자 장치의 세부 구성을 나타내는 블럭도이다.
도 2는 본 개시의 일 실시 예에 따른 전자 장치의 구조를 설명하기 위한 도면이다.
도 3a 내지 도 3d는 본 개시의 일 실시 예에 따른 사용자를 식별하는 방법을 설명하기 위한 도면들이다.
도 4는 본 개시의 일 실시 예에 따른 객체의 위치를 식별하는 방법을 설명하기 위한 도면이다.
도 5는 본 개시의 일 실시 예에 따른 크롭 동작을 설명하기 위한 도면들이다.
도 6은 본 개시의 일 실시 예에 따른 FoV(Field of View)와 FoI(Field of Interest)의 차이를 설명하기 위한 도면이다.
도 7a 및 도 7b는 본 개시의 다양한 실시 예에 따른 FoI의 변화를 설명하기 위한 도면들이다.
도 8은 본 개시의 일 실시 예에 따른 전자 장치의 제어 방법을 설명하기 위한 흐름도이다.1A is a block diagram illustrating a configuration of an electronic device according to an embodiment of the present disclosure.
1B is a block diagram illustrating a detailed configuration of an electronic device according to an embodiment of the present disclosure.
2 is a diagram for explaining a structure of an electronic device according to an embodiment of the present disclosure.
3A to 3D are diagrams for explaining a method of identifying a user according to an embodiment of the present disclosure.
4 is a diagram for explaining a method of identifying a location of an object according to an embodiment of the present disclosure.
5 is a view for explaining a cropping operation according to an embodiment of the present disclosure.
6 is a diagram for explaining a difference between a Field of View (FoV) and a Field of Interest (FoI) according to an embodiment of the present disclosure.
7A and 7B are diagrams for explaining a change in FoI according to various embodiments of the present disclosure.
8 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.
이하에서는 첨부 도면을 참조하여 본 개시를 상세히 설명한다.Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings.
본 개시의 실시 예에서 사용되는 용어는 본 개시에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 개시의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 개시에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 개시의 전반에 걸친 내용을 토대로 정의되어야 한다.The terms used in the embodiments of the present disclosure are selected as currently widely used general terms as possible while considering the functions in the present disclosure, which may vary depending on the intention or precedent of a person skilled in the art, the emergence of new technology, etc. . In addition, in specific cases, there are also terms arbitrarily selected by the applicant, and in this case, the meaning will be described in detail in the description of the corresponding disclosure. Therefore, the terms used in the present disclosure should be defined based on the meaning of the term and the contents of the present disclosure, rather than the simple name of the term.
본 명세서에서, "가진다," "가질 수 있다," "포함한다," 또는 "포함할 수 있다" 등의 표현은 해당 특징(예: 수치, 기능, 동작, 또는 부품 등의 구성요소)의 존재를 가리키며, 추가적인 특징의 존재를 배제하지 않는다.In the present specification, expressions such as “have,” “may have,” “include,” or “may include” indicate the presence of a corresponding characteristic (eg, a numerical value, function, operation, or component such as a part). and does not exclude the presence of additional features.
A 또는/및 B 중 적어도 하나라는 표현은 "A" 또는 "B" 또는 "A 및 B" 중 어느 하나를 나타내는 것으로 이해되어야 한다.The expression “at least one of A and/or B” is to be understood as indicating either “A” or “B” or “A and B”.
본 명세서에서 사용된 "제1," "제2," "첫째," 또는 "둘째,"등의 표현들은 다양한 구성요소들을, 순서 및/또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다.As used herein, expressions such as "first," "second," "first," or "second," can modify various elements, regardless of order and/or importance, and refer to one element. It is used only to distinguish it from other components, and does not limit the components.
단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "구성되다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as "comprises" or "consisting of" are intended to designate that the features, numbers, steps, operations, components, parts, or combinations thereof described in the specification exist, and are intended to indicate that one or more other It is to be understood that this does not preclude the possibility of addition or presence of features or numbers, steps, operations, components, parts, or combinations thereof.
본 명세서에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공 지능 전자 장치)를 지칭할 수 있다.In this specification, the term user may refer to a person who uses an electronic device or a device (eg, an artificial intelligence electronic device) using the electronic device.
이하 첨부된 도면들을 참조하여 본 개시의 일 실시 예를 보다 상세하게 설명한다.Hereinafter, an embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings.
도 1a는 본 개시의 일 실시 예에 따른 전자 장치(100)의 구성을 나타내는 블럭도이다. 다만, 이에 한정되는 것은 아니며, 전자 장치(100)는 도 1a의 구성 중 일부가 생략된 상태로 구현될 수도 있다.1A is a block diagram illustrating a configuration of an
전자 장치(100)는 객체를 촬영하여 이미지를 획득하는 장치로서, 스마트폰, 태블릿 PC, 디지털 카메라, 스마트 안경 등과 같은 장치일 수 있다. 다만, 이에 한정되는 것은 아니며, 전자 장치(100)는 객체를 촬영하여 이미지를 획득할 수 있는 장치라면 어떠한 장치라도 무방하다.The
도 1a에 따르면, 전자 장치(100)는 제1 카메라(110), 제2 카메라(120) 및 프로세서(130)를 포함한다.Referring to FIG. 1A , an
제1 카메라(110) 및 제2 카메라(120)는 프로세서(130)의 제어에 따라 정지 영상 또는 동영상을 촬상하기 위한 구성이다. 제1 카메라(110) 및 제2 카메라(120)는 특정 시점에서의 정지 영상을 촬영할 수 있으나, 연속적으로 정지 영상을 촬영할 수도 있다.The
제1 카메라(110) 및 제2 카메라(120)는 전자 장치(100) 주변의 일 영역에 대한 영상을 촬영할 수 있다. 예를 들어, 제1 카메라(110) 및 제2 카메라(120)는 71도의 화각으로 전자 장치(100)의 주변 영상을 촬영할 수 있다. 다만, 이에 한정되는 것은 아니며, 제1 카메라(110) 및 제2 카메라(120)는 상이한 화각으로 전자 장치(100)의 주변 영상을 촬영할 수 있다.The
제1 카메라(110)는 전자 장치(100)의 전방을 촬영하도록 배치되고, 제2 카메라(120)는 전자 장치(100)의 후방을 촬영하도록 배치될 수 있다. 예를 들어, 전자 장치(100)는 바(bar) 타입으로 구현되고, 전자 장치(100)의 전면에는 제1 카메라(110)가 배치되고, 전자 장치(100)의 후면에는 제2 카메라(120)가 배치될 수 있다. 특히, 전자 장치(100)의 전면에서는 후술할 디스플레이와 함께 제1 카메라(110)가 배치될 수 있다.The
제1 카메라(110) 및 제2 카메라(120) 각각은 렌즈, 셔터, 조리개, 고체 촬상 소자, AFE(Analog Front End), TG(Timing Generator)를 포함할 수 있다. 셔터는 피사체에 반사된 빛이 제1 카메라(110) 및 제2 카메라(120) 각각으로 들어오는 시간을 조절하고, 조리개는 빛이 들어오는 개구부의 크기를 기계적으로 증가 또는 감소시켜 렌즈에 입사되는 광량을 조절할 수 있다. 고체 촬상 소자는 피사체에 반사된 빛이 광전하로 축적되면, 광전하에 의한 상을 전기 신호로 출력할 수 있다. TG는 고체 촬상 소자의 픽셀 데이터를 리드아웃 하기 위한 타이밍 신호를 출력하며, AFE는 고체 촬상 소자로부터 출력되는 전기 신호를 샘플링하여 디지털화할 수 있다.Each of the
프로세서(130)는 전자 장치(100)의 동작을 전반적으로 제어한다. 구체적으로, 프로세서(130)는 전자 장치(100)의 각 구성과 연결되어 전자 장치(100)의 동작을 전반적으로 제어할 수 있다. 예를 들어, 프로세서(130)는 제1 카메라(110) 및 제2 카메라(120)와 연결되어 전자 장치(100)의 동작을 제어할 수 있다.The
일 실시 예에 따라 프로세서(130)는 디지털 시그널 프로세서(digital signal processor(DSP), 마이크로 프로세서(microprocessor), TCON(Time controller)으로 구현될 수 있다. 다만, 이에 한정되는 것은 아니며, 중앙처리장치(central processing unit(CPU)), MCU(Micro Controller Unit), MPU(micro processing unit), 컨트롤러(controller), 어플리케이션 프로세서(application processor(AP)), 또는 커뮤니케이션 프로세서(communication processor(CP)), ARM 프로세서 중 하나 또는 그 이상을 포함하거나, 해당 용어로 정의될 수 있다. 또한, 프로세서(130)는 프로세싱 알고리즘이 내장된 SoC(System on Chip), LSI(large scale integration)로 구현될 수도 있고, FPGA(Field Programmable gate array) 형태로 구현될 수도 있다.According to an embodiment, the
프로세서(130)는 제1 카메라(110)를 통해 전자 장치(100)의 전방 이미지가 획득되면, 전방 이미지로부터 사용자의 얼굴 방향을 식별할 수 있다. 예를 들어, 프로세서(130)는 제2 카메라(120)를 통한 이미지 촬영 명령 또는 동영상 촬영 명령이 입력되면, 제1 카메라(110)를 턴 온하여 전자 장치(110)의 전방을 촬영하여 전방 이미지를 획득할 수 있다. 그리고, 프로세서(130)는 전방 이미지로부터 사용자의 얼굴을 식별하고, 사용자의 얼굴 내부의 복수의 특징점에 기초하여 사용자의 얼굴 방향을 식별할 수 있다. 가령, 프로세서(130)는 사용자의 얼굴 내부의 복수의 특징점 간의 거리에 기초하여 사용자의 얼굴이 전자 장치(100)를 기준으로 얼마나 회전된 상태인지 식별할 수 있다.When the front image of the
다만, 이에 한정되는 것은 아니며, 프로세서(130)는 사용자의 눈에 기초하여 사용자의 시선 방향을 식별할 수도 있다. 이하에서는 설명의 편의를 위해 사용자의 얼굴 방향을 이용하는 것으로 설명하나, 사용자의 시선 방향이 이용될 수도 있다.However, the present invention is not limited thereto, and the
프로세서(130)는 사용자의 얼굴 방향에 기초하여 전자 장치(100)의 후방에서 객체의 위치를 식별하며, 제2 카메라(120)를 통해 전자 장치(100)의 후방 이미지가 획득되면, 객체의 위치에 기초하여 후방 이미지의 일 영역을 크롭(crop)할 수 있다.The
프로세서(130)는 다양한 방법으로 객체의 위치에 기초하여 후방 이미지의 일 영역을 크롭할 수 있다. 예를 들어, 프로세서(130)는 사용자의 얼굴 방향에 기초하여 전자 장치(100)의 후방에서 객체가 우측에 위치하는 것을 식별하고, 제2 카메라(120)를 통해 획득된 후방 이미지의 우측 영역을 크롭할 수 있다. 또는, 프로세서(130)는 이미지를 매트릭스 형태의 좌측 상단, 우측 상단, 좌측 하단, 우측 하단의 4영역으로 구분하고, 사용자의 얼굴 방향에 기초하여 4영역 중 하나에서 객체를 식별하고, 객체의 위치에 기초하여 후방 이미지의 일 영역을 크롭할 수도 있다. 이때, 프로세서(130)는 신경망 모델을 이용하여 4영역 중 하나의 영역에서 객체를 식별할 수 있다. 또는, 프로세서(130)는 제2 카메라(120)의 정면 방향에 대한 객체의 각도를 획득하고, 해당 각도에 대응되는 후방 이미지의 일부 영역에서 객체의 위치를 식별하며, 이미지 내에서 식별된 객체의 위치에 기초하여 후방 이미지의 일 영역을 크롭할 수도 있다.The
프로세서(130)는 객체의 위치에 기초하여 후방 이미지에서 기설정된 크기의 일 영역을 크롭할 수 있다. 다만, 이에 한정되는 것은 아니며, 프로세서(130)는 후방 이미지에서 객체의 크기를 식별하고, 식별된 객체의 크기에 기초하여 크롭할 영역을 크기를 결정할 수도 있다.The
프로세서(130)는 제2 카메라(120)를 통해 복수의 후방 이미지를 획득하고, 객체의 위치에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하며, 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득할 수 있다. 즉, 프로세서(130)는 동영상 촬영을 수행하며, 각 이미지 프레임을 객체의 위치에 기초하여 크롭할 수 있다.The
여기서, 프로세서(130)는 복수의 후방 이미지가 획득되는 동안 제1 카메라(110)를 통해 복수의 전방 이미지를 획득하고, 복수의 전방 이미지로부터 사용자의 얼굴 방향이 변경된 것으로 식별되면, 변경된 사용자의 얼굴 방향에 기초하여 객체의 변경된 위치를 식별하며, 객체의 위치 및 변경된 객체의 위치에 기초하여 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.Here, the
예를 들어, 프로세서(130)는 제1 후방 이미지가 획득되는 동안 제1 전방 이미지를 획득하고, 제1 후방 이미지 다음의 제2 후방 이미지가 획득되는 동안 제2 후방 이미지를 획득할 수 있다. 그리고, 프로세서(130)는 제1 전방 이미지의 사용자의 얼굴 방향이 제2 전방 이미지에서 변경되었다면, 사용자의 얼굴 방향이 변경되기 전의 객체의 위치에 기초하여 제1 후방 이미지를 크롭하고, 사용자의 얼굴 방향이 변경된 후의 객체의 위치에 기초하여 제2 후방 이미지를 크롭할 수 있다.For example, the
또는, 프로세서(130)는 객체의 위치에 기초하여 복수의 후방 이미지 각각으로부터 객체의 이미지 내의 위치를 식별하고, 객체의 이미지 내의 위치에 기초하여 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수도 있다. 즉, 프로세서(130)는 객체의 위치에 기초하여 후방 이미지로부터 객체를 식별하고, 객체의 이미지 내에서 식별된 위치를 더 고려하여 후방 이미지 각각의 일 영역을 크롭할 수도 있다. 이 경우, 단순히 객체의 위치를 이용하여 크롭하는 경우보다 크롭의 정확도가 향상될 수 있다.Alternatively, the
한편, 프로세서(130)는 객체의 위치가 제2 카메라(120)의 화각 외부인 경우, 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공할 수 있다. 예를 들어, 프로세서(130)는 객체가 이동함에 따라 제2 카메라(120)의 화각 외부로 객체가 위치하게 된 경우, 객체가 촬영되지 않음을 경고하는 가이드 정보를 디스플레이하거나 사운드로 경고음을 출력할 수 있다. 또는, 프로세서(130)는 LED의 깜박임을 통해 경고를 제공할 수도 있다.Meanwhile, when the position of the object is outside the angle of view of the
한편, 프로세서(130)는 제2 카메라(120)를 통해 복수의 후방 이미지가 획득되는 동안 제1 카메라(110)를 통해 복수의 전방 이미지를 획득하고, 복수의 전방 이미지로부터 사용자의 얼굴 방향이 변경되어 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 사용자의 얼굴 방향이 제2 객체를 향한 시간에 기초하여 제1 객체 또는 제2 객체 중 적어도 하나에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.Meanwhile, the
예를 들어, 프로세서(130)는 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 미만이면 제1 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하고, 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 이상이고 제2 임계 시간 미만이면 제1 객체 및 제2 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하며, 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제2 임계 시간 이상이면 제2 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.For example, the
즉, 프로세서(130)는 사용자가 잠시 다른 곳을 응시한 경우(사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 미만인 경우)는 사용자가 촬영하고자 하는 객체가 변경되지 않은 것으로 식별하고 최초의 객체에 기초하여 후방 이미지를 크롭할 수 있다. 그리고, 프로세서(130)는 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 이상이고 제2 임계 시간 미만이면 제1 객체 및 제2 객체에 기초하여 후방 이미지를 크롭하여 크롭 이미지가 갑작스럽게 변경되는 것을 방지할 수 있다. 가령, 프로세서(130)는 복수의 후방 이미지를 크롭하는 동안, 제1 객체를 포함하는 영역을 단계적으로 확장시키고, 제2 객체가 포함되면 제1 객체 부근의 영역을 단계적으로 축소시키는 방식으로 크롭할 수 있다. 그리고, 프로세서(130)는 제2 객체를 응시한 시간이 임계 시간이 도과한 경우(사용자의 얼굴 방향이 제2 객체를 향한 시간이 제2 임계 시간 이상인 경우)에야 사용자의 관심 객체가 변경된 것으로 식별할 수 있다.That is, when the user stares at another place for a while (when the time for the user's face direction toward the second object is less than the first threshold time), the
다만, 이에 한정되는 것은 아니며, 프로세서(130)는 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 미만이면 제1 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하고, 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 이상이면 제2 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭할 수도 있다.However, the present invention is not limited thereto, and the
이상에서는 사용자의 얼굴 방향을 기초로 객체가 변경된 것으로 설명하였으나, 이에 한정되는 것은 아니다. 예를 들어, 프로세서(130)는 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하고, 후방 이미지로부터 객체를 식별할 수 있다. 프로세서(130)는 이러한 동작을 복수의 후방 이미지 각각에 대하여 수행하고, 복수의 후방 이미지 각각으로부터 식별된 객체의 형태가 변경된 경우, 이상과 같은 동작을 수행할 수도 있다.In the above, it has been described that the object is changed based on the direction of the user's face, but the present invention is not limited thereto. For example, the
도 1b는 본 개시의 일 실시 예에 따른 전자 장치(100)의 세부 구성을 나타내는 블럭도이다. 전자 장치(100)는 제1 카메라(110), 제2 카메라(120) 및 프로세서(130)를 포함할 수 있다. 또한, 도 1b에 따르면, 전자 장치(100)는 디스플레이(140), 메모리(150), 사용자 인터페이스(160), 통신 인터페이스(170), 스피커(180) 중 적어도 하나를 더 포함할 수도 있다. 도 1b에 도시된 구성요소들 중 도 1a에 도시된 구성요소와 중복되는 부분에 대해서는 자세한 설명을 생략하도록 한다.1B is a block diagram illustrating a detailed configuration of an
디스플레이(140)는 LCD(Liquid Crystal Display), OLED(Organic Light Emitting Diodes) 디스플레이, PDP(Plasma Display Panel) 등과 같은 다양한 형태의 디스플레이로 구현될 수 있다. 디스플레이(140) 내에는 a-si TFT, LTPS(low temperature poly silicon) TFT, OTFT(organic TFT) 등과 같은 형태로 구현될 수 있는 구동 회로, 백라이트 유닛 등도 함께 포함될 수 있다. 한편, 디스플레이(140)는 터치 센서와 결합된 터치 스크린, 플렉시블 디스플레이(flexible display), 3차원 디스플레이(3D display) 등으로 구현될 수 있다.The
디스플레이(140)는 전자 장치(100)의 전면에 배치될 수 있다. 다만, 이에 한정되는 것은 아니며, 디스플레이(140)는 제1 카메라(110)와 동일한 면에 배치된다면 어떠한 형태라도 무방하다.The
디스플레이(140)는 프로세서(130)의 제어에 따라 제2 카메라(120)를 통해 촬영되는 후방 이미지를 실시간으로 디스플레이할 수 있다. 또한, 디스플레이(140)는 프로세서(130)의 제어에 따라 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공할 수도 있다.The
메모리(150)는 프로세서(130) 등이 접근할 수 있도록 데이터 등의 정보를 전기 또는 자기 형태로 저장하는 하드웨어를 지칭할 수 있다. 이를 위해, 메모리(150)는 비휘발성 메모리, 휘발성 메모리, 플래시 메모리(Flash Memory), 하드디스크 드라이브(HDD) 또는 솔리드 스테이트 드라이브(SSD), RAM, ROM 등 중에서 적어도 하나의 하드웨어로 구현될 수 있다.The
메모리(150)에는 전자 장치(100) 또는 프로세서(130)의 동작에 필요한 적어도 하나의 인스트럭션(instruction) 또는 모듈이 저장될 수 있다. 여기서, 인스트럭션은 전자 장치(100) 또는 프로세서(130)의 동작을 지시하는 부호 단위로서, 컴퓨터가 이해할 수 있는 언어인 기계어로 작성된 것일 수 있다. 모듈은 작업 단위의 특정 작업을 수행하는 일련의 인스트럭션의 집합체(instruction set)일 수 있다.At least one instruction or module required for the operation of the
메모리(150)에는 문자, 수, 영상 등을 나타낼 수 있는 비트 또는 바이트 단위의 정보인 데이터가 저장될 수 있다. 예를 들어, 메모리(150)에는 얼굴 식별 모듈, 얼굴 방향 식별 모듈, 객체 위치 식별 모듈, 객체 식별 모듈, 크롭 모듈 등이 저장될 수 있다. 여기서, 얼굴 식별 모듈, 얼굴 방향 식별 모듈, 객체 위치 식별 모듈, 객체 식별 모듈, 크롭 모듈 중 적어도 하나는 신경망 모델로 구현될 수도 있다.The
메모리(150)는 프로세서(130)에 의해 액세스되며, 프로세서(130)에 의해 인스트럭션, 모듈 또는 데이터에 대한 독취/기록/수정/삭제/갱신 등이 수행될 수 있다.The
사용자 인터페이스(160)는 버튼, 터치 패드, 마우스 및 키보드 등으로 구현되거나, 상술한 디스플레이 기능 및 조작 입력 기능도 함께 수행 가능한 터치 스크린으로도 구현될 수 있다. 여기서, 버튼은 전자 장치(100)의 본체 외관의 전면부나 측면부, 배면부 등의 임의의 영역에 형성된 기계적 버튼, 터치 패드, 휠 등과 같은 다양한 유형의 버튼이 될 수 있다.The
통신 인터페이스(170)는 다양한 유형의 통신방식에 따라 다양한 유형의 외부 장치와 통신을 수행하는 구성이다. 예를 들어, 전자 장치(100)는 통신 인터페이스(170)를 통해 외부 장치로부터 각종 모듈을 수신할 수 있다.The
통신 인터페이스(170)는 와이파이 모듈, 블루투스 모듈, 적외선 통신 모듈 및 무선 통신 모듈 등을 포함할 수 있다. 여기서, 각 통신 모듈은 적어도 하나의 하드웨어 칩 형태로 구현될 수 있다.The
와이파이 모듈, 블루투스 모듈은 각각 WiFi 방식, 블루투스 방식으로 통신을 수행한다. 와이파이 모듈이나 블루투스 모듈을 이용하는 경우에는 SSID 및 세션 키 등과 같은 각종 연결 정보를 먼저 송수신하여, 이를 이용하여 통신 연결한 후 각종 정보들을 송수신할 수 있다. 적외선 통신 모듈은 시 광선과 밀리미터파 사이에 있는 적외선을 이용하여 근거리에 무선으로 데이터를 전송하는 적외선 통신(IrDA, infrared Data Association)기술에 따라 통신을 수행한다.The Wi-Fi module and the Bluetooth module perform communication using a WiFi method and a Bluetooth method, respectively. In the case of using a Wi-Fi module or a Bluetooth module, various types of connection information such as an SSID and a session key are first transmitted and received, and various types of information can be transmitted/received after a communication connection is made using this. The infrared communication module communicates according to the infrared data association (IrDA) technology, which wirelessly transmits data in a short distance using infrared that is between visible light and millimeter waves.
무선 통신 모듈은 상술한 통신 방식 이외에 지그비(zigbee), 3G(3rd Generation), 3GPP(3rd Generation Partnership Project), LTE(Long Term Evolution), LTE-A(LTE Advanced), 4G(4th Generation), 5G(5th Generation)등과 같은 다양한 무선 통신 규격에 따라 통신을 수행하는 적어도 하나의 통신 칩을 포함할 수 있다.In addition to the above-described communication method, the wireless communication module includes Zigbee, 3rd Generation (3G), 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), LTE Advanced (LTE-A), 4th Generation (4G), 5G It may include at least one communication chip that performs communication according to various wireless communication standards, such as (5th Generation).
또는, 통신 인터페이스(170)는 HDMI, DP, 썬더볼트, USB, RGB, D-SUB, DVI 등과 같은 유선 통신 인터페이스를 포함할 수 있다.Alternatively, the
그 밖에 통신 인터페이스(170)는 LAN(Local Area Network) 모듈, 이더넷 모듈, 또는 페어 케이블, 동축 케이블 또는 광섬유 케이블 등을 이용하여 통신을 수행하는 유선 통신 모듈 중 적어도 하나를 포함할 수도 있다.In addition, the
스피커(180)는 전기 신호를 입력받고, 입력된 전기 신호에 기초하여 진동판을 진동시켜 사운드를 방사할 수 있다. 스피커(180)는 프로세서(130)의 제어에 따라 객체가 촬영되지 않음을 경고하는 사운드를 출력할 수도 있다.The
이상과 같이 전자 장치(100)는 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하고, 식별된 객체의 위치에 기초하여 획득된 이미지의 일 영역을 크롭함에 따라 사용자가 촬영 중에 촬영 화면을 주시할 필요 없이 객체가 포함된 이미지를 획득할 수 있다.As described above, the
이하에서는 도 2 내지 도 7을 통해 전자 장치(100)의 동작을 좀더 구체적으로 설명한다. 도 2 내지 도 7에서는 설명의 편의를 위해 개별적인 실시 예에 대하여 설명한다. 다만, 도 2 내지 도 7의 개별적인 실시 예는 얼마든지 조합된 상태로 실시될 수도 있다.Hereinafter, the operation of the
도 2는 본 개시의 일 실시 예에 따른 전자 장치(100)의 구조를 설명하기 위한 도면이다.2 is a view for explaining the structure of the
전자 장치(100)는 전면에 제1 카메라(110)를 포함하고, 후면에 제2 카메라(120)를 포함할 수 있다. 또한, 전자 장치(100)는 전면에 제1 카메라(110) 및 디스플레이(140)를 포함하고, 후면에 제2 카메라(120)를 포함할 수도 있다.The
그 밖에 전자 장치(100)는 얼마든지 다양한 형태로 구현될 수도 있으며, 제1 카메라(110)와 제2 카메라(120)의 촬영 방향이 반대 방향이고, 제1 카메라(110) 및 제2 카메라(120)를 동시에 구동할 수 있는 장치라면 어떠한 형태라도 무방하다.In addition, the
도 3a 내지 도 3d는 본 개시의 일 실시 예에 따른 사용자를 식별하는 방법을 설명하기 위한 도면들이다.3A to 3D are diagrams for explaining a method of identifying a user according to an embodiment of the present disclosure.
프로세서(130)는 전방 이미지로부터 사용자의 위치를 식별할 수 있다. 먼저, 도 3a에 도시된 바와 같이, 사용자의 위치를 제1 카메라(110)의 위치에 대하여 , 로서 표현하면, 하기의 수학식 1이 성립한다.The
[수학식 1][Equation 1]
여기서, FoV(Field of View)는 제1 카메라에 의해 촬영될 수 있는 영역의 크기를 각도로 표현한 값이며, w는 FoV에서 가장 왼쪽으로부터 오른쪽까지의 길이를 나타낸다.Here, a field of view (FoV) is a value expressing the size of an area that can be photographed by the first camera as an angle, and w represents a length from the leftmost to the right in the FoV.
수학식 1은 수학식 2와 같이 w에 대한 식으로 변경할 수 있다.Equation 1 can be changed to an expression for w as in
[수학식 2][Equation 2]
프로세서(130)는 전방 이미지의 사용자 위치에 기초하여 수학식 3을 통해 를 획득할 수 있다.The
[수학식 3][Equation 3]
여기서, 은 전방 이미지의 중심으로부터 이미지 내의 사용자까지의 거리이고, 은 전방 이미지의 가로 길이이다.here, is the distance from the center of the front image to the user in the image, is the horizontal length of the front image.
한편, 프로세서(130)는 도 3b에 도시된 바와 같이 전방 이미지로부터 사용자의 얼굴을 식별하고, 사용자의 얼굴 내부의 복수의 특징점에 기초하여 사용자의 얼굴 방향을 식별할 수 있다. 예를 들어, 프로세서(130)는 68개의 특징점을 가지는 Dlib이 제공하는 모델을 통해 전방 이미지로부터 사용자의 얼굴을 식별하고, OpenCV를 이용하여 2차원 data를 3차원으로 변형하여 사용자의 얼굴 방향을 식별할 수 있다. 다만, 이에 한정되는 것은 아니며, 프로세서(130)는 얼마든지 다양한 방법으로 전방 이미지로부터 사용자의 얼굴 및 사용자의 얼굴 방향을 식별할 수도 있다.Meanwhile, the
사용자의 얼굴 방향은 제1 카메라(110)와 사용자가 이루는 선을 기준으로 로 표현될 수 있다.The direction of the user's face is based on the line formed by the
한편, 프로세서(130)는 기설정된 값을 수학식 3의 로 이용할 수 있다. 사용자와 전자 장치(100) 간의 거리인 는 팔꿈치부터 어깨까지의 거리 정도로 사람마다 큰 차이가 없기 때문에 기설정된 값이 이용될 수 있다.On the other hand, the
또는, 프로세서(130)는 도 3c 및 도 3d와 같은 방법으로 를 획득할 수도 있다. 예를 들어, 프로세서(130)는 도 3c에 도시된 바와 같이, 같은 방향을 촬영하는 두 개의 카메라를 이용하여 두 장의 이미지를 획득하고, 도 3d에 도시된 바와 같이, 삼각형의 대칭을 이용하여 수학식 4와 같이 계산될 수 있다.Alternatively, the
[수학식 4][Equation 4]
여기서, Z는 객체까지의 거리로 이며, f는 초점 거리이고, b는 카메라 간의 거리이며, 는 객체의 위치 변화이다.where Z is the distance to the object where f is the focal length, b is the distance between cameras, is the change in the position of the object.
[수학식 4]를 설명하기 위해 두 개의 카메라가 필요한 것으로 설명하였으나, 이에 한정되는 것은 아니다. 예를 들어, 한 개의 카메라를 이용하여 상이한 지점에서 두 번 촬영을 수행하여 유사한 방식으로 가 획득될 수도 있다.It has been described that two cameras are required to explain [Equation 4], but the present invention is not limited thereto. For example, using a single camera to take two shots at different points in a similar way may be obtained.
도 4는 본 개시의 일 실시 예에 따른 객체의 위치를 식별하는 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a method of identifying a location of an object according to an embodiment of the present disclosure.
도 4에서는 사용자가 우측 상단을 응시하는 것으로 가정하였으며, 프로세서(130)는 하기의 수학식 5와 같은 과정을 통해 제2 카메라(110)의 정면 방향에 대한 객체의 각도 를 획득할 수 있다.In FIG. 4 , it is assumed that the user gazes at the upper right corner, and the
[수학식 5][Equation 5]
여기서, , , 는 도 3a 내지 도 3d를 통해 획득된 상태이고, 는 도 3c 및 도 3d와 같은 방식으로 획득될 수 있고, 는 , 를 이용한 탄젠트 함수를 통해 획득될 수 있다.here, , , is a state obtained through FIGS. 3A to 3D, can be obtained in the same way as in FIGS. 3C and 3D, Is , It can be obtained through a tangent function using
한편, 도 3a 내지 도 4에서 획득된 제2 카메라(110)의 정면 방향에 대한 객체의 각도 는 가로축 성분만이 반영된 값이다. 프로세서(130)는 동일한 방식으로 세로축 성분만이 반영된 제2 카메라(110)의 정면 방향에 대한 객체의 각도를 획득할 수 있다. 이러한 과정을 통해 객체의 위치가 좀더 정확하게 획득될 수 있다.Meanwhile, the angle of the object with respect to the front direction of the
다만, 이에 한정되는 것은 아니며, 프로세서(130)는 가로축 성분 및 세로축 성분 중 하나만을 고려하여 객체의 위치를 식별할 수도 있다.However, the present invention is not limited thereto, and the
도 5는 본 개시의 일 실시 예에 따른 크롭 동작을 설명하기 위한 도면들이다.5 is a view for explaining a cropping operation according to an embodiment of the present disclosure.
도 5의 상단 도면은 사용자가 전자 장치(100)를 통해 객체(사람)를 촬영하는 도면이며, 도 5의 중간 도면은 제2 카메라(120)를 통해 획득된 후방 이미지를 나타낸다. 이 과정에서 프로세서(130)는 제1 카메라(110)를 통해 전방 이미지를 획득하고, 사용자의 얼굴 방향을 식별할 수 있다.The upper view of FIG. 5 is a view in which a user photographs an object (person) through the
도 5의 하단 도면은 사용자의 얼굴 방향에 기초하여 후방 이미지의 일 영역이 크롭된 결과물로서, 최종적으로 메모리(150)에 저장될 수 있다.The bottom view of FIG. 5 is a result of cropping a region of the rear image based on the direction of the user's face, and may be finally stored in the
도 6은 본 개시의 일 실시 예에 따른 FoV(Field of View)와 FoI(Field of Interest)의 차이를 설명하기 위한 도면이다.6 is a diagram for explaining a difference between a Field of View (FoV) and a Field of Interest (FoI) according to an embodiment of the present disclosure.
FoV는 제2 카메라(120)에 의해 촬영되는 제1 영역이고, FoI는 사용자의 얼굴 방향이 향하는 제2 영역으로, 제1 영역은 제2 영역과 음영 처리된 영역을 포함할 수 있다.FoV is a first area photographed by the
프로세서(130)는 제1 영역과 같은 후방 이미지가 촬영되면, 후방 이미지를 제2 영역으로 크롭하여 메모리(150)에 저장할 수 있다.When a rear image such as the first region is captured, the
도 7a 및 도 7b는 본 개시의 다양한 실시 예에 따른 FoI의 변화를 설명하기 위한 도면들이다.7A and 7B are diagrams for explaining a change in FoI according to various embodiments of the present disclosure.
프로세서(130)는 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하고, 객체의 위치에 기초하여 후방 이미지의 일 영역을 크롭할 수 있다. 예를 들어, 프로세서(130)는 도 7a에 도시된 바와 같이, 사용자의 얼굴 방향에 기초하여 비행기의 위치를 식별하고, 비행기의 위치에 기초하여 후방 이미지의 좌측 영역을 크롭할 수 있다.The
이때, 프로세서(130)는 객체의 위치에 기초하여 후방 이미지 내의 객체를 식별할 수도 있다. 특히, 프로세서(130)는 객체의 위치에 기초하여 후방 이미지 내에서 복수의 객체가 식별된 경우, 복수의 객체의 크기 또는 움직임 중 적어도 하나를 고려하여 복수의 객체 중 하나를 결정할 수도 있다. 예를 들어, 프로세서(130)는 객체의 위치에 기초하여 후방 이미지 내에서 구름과 비행기가 식별된 경우, 비행기의 움직임이 구름보다 빠르므로 비행기를 최종 객체로 결정할 수 있다. 이때, 프로세서(130)는 복수의 후방 이미지를 비교할 수 있다.In this case, the
프로세서(130)는 최종 결정된 객체에 기초하여 후방 이미지의 일 영역을 크롭할 수 있다.The
프로세서(130)는 최종 객체가 결정되면, 제1 카메라(110)의 촬영 횟수를 줄일 수도 있다. 예를 들어, 프로세서(130)는 제2 카메라(120)를 통해 5개의 후방 이미지를 획득하는 동안 제1 카메라(110)를 통해 1개의 전방 이미지만을 획득할 수도 있다. 프로세서(130)는 1개의 전방 이미지로부터 사용자의 얼굴 방향을 식별하고, 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하며, 객체의 위치에 기초하여 후방 이미지 내에서 식별된 객체가 최종 객체와 동일하면 제1 카메라(110)의 촬영 횟수를 줄인 상태로 동작하고, 후방 이미지 내에서 식별된 객체가 최종 객체와 상이하면 다시 제1 카메라(110)의 촬영 횟수를 늘릴 수도 있다.When the final object is determined, the
또는, 프로세서(130)는 사용자의 얼굴 방향만을 고려하여 후방 이미지의 일 영역을 크롭할 수도 있다. 예를 들어, 프로세서(130)는 도 7b에 도시된 바와 같이, 사용자의 얼굴 방향에 기초하여 제1 후방 이미지에서는 좌측 영역을 크롭하고, 제1 후방 이미지 다음의 제2 후방 이미지에서는 우측 영역을 크롭할 수도 있다.Alternatively, the
또는, 프로세서(130)는 사용자의 얼굴 방향에 대응되는 영역에 복수의 객체가 움직이는 경우, 사용자의 얼굴 방향만을 고려하여 후방 이미지의 일 영역을 크롭할 수도 있다.Alternatively, when a plurality of objects move in an area corresponding to the user's face direction, the
도 8은 본 개시의 일 실시 예에 따른 전자 장치의 제어 방법을 설명하기 위한 흐름도이다.8 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.
먼저, 제1 카메라를 통해 전자 장치의 전방 이미지가 획득되면, 전방 이미지로부터 사용자의 얼굴 방향을 식별한다(S810). 그리고, 사용자의 얼굴 방향에 기초하여 전자 장치의 후방에서 객체의 위치를 식별한다(S820). 그리고, 객체의 위치에 기초하여 제2 카메라를 통해 획득된 전자 장치의 후방 이미지의 일 영역을 크롭(crop)한다(S830).First, when a front image of the electronic device is acquired through the first camera, the user's face direction is identified from the front image ( S810 ). Then, the position of the object in the rear of the electronic device is identified based on the direction of the user's face ( S820 ). Then, a region of the rear image of the electronic device obtained through the second camera is cropped based on the position of the object ( S830 ).
여기서, 제2 카메라를 통해 복수의 후방 이미지를 획득하는 단계를 더 포함하고, 크롭하는 단계(S830)는 객체의 위치에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하며, 제어 방법은 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득하는 단계를 더 포함할 수 있다.Here, the method further includes acquiring a plurality of rear images through a second camera, and the cropping ( S830 ) crops one region of each of the plurality of rear images based on the position of the object, and the control method includes the cropped image. The method may further include acquiring a moving picture including a plurality of frames acquired based on the plurality of rear image regions.
그리고, 복수의 후방 이미지를 획득하는 단계는 복수의 후방 이미지가 획득되는 동안 제1 카메라를 통해 복수의 전방 이미지를 획득하고, 객체의 위치를 식별하는 단계(S820)는 복수의 전방 이미지로부터 사용자의 얼굴 방향이 변경된 것으로 식별되면, 변경된 사용자의 얼굴 방향에 기초하여 객체의 변경된 위치를 식별하며, 크롭하는 단계(S830)는 객체의 위치 및 변경된 객체의 위치에 기초하여 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.And, the step of acquiring a plurality of rear images is to acquire a plurality of front images through the first camera while the plurality of rear images are acquired, and the step of identifying the position of the object (S820) is the user's image from the plurality of front images. If the face direction is identified as changed, the changed position of the object is identified based on the changed face direction of the user, and the cropping step (S830) is a different area in each of the plurality of rear images based on the position of the object and the changed position of the object. can be cropped.
여기서, 크롭하는 단계(S830)는 객체의 위치에 기초하여 복수의 후방 이미지 각각으로부터 객체의 이미지 내의 위치를 식별하고, 객체의 이미지 내의 위치에 기초하여 복수의 후방 이미지 각각에서 상이한 영역을 크롭할 수 있다.Here, the cropping (S830) may identify a position in the image of the object from each of the plurality of rear images based on the position of the object, and crop different regions in each of the plurality of rear images based on the position in the image of the object. have.
한편, 객체의 위치가 제2 카메라의 화각 외부인 경우, 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공하는 단계를 더 포함할 수 있다.Meanwhile, when the position of the object is outside the angle of view of the second camera, the method may further include providing guide information warning that the object is not captured.
그리고, 제2 카메라를 통해 복수의 후방 이미지가 획득되는 동안 제1 카메라를 통해 복수의 전방 이미지를 획득하는 단계를 더 포함하고, 크롭하는 단계(S830)는 복수의 전방 이미지로부터 사용자의 얼굴 방향이 변경되어 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 사용자의 얼굴 방향이 제2 객체를 향한 시간에 기초하여 제1 객체 또는 제2 객체 중 적어도 하나에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.And, further comprising the step of acquiring a plurality of front images through the first camera while the plurality of rear images are acquired through the second camera, and the step of cropping (S830) is the direction of the user's face from the plurality of front images When the object to which the user's face direction is changed is changed from the first object to the second object, based on at least one of the first object or the second object based on the time when the user's face direction faces the second object One region of each of the rear images may be cropped.
여기서, 크롭하는 단계(S830)는 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 미만이면 제1 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하고, 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제1 임계 시간 이상이고 제2 임계 시간 미만이면 제1 객체 및 제2 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭하며, 사용자의 얼굴 방향이 제2 객체를 향한 시간이 제2 임계 시간 이상이면 제2 객체에 기초하여 복수의 후방 이미지 각각의 일 영역을 크롭할 수 있다.Here, in the cropping step (S830), if the time for the user's face toward the second object is less than the first threshold time, crop one area of each of the plurality of rear images based on the first object, and the user's face direction is If the time towards the second object is longer than the first threshold time and less than the second threshold time, one area of each of the plurality of rear images is cropped based on the first object and the second object, and the user's face direction is the second object If the facing time is equal to or greater than the second threshold time, one region of each of the plurality of rear images may be cropped based on the second object.
한편, 제2 카메라를 통한 동영상 촬영 명령이 입력되면, 제1 카메라를 턴 온하여 전자 장치의 전방을 촬영하여 전방 이미지를 획득하는 단계를 더 포함할 수 있다.Meanwhile, the method may further include, when a video capturing command is input through the second camera, turning on the first camera to photograph the front of the electronic device to obtain a front image.
그리고, 사용자의 얼굴 방향을 식별하는 단계(S810)는 전방 이미지로부터 사용자의 얼굴을 식별하고, 사용자의 얼굴 내부의 복수의 특징점에 기초하여 사용자의 얼굴 방향을 식별할 수 있다.In the step of identifying the user's face direction ( S810 ), the user's face may be identified from the front image, and the user's face direction may be identified based on a plurality of feature points inside the user's face.
이상과 같은 본 개시의 다양한 실시 예에 따르면, 전자 장치는 사용자의 얼굴 방향을 식별하고, 사용자의 얼굴 방향에 기초하여 객체의 위치를 식별하며, 객체의 위치에 기초하여 획득된 이미지의 일 영역을 크롭함에 따라 사용자가 촬영하고자 하는 객체를 포함하는 이미지를 획득할 수 있다.According to various embodiments of the present disclosure as described above, the electronic device identifies the direction of the user's face, identifies the position of the object based on the direction of the user's face, and selects a region of an image obtained based on the position of the object. By cropping, an image including an object that the user wants to photograph may be acquired.
또한, 전자 장치는 사용자의 얼굴 방향에 기초하여 객체를 자동으로 식별하기 때문에 사용자가 촬영 중에 촬영 화면을 주시할 필요 없이 객체를 주시하면서 촬영할 수 있어 사용자 편의성이 증대된다.In addition, since the electronic device automatically identifies the object based on the direction of the user's face, the user can take a picture while looking at the object without the need for the user to look at the shooting screen during shooting, thereby increasing user convenience.
한편, 본 개시의 일시 예에 따르면, 이상에서 설명된 다양한 실시 예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media)에 저장된 명령어를 포함하는 소프트웨어로 구현될 수 있다. 기기는, 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시 예들에 따른 전자 장치(예: 전자 장치(A))를 포함할 수 있다. 명령이 프로세서에 의해 실행될 경우, 프로세서가 직접, 또는 프로세서의 제어 하에 다른 구성요소들을 이용하여 명령에 해당하는 기능을 수행할 수 있다. 명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다.Meanwhile, according to a temporary example of the present disclosure, the various embodiments described above may be implemented as software including instructions stored in a machine-readable storage media readable by a machine (eg, a computer). can The device is a device capable of calling a stored command from a storage medium and operating according to the called command, and may include an electronic device (eg, the electronic device A) according to the disclosed embodiments. When the instruction is executed by the processor, the processor may perform a function corresponding to the instruction by using other components directly or under the control of the processor. Instructions may include code generated or executed by a compiler or interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' means that the storage medium does not include a signal and is tangible, and does not distinguish that data is semi-permanently or temporarily stored in the storage medium.
또한, 본 개시의 일 실시 예에 따르면, 이상에서 설명된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.In addition, according to an embodiment of the present disclosure, the method according to the various embodiments described above may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product may be distributed in the form of a machine-readable storage medium (eg, compact disc read only memory (CD-ROM)) or online through an application store (eg, Play Store™). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
또한, 본 개시의 일 실시 예에 따르면, 이상에서 설명된 다양한 실시 예들은 소프트웨어(software), 하드웨어(hardware) 또는 이들의 조합을 이용하여 컴퓨터(computer) 또는 이와 유사한 장치로 읽을 수 있는 기록 매체 내에서 구현될 수 있다. 일부 경우에 있어 본 명세서에서 설명되는 실시 예들이 프로세서 자체로 구현될 수 있다. 소프트웨어적인 구현에 의하면, 본 명세서에서 설명되는 절차 및 기능과 같은 실시 예들은 별도의 소프트웨어 모듈들로 구현될 수 있다. 소프트웨어 모듈들 각각은 본 명세서에서 설명되는 하나 이상의 기능 및 동작을 수행할 수 있다.In addition, according to an embodiment of the present disclosure, the various embodiments described above are stored in a recording medium readable by a computer or a similar device using software, hardware, or a combination thereof. can be implemented in In some cases, the embodiments described herein may be implemented by the processor itself. According to the software implementation, embodiments such as the procedures and functions described in this specification may be implemented as separate software modules. Each of the software modules may perform one or more functions and operations described herein.
한편, 상술한 다양한 실시 예들에 따른 기기의 프로세싱 동작을 수행하기 위한 컴퓨터 명령어(computer instructions)는 비일시적 컴퓨터 판독 가능 매체(non-transitory computer-readable medium)에 저장될 수 있다. 이러한 비일시적 컴퓨터 판독 가능 매체에 저장된 컴퓨터 명령어는 특정 기기의 프로세서에 의해 실행되었을 때 상술한 다양한 실시 예에 따른 기기에서의 처리 동작을 특정 기기가 수행하도록 한다. 비일시적 컴퓨터 판독 가능 매체란 레지스터, 캐쉬, 메모리 등과 같이 짧은 순간 동안 데이터를 저장하는 매체가 아니라 반영구적으로 데이터를 저장하며, 기기에 의해 판독(reading)이 가능한 매체를 의미한다. 비일시적 컴퓨터 판독 가능 매체의 구체적인 예로는, CD, DVD, 하드 디스크, 블루레이 디스크, USB, 메모리카드, ROM 등이 있을 수 있다.Meanwhile, computer instructions for performing the processing operation of the device according to the above-described various embodiments may be stored in a non-transitory computer-readable medium. When the computer instructions stored in the non-transitory computer-readable medium are executed by the processor of the specific device, the specific device performs the processing operation in the device according to the various embodiments described above. The non-transitory computer-readable medium refers to a medium that stores data semi-permanently, rather than a medium that stores data for a short moment, such as a register, cache, memory, etc., and can be read by a device. Specific examples of the non-transitory computer-readable medium may include a CD, DVD, hard disk, Blu-ray disk, USB, memory card, ROM, and the like.
또한, 상술한 다양한 실시 예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시 예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.In addition, each of the components (eg, a module or a program) according to the above-described various embodiments may be composed of a single or a plurality of entities, and some sub-components of the aforementioned sub-components may be omitted, or other sub-components may be omitted. Components may be further included in various embodiments. Alternatively or additionally, some components (eg, a module or a program) may be integrated into a single entity to perform the same or similar functions performed by each corresponding component prior to integration. According to various embodiments, operations performed by a module, program, or other component are executed sequentially, parallel, iteratively, or heuristically, or at least some operations are executed in a different order, are omitted, or other operations are added. can be
이상에서는 본 개시의 바람직한 실시 예에 대하여 도시하고 설명하였지만, 본 개시는 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 개시의 요지를 벗어남이 없이 당해 개시에 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 개시의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안될 것이다.In the above, preferred embodiments of the present disclosure have been illustrated and described, but the present disclosure is not limited to the specific embodiments described above, and is commonly used in the technical field pertaining to the present disclosure without departing from the gist of the present disclosure as claimed in the claims. Various modifications may be made by those having the knowledge of
100 : 전자 장치
110 : 제1 카메라
120 : 제2 카메라
130 : 프로세서
140 : 디스플레이
150 : 메모리
160 : 사용자 인터페이스
170 : 통신 인터페이스
180 : 스피커100: electronic device 110: first camera
120: second camera 130: processor
140: display 150: memory
160: user interface 170: communication interface
180: speaker
Claims (19)
제1 카메라;
제2 카메라; 및
상기 제1 카메라 및 상기 제2 카메라와 연결되어 상기 전자 장치를 제어하는 프로세서;를 포함하며,
상기 프로세서는,
상기 제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하고,
상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하며,
상기 객체의 위치에 기초하여 상기 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)하는, 전자 장치.In an electronic device,
a first camera;
a second camera; and
a processor connected to the first camera and the second camera to control the electronic device;
The processor is
When the front image of the electronic device is obtained through the first camera, the user's face direction is identified from the front image,
Identifies the position of the object in the rear of the electronic device based on the direction of the user's face,
An electronic device that crops a region of the rear image of the electronic device acquired through the second camera based on the position of the object.
상기 프로세서는,
상기 제2 카메라를 통해 복수의 후방 이미지를 획득하고,
상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며,
상기 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득하는, 전자 장치.The method of claim 1,
The processor is
Acquire a plurality of rear images through the second camera,
Cropping a region of each of the plurality of back images based on the position of the object,
An electronic device for acquiring a moving picture including a plurality of frames acquired based on the plurality of cropped rear image regions.
상기 프로세서는,
상기 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고,
상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경된 것으로 식별되면, 상기 변경된 사용자의 얼굴 방향에 기초하여 상기 객체의 변경된 위치를 식별하며,
상기 객체의 위치 및 상기 변경된 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭하는, 전자 장치.3. The method of claim 2,
The processor is
acquiring a plurality of front images through the first camera while the plurality of rear images are acquired;
When it is identified from the plurality of front images that the direction of the user's face is changed, the changed position of the object is identified based on the changed face direction of the user,
Cropping a different region in each of the plurality of rear images based on the position of the object and the changed position of the object.
상기 프로세서는,
상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각으로부터 상기 객체의 이미지 내의 위치를 식별하고,
상기 객체의 이미지 내의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭하는, 전자 장치.4. The method of claim 3,
The processor is
identify a location in the image of the object from each of the plurality of back images based on the location of the object;
and crop a different region in each of the plurality of back images based on a position in the image of the object.
상기 프로세서는,
상기 객체의 위치가 상기 제2 카메라의 화각 외부인 경우, 상기 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공하는, 전자 장치.According to claim 1,
The processor is
When the position of the object is outside the angle of view of the second camera, the electronic device provides guide information warning that the object is not captured.
상기 프로세서는,
상기 제2 카메라를 통해 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고,
상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경되어 상기 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간에 기초하여 상기 제1 객체 또는 상기 제2 객체 중 적어도 하나에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하는, 전자 장치.According to claim 1,
The processor is
acquiring a plurality of front images through the first camera while a plurality of rear images are acquired through the second camera;
When the direction of the user's face is changed from the plurality of front images and the object to which the direction of the user's face is directed is changed from the first object to the second object, the direction of the user's face is changed based on the time toward the second object Cropping one region of each of the plurality of rear images based on at least one of the first object and the second object.
상기 프로세서는,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 제1 임계 시간 미만이면 상기 제1 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하고,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제1 임계 시간 이상이고 제2 임계 시간 미만이면 상기 제1 객체 및 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제2 임계 시간 이상이면 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하는, 전자 장치.7. The method of claim 6,
The processor is
Cropping a region of each of the plurality of rear images based on the first object when the time for the user's face direction toward the second object is less than a first threshold time,
If the time in which the user's face is directed toward the second object is longer than the first threshold time and less than the second threshold time, a region of each of the plurality of rear images is cropped based on the first object and the second object. and
and cropping a region of each of the plurality of rear images based on the second object when a time in which the user's face is directed toward the second object is equal to or greater than the second threshold time.
상기 프로세서는,
상기 제2 카메라를 통한 이미지 촬영 명령 또는 동영상 촬영 명령이 입력되면, 상기 제1 카메라를 턴 온하여 상기 전자 장치의 전방을 촬영하여 상기 전방 이미지를 획득하는, 전자 장치.According to claim 1,
The processor is
When an image capturing command or a video capturing command through the second camera is input, the electronic device is configured to turn on the first camera to photograph the front of the electronic device to obtain the front image.
상기 프로세서는,
상기 전방 이미지로부터 상기 사용자의 얼굴을 식별하고, 상기 사용자의 얼굴 내부의 복수의 특징점에 기초하여 상기 사용자의 얼굴 방향을 식별하는, 전자 장치.According to claim 1,
The processor is
The electronic device identifies the user's face from the front image and identifies the user's face direction based on a plurality of feature points inside the user's face.
제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하는 단계;
상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하는 단계; 및
상기 객체의 위치에 기초하여 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)하는 단계;를 포함하는, 제어 방법.A method for controlling an electronic device, comprising:
when a front image of the electronic device is acquired through a first camera, identifying a direction of the user's face from the front image;
identifying the position of the object at the rear of the electronic device based on the direction of the user's face; and
and cropping a region of the rear image of the electronic device acquired through a second camera based on the position of the object.
상기 제2 카메라를 통해 복수의 후방 이미지를 획득하는 단계;를 더 포함하고,
상기 크롭하는 단계는,
상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며,
상기 제어 방법은,
상기 크롭된 복수의 후방 이미지 영역에 기초하여 획득된 복수의 프레임을 포함하는 동영상을 획득하는 단계;를 더 포함하는, 제어 방법.11. The method of claim 10,
Further comprising; acquiring a plurality of rear images through the second camera,
The cropping step is
Cropping a region of each of the plurality of back images based on the position of the object,
The control method is
Acquiring a moving picture including a plurality of frames acquired based on the plurality of cropped rear image regions; further comprising a control method.
상기 복수의 후방 이미지를 획득하는 단계는,
상기 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하고,
상기 객체의 위치를 식별하는 단계는,
상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경된 것으로 식별되면, 상기 변경된 사용자의 얼굴 방향에 기초하여 상기 객체의 변경된 위치를 식별하며,
상기 크롭하는 단계는,
상기 객체의 위치 및 상기 변경된 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭하는, 제어 방법.12. The method of claim 11,
Acquiring the plurality of rear images comprises:
acquiring a plurality of front images through the first camera while the plurality of rear images are acquired;
The step of identifying the location of the object,
When it is identified from the plurality of front images that the direction of the user's face is changed, the changed position of the object is identified based on the changed face direction of the user,
The cropping step is
Cropping a different region in each of the plurality of back images based on the position of the object and the changed position of the object.
상기 크롭하는 단계는,
상기 객체의 위치에 기초하여 상기 복수의 후방 이미지 각각으로부터 상기 객체의 이미지 내의 위치를 식별하고,
상기 객체의 이미지 내의 위치에 기초하여 상기 복수의 후방 이미지 각각에서 상이한 영역을 크롭하는, 제어 방법.13. The method of claim 12,
The cropping step is
identify a location in the image of the object from each of the plurality of back images based on the location of the object;
Cropping a different region in each of the plurality of back images based on a position in the image of the object.
상기 객체의 위치가 상기 제2 카메라의 화각 외부인 경우, 상기 객체가 촬영되지 않음을 경고하는 가이드 정보를 제공하는 단계;를 더 포함하는, 제어 방법.11. The method of claim 10,
When the position of the object is outside the angle of view of the second camera, providing guide information warning that the object is not captured; the control method further comprising a.
상기 제2 카메라를 통해 복수의 후방 이미지가 획득되는 동안 상기 제1 카메라를 통해 복수의 전방 이미지를 획득하는 단계;를 더 포함하고,
상기 크롭하는 단계는,
상기 복수의 전방 이미지로부터 상기 사용자의 얼굴 방향이 변경되어 상기 사용자의 얼굴 방향이 향하는 객체가 제1 객체로부터 제2 객체로 변경되면, 상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간에 기초하여 상기 제1 객체 또는 상기 제2 객체 중 적어도 하나에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하는, 제어 방법.11. The method of claim 10,
Acquiring a plurality of front images through the first camera while a plurality of rear images are obtained through the second camera; further comprising,
The cropping step is
When the direction of the user's face is changed from the plurality of front images and the object to which the direction of the user's face is directed is changed from the first object to the second object, the direction of the user's face is changed based on the time toward the second object Cropping a region of each of the plurality of rear images based on at least one of the first object and the second object.
상기 크롭하는 단계는,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 제1 임계 시간 미만이면 상기 제1 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하고,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제1 임계 시간 이상이고 제2 임계 시간 미만이면 상기 제1 객체 및 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하며,
상기 사용자의 얼굴 방향이 상기 제2 객체를 향한 시간이 상기 제2 임계 시간 이상이면 상기 제2 객체에 기초하여 상기 복수의 후방 이미지 각각의 일 영역을 크롭하는, 제어 방법.16. The method of claim 15,
The cropping step is
Cropping a region of each of the plurality of rear images based on the first object when the time for the user's face direction toward the second object is less than a first threshold time,
If the time in which the user's face is directed toward the second object is longer than the first threshold time and less than the second threshold time, a region of each of the plurality of rear images is cropped based on the first object and the second object. and
When a time in which the user's face direction faces the second object is equal to or greater than the second threshold time, cropping a region of each of the plurality of rear images based on the second object.
상기 제2 카메라를 통한 동영상 촬영 명령이 입력되면, 상기 제1 카메라를 턴 온하여 상기 전자 장치의 전방을 촬영하여 상기 전방 이미지를 획득하는 단계;를 더 포함하는, 제어 방법.11. The method of claim 10,
When a video recording command is input through the second camera, turning on the first camera to photograph the front of the electronic device to obtain the front image.
상기 사용자의 얼굴 방향을 식별하는 단계는,
상기 전방 이미지로부터 상기 사용자의 얼굴을 식별하고, 상기 사용자의 얼굴 내부의 복수의 특징점에 기초하여 상기 사용자의 얼굴 방향을 식별하는, 제어 방법.11. The method of claim 10,
The step of identifying the direction of the user's face,
A control method for identifying the user's face from the front image and identifying the user's face direction based on a plurality of feature points inside the user's face.
상기 동작 방법은,
제1 카메라를 통해 상기 전자 장치의 전방 이미지가 획득되면, 상기 전방 이미지로부터 사용자의 얼굴 방향을 식별하는 단계;
상기 사용자의 얼굴 방향에 기초하여 상기 전자 장치의 후방에서 객체의 위치를 식별하는 단계; 및
상기 객체의 위치에 기초하여 제2 카메라를 통해 획득된 상기 전자 장치의 후방 이미지의 일 영역을 크롭(crop)하는 단계;를 포함하는 기록 매체.In a non-transitory computer-readable recording medium storing a program for executing a method of operating an electronic device,
The method of operation is
when a front image of the electronic device is acquired through a first camera, identifying a direction of the user's face from the front image;
identifying the position of the object at the rear of the electronic device based on the direction of the user's face; and
and cropping a region of the rear image of the electronic device acquired through a second camera based on the position of the object.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210002168A KR20220099827A (en) | 2021-01-07 | 2021-01-07 | Electronic apparatus and control method thereof |
PCT/KR2021/016426 WO2022149704A1 (en) | 2021-01-07 | 2021-11-11 | Electronic device and control method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210002168A KR20220099827A (en) | 2021-01-07 | 2021-01-07 | Electronic apparatus and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20220099827A true KR20220099827A (en) | 2022-07-14 |
Family
ID=82358019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020210002168A KR20220099827A (en) | 2021-01-07 | 2021-01-07 | Electronic apparatus and control method thereof |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR20220099827A (en) |
WO (1) | WO2022149704A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102119659B1 (en) * | 2013-09-23 | 2020-06-08 | 엘지전자 주식회사 | Display device and control method thereof |
JP6096654B2 (en) * | 2013-12-27 | 2017-03-15 | レノボ・シンガポール・プライベート・リミテッド | Image recording method, electronic device, and computer program |
KR20170008064A (en) * | 2015-07-13 | 2017-01-23 | 연세대학교 산학협력단 | Method and System for Recoding Video Using Object Recognition |
JP2018006914A (en) * | 2016-06-29 | 2018-01-11 | フォーブ インコーポレーテッド | External imaging system, external imaging method, external imaging program |
KR102347586B1 (en) * | 2017-12-28 | 2022-01-07 | 엘에스일렉트릭(주) | Method for providing augmented reality user interface |
-
2021
- 2021-01-07 KR KR1020210002168A patent/KR20220099827A/en unknown
- 2021-11-11 WO PCT/KR2021/016426 patent/WO2022149704A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022149704A1 (en) | 2022-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3326360B1 (en) | Image capturing apparatus and method of operating the same | |
US9380207B1 (en) | Enabling multiple field of view image capture within a surround image mode for multi-lense mobile devices | |
RU2649773C2 (en) | Controlling camera with face detection | |
US9852339B2 (en) | Method for recognizing iris and electronic device thereof | |
KR20210130773A (en) | Image processing method and head mounted display device | |
KR102661185B1 (en) | Electronic device and method for obtaining images | |
CN109478227A (en) | Calculate the iris in equipment or the identification of other physical feelings | |
JP2020526735A (en) | Pupil distance measurement method, wearable eye device and storage medium | |
WO2022142388A1 (en) | Special effect display method and electronic device | |
US9521329B2 (en) | Display device, display method, and computer-readable recording medium | |
US20180288333A1 (en) | Displaying Images on a Smartglasses Device Based on Image Data Received from External Camera | |
TW201921028A (en) | Video display system, video display method, and video display program | |
WO2016155227A1 (en) | Method and apparatus for displaying viewfinding information | |
US20210378509A1 (en) | Pupil assessment using modulated on-axis illumination | |
KR20210101087A (en) | An electronic device and method for displaying image at the electronic device | |
US11095824B2 (en) | Imaging apparatus, and control method and control program therefor | |
JP5805013B2 (en) | Captured image display device, captured image display method, and program | |
CN107852457B (en) | Viewfinder device and method of operating the same | |
KR20210133674A (en) | Augmented reality device and method for controlling the same | |
JP2015171116A (en) | Display device of camera | |
CN108476290B (en) | Electronic device for providing panoramic image and control method thereof | |
WO2015141185A1 (en) | Imaging control device, imaging control method, and storage medium | |
KR20220099827A (en) | Electronic apparatus and control method thereof | |
CN111736692A (en) | Display method, display device, storage medium and head-mounted device | |
WO2019085109A1 (en) | Image writing control method and apparatus, and electronic device |