KR102640871B1 - Electronic apparatus for providing image data by using augmented reality and control method thereof - Google Patents

Electronic apparatus for providing image data by using augmented reality and control method thereof Download PDF

Info

Publication number
KR102640871B1
KR102640871B1 KR1020180131104A KR20180131104A KR102640871B1 KR 102640871 B1 KR102640871 B1 KR 102640871B1 KR 1020180131104 A KR1020180131104 A KR 1020180131104A KR 20180131104 A KR20180131104 A KR 20180131104A KR 102640871 B1 KR102640871 B1 KR 102640871B1
Authority
KR
South Korea
Prior art keywords
area
electronic device
wall
distance
wall area
Prior art date
Application number
KR1020180131104A
Other languages
Korean (ko)
Other versions
KR20200048714A (en
Inventor
안영춘
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020180131104A priority Critical patent/KR102640871B1/en
Priority to PCT/KR2019/008021 priority patent/WO2020091182A1/en
Priority to US17/285,256 priority patent/US11867495B2/en
Publication of KR20200048714A publication Critical patent/KR20200048714A/en
Application granted granted Critical
Publication of KR102640871B1 publication Critical patent/KR102640871B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/026Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring distance between sensor and object
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/022Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by means of tv-camera scanning
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/03Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring coordinates of points
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Abstract

본 개시에서는 전자 장치 및 그 제어 방법이 제공된다.
본 개시의 전자 장치는 센서, 디스플레이, 카메라 및 카메라에 의해 획득된 이미지 프레임에서 벽면 영역 및 벽면 영역 이외의 영역 사이의 경계 영역을 판단하고, 센서에 의해 판단된 전자 장치의 위치 및 판단된 경계 영역에 기초하여 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단하고, 판단된 거리에 대응되는 크기로 오브젝트가 벽면 영역에 표시되도록 디스플레이를 제어하는 프로세서를 포함한다.
In this disclosure, an electronic device and a method for controlling the same are provided.
The electronic device of the present disclosure determines a boundary area between a wall area and an area other than the wall area in a sensor, a display, a camera, and an image frame acquired by the camera, and determines the location of the electronic device determined by the sensor and the determined boundary area. Based on this, a processor determines the distance between the wall corresponding to the wall area and the electronic device, and controls the display so that an object is displayed in the wall area with a size corresponding to the determined distance.

Description

증강 현실을 이용한 영상 데이터를 제공하는 전자 장치 및 그 제어 방법 {ELECTRONIC APPARATUS FOR PROVIDING IMAGE DATA BY USING AUGMENTED REALITY AND CONTROL METHOD THEREOF}Electronic device providing image data using augmented reality and control method thereof {ELECTRONIC APPARATUS FOR PROVIDING IMAGE DATA BY USING AUGMENTED REALITY AND CONTROL METHOD THEREOF}

본 개시는 증강 현실을 이용한 영상 데이터를 제공하는 전자 장치 및 그 방법에 관한 것으로, 보다 상세하게는 증강 현실 정보를 포함하는 영상 데이터를 제공하는 전자 장치 및 그 제어 방법에 관한 것이다.This disclosure relates to an electronic device and method for providing image data using augmented reality, and more specifically, to an electronic device for providing image data including augmented reality information and a method for controlling the same.

전자 기술의 발달로 다양한 전자 장치들이 개발되고 있다. 최근에는 증강 현실(augmented reality, AR) 또는 혼합 현실(mixed reality, MR)이 적용된 전자 장치들이 상용화되고 있다. 여기서, 증강 현실 또는 혼합 현실(이하에서는 증강 현실로 통칭하도록 한다)은 가상적인 사물을 실제적인 환경에 합성하여 현실에 존재하는 사물처럼 보이도록 하거나, 실제적인 환경에 필요한 정보를 추가적으로 제공해 줄 수 있다. With the development of electronic technology, various electronic devices are being developed. Recently, electronic devices incorporating augmented reality (AR) or mixed reality (MR) are being commercialized. Here, augmented reality or mixed reality (hereinafter collectively referred to as augmented reality) can synthesize virtual objects into a real environment to make them look like objects that exist in reality, or provide additional information necessary for the real environment. .

특히, 제조업, 마케팅 등과 같은 산업 분야뿐만 아니라 일상 생활에서도 증강 현실을 이용하여, 사용자가 현실의 공간을 촬영한 이미지 상에 실존하는 사물(또는 상품)처럼 특정한 크기를 갖는 가상의 사물을 배치할 수 있다. 이때, 사물이 배치된 공간까지의 거리가 멀수록 피사체인 사물의 크기가 작게 보이게 되므로, 사물이 배치되는 평면을 검출하여 평면까지의 거리를 정확하게 측정할 수 있는 기술이 요구된다.In particular, augmented reality is used not only in industrial fields such as manufacturing and marketing, but also in everyday life, allowing users to place virtual objects of a specific size like real objects (or products) on images taken of real spaces. there is. At this time, the farther the distance to the space where the object is placed, the smaller the size of the object appears, so technology that can detect the plane on which the object is positioned and accurately measure the distance to the plane is required.

한편, 듀얼 렌즈를 이용해 촬영한 이미지의 경우 각 렌즈가 서로 다른 각도에서 하나의 피사체를 동시에 촬영한 이미지에서 3차원 정보를 획득하여 거리를 측정할 수 있다. 다만, 싱글 렌즈(또는 단일 렌즈, 이하에서는 단일 렌즈라 한다)의 경우 렌즈가 하나라는 점에서 듀얼 렌즈의 방식을 차용할 수 없는 구조적인 한계가 존재한다.Meanwhile, in the case of images taken using dual lenses, the distance can be measured by obtaining 3D information from images in which each lens simultaneously captures one subject from different angles. However, in the case of a single lens (or single lens, hereinafter referred to as a single lens), there is a structural limitation in that the dual lens method cannot be adopted in that there is only one lens.

또한, 단일 렌즈에 의해 단색의 벽면을 촬영한 이미지의 경우, 텍스쳐 또는 패턴이 없는 단색의 벽면을 수직한 평면으로 검출할 수 없어, 벽면까지의 정확한 거리를 측정할 수 없게 된다는 문제가 있다. Additionally, in the case of images taken of a monochromatic wall using a single lens, there is a problem in that the monochromatic wall without texture or pattern cannot be detected as a vertical plane, making it impossible to measure the exact distance to the wall.

본 개시는 상술한 필요성에 의해 안출된 것으로, 본 개시의 목적은, 이미지 프레임에서 벽면 영역을 검출하여 벽면 영역 상에 증강 현실을 위한 오브젝트를 합성한 이미지를 실시간으로 제공할 수 있는 전자 장치 및 그 제어 방법을 제공함에 있다.The present disclosure was created in response to the above-described need, and the purpose of the present disclosure is to provide an electronic device capable of detecting a wall area in an image frame and providing a composite image of an object for augmented reality on the wall area in real time, and the same. It provides a control method.

상기 목적을 달성하기 위한 본 개시의 일 실시 예에 따른 전자 장치는, 센서, 디스플레이, 카메라 및 카메라에 의해 획득된 이미지 프레임에서 벽면 영역 및 벽면 영역 이외의 영역 사이의 경계 영역을 판단하고, 센서에 의해 판단된 전자 장치의 위치 및 판단된 경계 영역에 기초하여 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단하고, 판단된 거리에 대응되는 크기로 오브젝트가 벽면 영역에 표시되도록 디스플레이를 제어하는 프로세서를 포함할 수 있다.In order to achieve the above object, an electronic device according to an embodiment of the present disclosure determines a boundary area between a wall area and an area other than the wall area in a sensor, a display, a camera, and an image frame acquired by the camera, and Based on the location of the electronic device determined and the determined boundary area, the distance between the wall surface corresponding to the wall area and the electronic device is determined, and the display is controlled so that an object is displayed in the wall area with a size corresponding to the determined distance. May include a processor.

여기에서, 프로세서는 카메라에 의해 획득된 복수의 이미지 프레임 각각에서, 기설정된 위치에 존재하는 기준 픽셀과 기설정된 임계 값 이상의 색상 유사도를 갖는 유사 픽셀을 판단하고, 복수의 이미지 프레임 간에 기준 픽셀 및 유사 픽셀을 포함하는 영역의 크기의 차이가 기설정된 임계 범위 이내인 경우, 기준 픽셀 및 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단할 수 있다.Here, in each of the plurality of image frames acquired by the camera, the processor determines a reference pixel existing at a preset position and a similar pixel having color similarity greater than or equal to a preset threshold, and determines the reference pixel and similarity between the plurality of image frames. If the difference in size of the area containing the pixel is within a preset threshold range, the area containing the reference pixel and the similar pixel may be determined to be the wall area.

한편, 프로세서는 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고, 센서에 의해 판단된 전자 장치의 위치에 기초하여 패턴 영역에서 3차원 점들의 집합을 획득하고, 3차원 점들의 집합에 대응되는 직선에 따라 경계 영역을 판단할 수 있다.Meanwhile, the processor determines a pattern area containing a specific pattern in an area other than the wall area, obtains a set of three-dimensional points in the pattern area based on the position of the electronic device determined by the sensor, and obtains a set of three-dimensional points. The boundary area can be judged according to the straight line corresponding to .

한편, 프로세서는 전자 장치가 움직이는 동안 카메라에 의해 획득된 복수의 이미지 프레임에서 벽면 영역의 위치가 변경되는 정도를 판단하고, 벽면 영역의 위치가 변경되는 정도 및 센서에 의해 판단된 전자 장치의 위치가 변경되는 정도에 기초하여 경계 영역에 대응되는 경계 및 전자 장치 사이의 거리를 판단할 수 있다.Meanwhile, the processor determines the extent to which the position of the wall area changes in a plurality of image frames acquired by the camera while the electronic device is moving, and determines the extent to which the position of the wall area changes and the position of the electronic device determined by the sensor. Based on the degree of change, the distance between the boundary corresponding to the boundary area and the electronic device can be determined.

한편, 벽면 영역 이외의 영역은 이미지 프레임에서 벽면 영역의 상측에 존재하는 천장 영역 및 벽면 영역의 하측에 존재하는 바닥 영역을 포함하고, 프로세서는 이미지 프레임에서 천장 영역과 벽면 영역 사이의 제1 경계 영역 및 바닥 영역과 벽면 영역 사이의 제2 경계 영역을 판단할 수 있다.Meanwhile, the area other than the wall area includes a ceiling area existing above the wall area and a floor area existing below the wall area in the image frame, and the processor determines a first boundary area between the ceiling area and the wall area in the image frame. And a second boundary area between the floor area and the wall area can be determined.

여기에서, 프로세서는 전자 장치 및 경계 영역 사이의 거리 및 센서에 의해 획득된 전자 장치의 높이에 기초하여, 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단할 수 있다.Here, the processor may determine the distance between the electronic device and the wall corresponding to the wall area based on the distance between the electronic device and the boundary area and the height of the electronic device obtained by the sensor.

여기에서, 프로세서는 센서에 의해 판단된 전자 장치의 위치에 기초하여 바닥면을 기준으로 하는 전자 장치의 높이를 판단하고, 제2 경계 영역에 대응되는 경계 및 전자 장치 사이의 거리 및 전자 장치의 높이에 기초하여 벽면 및 전자 장치 사이의 거리를 판단할 수 있다.Here, the processor determines the height of the electronic device relative to the floor based on the position of the electronic device determined by the sensor, the distance between the electronic device and the boundary corresponding to the second boundary area, and the height of the electronic device. Based on this, the distance between the wall and the electronic device can be determined.

한편, 프로세서는 오브젝트의 기설정된 크기 및 기설정된 거리에 기초하여 판단된 거리에 대응되는 크기를 판단하고, 오브젝트가 판단된 크기로 벽면 영역에 표시되도록 제어할 수 있다.Meanwhile, the processor may determine a size corresponding to the determined distance based on the preset size and preset distance of the object, and control the object to be displayed on the wall area at the determined size.

한편, 프로세서는 벽면 영역을 선택하는 입력이 수신되면 수신된 입력에 기초하여 벽면 영역 중에서 선택된 위치에 오브젝트를 표시하도록 디스플레이를 제어할 수 있다.Meanwhile, when an input for selecting a wall area is received, the processor may control the display to display an object at a selected location in the wall area based on the received input.

한편, 상기 목적을 달성하기 위한 본 개시의 일 실시 예에 따른 전자 장치의 제어 방법은, 카메라에 의해 획득된 이미지 프레임에서, 벽면 영역 및 벽면 영역 이외의 영역 사이의 경계 영역을 판단하는 단계, 센서에 의해 판단된 전자 장치의 위치 및 판단된 경계 영역에 기초하여, 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단하는 단계 및 판단된 거리에 대응되는 크기로 오브젝트를 벽면 영역에 표시하는 단계를 포함할 수 있다.Meanwhile, a control method of an electronic device according to an embodiment of the present disclosure for achieving the above object includes determining a boundary area between a wall area and an area other than the wall area in an image frame acquired by a camera, a sensor Based on the location of the electronic device determined by and the determined boundary area, determining a distance between the electronic device and a wall surface corresponding to the wall area and displaying an object in the wall area with a size corresponding to the determined distance. may include.

여기에서, 경계 영역을 판단하는 단계는, 카메라에 의해 획득된 복수의 이미지 프레임 각각에서, 기설정된 위치에 존재하는 기준 픽셀과 기설정된 임계 값 이상의 색상 유사도를 갖는 유사 픽셀을 판단하고, 복수의 이미지 프레임 간에 기준 픽셀 및 유사 픽셀을 포함하는 영역의 크기의 차이가 기설정된 임계 범위 이내인 경우, 기준 픽셀 및 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단하는 단계를 더 포함할 수 있다.Here, the step of determining the border area includes determining a similar pixel having a color similarity greater than a preset threshold value to a reference pixel existing at a preset position in each of the plurality of image frames acquired by the camera, and If the difference in size of the area including the reference pixel and the similar pixel between frames is within a preset threshold range, the step of determining the area including the reference pixel and the similar pixel as the wall area may be further included.

한편, 경계 영역을 판단하는 단계는, 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고, 센서에 의해 판단된 전자 장치의 위치에 기초하여 패턴 영역에서 3차원 점들의 집합을 획득하고, 3차원 점들의 집합에 대응되는 직선에 따라 경계 영역을 판단할 수 있다.Meanwhile, the step of determining the boundary area includes determining a pattern area including a specific pattern in an area other than the wall area, obtaining a set of three-dimensional points in the pattern area based on the position of the electronic device determined by the sensor, and , the boundary area can be determined according to a straight line corresponding to a set of 3D points.

한편, 벽면 및 전자 장치 사이의 거리를 판단하는 단계는, 전자 장치가 움직이는 동안 카메라에 의해 획득된 복수의 이미지 프레임에서 벽면 영역의 위치가 변경되는 정도를 판단하고, 벽면 영역의 위치가 변경되는 정도 및 센서에 의해 판단된 전자 장치의 위치가 변경되는 정도에 기초하여 경계 영역에 대응되는 경계 및 전자 장치 사이의 거리를 판단하는 단계를 더 포함할 수 있다.Meanwhile, the step of determining the distance between the wall and the electronic device includes determining the degree to which the position of the wall region changes in a plurality of image frames acquired by the camera while the electronic device is moving, and the degree to which the position of the wall region changes. and determining the distance between the boundary corresponding to the boundary area and the electronic device based on the degree to which the position of the electronic device determined by the sensor changes.

한편, 벽면 영역 이외의 영역은, 이미지 프레임에서 벽면 영역의 상측에 존재하는 천장 영역 및 벽면 영역의 하측에 존재하는 바닥 영역을 포함하고, 경계 영역을 판단하는 단계는 이미지 프레임에서 천장 영역과 벽면 영역 사이의 제1 경계 영역 및 바닥 영역과 벽면 영역 사이의 제2 경계 영역을 판단할 수 있다.Meanwhile, the area other than the wall area includes a ceiling area that exists above the wall area in the image frame and a floor area that exists below the wall area, and the step of determining the boundary area includes the ceiling area and the wall area in the image frame. A first boundary area between and a second boundary area between the floor area and the wall area can be determined.

여기에서, 벽면 및 전자 장치 사이의 거리를 판단하는 단계는, 전자 장치 및 경계 영역 사이의 거리 및 센서에 의해 획득된 전자 장치의 높이에 기초하여, 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단할 수 있다.Here, the step of determining the distance between the wall and the electronic device includes the distance between the wall and the electronic device corresponding to the wall area based on the distance between the electronic device and the boundary area and the height of the electronic device obtained by the sensor. can be judged.

여기에서, 벽면 및 전자 장치 사이의 거리를 판단하는 단계는, 센서에 의해 판단된 전자 장치의 위치에 기초하여 바닥면을 기준으로 하는 전자 장치의 높이를 판단하고, 제2 경계 영역에 대응되는 경계 및 전자 장치 사이의 거리 및 전자 장치의 높이에 기초하여 벽면 및 전자 장치 사이의 거리를 판단할 수 있다.Here, the step of determining the distance between the wall surface and the electronic device includes determining the height of the electronic device relative to the floor based on the position of the electronic device determined by the sensor, and determining the height of the electronic device based on the floor surface and determining the distance between the wall and the electronic device. And the distance between the wall and the electronic device can be determined based on the distance between the electronic devices and the height of the electronic device.

한편, 표시하는 단계는, 오브젝트의 기설정된 크기 및 기설정된 거리에 기초하여 판단된 거리에 대응되는 크기를 판단하고, 오브젝트를 판단된 크기로 벽면 영역에 표시할 수 있다.Meanwhile, in the displaying step, the size corresponding to the determined distance may be determined based on the preset size and preset distance of the object, and the object may be displayed on the wall area at the determined size.

한편, 표시하는 단계는, 벽면 영역을 선택하는 입력이 수신되면, 수신된 입력에 기초하여 벽면 영역 중에서 선택된 위치에 오브젝트를 표시할 수 있다.Meanwhile, in the displaying step, when an input for selecting a wall area is received, an object may be displayed at a location selected from the wall area based on the received input.

이상과 같은 본 개시의 다양한 실시 예에 따르면, 이미지에서 벽면 영역을 검출하여 벽면 영역에 증강 현실을 위한 오브젝트를 합성한 이미지를 실시간으로 제공하는 전자 장치 및 그 제어 방법을 제공할 수 있다. According to various embodiments of the present disclosure as described above, an electronic device that detects a wall area in an image and provides an image combining objects for augmented reality in the wall area in real time and a control method thereof can be provided.

또한, 단일 렌즈에 의해 촬영된 이미지 프레임을 이용해 전자 장치 및 단색의 벽면 사이의 거리를 측정하는 경우 거리 측정에 대한 정확도를 향상시킬 수 있으며, 듀얼 렌즈를 구비하는 경우에 비해 제품을 소형화, 단순화시킬 수 있고 생산비용을 절감할 수 있다.In addition, when measuring the distance between an electronic device and a monochromatic wall using an image frame captured by a single lens, the accuracy of the distance measurement can be improved, and the product can be miniaturized and simplified compared to the case of having a dual lens. and can reduce production costs.

도 1은, 본 개시의 일 실시 예에 따른 전자 장치를 설명하기 위한 도면이다.
도 2는, 본 개시의 일 실시 예에 따른 전자 장치의 블록도이다.
도 3 내지 도 6은, 본 개시의 일 실시 예에 따른 전자 장치의 제어 방법을 설명하기 위한 도면이다.
도 7은, 본 개시의 다른 실시 예에 따른 전자 장치를 설명하기 위한 도면이다.
도 8은, 본 개시의 일 실시 예에 따른 전자 장치의 구성을 상세히 도시한 블록이다.
도 9는, 본 개시의 일 실시 예에 따른 전자 장치의 제어 방법을 설명하기 위한 흐름도이다.
FIG. 1 is a diagram for explaining an electronic device according to an embodiment of the present disclosure.
Figure 2 is a block diagram of an electronic device according to an embodiment of the present disclosure.
3 to 6 are diagrams for explaining a control method of an electronic device according to an embodiment of the present disclosure.
FIG. 7 is a diagram for explaining an electronic device according to another embodiment of the present disclosure.
FIG. 8 is a block diagram illustrating in detail the configuration of an electronic device according to an embodiment of the present disclosure.
FIG. 9 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.

본 개시를 설명함에 있어서, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 개시의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그에 대한 상세한 설명은 생략한다. 덧붙여, 하기 실시 예는 여러 가지 다른 형태로 변형될 수 있으며, 본 개시의 기술적 사상의 범위가 하기 실시 예에 한정되는 것은 아니다. 오히려, 이들 실시 예는 본 개시를 더욱 충실하고 완전하게 하고, 당업자에게 본 개시의 기술적 사상을 완전하게 전달하기 위하여 제공되는 것이다.In describing the present disclosure, if it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the gist of the present disclosure, the detailed description thereof will be omitted. In addition, the following examples may be modified into various other forms, and the scope of the technical idea of the present disclosure is not limited to the following examples. Rather, these embodiments are provided to make the present disclosure more faithful and complete and to completely convey the technical idea of the present disclosure to those skilled in the art.

본 개시에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 개시의 실시 예의 다양한 변경(modifications), 균등물(equivalents), 및/또는 대체물(alternatives)을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다.The technology described in this disclosure is not intended to be limited to specific embodiments, but should be understood to include various modifications, equivalents, and/or alternatives to the embodiments of this disclosure. In connection with the description of the drawings, similar reference numbers may be used for similar components.

본 개시에서 사용된 "제1," "제2," "첫째," 또는 "둘째,"등의 표현들은 다양한 구성요소들을, 순서 및/또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. Expressions such as “first,” “second,” “first,” or “second,” used in the present disclosure can modify various components regardless of order and/or importance, and can refer to one component. It is only used to distinguish from other components and does not limit the components.

본 개시에서, "A 또는 B," "A 또는/및 B 중 적어도 하나," 또는 "A 또는/및 B 중 하나 또는 그 이상"등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. 예를 들면, "A 또는 B," "A 및 B 중 적어도 하나," 또는 "A 또는 B 중 적어도 하나"는, (1) 적어도 하나의 A를 포함, (2) 적어도 하나의 B를 포함, 또는 (3) 적어도 하나의 A 및 적어도 하나의 B 모두를 포함하는 경우를 모두 지칭할 수 있다.In the present disclosure, expressions such as “A or B,” “at least one of A or/and B,” or “one or more of A or/and B” may include all possible combinations of the items listed together. . For example, “A or B,” “at least one of A and B,” or “at least one of A or B” includes (1) at least one A, (2) at least one B, or (3) it may refer to all cases including both at least one A and at least one B.

본 개시에서 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "구성되다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.In this disclosure, singular expressions include plural expressions, unless the context clearly dictates otherwise. In this application, terms such as “comprise” or “consist of” are intended to designate the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, but are intended to indicate the presence of one or more other It should be understood that this does not exclude in advance the presence or addition of features, numbers, steps, operations, components, parts, or combinations thereof.

어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "(기능적으로 또는 통신적으로) 연결되어((operatively or communicatively) coupled with/to)" 있다거나 "접속되어(connected to)" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제3 구성요소)를 통하여 연결될 수 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 다른 구성요소(예: 제 3 구성요소)가 존재하지 않는 것으로 이해될 수 있다.A component (e.g., a first component) is “(operatively or communicatively) coupled with/to” another component (e.g., a second component). When referred to as being “connected to,” it should be understood that any component may be directly connected to the other component or may be connected through another component (e.g., a third component). On the other hand, when a component (e.g., a first component) is said to be “directly connected” or “directly connected” to another component (e.g., a second component), It may be understood that no other component (e.g., a third component) exists between other components.

본 개시에서 사용된 표현 "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, "~에 적합한(suitable for)," "~하는 능력을 가지는(having the capacity to)," "~하도록 설계된(designed to)," "~하도록 변경된(adapted to)," "~하도록 만들어진(made to)," 또는 "~를 할 수 있는(capable of)"과 바꾸어 사용될 수 있다. 용어 "~하도록 구성된(또는 설정된)"은 하드웨어적으로 "특별히 설계된(specifically designed to)" 것만을 반드시 의미하지 않을 수 있다. 대신, 어떤 상황에서는, "~하도록 구성된 장치"라는 표현은, 그 장치가 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리 장치에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU 또는 application processor)를 의미할 수 있다.The expression “configured to” used in the present disclosure may mean, for example, “suitable for,” “having the capacity to,” depending on the situation. ," can be used interchangeably with "designed to," "adapted to," "made to," or "capable of." The term “configured (or set to)” may not necessarily mean “specifically designed to” in hardware. Instead, in some contexts, the expression “a device configured to” may mean that the device is “capable of” working with other devices or components. For example, the phrase "processor configured (or set) to perform A, B, and C" refers to a processor dedicated to performing the operations (e.g., an embedded processor), or by executing one or more software programs stored on a memory device. , may refer to a general-purpose processor (e.g., CPU or application processor) capable of performing the corresponding operations.

이하에서, 첨부된 도면을 이용하여 본 개시의 다양한 실시 예들에 대하여 구체적으로 설명한다.Hereinafter, various embodiments of the present disclosure will be described in detail using the attached drawings.

도 1은 본 개시의 일 실시 예에 따른 전자 장치를 설명하기 위한 도면이다.1 is a diagram for explaining an electronic device according to an embodiment of the present disclosure.

도 1에 도시된 바와 같이, 전자 장치(100)는 증강 현실을 제공할 수 있는 장치로서, 스마트폰으로 구현될 수 있다. As shown in FIG. 1, the electronic device 100 is a device capable of providing augmented reality and may be implemented as a smartphone.

전자 장치(100)는 사용자가 사물이 점유하는 공간을 직관적으로 파악할 수 있도록, 사용자에게 현실의 공간을 촬영한 이미지에 증강 현실을 위한 오브젝트를 배치한 이미지를 제공할 수 있다. The electronic device 100 may provide the user with an image in which objects for augmented reality are arranged in an image taken of a real space so that the user can intuitively understand the space occupied by the object.

구체적으로, 전자 장치(100)는 단색의 벽면(10)을 포함하는 공간을 촬영한 이미지에 증강 현실을 위한 오브젝트가 오버랩된 이미지를 생성하여 사용자에게 실시간으로 제공할 수 있다. 이때, 단색의 벽면(10)은 텍스쳐 또는 패턴이 없는 형태로 단일한 색상을 갖는 수직한 평면을 의미한다.Specifically, the electronic device 100 may generate an image in which an object for augmented reality overlaps an image of a space including a monochromatic wall 10 and provide the image to the user in real time. At this time, the monochromatic wall surface 10 refers to a vertical plane with a single color without texture or pattern.

이를 위해, 전자 장치(100)는 단일 렌즈를 이용하여 단색의 벽면(10)을 포함하는 공간을 촬영한 카메라(130)에 의해 획득된 이미지 프레임에서 단색의 벽면 영역을 판단하고, 벽면 영역에 대응되는 벽면 및 전자 장치 사이의 거리를 판단하고, 증강 현실을 위한 오브젝트를 벽면 영역에 대응되는 벽면 및 전자 장치(100) 사이의 거리에 대응되는 크기에 기초하여 카메라(130)에 의해 획득된 이미지 프레임 내의 벽면 영역 상에 표시할 수 있다. To this end, the electronic device 100 determines a monochromatic wall area in an image frame acquired by the camera 130, which photographs a space including a monochromatic wall 10 using a single lens, and corresponds to the wall area. The distance between the wall surface and the electronic device is determined, and the object for augmented reality is captured by an image frame acquired by the camera 130 based on the size corresponding to the distance between the wall surface corresponding to the wall area and the electronic device 100. It can be displayed on the wall area inside.

이때, 증강 현실을 위한 오브젝트는 실존하는 사물이 3차원으로 렌더링된 것일 수 있다. 예를 들어, 오브젝트는 월 마운트 TV, 디지털 액자, 사운드 바 등과 같이 벽면에 부착되어 배치될 수 있는 사물이 3차원으로 렌더링 된 이미지와 같은 형태로 구현될 수 있다. 다만 이는 일 실시 예일 뿐이며, 이에 한정되지 아니하고 다양하게 변형되어 실시될 수 있다. 이하에서는 설명의 편의를 위해 오브젝트는 월 마운트 TV가 렌더링 된 이미지로 상정하고 설명하도록 한다.At this time, the object for augmented reality may be a three-dimensional rendering of a real object. For example, an object may be implemented as a three-dimensional rendered image of an object that can be attached and placed on a wall, such as a wall-mounted TV, digital picture frame, or sound bar. However, this is only an example, and is not limited to this, and may be implemented in various modifications. Below, for convenience of explanation, the object is assumed to be a rendered image of a wall-mounted TV.

이에 따라, 전자 장치(100)는 단일 렌즈를 이용하여 단색의 벽면(10)을 촬영하는 경우에도 단색의 벽면(10) 상에 배치될 월 마운트 TV의 위치, 높이, 크기(예를 들어 50인치, 60인치, 70인치) 등을 쉽고 편리하게 비교할 수 있도록 하는 증강 현실을 사용자에게 제공할 수 있다.Accordingly, even when photographing a monochromatic wall 10 using a single lens, the electronic device 100 determines the position, height, and size (for example, 50 inches) of a wall-mounted TV to be placed on the monochromatic wall 10. , 60 inches, 70 inches), etc. can be provided to users with augmented reality that allows them to compare them easily and conveniently.

한편, 도 1에서는 전자 장치(100)를 스마트폰으로 도시하였으나 이는 일 예일 뿐이고, 전자 장치(100)는 태블릿 PC, 스피커, 이동 전화기, 전화기, 전자책 리더기, 데스크탑 PC, 랩탑 PC, 워크스테이션, 서버, PDA, PMP(portable multimediaplayer), MP3 플레이어, 의료기기, 카메라, 텔레비전, DVD(digital video disk) 플레이어, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스, 홈 오토매이션 컨트롤 패널, 보안 컨트롤 패널, 미디어 박스(예: 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(예: XboxTM, PlayStationTM), 전자 사전, 전자 키, 캠코더, 전자 액자 또는 웨어러블 장치 등과 같은 장치로 구현될 수 있다. Meanwhile, in FIG. 1, the electronic device 100 is shown as a smartphone, but this is only an example, and the electronic device 100 may include a tablet PC, speaker, mobile phone, telephone, e-book reader, desktop PC, laptop PC, workstation, Servers, PDAs, PMPs (portable multimedia players), MP3 players, medical devices, cameras, televisions, DVDs (digital video disk) players, refrigerators, air conditioners, vacuum cleaners, ovens, microwave ovens, washing machines, air purifiers, set-top boxes, home automatics. Devices such as electronic control panels, security control panels, media boxes (e.g. Samsung HomeSyncTM, Apple TVTM, or Google TVTM), game consoles (e.g. XboxTM, PlayStationTM), electronic dictionaries, electronic keys, camcorders, electronic picture frames, or wearable devices. It can be implemented as:

이하에서는, 도면을 참조하여 증강 현실을 제공하는 전자 장치 및 그 제어 방법에 대해 보다 상세히 설명하기로 한다.Hereinafter, an electronic device that provides augmented reality and a control method thereof will be described in more detail with reference to the drawings.

도 2는 본 개시의 일 실시 예에 따른 전자 장치(100)의 블록도이다. Figure 2 is a block diagram of an electronic device 100 according to an embodiment of the present disclosure.

도 2를 참조하면, 전자 장치(100)는 센서(110), 디스플레이(120), 카메라(130) 및 프로세서(140)를 포함할 수 있다.Referring to FIG. 2 , the electronic device 100 may include a sensor 110, a display 120, a camera 130, and a processor 140.

센서(110)는 전자 장치(100)의 각도, 높이, 모션(이동 및/또는 회전하는 속도, 방향, 거리 등) 등을 감지할 수 있다. 이때 센서(110)는 가속도 센서, 자이로(gyro) 센서, 근접 센서, 지자기 센서, 중력 센서 및 압력 센서 중에서 적어도 하나를 포함할 수 있으며, 이들을 결합한 모션 센서 등을 포함할 수 있다.The sensor 110 can detect the angle, height, motion (moving and/or rotating speed, direction, distance, etc.) of the electronic device 100. At this time, the sensor 110 may include at least one of an acceleration sensor, a gyro sensor, a proximity sensor, a geomagnetic sensor, a gravity sensor, and a pressure sensor, and may include a motion sensor combining these sensors.

센서(110)는 전자 장치(100)의 주변 환경에 대한 광량(또는 밝기)을 감지할 수 있으며, 이때 센서(110)는 조도 센서 등과 같은 광 센서를 포함할 수 있다.The sensor 110 may detect the amount of light (or brightness) of the surrounding environment of the electronic device 100, and in this case, the sensor 110 may include an optical sensor such as an illuminance sensor.

센서(110)는 레이저 센서, 적외선 센서 등과 같은 빔 센서를 포함할 수 있으며, 이 경우 센서(110)는 전자 장치(100)와 주변 공간 사이의 거리를 직접 감지할 수도 있다.The sensor 110 may include a beam sensor such as a laser sensor, an infrared sensor, etc. In this case, the sensor 110 may directly detect the distance between the electronic device 100 and the surrounding space.

디스플레이(120)는 영상 처리부(미도시)에서 처리한 영상 데이터를 디스플레이 영역(또는, 디스플레이)에 표시할 수 있다. 디스플레이 영역은 전자 장치(100)의 하우징의 일면에 노출된 디스플레이(120)의 적어도 일부를 의미할 수 있다.The display 120 may display image data processed by an image processor (not shown) on a display area (or display). The display area may refer to at least a portion of the display 120 exposed on one side of the housing of the electronic device 100.

디스플레이(120)의 적어도 일부는 플렉서블 디스플레이(flexible display)의 형태로 전자 장치(100)의 전면 영역, 측면 영역 및 후면 영역 중 적어도 하나에 결합될 수도 있다. 플렉서블 디스플레이는 종이처럼 얇고 유연한 기판을 통해 손상 없이 휘거나 구부리거나 말 수 있는 것을 특징으로 할 수 있다. At least a portion of the display 120 may be coupled to at least one of the front area, side area, and rear area of the electronic device 100 in the form of a flexible display. Flexible displays can be characterized by being able to bend, bend, or roll without damage through a paper-thin, flexible substrate.

디스플레이(120)는 터치 패널(미도시)과 결합하여 레이어 구조의 터치 스크린으로 구현될 수 있다. 터치 스크린은 표시 기능뿐만 아니라 터치 입력의 위치, 터치 입력의 면적뿐만 아니라 터치 입력의 압력까지도 검출하는 기능을 가질 수 있고, 또한 터치 스크린에 실질적으로 접촉하는 터치(real-touch)뿐만 아니라 터치 스크린에 근접한 터치(proximity touch)도 검출하는 기능을 가질 수 있다.The display 120 may be implemented as a touch screen with a layered structure by combining with a touch panel (not shown). The touch screen may have not only a display function but also a function of detecting not only the location of the touch input, the area of the touch input, but also the pressure of the touch input. In addition, not only the touch that actually touches the touch screen (real-touch) but also the touch screen It may also have the function of detecting proximity touch.

카메라(130)는 단일 렌즈를 이용하여 공간을 촬영하여 공간에 대한 이미지 프레임을 획득할 수 있다. 이때, 공간은 벽면을 포함하는 공간이 될 수 있다. 이후, 카메라(130)에 의해 획득된 이미지 프레임은 영상 처리부(미도시)에서 처리되어 디스플레이(120)에 표시될 수 있다.The camera 130 may acquire an image frame for the space by photographing the space using a single lens. At this time, the space may be a space including a wall. Thereafter, the image frame acquired by the camera 130 may be processed by an image processor (not shown) and displayed on the display 120.

프로세서(140)(또는 제어부)는 전자 장치(100)의 전반적인 동작을 제어할 수 있다. The processor 140 (or control unit) may control the overall operation of the electronic device 100.

프로세서(140)는 카메라(130)에 의해 획득된 이미지 프레임에서 벽면 영역 및 벽면 영역 이외의 영역 사이의 경계 영역을 판단할 수 있다.The processor 140 may determine the boundary area between the wall area and areas other than the wall area in the image frame acquired by the camera 130.

이를 위해, 프로세서(140)는 카메라(130)에 의해 획득된 이미지 프레임에서 단색의 벽면 영역을 판단할 수 있다. 이때, 이미지 프레임은 단일 렌즈를 이용하는 카메라(130)에 의해 획득될 수 있으며, 단색의 벽면을 포함하는 공간을 연속적으로 촬영하여 실시간으로 획득되는 복수의 이미지 프레임이 될 수 있다.To this end, the processor 140 may determine a monochromatic wall area in the image frame acquired by the camera 130. At this time, the image frame may be acquired by the camera 130 using a single lens, and may be a plurality of image frames acquired in real time by continuously photographing a space including a monochromatic wall.

구체적으로, 프로세서(140)는 카메라(130)에 의해 획득된 복수의 이미지 프레임 각각에서, 기설정된 위치에 존재하는 기준 픽셀과 기설정된 임계 값 이상의 색상 유사도를 갖는 유사 픽셀을 판단할 수 있다. 이때, 기준 픽셀은 이미지 프레임의 센터에 위치한 픽셀로 설정될 수 있다. 여기서, 기설정된 위치 또는 기설정된 임계 값은 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.Specifically, the processor 140 may determine, in each of the plurality of image frames acquired by the camera 130, a reference pixel existing at a preset position and a similar pixel having color similarity greater than or equal to a preset threshold. At this time, the reference pixel may be set to a pixel located at the center of the image frame. Here, the preset position or preset threshold is a preset value or a value set by the user, and can be changed by the user.

이 경우, 프로세서(140)는 이미지 프레임의 센터에 위치한 픽셀의 색상 값(예: R,G,B)을 기준으로, 센터에 위치한 픽셀의 색상 값과 이를 제외한 나머지 픽셀의 색상 값의 차이를 비교하여, 색상 값의 차이가 작을수록 유사도가 높은 것으로 판단할 수 있다. 그리고 프로세서(140)는 유사도가 기설정된 임계 값 이상을 갖는 픽셀을 유사 픽셀로 판단할 수 있다. 여기서, 기설정된 임계 값은 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.In this case, the processor 140 compares the difference between the color value of the pixel located in the center and the color values of the remaining pixels, based on the color value (e.g., R, G, B) of the pixel located in the center of the image frame. Therefore, it can be determined that the smaller the difference in color values, the higher the similarity. Additionally, the processor 140 may determine a pixel having a similarity greater than or equal to a preset threshold as a similar pixel. Here, the preset threshold value is a preset value or a value set by the user and can be changed by the user.

그리고, 프로세서(140)는 복수의 이미지 프레임 간에 기준 픽셀 및 유사 픽셀을 포함하는 영역의 크기의 차이가 기설정된 임계 범위인 경우, 기준 픽셀 및 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단할 수 있다. 여기서, 기설정된 임계 범위는 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.Additionally, if the difference in size of the area including the reference pixel and the similar pixel between the plurality of image frames is within a preset threshold range, the processor 140 may determine the area including the reference pixel and the similar pixel to be the wall area. . Here, the preset threshold range is a preset value or a value set by the user, and can be changed by the user.

이 경우, 프로세서(140)는 복수의 이미지 프레임 각각에 대해 기준 픽셀 및 유사 픽셀을 포함하는 영역을 결정하고, 복수의 이미지 프레임 간에 기준 픽셀 및 유사 픽셀을 포함하는 영역의 크기(또는 위치 등)의 차이를 비교하여, 크기의 차이가 기설정된 임계 범위 이내인 경우(즉, 영역의 크기가 복수의 이미지 프레임에서 기설정된 임계 범위 이내에서 일정하게 유지되는 경우), 기준 픽셀 및 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단할 수 있다. In this case, the processor 140 determines the area containing the reference pixel and the similar pixel for each of the plurality of image frames, and determines the size (or position, etc.) of the area containing the reference pixel and the similar pixel between the plurality of image frames. Compare the difference, and if the size difference is within a preset threshold range (i.e., if the size of the area is kept constant within the preset threshold range in a plurality of image frames), the area containing the reference pixel and similar pixels can be judged as the wall area.

이에 따라, 주변 환경의 빛의 밝기, 빛의 반사 등에 따라 일시적으로 픽셀의 색상이 변화될 수 있는 경우에도, 프로세서(140)는 단색 벽면 영역을 보다 정확하게 검출할 수 있다. Accordingly, even when the color of a pixel may temporarily change depending on the brightness of light or reflection of light in the surrounding environment, the processor 140 can more accurately detect a monochromatic wall area.

한편, 어두운 환경(즉, 저조도 환경)에서 획득된 이미지 프레임의 경우 픽셀의 색상 값이 왜곡될 수 있다는 점에서, 프로세서(140)는 센서(110)에 의해 감지된 조도 값이 기설정된 값(예: 3 lx) 이상인 경우에만 이미지 프레임에서 단색의 벽면 영역을 검출하는 동작을 수행할 수도 있다. 여기서 기설정된 값은 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.Meanwhile, in the case of an image frame acquired in a dark environment (i.e., a low-light environment), the color value of the pixel may be distorted, so the processor 140 determines that the illuminance value detected by the sensor 110 is set to a preset value (e.g. : 3 lx) or more, the operation of detecting a monochromatic wall area in an image frame can be performed. Here, the preset value is a preset value or a value set by the user, and can be changed by the user.

한편, 이미지 프레임은 전자 장치(100)에 포함된 단일 렌즈를 이용하는 카메라(130)에 의해 직접 획득될 수 있으나, 이는 일 실시 예일뿐이고, 전자 장치(100)는 단일 렌즈를 이용하는 외부 장치가 촬영된 이미지 프레임을 외부 장치로부터 수신할 수도 있다.Meanwhile, the image frame may be directly acquired by the camera 130 using a single lens included in the electronic device 100, but this is only an example, and the electronic device 100 may be used to capture images taken by an external device using a single lens. Image frames can also be received from an external device.

그리고, 프로세서(140)는 이미지 프레임에서 벽면 영역과 벽면 영역 이외의 영역 사이의 경계 영역을 판단할 수 있다. 이때, 벽면 영역 이외의 영역은 벽면 영역과 구분되는 특정한 텍스쳐 또는 패턴을 갖거나 단색의 영역이 될 수 있다. Additionally, the processor 140 may determine the boundary area between the wall area and areas other than the wall area in the image frame. At this time, areas other than the wall area may have a specific texture or pattern that is distinct from the wall area, or may be a solid color area.

구체적으로, 프로세서(140)는 복수의 이미지 프레임 각각에 대해 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단할 수 있다. 이때, 패턴은 특정한 형태를 형성하는 픽셀의 집합 또는 일정한 규칙으로 반복되는 픽셀의 집합을 의미할 수 있다. 예를 들어, 패턴 영역은 그림자 영역, 비가시 영역 등이 될 수 있다. Specifically, the processor 140 may determine a pattern area including a specific pattern in an area other than the wall area for each of the plurality of image frames. At this time, a pattern may refer to a set of pixels that form a specific shape or a set of pixels that are repeated according to a certain rule. For example, the pattern area may be a shadow area, an invisible area, etc.

여기에서, 프로세서(140)는 다른 영역 중에서 벽면 영역과 기설정된 임계 범위를 갖는 인접한 영역에 대해서만 특정한 패턴을 포함하는 패턴 영역을 판단할 수 있다. 이에 따라, 프로세서(140)의 연산 범위를 줄여 패턴 영역을 판단하는 속도 및 정확도를 향상시킬 수 있다.Here, the processor 140 may determine a pattern area containing a specific pattern only for the wall area and an adjacent area having a preset threshold range among other areas. Accordingly, the speed and accuracy of determining the pattern area can be improved by reducing the calculation range of the processor 140.

다음으로, 프로세서(140)는 센서(110)에 의해 판단된 전자 장치(100)의 위치 및 판단된 경계 영역에 기초하여 벽면 영역에 대응되는 벽면 및 전자 장치(100) 사이의 거리를 판단할 수 있다. 이때, 벽면(현실 공간)은 이미지 프레임에서의 벽면 영역(가상 공간)에 대응될 수 있다.Next, the processor 140 may determine the distance between the electronic device 100 and a wall corresponding to the wall area based on the location of the electronic device 100 determined by the sensor 110 and the determined boundary area. there is. At this time, the wall surface (real space) may correspond to the wall area (virtual space) in the image frame.

이를 위해, 프로세서(140)는 센서(110)에 의해 판단된 전자 장치(100)의 움직임에 기초하여 및 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리를 판단할 수 있다. 이때, 경계(현실 공간)는 이미지 프레임에서의 벽면 영역 및 벽면 영역 이외의 영역의 사이의 경계 영역(가상 공간)에 대응될 수 있다.To this end, the processor 140 may determine the distance between the boundary and the electronic device 100 based on the movement of the electronic device 100 determined by the sensor 110 and corresponding to the boundary area. At this time, the boundary (real space) may correspond to the boundary area (virtual space) between the wall area and areas other than the wall area in the image frame.

그리고, 프로세서(140)는 복수의 이미지 프레임 각각에서 센서(110)에 의해 판단된 전자 장치(100)의 움직임에 기초하여 패턴 영역에서 3차원 점들의 집합을 획득할 수 있다. Additionally, the processor 140 may obtain a set of three-dimensional points in the pattern area based on the movement of the electronic device 100 determined by the sensor 110 in each of the plurality of image frames.

구체적으로, 프로세서(140)는 전자 장치(100)가 회전하는 경우, 센서(110)에 의해 판단된 전자 장치(100)의 회전 정보에 따라 이미지 프레임이 촬영된 각도를 결정할 수 있다. 이후, 프로세서(140)는 서로 다른 각도에서 연속적으로 촬영된 2 개의 이미지 프레임에 대해 스테레오 합성을 수행하여 깊이 이미지(depth image)을 획득할 수 있다. 이후, 프로세서(140)는 스테레오 합성을 수행한 깊이 이미지의 패턴 영역에서 3차원 점들의 집합을 획득할 수 있다.Specifically, when the electronic device 100 rotates, the processor 140 may determine the angle at which the image frame is captured according to rotation information of the electronic device 100 determined by the sensor 110. Thereafter, the processor 140 may obtain a depth image by performing stereo synthesis on two image frames sequentially photographed at different angles. Thereafter, the processor 140 may obtain a set of 3D points in the pattern area of the depth image on which stereo synthesis was performed.

이때, 3차원 점들의 집합은 X,Y,Z 축 상 위치(또는 벡터) 정보, 반사 강도 등과 같은 속성 값을 가질 수 있으며, 포인트 클라우드와 같이 구현될 수 있다. At this time, the set of 3D points may have attribute values such as position (or vector) information on the X, Y, and Z axes, reflection intensity, etc., and may be implemented like a point cloud.

그리고, 프로세서(140)는 3차원 점들의 집합에 대응되는 직선에 따라 경계 영역을 판단할 수 있다. 예를 들어, 프로세서(140)는 3차원 점들의 집합을 선형화하는 알고리즘에 따라 생성된 직선을 경계 영역으로 판단할 수 있다.Additionally, the processor 140 may determine the boundary area according to a straight line corresponding to a set of 3D points. For example, the processor 140 may determine that a straight line generated according to an algorithm for linearizing a set of 3D points is a boundary area.

한편, 벽면 영역 이외의 영역은 이미지 프레임에서 벽면 영역의 상측에 존재하는 천장 영역 및 벽면 영역의 하측에 존재하는 바닥 영역을 포함할 수 있다. 이때, 프로세서(140)는 이미지 프레임에서 천장 영역과 벽면 영역 사이의 제1 경계 영역 및 바닥 영역과 벽면 영역 사이의 제2 경계 영역을 판단할 수 있다.Meanwhile, areas other than the wall area may include a ceiling area that exists above the wall area and a floor area that exists below the wall area in the image frame. At this time, the processor 140 may determine a first boundary area between the ceiling area and the wall area and a second boundary area between the floor area and the wall area in the image frame.

이때, 프로세서(140)는 촬영된 이미지 프레임에서 벽면 영역, 천장 영역 및 바닥 영역이 모두 포함되지 않는 경우 사용자에게 이를 알리는 메시지 제공할 수 있으며, 사용자에게 이미지 프레임에 벽면 영역, 천장 영역 및 바닥 영역이 모두 포함되어 촬영될 수 있도록 유도하는 가이드를 제공할 수 있다. 예를 들어, 프로세서(140)는 디스플레이(120)를 통해 "천장 및 바닥을 포함하도록 촬영해 주세요"와 같은 텍스트를 포함하는 GUI를 표시할 수 있다.At this time, the processor 140 may provide a message notifying the user if the captured image frame does not include all of the wall area, ceiling area, and floor area, and may notify the user that the wall area, ceiling area, and floor area are included in the image frame. We can provide a guide to ensure that everything is included and captured. For example, the processor 140 may display a GUI including text such as “Please take a photo to include the ceiling and floor” through the display 120.

그리고, 프로세서(140)는 전자 장치(100)가 움직이는 동안 카메라(130)에 의해 획득된 복수의 이미지 프레임에서 벽면 영역의 위치가 변경되는 정도를 판단할 수 있다. 이때, 전자 장치(100)는 기설정된 범위의 각도 이내에서 회전하는 것을 가정한다.Additionally, the processor 140 may determine the extent to which the position of the wall area changes in a plurality of image frames acquired by the camera 130 while the electronic device 100 moves. At this time, it is assumed that the electronic device 100 rotates within an angle within a preset range.

여기에서, 프로세서(140)는 전자 장치(100)가 회전한 각도를 센서(110)에 의해 획득하고, 이미지 프레임에서 획득된 경계 영역이 이동한 거리를 계산하여 카메라(130)에 의해 획득된 복수의 이미지 프레임에서 벽면 영역의 위치가 변경되는 정도를 판단할 수 있다.Here, the processor 140 acquires the angle at which the electronic device 100 is rotated by the sensor 110, calculates the distance that the boundary area obtained in the image frame moves, and calculates the distance that the boundary area obtained in the image frame has moved. The degree to which the position of the wall area changes in the image frame can be determined.

그리고, 프로세서(140)는 벽면 영역의 위치가 변경되는 정도 및 센서(110)에 의해 획득된 전자 장치(100)의 움직임 정도에 기초하여 경계 영역에 대응되는 경계 및 전자 장치(100)사이의 거리를 판단할 수 있다.And, the processor 140 determines the distance between the boundary corresponding to the boundary area and the electronic device 100 based on the degree to which the position of the wall area changes and the degree of movement of the electronic device 100 obtained by the sensor 110. can be judged.

그리고, 프로세서(140)는 전자 장치(100) 및 경계 사이의 거리 및 센서(110)에 의해 획득된 전자 장치(100)의 높이에 기초하여, 전자 장치(100) 및 벽면 영역 사이의 거리를 판단할 수 있다.Then, the processor 140 determines the distance between the electronic device 100 and the wall area based on the distance between the electronic device 100 and the boundary and the height of the electronic device 100 obtained by the sensor 110. can do.

구체적으로, 프로세서(140)는 센서(110)에 의해 판단된 전자 장치(100)의 위치에 기초하여 바닥면을 기준으로 하는 전자 장치(100)의 높이를 판단하고, 제2 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리 및 전자 장치(100)의 높이에 따라 삼각비를 이용하여 벽면 및 전자 장치(100)사이의 거리를 판단할 수 있다.Specifically, the processor 140 determines the height of the electronic device 100 relative to the floor based on the position of the electronic device 100 determined by the sensor 110, and determines the height of the electronic device 100 corresponding to the second boundary area. Depending on the distance between the border and the electronic device 100 and the height of the electronic device 100, the distance between the wall and the electronic device 100 can be determined using the triangular ratio.

그리고, 프로세서(140)는 판단된 거리에 대응되는 크기로, 오브젝트가 벽면 영역에 표시되도록 디스플레이(120)를 제어할 수 있다.Additionally, the processor 140 may control the display 120 to display an object on the wall area with a size corresponding to the determined distance.

구체적으로, 프로세서(140)는 오브젝트의 기설정된 크기 및 기설정된 거리 에 기초하여 판단된 거리에 대응되는 크기를 판단하고, 오브젝트가 판단된 크기로 벽면 영역에 표시되도록 디스플레이(120)를 제어할 수 있다. 여기서, 기설정된 크기 및 기설정된 거리는 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.Specifically, the processor 140 may determine the size corresponding to the distance determined based on the preset size and preset distance of the object, and control the display 120 so that the object is displayed on the wall area at the determined size. there is. Here, the preset size and preset distance are preset values or values set by the user, and can be changed by the user.

예를 들어, 벽면 영역 및 전자 장치(100) 사이의 기설정된 거리가 10m 일 때 100인치 TV(가로 220cm X 세로 125cm)를 렌더링 한 오브젝트가 이미지 프레임 상에 220 X 125 의 기설정된 크기로 표시되는 경우를 가정한다. 벽면 영역 및 전자 장치(100) 사이의 거리가 5m 인 경우, 프로세서(140)는 오브젝트가 440 X 250 의 크기를 갖도록 이미지 프레임 내의 벽면 영역 상에 표시할 수 있다. 벽면 영역 및 전자 장치(100) 사이의 거리가 15m 인 경우, 프로세서(140)는 오브젝트가 88 X 50 의 크기를 갖도록 이미지 프레임 내의 벽면 영역 상에 표시할 수 있다. 이와 같이 벽면 영역 및 전자 장치(100) 사이의 거리 및 기설정된 크기에 매칭되는 오브젝트의 크기는 전자 장치(100)에 기저장되어 있을 수 있다. 여기서, 기설정된 크기는 사전에 설정된 값 또는 사용자에 의해 설정된 값으로서, 사용자에 의해 변경될 수 있다.For example, when the preset distance between the wall area and the electronic device 100 is 10m, an object rendering a 100-inch TV (width 220cm Assume the case. When the distance between the wall area and the electronic device 100 is 5 m, the processor 140 can display the object on the wall area within the image frame to have a size of 440 x 250. When the distance between the wall area and the electronic device 100 is 15 m, the processor 140 can display the object on the wall area within the image frame so that the object has a size of 88 x 50. In this way, the distance between the wall area and the electronic device 100 and the size of the object matching the preset size may be pre-stored in the electronic device 100. Here, the preset size is a preset value or a value set by the user, and can be changed by the user.

한편, 프로세서(140)는 벽면 영역중에서 위치를 선택하기 위한 사용자 명령이 수신되면, 오브젝트가 선택된 위치에 표시되도록 디스플레이(120)를 제어할 수 있다.Meanwhile, when a user command for selecting a location among the wall areas is received, the processor 140 may control the display 120 to display an object at the selected location.

도 3 내지 도 6은 본 개시의 일 실시 예에 따른 전자 장치(100)의 제어 방법을 설명하기 위한 도면이다.3 to 6 are diagrams for explaining a control method of the electronic device 100 according to an embodiment of the present disclosure.

도 3을 참조하면, 프로세서(140)는 단일 렌즈를 이용하여 촬영을 수행하는 카메라(130)에 의해 획득된 이미지 프레임에서 단색의 벽면 영역을 판단할 수 있다. Referring to FIG. 3, the processor 140 may determine a monochromatic wall area in an image frame acquired by the camera 130 that performs photography using a single lens.

구체적으로, 프로세서(140)는 단일 렌즈를 이용하는 카메라(130)에 의해 촬영된 공간(200)에 대한 이미지 프레임(300)을 획득할 수 있다. Specifically, the processor 140 may acquire an image frame 300 for the space 200 captured by the camera 130 using a single lens.

여기에서, 공간(200)은 벽면(10), 천장면(20), 바닥면(30), 벽면(10) 및 천장면(20)의 경계(40), 벽면(10) 및 바닥면(30)의 경계(50)를 포함할 수 있다.Here, the space 200 includes the wall 10, the ceiling 20, the floor 30, the boundary 40 of the wall 10 and the ceiling 20, the wall 10, and the floor 30. ) may include the boundary 50.

또한, 이미지 프레임(300)은 기준 픽셀(310), 벽면(10)에 대응되는 벽면 영역(320), 천장면(20)에 대응되는 천장 영역(330), 바닥면(30)에 대응되는 바닥 영역(340), 벽면(10) 및 천장면(20)의 경계 영역(40)에 대응되는 벽면 영역(320) 및 천장 영역(330) 사이의 제1 경계 영역(350), 벽면(10) 및 바닥면(30)의 경계 영역(50)에 대응되는 벽면 영역(320) 및 바닥 영역(340) 사이의 제2 경계 영역(360)을 포함할 수 있다. In addition, the image frame 300 includes a reference pixel 310, a wall area 320 corresponding to the wall 10, a ceiling area 330 corresponding to the ceiling surface 20, and a floor corresponding to the floor surface 30. A first boundary area 350 between the wall area 320 and the ceiling area 330 corresponding to the boundary area 40 of the area 340, the wall surface 10, and the ceiling surface 20, the wall surface 10, and It may include a second boundary area 360 between the wall area 320 and the floor area 340, which correspond to the boundary area 50 of the floor surface 30.

한편, 프로세서(140)는 카메라(130)에 의해 획득된 이미지 프레임(300)에서 단색의 벽면 영역(320)을 판단할 수 있다. 이때, 이미지 프레임(300)은 공간(200)을 연속적으로 촬영하여 실시간으로 획득되는 복수의 이미지 프레임이 될 수 있다.Meanwhile, the processor 140 may determine a monochromatic wall area 320 in the image frame 300 acquired by the camera 130. At this time, the image frame 300 may be a plurality of image frames acquired in real time by continuously photographing the space 200.

구체적으로, 프로세서(140)는 카메라(130)에 의해 획득된 복수의 이미지 프레임 각각에서, 기준 픽셀(310) 및 기준 픽셀(310)과 기설정된 임계 값 이상의 색상 유사도를 갖는 유사 픽셀을 포함하는 영역을 결정할 수 있다. 이때, 기준 픽셀(310)은 이미지 프레임(300)의 센터에 위치한 픽셀로 설정될 수 있다. Specifically, in each of the plurality of image frames acquired by the camera 130, the processor 140 operates on an area including a reference pixel 310 and similar pixels having a color similarity greater than or equal to a preset threshold value with the reference pixel 310. can be decided. At this time, the reference pixel 310 may be set to a pixel located at the center of the image frame 300.

그리고, 프로세서(140)는 복수의 이미지 프레임 간에 기준 픽셀(310) 및 유사 픽셀을 포함하는 영역의 크기의 차이를 비교하여, 크기의 차이가 기설정된 임계 범위인 경우에 기준 픽셀(310) 및 유사 픽셀을 포함하는 영역을 벽면 영역(320)으로 판단할 수 있다. Then, the processor 140 compares the difference in size of the area including the reference pixel 310 and similar pixels between a plurality of image frames, and when the size difference is within a preset threshold range, the reference pixel 310 and similar pixel The area containing the pixels can be determined as the wall area 320.

이후, 프로세서(140)는 이미지 프레임에서 벽면 영역과 벽면 영역 이외의 영역 사이의 경계 영역을 판단하고, 센서(110)에 의해 획득된 전자 장치(100)의 움직임에 기초하여 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리를 판단할 수 있다.Thereafter, the processor 140 determines the boundary area between the wall area and areas other than the wall area in the image frame, and determines the boundary area corresponding to the boundary area based on the movement of the electronic device 100 obtained by the sensor 110. and the distance between the electronic devices 100 may be determined.

이 경우, 도 4의 (a)를 참조하면, 프로세서(140)는 이미지 프레임(300)에서 벽면 영역을 기준으로 벽면 영역 이외의 영역을 판단하고, 벽면 영역 및 영역 사이의 경계 영역을 판단할 수 있다. In this case, referring to (a) of FIG. 4, the processor 140 can determine an area other than the wall area in the image frame 300 based on the wall area and determine the boundary area between the wall area and the area. there is.

이를 위해, 프로세서(140)는 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고, 복수의 이미지 프레임 각각에서 센서(110)에 의해 획득된 전자 장치(100)의 움직임에 기초하여 패턴 영역에서 3차원 점들의 집합(410, 420)을 획득할 수 있다.To this end, the processor 140 determines a pattern area including a specific pattern in an area other than the wall area, and determines the pattern area based on the movement of the electronic device 100 acquired by the sensor 110 in each of the plurality of image frames. A set of 3D points (410, 420) can be obtained from the area.

한편, 프로세서(140)는 벽면 영역 이외의 영역 중에서 기설정된 임계 범위를 갖는 영역에 대해서만 특정한 패턴을 포함하는 패턴 영역을 판단할 수 있다. 예를 들어, 프로세서(140)는 기설정된 임계 범위(450) 밖의 영역에 패턴(460)이 존재하더라도 기설정된 임계 범위(450) 밖의 영역에 대해서는 패턴 영역을 판단하지 않을 수 있다. 이에 따라, 프로세서(140)가 패턴 영역을 판단하는 속도 및 정확도를 향상시킬 수 있다.Meanwhile, the processor 140 may determine a pattern area containing a specific pattern only for areas with a preset threshold range among areas other than the wall area. For example, the processor 140 may not determine the pattern area for the area outside the preset critical range 450 even if the pattern 460 exists in the area outside the preset critical range 450 . Accordingly, the speed and accuracy with which the processor 140 determines the pattern area can be improved.

그리고, 프로세서(140)는 3차원 점들의 집합(410, 420)에 대응되는 직선(430, 440)을 경계 영역으로 판단할 수 있다. Additionally, the processor 140 may determine the straight lines 430 and 440 corresponding to the sets of 3D points 410 and 420 as boundary areas.

도 4의 (a) 및 (b)를 참조하면, 프로세서(140)는 센서(110)에 의해 획득된 전자 장치(100)의 움직임에 기초하여 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리를 판단할 수 있다.Referring to (a) and (b) of FIGS. 4, the processor 140 determines the boundary between the electronic device 100 and the boundary corresponding to the boundary area based on the movement of the electronic device 100 obtained by the sensor 110. The distance can be judged.

예를 들어, 도 4의 (a)와 같이 전자 장치(100)의 카메라(130)가 벽면을 정면으로 향하던 상태에서 도 4의 (b)와 같이 카메라(130)가 바닥면을 향해 회전되는 경우, 전자 장치(100)는 센서(110)에 의해 전자 장치(100)의 움직임 정도(예: 회전 각도 등)를 획득할 수 있다. For example, when the camera 130 of the electronic device 100 is facing the wall as shown in (a) of FIG. 4 and the camera 130 is rotated toward the floor as shown in (b) of FIG. 4 , the electronic device 100 may obtain the degree of movement (eg, rotation angle, etc.) of the electronic device 100 using the sensor 110 .

이때, 전자 장치(100)는 복수의 이미지 프레임에서 제1 경계 영역(430, 431)의 중심 위치를 제2 경계 영역(440, 441)의 중심 위치를 각각 비교하여, 제1 경계 영역(430, 431)의 중심 위치 및 제2 경계 영역(440, 441)의 중심 위치가 변화하는 정도에 따라 벽면 영역의 위치가 변경되는 정도를 판단할 수 있다.At this time, the electronic device 100 compares the center positions of the first border areas 430 and 431 with the center positions of the second border areas 440 and 441 in the plurality of image frames, respectively, to determine the first border areas 430 and 441. The degree to which the position of the wall area changes can be determined according to the degree to which the center position of 431 and the center position of the second border areas 440 and 441 change.

그리고, 전자 장치(100)는 벽면 영역의 위치가 변경되는 정도 및 센서(110)에 의해 획득된 전자 장치(100)의 움직임 정도에 기초하여 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리를 판단할 수 있다. And, the electronic device 100 determines the distance between the boundary corresponding to the boundary area and the electronic device 100 based on the degree to which the position of the wall area changes and the degree of movement of the electronic device 100 obtained by the sensor 110. Distance can be judged.

이를 위해, 전자 장치(100)에는 전자 장치(100)가 회전한 각도 및 경계 영역이 이동한 거리에 매칭되는 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리에 대한 정보가 기저장되어 있을 수 있다.For this purpose, information about the distance between the electronic device 100 and the boundary corresponding to the boundary area that matches the angle at which the electronic device 100 has rotated and the distance the boundary area has moved is pre-stored in the electronic device 100. There may be.

이 경우, 프로세서(140)는 기저장된 거리에 대한 정보 중에서, 센서(110)에 의해 획득된 전자 장치(100)가 회전한 각도 및 이미지 프레임에서 경계 영역이 이동한 거리에 매칭되는 정보를 획득하여, 전자 장치(100) 및 경계 사이의 거리를 판단할 수 있다. In this case, the processor 140 obtains information matching the angle at which the electronic device 100 was rotated and the distance the boundary area moved in the image frame obtained by the sensor 110 from among the previously stored distance information. , the distance between the electronic device 100 and the boundary can be determined.

예를 들어, 전자 장치(100)는 전자 장치(100)가 회전된 각도가 10도이고 경계 영역이 이동한 거리가 10일 때, 전자 장치(100) 및 경계 사이의 거리가 5m라고 저장된 경우를 가정한다.For example, the electronic device 100 stores a case where the distance between the electronic device 100 and the boundary is 5 m when the angle at which the electronic device 100 is rotated is 10 degrees and the distance the boundary area moves is 10. Assume.

이때, 전자 장치(100)가 회전된 각도가 10도이고 경계 영역이 이동한 거리가 10인 경우, 프로세서(140)는 회전된 각도 및 경계 영역이 이동한 거리에 따라, 전자 장치(100) 및 경계 사이의 거리가 5m 인 것으로 판단할 수 있다. At this time, if the angle at which the electronic device 100 is rotated is 10 degrees and the distance the boundary area moves is 10, the processor 140 controls the electronic device 100 and the electronic device 100 according to the rotated angle and the distance the border area moves. It can be determined that the distance between boundaries is 5m.

도 5를 참조하면, 프로세서(140)는 전자 장치(100) 및 경계 사이의 거리와 센서(110)에 의해 판단된 전자 장치(100)의 높이에 기초하여, 전자 장치(100) 및 벽면(10) 사이의 거리를 판단할 수 있다.Referring to FIG. 5, the processor 140 controls the electronic device 100 and the wall 10 based on the distance between the electronic device 100 and the boundary and the height of the electronic device 100 determined by the sensor 110. ) can determine the distance between them.

구체적으로, 프로세서(140)는 하기의 수학식 1을 이용하여 전자 장치(100) 및 벽면(10) 사이의 거리 d4를 판단할 수 있다.Specifically, the processor 140 may determine the distance d4 between the electronic device 100 and the wall 10 using Equation 1 below.

여기서, 전자 장치(100) 및 제2 경계(50) 사이의 거리는 d1가 되고, 전자 장치(100) 및 바닥면 사이의 거리는 d3가 된다.Here, the distance between the electronic device 100 and the second boundary 50 is d1, and the distance between the electronic device 100 and the floor is d3.

이때, 전자 장치(100) 및 천장 사이의 거리 d5는 하기의 수학식 2와 같다.At this time, the distance d5 between the electronic device 100 and the ceiling is equal to Equation 2 below.

여기서, 전자 장치(100) 및 제1 경계(40) 사이의 거리는 d2가 된다.Here, the distance between the electronic device 100 and the first boundary 40 is d2.

이에 따라, 프로세서(140)는 단일 렌즈에 의해 촬영된 이미지 프레임에서 전자 장치(100) 및 벽면(10) 사이의 거리와 벽면(10)의 높이(즉, 바닥과 천장 사이의 거리) 등을 실시간으로 판단할 수 있다.Accordingly, the processor 140 calculates the distance between the electronic device 100 and the wall 10 and the height of the wall 10 (i.e., the distance between the floor and the ceiling) in real time in an image frame captured by a single lens. It can be judged as follows.

도 6을 참조하여, 프로세서(140)는 벽면 및 전자 장치(100) 사이의 거리에 대응되는 크기로 증강 현실을 위한 오브젝트(610)가 벽면 영역(320)에 표시되도록 디스플레이(120)를 제어할 수 있다. Referring to FIG. 6, the processor 140 controls the display 120 to display the object 610 for augmented reality in the wall area 320 with a size corresponding to the distance between the wall and the electronic device 100. You can.

구체적으로, 프로세서(140)는 오브젝트(610)의 기설정된 크기 및 기설정된 거리에 기초하여 벽면 및 전자 장치(100) 사이의 거리에 대응되는 크기를 판단할 수 있다. 그리고, 프로세서(140)는 오브젝트(610)가 판단된 크기로 벽면 영역(320)에 표시되도록 디스플레이(120)를 제어할 수 있다.Specifically, the processor 140 may determine a size corresponding to the distance between the wall and the electronic device 100 based on the preset size and preset distance of the object 610. Additionally, the processor 140 may control the display 120 so that the object 610 is displayed on the wall area 320 at the determined size.

이를 위해, 전자 장치(100) 및 벽면 영역(320) 사이의 거리와 오브젝트(610)의 기설정된 크기에 매칭되는 오브젝트(610)가 벽면 영역(320) 상에서 표시될 크기에 대한 정보가 전자 장치(100)에 기저장되어 있을 수 있다. To this end, information about the distance between the electronic device 100 and the wall area 320 and the size at which the object 610 matching the preset size of the object 610 will be displayed on the wall area 320 is stored in the electronic device ( 100).

프로세서(140)는 벽면 영역(320)과 전자 장치(100) 사이의 거리와 오브젝트(610)의 기설정된 크기에 매칭되는 크기에 대한 정보를 획득하여, 오브젝트(610)가 벽면 영역(320) 상에서 표시될 크기를 판단할 수 있다. The processor 140 obtains information about the distance between the wall area 320 and the electronic device 100 and the size matching the preset size of the object 610, so that the object 610 can be moved on the wall area 320. You can determine the size to be displayed.

예를 들어, 전자 장치(100) 및 벽면 영역(320) 사이의 거리가 10m 일 때 100인치 TV(가로 220cm X 세로 125cm)를 렌더링 한 오브젝트(610)가 이미지 프레임(300) 상에 220 X 125 의 기설정된 크기로 표시되는 경우를 가정한다. For example, when the distance between the electronic device 100 and the wall area 320 is 10 m, the object 610 rendering a 100-inch TV (width 220 cm Assume that it is displayed in a preset size.

도 6의 (a)와 같이, 전자 장치(100) 및 벽면 영역(320) 사이의 거리가 5m 인 경우, 프로세서(140)는 전자 장치(100) 및 벽면 영역(320) 사이의 거리와 오브젝트(610)의 기설정된 크기에 매칭되는 440 X 250 의 크기를 획득하여, 오브젝트(610)가 이미지 프레임(300)의 벽면 영역(320) 상에 440 X 250 의 크기로 표시할 수 있다. As shown in (a) of FIG. 6, when the distance between the electronic device 100 and the wall area 320 is 5 m, the processor 140 calculates the distance between the electronic device 100 and the wall area 320 and the object ( By obtaining a size of 440

도 6의 (b)와 같이, 전자 장치(100) 및 벽면 영역(320) 사이의 거리가 15m 인 경우, 프로세서(140)는 전자 장치(100) 및 벽면 영역(320) 사이의 거리와 오브젝트(610)의 기설정된 크기에 매칭되는 88 X 50 의 크기를 획득하여, 오브젝트(610)가 이미지 프레임(300)의 벽면 영역(320) 상에 88 X 50 의 크기로 표시할 수 있다. As shown in (b) of FIG. 6, when the distance between the electronic device 100 and the wall area 320 is 15 m, the processor 140 calculates the distance between the electronic device 100 and the wall area 320 and the object ( By obtaining a size of 88

한편, 프로세서(140)는 벽면(10)의 높이 및 벽면 영역(320)의 높이(또는 제1 경계 및 제2 경계 사이의 거리)에 따라 오브젝트(610)의 크기를 판단 할 수 있다. Meanwhile, the processor 140 may determine the size of the object 610 according to the height of the wall surface 10 and the height of the wall area 320 (or the distance between the first boundary and the second boundary).

이상의 본 개시의 일 실시 예에 따르면, 전자 장치(100)는 단일 렌즈에 의해 촬영된 이미지 프레임에서 전자 장치(100) 및 벽면(10) 사이의 거리, 전자 장치(100)의 높이 및 벽면(10)의 높이 등을 실시간으로 판단할 수 있으며, 이에 따라 전자 장치(100)는 단색의 벽면 상에 증강 현실을 위한 오브젝트를 합성한 이미지를 실시간으로 제공할 수 있다.According to an embodiment of the present disclosure, the electronic device 100 is configured to determine the distance between the electronic device 100 and the wall 10, the height of the electronic device 100, and the wall surface 10 in an image frame captured by a single lens. ) can be determined in real time, and accordingly, the electronic device 100 can provide an image combining objects for augmented reality on a monochromatic wall in real time.

도 7은, 본 개시의 다른 실시 예에 따른 전자 장치(100)를 설명하기 위한 도면이다.FIG. 7 is a diagram for explaining an electronic device 100 according to another embodiment of the present disclosure.

전술한 바와 같이 전자 장치(100)는 다양한 타입의 장치로 구현될 수 있다.As described above, the electronic device 100 may be implemented as various types of devices.

예를 들어, 도 7의 (a)와 같이, 전자 장치(100)는 사용자가 착용할 수 있는 웨어러블 장치로 구현될 수 있다. 여기서, 웨어러블 장치는 액세서리형(예: 시계, 반지, 팔찌, 발찌, 목걸이, 안경, 콘택트 렌즈, 또는 머리 착용형 장치(head-mounted-device(HMD)), 직물 또는 의류 일체형(예: 전자 의복), 신체 부착형, 또는 생체 이식형 회로 등과 같이 다양한 타입의 장치로 구현될 수 있다.For example, as shown in (a) of FIG. 7, the electronic device 100 may be implemented as a wearable device that a user can wear. Here, wearable devices may be accessory-type (e.g., watches, rings, bracelets, anklets, necklaces, glasses, contact lenses, or head-mounted-device (HMD)), fabric- or clothing-integrated (e.g., electronic clothing), etc. ), body-attached, or bioimplantable circuits, etc. can be implemented as various types of devices.

한편, 전술한 예에서는, 전자 장치(100)가 전자 장치(100)와 벽면 사이의 거리를 판단하고, 그에 따라 증강 현실을 위한 오브젝트가 벽면 영역에 합성된 이미지를 디스플레이(120)에 표시하는 것으로 설명하였으나 이는 일 예에 불과하며, 도 7의 (b)와 같이, 전자 장치(100)에서 수행되는 기능의 적어도 일부는 외부 전자 장치(700)에 의해 수행될 수 있다. 즉, 전자 장치(100) 및 적어도 하나의 외부 전자 장치를 포함하는 시스템을 통해 구현될 수 있다. 이때, 외부 전자 장치(700)는 도 7의 (b)에서는 TV로 도시하였으나, 이에 한하지 아니하고 서버 등과 같이 다양한 전자 장치로 구현될 수 있다.Meanwhile, in the above-mentioned example, the electronic device 100 determines the distance between the electronic device 100 and the wall, and accordingly displays the image of the object for augmented reality synthesized in the wall area on the display 120. Although described, this is only an example, and as shown in (b) of FIG. 7, at least part of the functions performed by the electronic device 100 may be performed by the external electronic device 700. That is, it can be implemented through a system including the electronic device 100 and at least one external electronic device. At this time, the external electronic device 700 is shown as a TV in (b) of FIG. 7, but is not limited to this and may be implemented as various electronic devices such as a server.

먼저, 전자 장치(100)는 벽면을 촬영한 영상 및 센서(110)에 의해 판단된 전자 장치(100)의 위치(또는 높이)에 대한 정보를 외부 전자 장치(700)로 전송할 수 있다. First, the electronic device 100 may transmit an image captured of the wall surface and information about the location (or height) of the electronic device 100 determined by the sensor 110 to the external electronic device 700.

그리고, 외부 전자 장치(700)는 전자 장치(100)로부터 수신된 정보(벽면을 촬영한 영상 및 전자 장치(100)의 위치(또는 높이)에 대한 정보)를 이용하여 벽면 및 전자 장치(100) 사이의 거리를 판단할 수 있다. And, the external electronic device 700 uses the information received from the electronic device 100 (an image of the wall surface and information about the location (or height) of the electronic device 100) to connect the wall surface and the electronic device 100. You can judge the distance between them.

그리고, 일 실시 예로서, 외부 전자 장치(700)는 판단된 거리에 대응되는 오브젝트의 크기를 결정하고, 오브젝트가 벽면 영역에 합성된 이미지를 외부 전자 장치(700)의 디스플레이를 통해 표시할 수 있다.And, as an example, the external electronic device 700 may determine the size of the object corresponding to the determined distance and display an image composed of the object on the wall area through the display of the external electronic device 700. .

다른 실시 예로서, 외부 전자 장치(700)는 판단된 벽면 및 전자 장치(100) 사이의 거리에 대한 정보를 전자 장치(100)로 전송할 수 있다. 이 경우, 전자 장치(100)는 외부 전자 장치(700)로부터 수신된 벽면 및 전자 장치(100) 사이의 거리에 대한 정보에 대응되는 크기로 오브젝트를 이미지의 벽면 영역에 전자 장치(100)의 디스플레이를 통해 표시할 수 있다. As another example, the external electronic device 700 may transmit information about the determined distance between the wall surface and the electronic device 100 to the electronic device 100. In this case, the electronic device 100 displays an object in the wall area of the image with a size corresponding to the information about the distance between the wall and the electronic device 100 received from the external electronic device 700. It can be displayed through .

또 다른 실시 예로서, 외부 전자 장치(700)는 전자 장치(100)로부터 수신된 정보를 이용하여 벽면과 전자 장치(100) 사이의 거리를 판단하고, 거리에 따라 오브젝트의 크기를 결정하고, 증강 현실을 위한 오브젝트가 합성된 이미지를 생성하여, 생성된 이미지를 전자 장치(100)로 전송할 수 있다. 이와 같이 외부 전자 장치(700)는 전자 장치(100)로부터 수신된 정보를 이용하여 거리를 판단하는 등의 연산 동작을 수행하고, 연산 동작을 수행한 결과로서 획득된 데이터를 전자 장치(100)로 전송할 수 있다. 이 경우, 전자 장치(100)는 외부 전자 장치(700)로부터 수신된 이미지를 전자 장치(100)의 디스플레이를 통해 표시할 수 있다.As another example, the external electronic device 700 determines the distance between the wall and the electronic device 100 using information received from the electronic device 100, determines the size of the object according to the distance, and augments An image composed of real-world objects may be created, and the generated image may be transmitted to the electronic device 100. In this way, the external electronic device 700 performs a calculation operation such as determining the distance using the information received from the electronic device 100, and sends the data obtained as a result of the calculation operation to the electronic device 100. Can be transmitted. In this case, the electronic device 100 may display the image received from the external electronic device 700 through the display of the electronic device 100.

이들 경우에서, 전자 장치(100) 및 외부 전자 장치(700)는 다양한 유형의 데이터 통신 방식(가령, 와이파이, 블루투스, LAN 등) 및/또는 다양한 유형의 음성 및/또는 영상 신호 통신 방식(가령, DVI, HDMI, 썬더볼트 등)을 이용하여 통신을 수행할 수 있다.In these cases, the electronic device 100 and the external electronic device 700 use various types of data communication methods (e.g., Wi-Fi, Bluetooth, LAN, etc.) and/or various types of voice and/or video signal communication methods (e.g., Communication can be performed using DVI, HDMI, Thunderbolt, etc.).

한편, 본 개시의 다양한 실시 예에 따라, 전자 장치(100)는 음성 인식을 수행한 결과로서 전자 장치(100)및 벽면 사이의 거리를 판단하고, 오브젝트가 벽면 영역에 합성된 이미지를 디스플레이(120)를 통해 표시할 수 있다. 이하에서는 중복되는 내용을 제외하고 음성 인식을 수행하는 동작에 대해 설명하기로 한다.Meanwhile, according to various embodiments of the present disclosure, the electronic device 100 determines the distance between the electronic device 100 and the wall as a result of performing voice recognition, and displays an image in which the object is synthesized in the wall area (120). ) can be displayed through. Hereinafter, the operation of performing voice recognition will be described excluding redundant content.

먼저, 전자 장치(100)의 프로세서(140)는 전자 장치(100)의 내부에 구비된 마이크(미도시) 또는 전자 장치(100)의 입출력 포트(미도시)를 통해 유선으로 연결된 외부의 마이크(미도시)에 의해 아날로그 신호인 사용자의 음성을 디지털 신호로 변환하여 음성 신호를 획득할 수 있다.First, the processor 140 of the electronic device 100 is a microphone (not shown) provided inside the electronic device 100 or an external microphone (not shown) connected by wire through an input/output port (not shown) of the electronic device 100. A voice signal can be obtained by converting the user's voice, which is an analog signal, into a digital signal (not shown).

다만, 이는 일 실시 예일 뿐, 전자 장치(100)의 프로세서(140)는 외부 전자 장치(미도시)로부터 음성 신호를 획득할 수 있다. However, this is only an example, and the processor 140 of the electronic device 100 may obtain a voice signal from an external electronic device (not shown).

이때, 전자 장치(100) 및 외부 전자 장치는 각각 통신부(미도시)를 포함할 수 있고, 통신부를 통해 데이터를 송수신할 수 있다. 여기서, 통신부는 와이파이(Wi-Fi 또는 Wi-Fi DIRECT) 통신 모듈, 블루투스(bluetooth)모듈, 적외선 통신(IrDA, infrared data association)모듈, NFC(Near Field Communication)모듈, 통신 모듈 중 적어도 하나를 포함할 수 있고, 각각의 모듈이 별개로 구현되거나 각각의 모듈이 통합되어 구현될 수 있다.At this time, the electronic device 100 and the external electronic device may each include a communication unit (not shown) and may transmit and receive data through the communication unit. Here, the communication unit includes at least one of a Wi-Fi (Wi-Fi or Wi-Fi DIRECT) communication module, a Bluetooth module, an infrared communication (IrDA, infrared data association) module, an NFC (Near Field Communication) module, and a communication module. It can be done, and each module can be implemented separately or each module can be integrated.

구체적으로, 외부 전자 장치는 외부 전자 장치 내부에 구비된 마이크 또는 외부의 마이크에 의해 아날로그 신호인 사용자의 음성을 디지털 신호로 변환하여 음성 신호를 획득하고, 상술한 통신부를 통해 획득된 음성 신호를 전자 장치(100)로 전송할 수 있다. 이때, 외부 전자 장치는 스마트폰, 리모컨 등의 장치로 구현될 수 있다.Specifically, the external electronic device acquires a voice signal by converting the user's voice, which is an analog signal, into a digital signal using a microphone provided inside the external electronic device or an external microphone, and converts the voice signal obtained through the above-described communication unit into an electronic signal. It can be transmitted to device 100. At this time, the external electronic device may be implemented as a device such as a smartphone or remote control.

일 예로, 외부 전자 장치가 스마트폰으로 구현되는 경우, 외부 전자 장치는 전자 장치(100)를 제어할 수 있는 어플리케이션이 설치 또는 저장될 수 있고, 어플리케이션을 통해 TV 또는 셋톱박스 등과 같은 전자 장치(100)를 제어하도록 구현될 수 있다. 나아가, 외부 전자 장치는 획득된 음성 신호에 대해 직접 음성 인식을 수행하거나, 서버를 통해 음성 인식을 수행한 결과를 전자 장치(100)로 전송할 수도 있다.For example, when the external electronic device is implemented as a smartphone, an application capable of controlling the electronic device 100 may be installed or stored in the external electronic device, and the electronic device 100 such as a TV or set-top box can be controlled through the application. ) can be implemented to control. Furthermore, the external electronic device may directly perform voice recognition on the acquired voice signal, or may transmit the results of voice recognition to the electronic device 100 through a server.

다른 예로, 외부 전자 장치가 리모컨으로 구현되는 경우, 외부 전자 장치는 전자 장치(100)를 제어할 수 있는 입력부(예를 들어 버튼, 조이스틱 등)가 내재될 수 있고, 입력부의 조작을 통해 TV 또는 셋톱박스 등과 같은 전자 장치(100)를 제어하도록 구현될 수 있다.As another example, when the external electronic device is implemented as a remote control, the external electronic device may have an input unit (e.g., button, joystick, etc.) capable of controlling the electronic device 100, and may operate the TV or It may be implemented to control an electronic device 100 such as a set-top box.

다음으로, 전자 장치(100)의 프로세서(140)는 획득된 음성 신호에서 음성 인식을 수행하고, 음성 인식을 수행한 결과에 대응되는 동작을 수행하도록 전자 장치(100)를 제어할 수 있다.Next, the processor 140 of the electronic device 100 may perform voice recognition on the acquired voice signal and control the electronic device 100 to perform an operation corresponding to the result of voice recognition.

이를 위해, 전자 장치(100)의 프로세서(140)는 획득된 음성 신호를 음성 인식 서버(미도시)로 전송할 수 있다.To this end, the processor 140 of the electronic device 100 may transmit the acquired voice signal to a voice recognition server (not shown).

그리고, 음성 인식 서버는 사용자 음성이 수신되면, STT 알고리즘을 이용하여 수신된 사용자 음성을 텍스트로 변환할 수 있다. 음성 인식 서버는 변환된 텍스트에 기초하여 사용자가 요청한 동작을 수행하도록 하는 응답 정보를 획득할 수 있다. 이때, 음성 인식 서버는 STT(Speech to Text) 기능 및 응답 정보를 획득하는 기능을 함께 수행하는 메인 서버로 구현될 수 있다. Additionally, when a user's voice is received, the voice recognition server can convert the received user's voice into text using the STT algorithm. The voice recognition server can obtain response information that allows the user to perform the requested action based on the converted text. At this time, the voice recognition server can be implemented as a main server that performs both the STT (Speech to Text) function and the function of obtaining response information.

그리고, 음성 인식 서버는 사용자가 요청한 동작을 전자 장치(100)가 수행하도록 하는 응답 정보를 전자 장치(100)로 전송할 수 있다. Additionally, the voice recognition server may transmit response information to the electronic device 100 that causes the electronic device 100 to perform the operation requested by the user.

다만, 이는 일 실시 예 일뿐, 음성 인식 서버는 STT 기능을 수행하는 제1 서버 및 응답 정보를 획득하는 기능을 수행하는 제2 서버를 포함하는 시스템으로 구현될 수 있다. 이 경우, 제1 서버는 수신된 사용자 음성을 텍스트로 변환하여 제2 서버로 전송하고, 제2 서버는 수신된 텍스트에 기초해 응답 정보를 획득하여 전자 장치(100)로 전송할 수 있다. 한편, 제1 서버는 변환된 텍스트를 전자 장치(100)로 전송하여, 전자 장치(100)가 수신된 텍스트에 기초해 응답 정보를 획득할 수도 있다.However, this is only an example, and the voice recognition server may be implemented as a system including a first server performing the STT function and a second server performing the function of obtaining response information. In this case, the first server converts the received user voice into text and transmits it to the second server, and the second server obtains response information based on the received text and transmits it to the electronic device 100. Meanwhile, the first server may transmit the converted text to the electronic device 100, and the electronic device 100 may obtain response information based on the received text.

그리고, 전자 장치(100)의 프로세서(140)는 응답 정보에 따라, 사용자가 요청한 동작을 수행하도록 전자 장치(100)를 제어할 수 있다. Additionally, the processor 140 of the electronic device 100 may control the electronic device 100 to perform an operation requested by the user according to the response information.

한편 이와 다른 실시 예로서, 전자 장치(100)의 프로세서(140)가 STT(Speech to Text) 기능을 수행하여 텍스트를 변환하고, 이에 따른 응답 정보를 획득하는 등의 방식으로, 전자 장치(100)가 직접 음성 인식을 수행할 수도 있다.Meanwhile, in another embodiment, the processor 140 of the electronic device 100 performs a Speech to Text (STT) function to convert text and obtain response information accordingly. You can also perform voice recognition directly.

도 8은, 본 개시의 일 실시 예에 따른 전자 장치(100)의 구성을 상세히 도시한 블록이다.FIG. 8 is a block diagram illustrating in detail the configuration of the electronic device 100 according to an embodiment of the present disclosure.

도 8을 참조하면, 전자 장치(100)는 센서(110), 디스플레이(120), 카메라(130), 프로세서(140) 외에도 입력부(150), 스피커(160) 및 통신부(170)를 중 하나를 포함할 수 있다.Referring to FIG. 8, the electronic device 100 includes one of an input unit 150, a speaker 160, and a communication unit 170 in addition to a sensor 110, a display 120, a camera 130, and a processor 140. It can be included.

프로세서(140)는 RAM(141), ROM(142), 그래픽 처리부(143), 메인 CPU(144), 제1 내지 n 인터페이스(145-1~145-n), 버스(146)를 포함할 수 있다. 이때, RAM(141), ROM(142), 그래픽 처리부(143), 메인 CPU(144), 제1 내지 n 인터페이스(145-1~145-n) 등은 버스(146)를 통해 서로 연결될 수 있다.The processor 140 may include RAM 141, ROM 142, graphics processing unit 143, main CPU 144, first to n interfaces (145-1 to 145-n), and bus 146. there is. At this time, RAM 141, ROM 142, graphics processing unit 143, main CPU 144, first to n interfaces (145-1 to 145-n), etc. may be connected to each other through bus 146. .

메모리(150)는 전자 장치(100)의 동작에 필요한 각종 프로그램 및 데이터를 저장할 수 있다. The memory 150 can store various programs and data necessary for the operation of the electronic device 100.

메모리(150)는 비휘발성 메모리, 휘발성 메모리, 플래시메모리(flash-memory), 하드디스크 드라이브(HDD) 또는 솔리드 스테이트 드라이브(SSD) 등으로 구현될 수 있다. 메모리(150)는 프로세서(140)에 의해 액세스되며, 프로세서(140)에 의한 데이터의 독취/기록/수정/삭제/갱신 등이 수행될 수 있다. 본 개시의 메모리라는 용어는 메모리(150), 프로세서(140) 내의 RAM(141), ROM(142) 또는 전자 장치(100)에 장착되는 메모리 카드(미도시)(예를 들어, micro SD 카드, 메모리 스틱 등)를 포함할 수 있다. The memory 150 may be implemented as non-volatile memory, volatile memory, flash-memory, hard disk drive (HDD), or solid state drive (SSD). The memory 150 is accessed by the processor 140, and data read/write/modify/delete/update, etc. can be performed by the processor 140. The term memory in the present disclosure refers to memory 150, RAM 141 in processor 140, ROM 142, or memory card (not shown) mounted on electronic device 100 (e.g., micro SD card, memory stick, etc.).

입력부(160)는 다양한 사용자 입력을 수신하여 프로세서(140)로 전달할 수 있다. 입력부(160)는 예를 들면, 터치 패널, (디지털) 펜 센서 또는 키를 포함할 수 있다. 터치 패널은, 예를 들면, 정전식, 감압식, 적외선 방식, 또는 초음파 방식 중 적어도 하나의 방식을 사용할 수 있다. 또한, 터치 패널은 제어 회로를 더 포함할 수도 있다. 터치 패널은 택타일 레이어(tactile layer)를 더 포함하여, 사용자에게 촉각 반응을 제공할 수 있다. (디지털) 펜 센서는 예를 들면, 터치 패널의 일부이거나, 별도의 인식용 쉬트를 포함할 수 있다. 키는 예를 들면, 물리적인 버튼, 광학식 키 또는 키패드를 포함할 수 있다. 또는, 입력부(160)는 키보드, 마우스 등과 같은 외부 장치(미도시)로부터 유선으로 연결되거나 또는 무선으로 연결되어 사용자 입력을 수신할 수 있다.The input unit 160 may receive various user inputs and transmit them to the processor 140. The input unit 160 may include, for example, a touch panel, a (digital) pen sensor, or a key. The touch panel may use at least one of, for example, a capacitive type, a resistive type, an infrared type, or an ultrasonic type. Additionally, the touch panel may further include a control circuit. The touch panel may further include a tactile layer to provide a tactile response to the user. The (digital) pen sensor may be, for example, part of a touch panel or may include a separate recognition sheet. Keys may include, for example, physical buttons, optical keys, or keypads. Alternatively, the input unit 160 may be connected wired or wirelessly from an external device (not shown) such as a keyboard, mouse, etc. to receive user input.

입출력 포트(170)는 전자 장치(100)가 외부 장치(미도시)와 이미지 및/또는 음성에 대한 신호 및/또는 데이터를 송신 및/또는 수신할 수 있도록, 전자 장치(100) 및 외부 장치(미도시)를 유선으로 연결해주는 구성이다. 이때 입출력 포트(170)는 송신 또는 수신 되는 신호를 처리하는 모듈을 포함할 수 있다.The input/output port 170 allows the electronic device 100 to transmit and/or receive signals and/or data for images and/or voices with an external device (not shown). (not shown) is connected by wire. At this time, the input/output port 170 may include a module that processes transmitted or received signals.

이를 위해, 입출력 포트(170)는 HDMI 포트, 디스플레이 포트, RGB 포트, DVI(Digital Visual Interface) 포트, 썬더볼트 및 컴포넌트 포트 등 유선 포트로 구현될 수 있다. To this end, the input/output port 170 may be implemented as a wired port such as an HDMI port, display port, RGB port, DVI (Digital Visual Interface) port, Thunderbolt, and component port.

일 예로, 전자 장치(100)가 해당 이미지 및/또는 음성을 출력할 수 있도록, 전자 장치(100)는 입출력 포트(170)를 통해 이미지 및/또는 음성에 대한 신호를 외부 장치(미도시)로부터 수신할 수 있다.다른 예로, 외부 장치(미도시)가 이미지 및/또는 음성을 출력할 수 있도록, 전자 장치(100)는 입출력 포트(170)를 통해 특정한 이미지 및/또는 음성에 대한 신호를 외부 장치로 송신할 수 있다.As an example, so that the electronic device 100 can output the image and/or voice, the electronic device 100 receives a signal for the image and/or voice from an external device (not shown) through the input/output port 170. In another example, the electronic device 100 sends a signal for a specific image and/or voice to an external device through the input/output port 170 so that an external device (not shown) can output the image and/or voice. It can be sent to the device.

이와 같이, 입출력 포트(170)를 통해 이미지 및/또는 음성에 대한 신호가 일방향으로 전송될 수 있다. 다만, 이는 일 실시 예일 뿐, 입출력 포트(170)를 통해 이미지 및/또는 음성에 대한 신호가 양방향으로 전송될 수 있음은 물론이다.In this way, signals for images and/or voices can be transmitted in one direction through the input/output port 170. However, this is only an example, and of course, signals for images and/or voices can be transmitted in both directions through the input/output port 170.

또한, 입출력 포트(170)는 USB 포트(2.0, USB 3.0, USB C 등), SD(Secure Digital) card 포트, Micro SD(Secure Digital) card 포트 등을 포함할 수 있다.Additionally, the input/output port 170 may include a USB port (2.0, USB 3.0, USB C, etc.), a Secure Digital (SD) card port, and a Secure Digital (Micro SD) card port.

한편, 전자 장치(100)는 마이크(미도시) 및 스피커(미도시)를 포함할 수 있다. 마이크(미도시)는 외부의 소리로부터 음성에 대한 신호를 직접 획득할 수 있다. 스피커(미도시)는 오디오 처리부(미도시)에 의해 디코딩이나 증폭, 노이즈 필터링과 같은 다양한 처리 작업이 수행된 각종 오디오 데이터뿐만 아니라 각종 알림 음이나 음성 메시지를 직접 출력할 수 있다.Meanwhile, the electronic device 100 may include a microphone (not shown) and a speaker (not shown). A microphone (not shown) can directly acquire a voice signal from external sounds. A speaker (not shown) can directly output various notification sounds or voice messages as well as various audio data on which various processing tasks such as decoding, amplification, and noise filtering have been performed by an audio processing unit (not shown).

통신부(180)는 다양한 유형의 통신방식에 따라 다양한 유형의 외부 기기와 통신을 수행할 수 있다. 통신부(180)는 블루투스 칩(미도시), 와이파이 칩(미도시), 무선 통신 칩(미도시) 및 NFC 칩(미도시) 중 적어도 하나를 포함할 수 있다. The communication unit 180 can communicate with various types of external devices according to various types of communication methods. The communication unit 180 may include at least one of a Bluetooth chip (not shown), a Wi-Fi chip (not shown), a wireless communication chip (not shown), and an NFC chip (not shown).

여기서, 통신부(180)는 프로세서(140)에 의해 제어되어, 다른 전자 장치, 서버 등과 같은 각종 외부 기기(미도시)와 통신을 수행할 수 있다. Here, the communication unit 180 is controlled by the processor 140 and can communicate with various external devices (not shown) such as other electronic devices and servers.

통신부(180)는 무선 통신 방식으로 외부 장치(미도시)와 데이터를 송수신할 수 있고, 이 경우 통신부(180)는 와이파이(Wi-Fi 또는 Wi-FiDIRECT) 통신 모듈, 블루투스(bluetooth)모듈, 적외선 통신(IrDA, infrared data association)모듈, NFC(Near Field Communication)모듈, 지그비(Zigbee) 모듈, 셀룰러 통신모듈, 3G(3세대) 이동통신 모듈, 4G(4세대) 통신 모듈, 4세대 LTE(Long Term Evolution) 통신 모듈, 5G(5세대) 통신 모듈 중 적어도 하나를 포함할 수 있다. The communication unit 180 can transmit and receive data with an external device (not shown) through wireless communication. In this case, the communication unit 180 includes a Wi-Fi (Wi-Fi or Wi-FiDIRECT) communication module, a Bluetooth module, and an infrared ray. Communication (IrDA, infrared data association) module, NFC (Near Field Communication) module, Zigbee module, cellular communication module, 3G (3rd generation) mobile communication module, 4G (4th generation) communication module, 4th generation LTE (Long It may include at least one of a Term Evolution) communication module and a 5G (5th generation) communication module.

한편, 통신부(180)는 입출력 포트를 통하여 유선 통신 방식으로 외부 장치(미도시)와 데이터를 송수신할 수 있고, 이 경우 통신부(180)는 유선 LAN 모듈, 이더넷 모듈 등을 포함할 수 있다.Meanwhile, the communication unit 180 can transmit and receive data with an external device (not shown) through a wired communication method through an input/output port. In this case, the communication unit 180 may include a wired LAN module, an Ethernet module, etc.

도 9는, 본 개시의 일 실시 예에 따른 전자 장치(100)의 제어 방법을 설명하기 위한 흐름도이다.FIG. 9 is a flowchart for explaining a control method of the electronic device 100 according to an embodiment of the present disclosure.

도 9를 참조하여, 우선 카메라(130)에 의해 획득된 이미지 프레임에서 벽면 영역 및 벽면 영역 이외의 영역 사이의 경계 영역을 판단할 수 있다(S910). 이때, 카메라는 단일 렌즈를 이용하여 단색의 벽면에 대해 촬영을 수행하고, 촬영된 결과로서 단색의 벽면에 대응되는 벽면 영역이 포함되는 이미지 프레임을 획득할 수 있다.Referring to FIG. 9, first, the boundary area between the wall area and areas other than the wall area can be determined in the image frame acquired by the camera 130 (S910). At this time, the camera can capture images of a monochromatic wall using a single lens, and obtain an image frame that includes a wall area corresponding to the monochromatic wall as a result of the imaging.

여기에서, 카메라(130)에 의해 획득된 복수의 이미지 프레임 각각에서, 기설정된 위치에 존재하는 기준 픽셀과 기설정된 임계 값 이상의 색상 유사도를 갖는 유사 픽셀을 판단하고, 복수의 이미지 프레임 간에 기준 픽셀 및 유사 픽셀을 포함하는 영역의 크기의 차이가 기설정된 임계 범위인 경우, 기준 픽셀 및 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단할 수 있다.Here, in each of the plurality of image frames acquired by the camera 130, a reference pixel existing at a preset position and a similar pixel having a color similarity greater than a preset threshold are determined, and the reference pixel and If the difference in size of the area including the similar pixel is within a preset threshold range, the area including the reference pixel and the similar pixel may be determined to be a wall area.

그리고, 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고, 패턴 영역에 기초하여 3차원 점들의 집합을 획득하고, 3차원 점들의 집합에 대응되는 직선에 따라 경계 영역을 판단할 수 있다.In addition, it is possible to determine a pattern area containing a specific pattern in an area other than the wall area, obtain a set of 3D points based on the pattern area, and determine the boundary area according to a straight line corresponding to the set of 3D points. there is.

여기에서, 벽면 영역 이외의 영역은 이미지 프레임에서 벽면 영역의 상측에 존재하는 천장 영역 및 벽면 영역의 하측에 존재하는 바닥 영역을 포함하고, 이 경우 이미지 프레임에서 천장 영역과 벽면 영역 사이의 제1 경계 영역 및 바닥 영역과 벽면 영역 사이의 제2 경계 영역을 판단할 수 있다.Here, the area other than the wall area includes a ceiling area that exists above the wall area in the image frame and a floor area that exists below the wall area, and in this case, the first boundary between the ceiling area and the wall area in the image frame. A second boundary area between the area and the floor area and the wall area may be determined.

다음으로, 센서(110)에 의해 판단된 전자 장치의 위치 및 판단된 경계 영역에 기초하여, 벽면 및 전자 장치(100) 사이의 거리를 판단할 수 있다(S920).Next, based on the location of the electronic device determined by the sensor 110 and the determined boundary area, the distance between the wall surface and the electronic device 100 may be determined (S920).

이를 위해, 전자 장치(100)가 움직이는 동안 센서(110)에 의해 전자 장치의 위치의 변화 및 카메라(130)에 의해 획득된 복수의 이미지 프레임에서 벽면 영역의 위치의 변화를 판단하고, 벽면 영역의 위치의 변화 정도 및 센서(110)에 의해 판단된 전자 장치(100)의 위치의 변화 정도에 따라 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리를 판단할 수 있다.To this end, while the electronic device 100 is moving, the change in the position of the electronic device 110 and the change in the position of the wall area are determined in the plurality of image frames acquired by the camera 130, and the change in the position of the wall area is determined. Depending on the degree of change in position and the degree of change in the position of the electronic device 100 determined by the sensor 110, the distance between the boundary corresponding to the boundary area and the electronic device 100 may be determined.

그리고, 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리 및 센서(110)에 의해 판단된 전자 장치(100)의 위치에 기초하여, 벽면 영역에 대응되는 벽면 및 전자 장치(100) 및 사이의 거리를 판단할 수 있다.And, based on the distance between the boundary and the electronic device 100 corresponding to the boundary area and the position of the electronic device 100 determined by the sensor 110, the wall surface and the electronic device 100 corresponding to the wall area and You can judge the distance between them.

여기에서, 센서(110)에 의해 판단된 상기 전자 장치(100)의 위치에 기초하여 바닥면을 기준으로 하는 전자 장치(100)의 높이를 판단하고, 제2 경계 영역에 대응되는 경계 및 전자 장치(100) 사이의 거리 및 전자 장치(100)의 높이에 기초하여 전자 장치(100) 및 벽면 영역 사이의 거리를 판단할 수 있다.Here, the height of the electronic device 100 relative to the floor is determined based on the position of the electronic device 100 determined by the sensor 110, and the boundary and electronic device corresponding to the second boundary area are determined. The distance between the electronic device 100 and the wall area may be determined based on the distance between them 100 and the height of the electronic device 100.

다음으로, 판단된 거리에 대응되는 크기로 오브젝트를 벽면 영역에 표시할 수 있다(S930).Next, the object can be displayed on the wall area with a size corresponding to the determined distance (S930).

여기에서, 벽면 영역과 전자 장치(100) 사이의 거리에 기초하여 기설정된 크기를 갖는 오브젝트가 벽면 영역 상에서 표시될 크기를 판단하고, 오브젝트를 판단된 크기로 벽면 영역 상에 표시할 수 있다.Here, the size at which an object with a preset size will be displayed on the wall area may be determined based on the distance between the wall area and the electronic device 100, and the object may be displayed on the wall area at the determined size.

한편, 벽면 영역을 선택하는 입력이 수신되면, 수신된 입력에 기초하여 벽면 영역 중에서 선택된 위치에 오브젝트를 표시할 수 있다.Meanwhile, when an input for selecting a wall area is received, an object may be displayed at the selected location in the wall area based on the received input.

이상과 같은 본 개시의 다양한 실시 예에 따르면, 단일 렌즈에 의해 촬영된 영상의 단색 벽면 상에 가상적인 오브젝트를 생성한 영상을 제공할 수 있는 전자 장치 및 그 제어 방법을 제공할 수 있다.According to various embodiments of the present disclosure as described above, an electronic device capable of providing an image generating a virtual object on a monochromatic wall of an image captured by a single lens and a control method thereof can be provided.

또한, 단일 렌즈에 의한 거리 측정 정확도를 향상시킬 수 있으며, 듀얼 렌즈의 경우에 비해, 제품을 소형화, 단순화시킬 수 있고 비용을 절감할 수 있다.In addition, the accuracy of distance measurement using a single lens can be improved, and compared to the case of a dual lens, the product can be miniaturized and simplified, and costs can be reduced.

본 개시에서 사용된 용어 "부" 또는 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. "부" 또는 "모듈"은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 모듈은 ASIC(application-specific integrated circuit)으로 구성될 수 있다.The term “unit” or “module” used in this disclosure includes a unit comprised of hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit, for example. . A “part” or “module” may be an integrated part, a minimum unit that performs one or more functions, or a part thereof. For example, a module may be comprised of an application-specific integrated circuit (ASIC).

본 개시의 다양한 실시 예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media에 저장된 명령어를 포함하는 소프트웨어로 구현될 수 있다. 기기는 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시 예들에 따른 전자 장치(예: 전자 장치(100))를 포함할 수 있다. 상기 명령이 프로세서에 의해 실행될 경우, 프로세서가 직접, 또는 상기 프로세서의 제어 하에 다른 구성요소들을 이용하여 상기 명령에 해당하는 기능을 수행할 수 있다. 명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다.Various embodiments of the present disclosure may be implemented as software including instructions stored in a machine-readable storage media that can be read by a machine (e.g., a computer). The device calls the stored instructions from the storage medium. and, as a device capable of operating according to the called instruction, it may include an electronic device (e.g., electronic device 100) according to the disclosed embodiments. When the instruction is executed by a processor, the processor may directly, or Functions corresponding to the instructions can be performed using other components under the control of the processor. Instructions may include code generated or executed by a compiler or interpreter. Device-readable storage media are non-transitory. It can be provided in the form of a (non-transitory) storage medium. Here, 'non-transitory' only means that the storage medium does not contain signals and is tangible, and that the data is not semi-permanent or temporary in the storage medium. There is no distinction between being stored as .

다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.Methods according to various embodiments may be included and provided in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed on a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or online through an application store (e.g. Play Store™). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or created temporarily in a storage medium such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시 예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시 예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Each component (e.g., module or program) according to various embodiments may be composed of a single or plural entity, and some of the above-described sub-components may be omitted, or other sub-components may be variously used. Further examples may be included. Alternatively or additionally, some components (e.g., modules or programs) may be integrated into a single entity and 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 may be executed sequentially, in parallel, iteratively, or heuristically, or at least some operations may be executed in a different order, omitted, or other operations may be added. You can.

100 : 전자 장치100: electronic device

Claims (18)

전자 장치에 있어서,
센서;
디스플레이;
카메라; 및
상기 센서를 통해 조도 값을 획득하고,
상기 조도 값이 기 설정된 값 이상이면, 상기 카메라에 의해 획득된 복수의 이미지 프레임 각각에서, 센터에 위치하는 기준 픽셀과 기 설정된 임계 값 이상의 색상 유사도를 가지는 유사 픽셀을 판단하고,
상기 복수의 이미지 프레임 간에 상기 기준 픽셀 및 상기 유사 픽셀을 포함하는 영역의 크기 차이가 기 설정된 임계 범위 이내이면, 상기 기준 픽셀 및 상기 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단하고,
상기 벽면 영역 및 상기 벽면 영역 이외의 영역 사이의 경계 영역을 판단하고,
상기 센서에 의해 판단된 상기 전자 장치의 위치 및 상기 판단된 경계 영역에 기초하여 상기 벽면 영역에 대응되는 벽면 및 상기 전자 장치 사이의 거리를 판단하고,
상기 판단된 거리에 대응되는 크기로 오브젝트가 상기 벽면 영역에 표시되도록 상기 디스플레이를 제어하는 프로세서;를 포함하며,
상기 벽면 영역 이외의 영역은,
상기 복수의 이미지 프레임 각각에서 상기 벽면 영역의 상측에 존재하는 천장 영역 및 상기 벽면 영역의 하측에 존재하는 바닥 영역을 포함하고,
상기 프로세서는,
상기 복수의 이미지 프레임 각각에서 상기 천장 영역과 상기 벽면 영역 사이의 제1 경계 영역 및 상기 바닥 영역과 상기 벽면 영역 사이의 제2 경계 영역을 판단하고,
상기 센서에 의해 바닥면을 기준으로 하는 상기 전자 장치의 높이를 판단하고,
상기 제2 경계 영역에 대응되는 제2 경계와 상기 전자 장치 사이의 거리, 및 상기 전자 장치의 높이에 기초하여 상기 벽면 영역에 대응되는 벽면 및 상기 전자 장치 사이의 거리를 판단하는, 전자 장치.
In electronic devices,
sensor;
display;
camera; and
Obtaining the illuminance value through the sensor,
If the illuminance value is greater than or equal to a preset value, determining a similar pixel having a color similarity greater than or equal to a preset threshold value with a reference pixel located at the center in each of the plurality of image frames acquired by the camera;
If the size difference of the area including the reference pixel and the similar pixel between the plurality of image frames is within a preset threshold range, determining the area including the reference pixel and the similar pixel as a wall area;
Determine a boundary area between the wall area and an area other than the wall area,
Determining a distance between the electronic device and a wall corresponding to the wall area based on the location of the electronic device determined by the sensor and the determined border area,
It includes a processor that controls the display so that an object is displayed on the wall area with a size corresponding to the determined distance,
Areas other than the wall area,
Each of the plurality of image frames includes a ceiling area above the wall area and a floor area below the wall area,
The processor,
Determine a first boundary area between the ceiling area and the wall area and a second boundary area between the floor area and the wall area in each of the plurality of image frames,
Determining the height of the electronic device relative to the floor using the sensor,
An electronic device that determines a distance between a wall surface corresponding to the wall area and the electronic device based on a distance between the electronic device and a second boundary corresponding to the second boundary area, and a height of the electronic device.
삭제delete 제1항에 있어서,
상기 프로세서는,
상기 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고,
상기 센서에 의해 판단된 상기 전자 장치의 움직임에 기초하여 상기 패턴 영역에서 3차원 점들의 집합을 획득하고,
상기 3차원 점들의 집합에 대응되는 직선에 따라 상기 경계 영역을 판단하는, 전자 장치.
According to paragraph 1,
The processor,
Determine a pattern area containing a specific pattern in an area other than the wall area,
Obtaining a set of three-dimensional points in the pattern area based on the movement of the electronic device determined by the sensor,
An electronic device that determines the boundary area according to a straight line corresponding to the set of three-dimensional points.
제1항에 있어서,
상기 프로세서는,
상기 전자 장치가 움직이는 동안 상기 카메라에 의해 획득된 상기 복수의 이미지 프레임에서 상기 벽면 영역의 위치가 변경되는 정도를 판단하고,
상기 벽면 영역의 위치가 변경되는 정도 및 상기 센서에 의해 판단된 상기 전자 장치의 움직임 정도에 기초하여 상기 경계 영역에 대응되는 경계 및 상기 전자 장치 사이의 거리를 판단하는, 전자 장치.
According to paragraph 1,
The processor,
Determine the extent to which the position of the wall area changes in the plurality of image frames acquired by the camera while the electronic device moves,
An electronic device that determines a distance between a boundary corresponding to the boundary area and the electronic device based on the degree to which the position of the wall area changes and the degree of movement of the electronic device determined by the sensor.
삭제delete 삭제delete 삭제delete 제1항에 있어서,
상기 프로세서는,
상기 오브젝트의 기 설정된 크기 및 기 설정된 거리에 기초하여 상기 판단된 거리에 대응되는 크기를 판단하고,
상기 오브젝트가 상기 판단된 크기로 상기 벽면 영역에 표시되도록 상기 디스플레이를 제어하는, 전자 장치.
According to paragraph 1,
The processor,
Determine a size corresponding to the determined distance based on the preset size and preset distance of the object,
An electronic device that controls the display so that the object is displayed in the wall area at the determined size.
제1항에 있어서,
상기 프로세서는,
상기 벽면 영역 중에서 위치를 선택하기 위한 사용자 명령이 수신되면, 상기 오브젝트가 상기 선택된 위치에 표시되도록 상기 디스플레이를 제어하는, 전자 장치.
According to paragraph 1,
The processor,
An electronic device that controls the display to display the object at the selected location when a user command for selecting a location among the wall areas is received.
전자 장치의 제어 방법에 있어서,
센서를 통해 조도 값을 획득하는 단계;
상기 조도 값이 기 설정된 값 이상이면, 카메라에 의해 획득된 복수의 이미지 프레임 각각에서, 센터에 위치하는 기준 픽셀과 기 설정된 임계 값 이상의 색상 유사도를 가지는 유사 픽셀을 판단하는 단계;
상기 복수의 이미지 프레임 간에 상기 기준 픽셀 및 상기 유사 픽셀을 포함하는 영역의 크기 차이가 기 설정된 임계 범위 이내이면, 상기 기준 픽셀 및 상기 유사 픽셀을 포함하는 영역을 벽면 영역으로 판단하는 단계;
상기 벽면 영역 및 상기 벽면 영역 이외의 영역 사이의 경계 영역을 판단하는 단계;
상기 센서에 의해 판단된 상기 전자 장치의 위치 및 상기 판단된 경계 영역에 기초하여, 상기 벽면 영역에 대응되는 벽면 및 상기 전자 장치 사이의 거리를 판단하는 단계; 및
상기 판단된 거리에 대응되는 크기로 오브젝트를 상기 벽면 영역에 표시하는 단계;를 포함하며,
상기 벽면 영역 이외의 영역은,
상기 복수의 이미지 프레임 각각에서 상기 벽면 영역의 상측에 존재하는 천장 영역 및 상기 벽면 영역의 하측에 존재하는 바닥 영역을 포함하고,
상기 경계 영역을 판단하는 단계는,
상기 복수의 이미지 프레임 각각에서 상기 천장 영역과 상기 벽면 영역 사이의 제1 경계 영역 및 상기 바닥 영역과 상기 벽면 영역 사이의 제2 경계 영역을 판단하는 단계;를 포함하고,
상기 벽면 및 상기 전자 장치 사이의 거리를 판단하는 단계는,
상기 센서에 의해 바닥면을 기준으로 하는 상기 전자 장치의 높이를 판단하는 단계; 및
상기 제2 경계 영역에 대응되는 제2 경계와 상기 전자 장치 사이의 거리, 및 상기 전자 장치의 높이에 기초하여 상기 벽면 영역에 대응되는 벽면 및 상기 전자 장치 사이의 거리를 판단하는 단계;를 포함하는, 제어 방법.
In a method of controlling an electronic device,
Obtaining an illuminance value through a sensor;
If the illuminance value is greater than or equal to a preset value, determining a similar pixel having color similarity greater than or equal to a preset threshold value with a reference pixel located at the center in each of the plurality of image frames acquired by the camera;
If a size difference between the reference pixels and the similar pixels between the plurality of image frames is within a preset threshold range, determining the area including the reference pixels and the similar pixels as a wall area;
determining a boundary area between the wall area and an area other than the wall area;
determining a distance between the electronic device and a wall corresponding to the wall area based on the location of the electronic device determined by the sensor and the determined boundary area; and
It includes: displaying an object on the wall area with a size corresponding to the determined distance,
Areas other than the wall area,
Each of the plurality of image frames includes a ceiling area above the wall area and a floor area below the wall area,
The step of determining the boundary area is,
Comprising: determining a first boundary area between the ceiling area and the wall area and a second boundary area between the floor area and the wall area in each of the plurality of image frames,
The step of determining the distance between the wall and the electronic device includes:
determining the height of the electronic device relative to the floor using the sensor; and
Determining the distance between the electronic device and a wall surface corresponding to the wall area based on the distance between the second border corresponding to the second boundary area and the electronic device, and the height of the electronic device; comprising; , control method.
삭제delete 제10항에 있어서,
상기 경계 영역을 판단하는 단계는,
상기 벽면 영역 이외의 영역에서 특정한 패턴을 포함하는 패턴 영역을 판단하고,
상기 센서에 의해 판단된 상기 전자 장치의 움직임에 기초하여 상기 패턴 영역에서 3차원 점들의 집합을 획득하고,
상기 3차원 점들의 집합에 대응되는 직선에 따라 상기 경계 영역을 판단하는, 제어 방법.
According to clause 10,
The step of determining the boundary area is,
Determine a pattern area containing a specific pattern in an area other than the wall area,
Obtaining a set of three-dimensional points in the pattern area based on the movement of the electronic device determined by the sensor,
A control method for determining the boundary area according to a straight line corresponding to the set of three-dimensional points.
제10항에 있어서,
상기 벽면 및 상기 전자 장치 사이의 거리를 판단하는 단계는,
상기 전자 장치가 움직이는 동안 상기 카메라에 의해 획득된 상기 복수의 이미지 프레임에서 상기 벽면 영역의 위치가 변경되는 정도를 판단하고,
상기 벽면 영역의 위치가 변경되는 정도 및 상기 센서에 의해 판단된 상기 전자 장치의 움직임 정도에 기초하여 상기 경계 영역에 대응되는 경계 및 상기 전자 장치 사이의 거리를 판단하는 단계;를 더 포함하는, 제어 방법.
According to clause 10,
The step of determining the distance between the wall and the electronic device includes:
Determine the extent to which the position of the wall area changes in the plurality of image frames acquired by the camera while the electronic device moves,
Control comprising determining a distance between a boundary corresponding to the boundary area and the electronic device based on the degree to which the position of the wall area changes and the degree of movement of the electronic device determined by the sensor. method.
삭제delete 삭제delete 삭제delete 제10항에 있어서,
상기 표시하는 단계는,
상기 오브젝트의 기 설정된 크기 및 기 설정된 거리에 기초하여 상기 판단된 거리에 대응되는 크기를 판단하고,
상기 오브젝트를 상기 판단된 크기로 상기 벽면 영역에 표시하는, 제어 방법.
According to clause 10,
The steps indicated above are:
Determine a size corresponding to the determined distance based on the preset size and preset distance of the object,
A control method for displaying the object at the determined size on the wall area.
제10항에 있어서,
상기 표시하는 단계는,
상기 벽면 영역 중에서 위치를 선택하기 위한 입력이 수신되면, 상기 오브젝트를 상기 선택된 위치에 표시하는 단계;를 더 포함하는, 제어 방법.
According to clause 10,
The steps indicated above are:
When an input for selecting a location among the wall areas is received, displaying the object at the selected location.
KR1020180131104A 2018-10-30 2018-10-30 Electronic apparatus for providing image data by using augmented reality and control method thereof KR102640871B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020180131104A KR102640871B1 (en) 2018-10-30 2018-10-30 Electronic apparatus for providing image data by using augmented reality and control method thereof
PCT/KR2019/008021 WO2020091182A1 (en) 2018-10-30 2019-07-02 Electronic device for providing image data using augmented reality and control method for same
US17/285,256 US11867495B2 (en) 2018-10-30 2019-07-02 Electronic device for providing image data using augmented reality and control method for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180131104A KR102640871B1 (en) 2018-10-30 2018-10-30 Electronic apparatus for providing image data by using augmented reality and control method thereof

Publications (2)

Publication Number Publication Date
KR20200048714A KR20200048714A (en) 2020-05-08
KR102640871B1 true KR102640871B1 (en) 2024-02-27

Family

ID=70462461

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180131104A KR102640871B1 (en) 2018-10-30 2018-10-30 Electronic apparatus for providing image data by using augmented reality and control method thereof

Country Status (3)

Country Link
US (1) US11867495B2 (en)
KR (1) KR102640871B1 (en)
WO (1) WO2020091182A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11694365B2 (en) * 2021-04-15 2023-07-04 Pixart Imaging Inc. Optical sensor device and method used for detecting a color of a specific surface of an object
US20230254439A1 (en) * 2022-02-07 2023-08-10 Airbnb, Inc. Accessibility measurement system

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5330903A (en) * 1976-08-23 1978-03-23 Nippon Mining Co Ltd Suppressing method for generatio of adhered solid matter in rotary kiln
JP2005128877A (en) 2003-10-24 2005-05-19 Canon Inc Complex sense of reality providing system and method, information processing device and method, and computer program
JP4125252B2 (en) * 2004-03-02 2008-07-30 株式会社東芝 Image generation apparatus, image generation method, and image generation program
US9280824B2 (en) 2009-09-30 2016-03-08 Panasonic Intellectual Property Management Co., Ltd. Vehicle-surroundings monitoring device
KR101142739B1 (en) 2009-10-29 2012-05-03 삼성전자주식회사 Apparatus and method for inpainting image by restricting reference image region
KR101758058B1 (en) 2011-01-20 2017-07-17 삼성전자주식회사 Apparatus and method for estimating camera motion using depth information, augmented reality system
EP2495688A1 (en) 2011-03-02 2012-09-05 Harman Becker Automotive Systems GmbH Floor Number Determination in Buildings
EP3654146A1 (en) 2011-03-29 2020-05-20 QUALCOMM Incorporated Anchoring virtual images to real world surfaces in augmented reality systems
JP5961945B2 (en) 2011-08-18 2016-08-03 株式会社リコー Image processing apparatus, projector and projector system having the image processing apparatus, image processing method, program thereof, and recording medium recording the program
EP2787321B1 (en) 2013-04-05 2015-09-16 Leica Geosystems AG Surface determination for objects using precise geodesic point determination and scanning
KR20140145217A (en) * 2013-05-30 2014-12-23 (주)브이알엑스 3d virtual modeling system using spatial information and method thereof
US9848181B2 (en) * 2014-07-29 2017-12-19 Htc Corporation Hand-held electronic apparatus, image capturing apparatus and method for obtaining depth information
KR101600820B1 (en) 2015-01-14 2016-03-08 주식회사 네오카텍 Method for measuring distance of maritime objects using vertical angle of view per pixel of a camera and system for measuring distance of maritime objects using the same
EP3086283B1 (en) 2015-04-21 2019-01-16 Hexagon Technology Center GmbH Providing a point cloud using a surveying instrument and a camera device
CN108141532B (en) * 2015-09-30 2020-09-08 株式会社尼康 Image pickup apparatus
JP6363587B2 (en) * 2015-12-14 2018-07-25 株式会社ソニー・インタラクティブエンタテインメント Information processing apparatus and warning presenting method
KR20180036098A (en) * 2016-09-30 2018-04-09 주식회사 유브이알 Server and method of 3-dimension modeling for offerings image
US10410421B2 (en) 2016-09-13 2019-09-10 3I, Corporation Method and server for providing virtual reality image about object
KR101965834B1 (en) * 2016-10-12 2019-08-13 엘지전자 주식회사 Parking Assistance Apparatus and Vehicle Having The Same
US11348269B1 (en) * 2017-07-27 2022-05-31 AI Incorporated Method and apparatus for combining data to construct a floor plan

Also Published As

Publication number Publication date
US20210372772A1 (en) 2021-12-02
KR20200048714A (en) 2020-05-08
US11867495B2 (en) 2024-01-09
WO2020091182A1 (en) 2020-05-07

Similar Documents

Publication Publication Date Title
US11670267B2 (en) Computer vision and mapping for audio applications
US20210407203A1 (en) Augmented reality experiences using speech and text captions
KR102357633B1 (en) Conversation detection
US11302077B2 (en) Augmented reality guidance that generates guidance markers
US11869156B2 (en) Augmented reality eyewear with speech bubbles and translation
US11582409B2 (en) Visual-inertial tracking using rolling shutter cameras
US9900568B2 (en) Remote communication system, method for controlling remote communication system, and storage medium
US10802784B2 (en) Transmission of data related to an indicator between a user terminal device and a head mounted display and method for controlling the transmission of data
KR20200061279A (en) Electronic apparatus and control method thereof
US11741679B2 (en) Augmented reality environment enhancement
EP3503083B1 (en) Image processing method and display apparatus therefor
KR102640871B1 (en) Electronic apparatus for providing image data by using augmented reality and control method thereof
KR20210083016A (en) Electronic apparatus and controlling method thereof
US20240045494A1 (en) Augmented reality with eyewear triggered iot
US20210406542A1 (en) Augmented reality eyewear with mood sharing
JP2020509505A (en) Method, apparatus and computer program for providing augmented reality
KR101405439B1 (en) System for providing background image based on motion capture, method for providing background image based on motion capture and recording medium thereof
KR102581146B1 (en) Display apparatus and control method thereof
US11816798B1 (en) 3D surface representation refinement
US20240077934A1 (en) Virtual ar interfaces for controlling iot devices using mobile device orientation sensors
KR20230039097A (en) Electronic apparatus and method for controlling thereof
JP2021060789A (en) Video processing system
KR20240054140A (en) Electronic apparatus, and method of operating the electronic apparatus
CN114428446A (en) Graphic holographic projection method and device, storage medium and terminal

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant