KR20210106763A - Electronic device and method for tracking movements of an object - Google Patents

Electronic device and method for tracking movements of an object Download PDF

Info

Publication number
KR20210106763A
KR20210106763A KR1020200021685A KR20200021685A KR20210106763A KR 20210106763 A KR20210106763 A KR 20210106763A KR 1020200021685 A KR1020200021685 A KR 1020200021685A KR 20200021685 A KR20200021685 A KR 20200021685A KR 20210106763 A KR20210106763 A KR 20210106763A
Authority
KR
South Korea
Prior art keywords
information
electronic device
image
color
yoga
Prior art date
Application number
KR1020200021685A
Other languages
Korean (ko)
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 KR1020200021685A priority Critical patent/KR20210106763A/en
Priority to PCT/KR2021/002061 priority patent/WO2021167365A2/en
Publication of KR20210106763A publication Critical patent/KR20210106763A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/285Analysis of motion using a sequence of stereo image pairs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/292Multi-camera tracking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The present invention provides an electronic device and a method which can identify all exercise motions without posture limitations and obtain movement information of a joint by scanning a body area of a user in various postures. According to one embodiment of the present invention, the electronic device comprises at least one camera module, a memory, and a processor operatively connected to the at least one camera module and the memory. The processor can photograph an image of a first object, acquire color information of the photographed first object, start video recording for the first object and a second object moving on the first object in response to a video recording command, determine a first object image corresponding to the first object in data acquired by the video recording based on the color information of the first object, change three-dimensional coordinates of an area determined by the first object image in the data based on a designated distance value, and track a movement of the second object based on the data in which the three-dimensional coordinates of the first object image are changed.

Description

객체의 움직임을 추적하는 전자 장치 및 방법 {ELECTRONIC DEVICE AND METHOD FOR TRACKING MOVEMENTS OF AN OBJECT}ELECTRONIC DEVICE AND METHOD FOR TRACKING MOVEMENTS OF AN OBJECT}

본 문서의 다양한 실시 예들은 객체를 독립적으로 추출함으로써 지면 상에서 움직이는 객체의 움직임을 추적하는 기술에 관한 것이다.Various embodiments of the present document relate to a technique for tracking the motion of an object moving on the ground by independently extracting the object.

스포츠 산업, 헬스 케어 산업은 개인의 액티비티를 중심으로 다양한 연령층, 다양한 종목들을 고려한 영역으로 점차 확대되어 나가고 있다. 스포츠, 헬스 케어 시장 등이 비약적으로 커짐에 따라 관련 기술 산업들도 함께 발전하고 있으며 첨단 기술들이 점차 접목되어 가고 있다. 이는 스포츠 용품, 시설, 서비스 등에 대한 소비자들의 수요가 다양해진 것에서 기인한다. The sports industry and health care industry are gradually expanding into areas that take into account various age groups and various sports, centering on individual activities. As the sports and health care markets grow rapidly, related technology industries are also developing, and cutting-edge technologies are gradually being grafted together. This is due to the diversification of consumer demand for sporting goods, facilities, and services.

특히 사람의 움직임이나 자세를 영상으로 구현해내어 더 나은 움직임이나 자세를 통해 운동 효과를 극대화할 수 있는 모션 트래킹(tracking) 등과 관련된 기술들이 등장하고 있다. In particular, technologies related to motion tracking that can maximize the effect of movement through better movement or posture by realizing a person's movement or posture as an image are emerging.

모션 트래킹 또는 움직임을 추적하는 기술로는, 스테레오 카메라로 위상 차를 분석하여 화면 상에서의 객체를 3D 정보로서 추출하는 방법, 일반 RGB 카메라로 사용자의 영역을 추출하여 사용자의 움직임을 추적하는 방법 등이 있다.As a motion tracking or motion tracking technology, there are a method of extracting an object on the screen as 3D information by analyzing the phase difference with a stereo camera, a method of tracking the user's motion by extracting the user's area with a general RGB camera, etc. have.

종래 기술에 따르면 사용자가 벽이나 지면 등과 붙어 있거나 또는 위상 차가 많이 나지 않는 경우에 사용자의 인체 정보를 추출하는 것이 어려웠다. 특히 요가, 필라테스 등과 같이 상당 부분의 동작이 엎드리거나 누운 자세 또는 앉은 자세로 진행되는 운동은 극히 제한적인 동작밖에 판별할 수 없었으므로, 콘텐츠로서 제공하기가 힘들었다.According to the prior art, when the user is attached to a wall or the ground or the phase difference is not large, it is difficult to extract the user's human body information. In particular, it was difficult to provide content as content because only extremely limited motions could be identified in exercises in which a significant portion of motions such as yoga and Pilates were performed in a prone, supine, or sitting position.

또한 종래 기술에 따라 일반 RGB 카메라로 사용자의 영역을 추출하게 되면, x 축, y 축, z 축에 대한 정보가 충분하지 않기 때문에 사용자가 옆으로 선 상태에서 왼손/오른손이 구별되지 않아 운동 동작 추적 시스템으로서 부족한 점이 있었다. In addition, when the user's area is extracted with a general RGB camera according to the prior art, the left/right hand is not distinguished when the user stands sideways because there is not enough information on the x-axis, y-axis, and z-axis, so movement motion tracking There was something lacking as a system.

본 문서의 다양한 실시 예에 따르면 자세 제한없이 모든 운동 동작을 파악하고, 다양한 자세에서의 사용자 신체 영역을 스캔하여 관절의 움직임 정보를 얻을 수 있는 전자 장치 및 방법을 제공할 수 있다.According to various embodiments of the present disclosure, it is possible to provide an electronic device and method capable of detecting all movement motions without a posture limitation and obtaining joint motion information by scanning user body regions in various postures.

본 문서의 일 실시 예에 따른 전자 장치에는, 적어도 하나의 카메라 모듈, 메모리 및 상기 적어도 하나의 카메라 모듈 및 상기 메모리와 작동적으로 연결되는 프로세서를 포함하고, 상기 프로세서는, 제1 객체의 이미지를 촬영하고, 상기 촬영된 제1 객체의 색상 정보를 획득하고, 동영상 촬영 명령에 응답하여, 상기 제1 객체 및 상기 제1 객체 상에서 움직이는 제2 객체에 대한 동영상 촬영을 시작하고, 상기 제1 객체의 상기 색상 정보에 기반하여, 상기 동영상 촬영에 의해 획득되는 데이터에서 상기 제1 객체에 대응하는 제1 객체 이미지를 결정하고, 상기 데이터에서 상기 제1 객체 이미지로 결정된 영역의 3차원 좌표를 지정된 거리 값에 기초하여 변경하고, 상기 제1 객체 이미지의 3차원 좌표가 변경된 데이터에 기반하여 상기 제2 객체의 움직임을 추적(tracking)하는 전자 장치가 포함될 수 있다.The electronic device according to an embodiment of the present document includes at least one camera module, a memory, and a processor operatively connected to the at least one camera module and the memory, wherein the processor receives an image of a first object. photographing, obtaining color information of the photographed first object, and in response to a video recording command, starting video recording of the first object and a second object moving on the first object, Based on the color information, a first object image corresponding to the first object is determined from the data obtained by photographing the moving picture, and three-dimensional coordinates of an area determined as the first object image in the data are designated as a distance value and an electronic device for tracking the movement of the second object based on the data in which the three-dimensional coordinates of the first object image are changed.

본 문서의 일 실시 예에 따른 전자 장치의 동작 방법은, 제1 객체의 이미지를 촬영하는 동작, 상기 촬영된 제1 객체의 색상(RGB) 정보를 획득하는 동작, 동영상 촬영 명령에 응답하여, 상기 제1 객체 및 상기 제1 객체 상에서 움직이는 제2 객체에 대한 동영상 촬영을 시작하는 동작, 상기 제1 객체의 상기 색상 정보에 기반하여, 상기 동영상 촬영에 의해 획득되는 데이터에서 상기 제1 객체에 대응하는 제1 객체 이미지를 결정하는 동작, 상기 데이터에서 상기 제1 객체 이미지로 결정된 영역의 3차원 좌표를 지정된 거리 값에 기초하여 변경하는 동작, 상기 제1 객체 이미지의 3차원 좌표가 변경된 데이터에 기반하여 상기 제2 객체의 움직임을 추적(tracking)하는 동작을 포함할 수 있다.The method of operating an electronic device according to an exemplary embodiment of the present document includes an operation of photographing an image of a first object, an operation of obtaining color (RGB) information of the photographed first object, and in response to a video recording command, the Initiating video recording of a first object and a second object moving on the first object, based on the color information of the first object, corresponding to the first object in data obtained by photographing the video An operation of determining a first object image, an operation of changing the three-dimensional coordinates of an area determined as the first object image in the data based on a specified distance value, an operation of changing the three-dimensional coordinates of the first object image based on the changed data It may include an operation of tracking the movement of the second object.

본 문서에 개시되는 다양한 실시 예에 따르면, 기존에 사용하던 움직임 추적 솔루션을 유지하면서, 간단한 이미지 사전 처리 프로세스를 통해 움직임에 관한 정보를 추출할 수 있다. According to various embodiments disclosed in this document, information about motion may be extracted through a simple image pre-processing process while maintaining a motion tracking solution used in the past.

본 문서에 개시되는 다양한 실시 예에 따르면, 객체를 독립적으로 추출함으로써 운동용 매트리스 등과 밀착하여 진행되는 요가나 필라테스 등에서의 동작에 있어서도 어려움없이 객체 추출을 할 수 있다.According to various embodiments disclosed in this document, by independently extracting an object, it is possible to extract an object without difficulty even in an operation in yoga or Pilates performed in close contact with an exercise mattress or the like.

본 문서에 개시되는 다양한 실시 예에 따르면, 운동 동작의 제한 없이 운동 추적(movement tracking) 또는 모션 추적(motion tracking)이 가능하고, 이에 따라 다양하고 효과적인 프로그램, 콘텐츠의 구성이 가능하다.According to various embodiments disclosed in this document, movement tracking or motion tracking is possible without limitation of movement motion, and thus various and effective programs and contents can be configured.

도 1은 일 실시 예에 따른 객체의 움직임을 추적하는 하는 시스템을 나타내는 도면이다.
도 2는 일 실시 예에 따라 전자 장치에서 객체의 움직임을 추적하는 전체적인 흐름을 나타내는 흐름도이다.
도 3는 다양한 실시 예들에 따른 네트워크 환경(300) 내의 전자 장치(301)의 블럭도이다.
도 4는 다양한 실시 예들에 따른, 카메라 모듈(380)을 예시하는 블럭도(400)이다.
도 5는 일 실시 예에 따른 전자 장치에서 제1 객체에 대한 이미지를 사전 처리하는 흐름을 나타내는 흐름도이다.
도 6a는 일 실시 예에 따른 전자 장치에서 제1 객체에 대한 이미지를 사전 처리하는 모습을 나타내는 도면이다.
도 6b는 일 실시 예에 따른 전자 장치에서 제1 객체에 대한 이미지를 사전 처리하는 모습을 나타내는 도면이다.
도 7은 일 실시 예에 따른 전자 장치에서 제1 객체 이미지를 결정하는 흐름을 나타내는 흐름도이다.
도 8은 일 실시 예에 따른 전자 장치에서 위치 정보를 기반으로, 제1 객체 이미지의 거리 값(d)을 조정하고 제2 객체의 움직임을 추적하는 흐름을 나타내는 흐름도이다.
도 9a는 일 실시 예에 따른 전자 장치에서 위치 정보를 기반으로 제2 객체의 움직임을 추적하는 개념을 나타내는 도면이다.
도 9b는 일 실시 예에 따른 전자 장치에서 위치 정보를 기반으로 제2 객체의 움직임을 추적하는 개념을 나타내는 도면이다.
도 9c는 일 실시 예에 따른 전자 장치에서 위치 정보를 기반으로 제2 객체의 움직임을 추적하는 개념을 나타내는 도면이다.
도 10은 다양한 실시 예에 따른 거리 값(d) 변경을 이용하여 제2 객체의 움직임을 추적하는 개념을 나타내는 도면이다.
1 is a diagram illustrating a system for tracking a motion of an object according to an exemplary embodiment.
2 is a flowchart illustrating an overall flow of tracking a motion of an object in an electronic device, according to an exemplary embodiment.
3 is a block diagram of an electronic device 301 in a network environment 300 according to various embodiments of the present disclosure.
4 is a block diagram 400 illustrating a camera module 380, according to various embodiments.
5 is a flowchart illustrating a flow of pre-processing an image of a first object in an electronic device according to an exemplary embodiment.
6A is a diagram illustrating a state in which an image of a first object is pre-processed in an electronic device according to an exemplary embodiment;
6B is a diagram illustrating a state in which an image of a first object is pre-processed in an electronic device according to an exemplary embodiment.
7 is a flowchart illustrating a flow of determining a first object image in an electronic device according to an exemplary embodiment.
8 is a flowchart illustrating a flow of adjusting a distance value d of a first object image and tracking a motion of a second object based on location information in an electronic device, according to an exemplary embodiment.
9A is a diagram illustrating a concept of tracking a motion of a second object based on location information in an electronic device according to an exemplary embodiment.
9B is a diagram illustrating a concept of tracking a motion of a second object based on location information in an electronic device according to an exemplary embodiment.
9C is a diagram illustrating a concept of tracking a motion of a second object based on location information in an electronic device according to an exemplary embodiment.
10 is a diagram illustrating a concept of tracking a motion of a second object by using a change in a distance value d according to various embodiments of the present disclosure;

도 1은 일 실시 예에 따른 객체의 움직임을 추적하는 하는 시스템을 나타내는 도면이다. 1 is a diagram illustrating a system for tracking a motion of an object according to an exemplary embodiment.

일 실시 예에서 전자 장치(110)는 적어도 제1 객체(130) 및 제2 객체(140)를 포함하는 객체들을 촬영할 수 있다. 예를 들어 제1 객체(130)는 요가 매트리스, 운동 매트리스, 담요 등일 수 있다. 제2 객체(140)는 운동하는 피사체(예: 사람, 동물 등)일 수 있다. 구체적인 예를 들면 전자 장치(110)는 요가 매트리스 위에서 요가를 하는 사람을 촬영할 수 있다. 전자 장치(110)는 요가 매트리스, 사람 이외에도 책상, 꽃병, 전등 등 주변 객체들을 촬영할 수 있다. In an embodiment, the electronic device 110 may photograph objects including at least the first object 130 and the second object 140 . For example, the first object 130 may be a yoga mattress, an exercise mattress, a blanket, or the like. The second object 140 may be a moving subject (eg, a person, an animal, etc.). As a specific example, the electronic device 110 may photograph a person practicing yoga on a yoga mattress. The electronic device 110 may photograph surrounding objects, such as a desk, a vase, and a lamp, in addition to a yoga mattress and a person.

일 실시 예에서 전자 장치(110)는 제1 객체(130) 및 제2 객체(140)에 대한 색상(RGB) 정보 및 위치 정보를 획득할 수 있다. 예를 들면 전자 장치(110)는 후술하는 도 4의 카메라 모듈(380)을 이용한 사진 촬영에 의해 제1 객체(예: 요가 매트리스, 운동 매트리스, 담요 등)의 색상 정보를 획득할 수 있다. 다른 예를 들면 전자 장치(110)는 카메라 모듈(380)에 기반한 동영상 촬영에 의해 제1 객체의 색상 정보 및 위치 정보, 제2 객체(예: 사람, 동물 등)의 색상 정보 및 위치 정보를 획득할 수 있다.In an embodiment, the electronic device 110 may obtain color (RGB) information and location information for the first object 130 and the second object 140 . For example, the electronic device 110 may acquire color information of the first object (eg, yoga mattress, exercise mattress, blanket, etc.) by taking a picture using the camera module 380 of FIG. 4 , which will be described later. For another example, the electronic device 110 obtains color information and location information of a first object and color information and location information of a second object (eg, people, animals, etc.) by shooting a video based on the camera module 380 . can do.

일 실시 예에서 전자 장치(110)는 획득한 객체들(예: 제1 객체(130), 제2 객체(140) 등)의 색상 정보 및 위치 정보를 이용하여 움직임 추적을 위한 사전 처리를 할 수 있다. 전자 장치(110)는 획득한 제1 객체의 색상 정보를 이용하여 제1 객체 이미지를 결정할 수 있다. 또한 전자 장치(110)는 획득한 위치 정보를 이용하여 제1 객체 이미지의 거리 값을 데이터 상으로 변경할 수 있다. 다양한 실시 예에서 전자 장치(110)는 다양한 방법으로 제1 객체 이미지의 거리 값을 제2 객체로부터 분리되도록 변경할 수 있다. In an embodiment, the electronic device 110 may perform pre-processing for motion tracking using color information and location information of the acquired objects (eg, the first object 130, the second object 140, etc.). have. The electronic device 110 may determine the first object image by using the obtained color information of the first object. Also, the electronic device 110 may change the distance value of the first object image into data by using the obtained location information. In various embodiments, the electronic device 110 may change the distance value of the first object image to be separated from the second object in various ways.

일 실시 예에서 전자 장치(110)는 디스플레이 장치(120)로 제2 객체의 움직임 추적에 관한 데이터를 전송할 수 있고, 디스플레이 장치(120)는 전자 장치(110)로부터 수신된 제2 객체의 움직임 추적에 관한 데이터에 기반하여 제2 객체의 운동 영상을 디스플레이 할 수 있다. 예를 들면 전자 장치(110)는 요가 동작을 하고 있는 사람의 움직임을 추적할 수 있고, 사람의 요가 움직임에 대한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 디스플레이 장치(120)는 상기 움직임에 대한 데이터에 기반하여, 사람이 요가하고 있는 모습을 3D로 구현할 수 있다. In an embodiment, the electronic device 110 may transmit data related to the motion tracking of the second object to the display device 120 , and the display device 120 may track the motion of the second object received from the electronic device 110 . A motion image of the second object may be displayed based on the data related to the . For example, the electronic device 110 may track a movement of a person performing a yoga movement, and may transmit data on the person's yoga movement to the display device 120 . The display device 120 may implement a figure of a person doing yoga in 3D based on the data on the movement.

다양한 실시 예에서 전자 장치(110) 또는 디스플레이 장치(120)는 후술하는 도 3의 전자 장치(301)과 동일 또는 유사한 구조를 가질 수 있다. In various embodiments, the electronic device 110 or the display device 120 may have the same or similar structure to the electronic device 301 of FIG. 3 to be described later.

다양한 실시 예에서 디스플레이 장치(120)는 도 1에 나타낸 것과 같이 컴퓨터일 수도 있고, 도 1에 나타내지 않은 TV, 태블릿 PC 등 다양한 전자 장치일 수도 있다. In various embodiments, the display device 120 may be a computer as shown in FIG. 1 or various electronic devices such as a TV and a tablet PC not shown in FIG. 1 .

도 2는 일 실시 예에 따라 전자 장치에서 객체를 독립적으로 추출하여 운동을 추적하는 전체적인 흐름을 나타내는 흐름도이다. 2 is a flowchart illustrating an overall flow of independently extracting an object from an electronic device to track a motion, according to an exemplary embodiment.

일 실시 예에 따르면, 동작 210에서 전자 장치(110)는 어플리케이션을 실행할 수 있다. According to an embodiment, in operation 210, the electronic device 110 may execute an application.

일 실시 예에서 전자 장치(110)는 사용자로부터 어플리케이션을 실행시키는 입력을 획득하면 어플리케이션을 실행할 수 있다. 예를 들면 상기 어플리케이션은 운동하는 피사체의 움직임을 촬영 및 추적하는 어플리케이션일 수 있다. 또한 상기 어플리케이션을 실행하는 입력은 아이콘을 터치하는 입력, 음성 입력 등 다양할 수 있다.According to an embodiment, the electronic device 110 may execute the application upon obtaining an input for executing the application from the user. For example, the application may be an application for photographing and tracking the movement of a moving subject. In addition, an input for executing the application may be various, such as an input for touching an icon, a voice input, and the like.

일 실시 예에 따르면, 동작 220에서 전자 장치(110)는 제1 객체를 촬영할 수 있다. 제1 객체는, 예를 들어 요가 매트리스, 운동 매트리스, 담요, 거실 러그(rug) 등일 수 있다. 또한 촬영은, 사진 촬영일수도 있고 동영상 촬영일 수도 있다. According to an embodiment, in operation 220, the electronic device 110 may photograph the first object. The first object may be, for example, a yoga mattress, an exercise mattress, a blanket, a living room rug, or the like. Also, the shooting may be a photo shooting or a video shooting.

다른 실시 예에서, 전자 장치(110)는 거실 바닥, 방 바닥, 헬스장 바닥 등의 지면을 촬영할 수 있다. 상기 지면을 촬영하는 경우에도 본 문서에 개시되는 모든 동작들이 전자 장치(110)에 적용 가능할 수 있다.In another embodiment, the electronic device 110 may photograph the ground of a living room floor, a room floor, a gym floor, and the like. Even in the case of photographing the ground, all operations disclosed in this document may be applicable to the electronic device 110 .

일 실시 예에 따르면, 동작 230에서 전자 장치(110)는 제1 객체의 색상 정보를 검출 및 저장할 수 있다. 예를 들면 상기 색상 정보는 RGB 정보 등을 포함할 수 있다. 다른 예를 들면 촬영한 요가 매트리스의 색이 흰색인 경우에 흰색에 관한 RGB 정보(예: (R, G, B)=(255, 253, 244) 등)를 검출할 수 있다. 상기 RGB 정보는 R, G, B 컬러 값 등의 정보를 포함할 수 있다. 또한 전자 장치(100)는 상기 색상 정보에 관한 데이터를 메모리에 저장할 수 있다. 이와 관련하여, 도 5에서 상세하게 설명한다. According to an embodiment, in operation 230 , the electronic device 110 may detect and store color information of the first object. For example, the color information may include RGB information. As another example, when the color of the photographed yoga mattress is white, RGB information regarding white (eg, (R, G, B)=(255, 253, 244), etc.) may be detected. The RGB information may include information such as R, G, and B color values. Also, the electronic device 100 may store data related to the color information in a memory. In this regard, it will be described in detail with reference to FIG. 5 .

일 실시 예에 따르면, 동작 240에서 전자 장치(110)는 객체들을 촬영할 수 있다. According to an embodiment, in operation 240 , the electronic device 110 may photograph objects.

일 실시 예에서 객체들은 제1 객체 및 제1 객체 상에서 움직이는 제2 객체를 포함할 수 있다. 예를 들면, 사용자가 스스로 요가 매트리스 위에서 요가 하는 모습을 촬영하고 싶은 경우에 전자 장치(110)를 이용하여 상기 모습을 촬영할 수 있다. 이 경우 전자 장치(110)는 요가 매트리스(예: 제1 객체) 및 사용자(예: 제2 객체)를 촬영할 수 있다. In an embodiment, the objects may include a first object and a second object moving on the first object. For example, when the user wants to take a picture of himself doing yoga on a yoga mattress, he or she may take a picture of the figure using the electronic device 110 . In this case, the electronic device 110 may photograph the yoga mattress (eg, the first object) and the user (eg, the second object).

일 실시 예에서 상기 촬영은 동영상 촬영일 수 있다. 예를 들면 전자 장치(110)는 사용자가 잡은 구도에 따라 요가 매트리스 위에서 요가 하는 사용자의 모습을 실시간으로 동영상 촬영하고 있을 수 있다. 이 경우 디스플레이 장치(120)의 디스플레이 되는 화면을 통해 실시간으로 요가 하는 모습을 확인할 수 있다. 다른 예를 들면, 전자 장치(110)는 사용자의 요가 하는 움직임을 동영상 촬영하고, 디스플레이 장치(120)는 상기 움직임을 3D로 구현할 수 있다. In an embodiment, the shooting may be moving picture shooting. For example, the electronic device 110 may capture a video of the user doing yoga on a yoga mattress in real time according to the composition captured by the user. In this case, it is possible to check the state of doing yoga in real time through the screen displayed on the display device 120 . For another example, the electronic device 110 may capture a video of the user's yoga movement, and the display device 120 may implement the movement in 3D.

일 실시 예에서 전자 장치(110)는 RGB 카메라 및 스테레오 카메라에 기반하여 객체들을 촬영할 수 있다. 예를 들어 전자 장치(110)는 RGB 카메라 및 스테레오 카메라를 포함할 수 있다. 전자 장치(110)는 RGB 카메라로부터 객체들의 색상 정보(예: RGB 정보)를 얻을 수 있고, 스테레오 카메라로부터 객체들의 위치 정보(예: 3D 정보)를 얻을 수 있다. In an embodiment, the electronic device 110 may photograph objects based on an RGB camera and a stereo camera. For example, the electronic device 110 may include an RGB camera and a stereo camera. The electronic device 110 may obtain color information (eg, RGB information) of objects from the RGB camera, and may acquire position information (eg, 3D information) of the objects from the stereo camera.

다른 실시 예에서 전자 장치(110)에 배치된 RGB 카메라와 스테레오 카메라의 위치에 차이가 있을 수 있다. 이 경우 RGB 카메라와 스테레오 카메라가 촬영하는 영상의 위치, 영상의 구도 등에 어느 정도 차이가 있을 수 있다. 전자 장치(110)는 미리 정의된 구성마다의 차이(예: 탑재 위치, 탑재 각도, 구성 사이의 거리 등)에 기반하여 RGB 카메라와 스테레오 카메라가 획득하는 영상 또는 이미지를 일치 또는 대응하도록 보정할 수 있다. 예를 들어 전자 장치(110)는 RGB 카메라와 스테레오 카메라가 획득하는 영상 또는 이미지에서 객체들의 위치 또는 구도에 차이가 있는 경우에 상기 객체들의 위치 또는 구도가 일치 또는 대응하도록 처리할 수 있다. 다른 예를 들어 전자 장치(110)는 RGB 카메라와 스테레오 카메라가 획득하는 영상 또는 이미지에서 상기 객체들의 픽셀 위치 등이 일치 또는 대응하도록 처리할 수 있다. In another embodiment, there may be a difference in the positions of the RGB camera and the stereo camera disposed in the electronic device 110 . In this case, there may be some difference between the position of the image captured by the RGB camera and the stereo camera, the composition of the image, and the like. The electronic device 110 may correct the image or image acquired by the RGB camera and the stereo camera to match or correspond to each other based on the predefined differences for each configuration (eg, mounting position, mounting angle, distance between configurations, etc.). have. For example, when there is a difference in positions or compositions of objects in an image or image obtained by the RGB camera and the stereo camera, the electronic device 110 may process the positions or compositions of the objects to match or correspond. For another example, the electronic device 110 may process an image or image acquired by the RGB camera and the stereo camera so that pixel positions of the objects match or correspond.

일 실시 예에서 전자 장치(100)는 객체들을 촬영함으로써 객체들의 색상 정보 및 위치 정보를 획득할 수 있다. 예를 들어 전자 장치(100)는 RGB 카메라로부터 객체들의 색상 정보를 얻을 수 있고, 스테레오 카메라로부터 객체들의 위치 정보를 얻을 수 있다. 색상 정보는 적어도 RGB 정보를 포함할 수 있다. 위치 정보는 제1 객체(예: 요가 매트리스)의 위치 정보, 제2 객체(예: 사람)의 위치 정보, 다른 객체(예: 꽃병, 전등 등)들의 위치 정보를 포함할 수 있다. According to an embodiment, the electronic device 100 may acquire color information and location information of the objects by photographing the objects. For example, the electronic device 100 may obtain color information of objects from an RGB camera and may obtain position information of objects from a stereo camera. The color information may include at least RGB information. The location information may include location information of a first object (eg, a yoga mattress), location information of a second object (eg, a person), and location information of other objects (eg, a vase, a lamp, etc.).

일 실시 예에 따르면, 동작 250에서 전자 장치(110)는 제2 객체의 움직임을 추적할 수 있다.According to an embodiment, in operation 250 , the electronic device 110 may track the movement of the second object.

일 실시 예에서 전자 장치(110)는 제2 객체(예: 사람)의 위치 정보에 기반하여 관절 정보를 획득할 수 있다. 예를 들면, 전자 장치(110)는 사람의 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 골반 관절, 무릎 관절, 발목 관절에 대한 정보 등을 포함하는 관절 정보를 얻을 수 있다. 일 실시 예에서, 전자 장치(110)는 동작 220 및 230을 통해 획득된 제1 객체의 색상 정보에 기반하여, 촬영되는 객체들 중 제1 객체를 나머지 객체(예: 제2 객체)와 공간적으로 이격시킬 수 있다. 예를 들어, 전자 장치(110)는 제1 객체가 가지는 공간 좌표 중 어느 하나의 축(예: Z축)의 값을 변경함으로써, 제1 객체와 제2 객체가 Z축에서 충분히 이격되도록 할 수 있다. 전자 장치(110)는 제1 객체와 제2 객체를 공간 좌표 상에서 이격시킴으로써 실제로는 제1 객체(예: 매트)에 근접하여 제2 객체(예: 사람)가 푸시업이나 요가와 같은 운동을 하고 있더라도, 제2 객체의 움직임을 효과적으로 추적할 수 있다.In an embodiment, the electronic device 110 may acquire joint information based on location information of a second object (eg, a person). For example, the electronic device 110 may obtain joint information including information on a person's neck joint, shoulder joint, wrist joint, wrist joint, pelvic joint, knee joint, and ankle joint. In an embodiment, the electronic device 110 spatially compares the first object among the photographed objects with the other objects (eg, the second object) based on the color information of the first object obtained through operations 220 and 230 . can be separated. For example, the electronic device 110 may change the value of any one axis (eg, the Z axis) among the spatial coordinates of the first object so that the first object and the second object are sufficiently spaced apart from the Z axis. have. The electronic device 110 separates the first object and the second object on spatial coordinates so that the second object (eg, a person) actually approaches the first object (eg, a mat) to perform an exercise such as a push-up or yoga, and Even if there is, it is possible to effectively track the movement of the second object.

일 실시 예에서 전자 장치(110)는 스테레오 카메라를 이용하여 상기 관절 정보를 포함하는 위치 정보를 획득할 수 있다. 예를 들면 전자 장치(110)의 카메라 모듈(예:380)은 스테레오 카메라를 구성으로 포함할 수 있다. 전자 장치(110)는 스테레오 카메라를 통해 제2 객체(예: 사람)의 위치 정보를 획득할 수 있다. 상기 위치 정보는 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 골반 관절, 무릎 관절, 발목 관절의 좌표 및 상기 좌표의 변화 등을 포함할 수 있다. In an embodiment, the electronic device 110 may obtain position information including the joint information by using a stereo camera. For example, the camera module (eg, 380 ) of the electronic device 110 may include a stereo camera as a configuration. The electronic device 110 may obtain location information of the second object (eg, a person) through the stereo camera. The location information may include coordinates of a neck joint, a shoulder joint, a wrist joint, a wrist joint, a pelvic joint, a knee joint, an ankle joint, and a change in the coordinates.

일 실시 예에서 전자 장치(110)는 관절 정보를 포함하는 위치 정보를 기반으로 제2 객체의 움직임을 추적할 수 있다. 예를 들면 전자 장치(110)는 관절 정보에 포함된 다양한 관절들의 위치를 x 축, y 축, z 축에 기반한 좌표로 설정할 수 있다. 또한 전자 장치(110)는 상기 관절들의 좌표의 변화를 감지할 수 있고, 좌표를 추적함으로써 움직임을 추적할 수 있다. In an embodiment, the electronic device 110 may track the motion of the second object based on location information including joint information. For example, the electronic device 110 may set the positions of various joints included in the joint information as coordinates based on the x-axis, the y-axis, and the z-axis. Also, the electronic device 110 may detect a change in the coordinates of the joints, and may track the movement by tracking the coordinates.

도 2에서 설명한 다양한 실시 예에 따른 동작들의 상세한 설명은 도 5, 도 7, 도 8의 대응되는 부분에서 상세히 후술한다. Detailed descriptions of operations according to various embodiments described with reference to FIG. 2 will be described later in detail in corresponding parts of FIGS. 5, 7, and 8 .

도 3은, 다양한 실시 예들에 따른, 네트워크 환경(300) 내의 전자 장치(301)의 블럭도이다. 도 3을 참조하면, 네트워크 환경(300)에서 전자 장치(301)는 제 1 네트워크(398)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(302)와 통신하거나, 또는 제 2 네트워크(399)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(304) 또는 서버(308)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(301)는 서버(308)를 통하여 전자 장치(304)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(301)는 프로세서(320), 메모리(330), 입력 장치(350), 음향 출력 장치(355), 표시 장치(360), 오디오 모듈(370), 센서 모듈(376), 인터페이스(377), 햅틱 모듈(379), 카메라 모듈(380), 전력 관리 모듈(388), 배터리(389), 통신 모듈(390), 가입자 식별 모듈(396), 또는 안테나 모듈(397)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(301)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(360) 또는 카메라 모듈(380))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(376)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(360)(예: 디스플레이)에 임베디드된 채 구현될 수 있다.3 is a block diagram of an electronic device 301 in a network environment 300 according to various embodiments of the present disclosure. Referring to FIG. 3 , in a network environment 300 , the electronic device 301 communicates with the electronic device 302 through a first network 398 (eg, a short-range wireless communication network) or a second network 399 . It may communicate with the electronic device 304 or the server 308 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 301 may communicate with the electronic device 304 through the server 308 . According to an embodiment, the electronic device 301 includes a processor 320 , a memory 330 , an input device 350 , a sound output device 355 , a display device 360 , an audio module 370 , and a sensor module ( 376 , interface 377 , haptic module 379 , camera module 380 , power management module 388 , battery 389 , communication module 390 , subscriber identification module 396 , or antenna module 397 . ) may be included. In some embodiments, at least one of these components (eg, the display device 360 or the camera module 380 ) may be omitted or one or more other components may be added to the electronic device 301 . In some embodiments, some of these components may be implemented as a single integrated circuit. For example, the sensor module 376 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 360 (eg, a display).

프로세서(320)는, 예를 들면, 소프트웨어(예: 프로그램(340))를 실행하여 프로세서(320)에 연결된 전자 장치(301)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(320)는 다른 구성요소(예: 센서 모듈(376) 또는 통신 모듈(390))로부터 수신된 명령 또는 데이터를 휘발성 메모리(332)에 로드하고, 휘발성 메모리(332)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(334)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(320)는 메인 프로세서(321)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(323)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(323)은 메인 프로세서(321)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(323)는 메인 프로세서(321)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 320, for example, executes software (eg, a program 340) to execute at least one other component (eg, a hardware or software component) of the electronic device 301 connected to the processor 320 . It can control and perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 320 stores commands or data received from other components (eg, the sensor module 376 or the communication module 390 ) into the volatile memory 332 . may be loaded into the volatile memory 332 , may process commands or data stored in the volatile memory 332 , and may store the resulting data in the non-volatile memory 334 . According to an embodiment, the processor 320 includes a main processor 321 (eg, a central processing unit or an application processor), and an auxiliary processor 323 (eg, a graphic processing unit, an image signal processor) that can be operated independently or together with the main processor 321 . , a sensor hub processor, or a communication processor). Additionally or alternatively, the auxiliary processor 323 may be configured to use less power than the main processor 321 or to specialize in a designated function. The auxiliary processor 323 may be implemented separately from or as part of the main processor 321 .

보조 프로세서(323)는, 예를 들면, 메인 프로세서(321)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(321)를 대신하여, 또는 메인 프로세서(321)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(321)와 함께, 전자 장치(301)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(360), 센서 모듈(376), 또는 통신 모듈(390))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(323)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(380) 또는 통신 모듈(390))의 일부로서 구현될 수 있다. The coprocessor 323 may be, for example, on behalf of the main processor 321 while the main processor 321 is in an inactive (eg, sleep) state, or the main processor 321 is active (eg, executing an application). ), together with the main processor 321, at least one of the components of the electronic device 301 (eg, the display device 360, the sensor module 376, or the communication module 390) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 323 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 380 or the communication module 390). have.

메모리(330)는, 전자 장치(301)의 적어도 하나의 구성요소(예: 프로세서(320) 또는 센서모듈(376))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(340)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(330)는, 휘발성 메모리(332) 또는 비휘발성 메모리(334)를 포함할 수 있다. The memory 330 may store various data used by at least one component (eg, the processor 320 or the sensor module 376 ) of the electronic device 301 . The data may include, for example, input data or output data for software (eg, the program 340 ) and instructions related thereto. The memory 330 may include a volatile memory 332 or a non-volatile memory 334 .

프로그램(340)은 메모리(330)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(342), 미들 웨어(344) 또는 어플리케이션(346)을 포함할 수 있다. The program 340 may be stored as software in the memory 330 , and may include, for example, an operating system 342 , middleware 344 , or an application 346 .

입력 장치(350)는, 전자 장치(301)의 구성요소(예: 프로세서(320))에 사용될 명령 또는 데이터를 전자 장치(301)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(350)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input device 350 may receive a command or data to be used in a component (eg, the processor 320 ) of the electronic device 301 from the outside (eg, a user) of the electronic device 301 . The input device 350 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).

음향 출력 장치(355)는 음향 신호를 전자 장치(301)의 외부로 출력할 수 있다. 음향 출력 장치(355)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 355 may output a sound signal to the outside of the electronic device 301 . The sound output device 355 may include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.

표시 장치(360)는 전자 장치(301)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(360)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 표시 장치(360)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 360 may visually provide information to the outside (eg, a user) of the electronic device 301 . The display device 360 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device. According to an embodiment, the display device 360 may include a touch circuitry configured to sense a touch or a sensor circuit (eg, a pressure sensor) configured to measure the intensity of a force generated by the touch. have.

오디오 모듈(370)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(370)은, 입력 장치(350)를 통해 소리를 획득하거나, 음향 출력 장치(355), 또는 전자 장치(301)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(302)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 370 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 370 acquires a sound through the input device 350 or an external electronic device (eg, a sound output device 355 ) directly or wirelessly connected to the electronic device 301 . The electronic device 302) (eg, a speaker or headphones) may output a sound.

센서 모듈(376)은 전자 장치(301)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(376)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 376 detects an operating state (eg, power or temperature) of the electronic device 301 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 376 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(377)는 전자 장치(301)이 외부 전자 장치(예: 전자 장치(302))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(377)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 377 may support one or more designated protocols that may be used for the electronic device 301 to directly or wirelessly connect with an external electronic device (eg, the electronic device 302 ). According to an embodiment, the interface 377 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(378)는, 그를 통해서 전자 장치(301)가 외부 전자 장치(예: 전자 장치(302))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(378)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 378 may include a connector through which the electronic device 301 can be physically connected to an external electronic device (eg, the electronic device 302 ). According to an embodiment, the connection terminal 378 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(379)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(379)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 379 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 379 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(380)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(380)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 380 may capture still images and moving images. According to an embodiment, the camera module 380 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(388)은 전자 장치(301)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 388 may manage power supplied to the electronic device 301 . According to an embodiment, the power management module 388 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(389)는 전자 장치(301)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(389)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 389 may supply power to at least one component of the electronic device 301 . According to an embodiment, the battery 389 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(390)은 전자 장치(301)와 외부 전자 장치(예: 전자 장치(302), 전자 장치(304), 또는 서버(308))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(390)은 프로세서(320)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(390)은 무선 통신 모듈(392)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(394)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(398)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(399)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(392)은 가입자 식별 모듈(396)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(398) 또는 제 2 네트워크(399)와 같은 통신 네트워크 내에서 전자 장치(301)를 확인 및 인증할 수 있다. The communication module 390 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 301 and an external electronic device (eg, the electronic device 302, the electronic device 304, or the server 308). It can support establishment and communication through the established communication channel. The communication module 390 may include one or more communication processors that operate independently of the processor 320 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 390 is a wireless communication module 392 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 394 (eg, : It may include a local area network (LAN) communication module, or a power line communication module). Among these communication modules, a corresponding communication module is a first network 398 (eg, a short-range communication network such as Bluetooth, WiFi direct, or infrared data association (IrDA)) or a second network 399 (eg, a cellular network, the Internet, or It may communicate with an external electronic device via a computer network (eg, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 392 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 396 within a communication network, such as the first network 398 or the second network 399 . The electronic device 301 may be identified and authenticated.

안테나 모듈(397)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(397)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(398) 또는 제 2 네트워크(399)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(390)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(390)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(397)의 일부로 형성될 수 있다.The antenna module 397 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 397 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network such as the first network 398 or the second network 399 is connected from the plurality of antennas by, for example, the communication module 390 . can be selected. A signal or power may be transmitted or received between the communication module 390 and the external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as a part of the antenna module 397 .

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

일 실시 예에 따르면, 명령 또는 데이터는 제 2 네트워크(399)에 연결된 서버(308)를 통해서 전자 장치(301)와 외부의 전자 장치(304)간에 송신 또는 수신될 수 있다. 전자 장치(302, 304) 각각은 전자 장치(301)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(301)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(302, 304, or 308) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(301)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(301)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(301)로 전달할 수 있다. 전자 장치(301)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 301 and the external electronic device 304 through the server 308 connected to the second network 399 . Each of the electronic devices 302 and 304 may be the same or a different type of device as the electronic device 301 . According to an embodiment, all or part of the operations performed by the electronic device 301 may be executed by one or more of the external electronic devices 302 , 304 , or 308 . For example, when the electronic device 301 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 301 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. The one or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 301 . The electronic device 301 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology may be used.

도 4는, 다양한 실시 예들에 따른, 카메라 모듈(380)을 예시하는 블럭도(400)이다. 도 4를 참조하면, 카메라 모듈(380)은 렌즈 어셈블리(410), 플래쉬(420), 이미지 센서(430), 이미지 스태빌라이저(440), 메모리(450)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(460)를 포함할 수 있다. 렌즈 어셈블리(410)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(410)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시 예에 따르면, 카메라 모듈(380)은 복수의 렌즈 어셈블리(410)들을 포함할 수 있다. 이런 경우, 카메라 모듈(380)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(410)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(410)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. 4 is a block diagram 400 illustrating a camera module 380, according to various embodiments. Referring to FIG. 4 , the camera module 380 includes a lens assembly 410 , a flash 420 , an image sensor 430 , an image stabilizer 440 , a memory 450 (eg, a buffer memory), or an image signal processor. (460). The lens assembly 410 may collect light emitted from a subject to be imaged. The lens assembly 410 may include one or more lenses. According to an embodiment, the camera module 380 may include a plurality of lens assemblies 410 . In this case, the camera module 380 may form, for example, a dual camera, a 360 degree camera, or a spherical camera. Some of the plurality of lens assemblies 410 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties different from the lens properties of . The lens assembly 410 may include, for example, a wide-angle lens or a telephoto lens.

플래쉬(420)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일 실시 예에 따르면, 플래쉬(420)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(430)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(410)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시 예에 따르면, 이미지 센서(430)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(430)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.The flash 420 may emit light used to enhance light emitted or reflected from the subject. According to an embodiment, the flash 420 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp. The image sensor 430 may acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly 410 into an electrical signal. According to an embodiment, the image sensor 430 may include, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having a property, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 430 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

이미지 스태빌라이저(440)는 카메라 모듈(380) 또는 이를 포함하는 전자 장치(301)의 움직임에 반응하여, 렌즈 어셈블리(410)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(430)를 특정한 방향으로 움직이거나 이미지 센서(430)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일 실시 예에 따르면, 이미지 스태빌라이저(440)는, 일 실시 예에 따르면, 이미지 스태빌라이저(440)은 카메라 모듈(380)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(380) 또는 전자 장치(301)의 그런 움직임을 감지할 수 있다. 일 실시 예에 따르면, 이미지 스태빌라이저(440)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(450)는 이미지 센서(430)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(450)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(360)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(450)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(460)에 의해 획득되어 처리될 수 있다. 일 실시 예에 따르면, 메모리(450)는 메모리(330)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.In response to the movement of the camera module 380 or the electronic device 301 including the same, the image stabilizer 440 moves at least one lens or the image sensor 430 included in the lens assembly 410 in a specific direction or Operation characteristics of the image sensor 430 may be controlled (eg, read-out timing may be adjusted, etc.). This makes it possible to compensate for at least some of the negative effects of the movement on the image being taken. According to an embodiment, the image stabilizer 440, according to an embodiment, the image stabilizer 440 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 380 . can be used to detect such a movement of the camera module 380 or the electronic device 301 . According to an embodiment, the image stabilizer 440 may be implemented as, for example, an optical image stabilizer. The memory 450 may temporarily store at least a portion of the image acquired through the image sensor 430 for a next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, Bayer-patterned image or high-resolution image) is stored in the memory 450 and , a copy image corresponding thereto (eg, a low-resolution image) may be previewed through the display device 360 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a portion of the original image stored in the memory 450 may be obtained and processed by, for example, the image signal processor 460 . According to an embodiment, the memory 450 may be configured as at least a part of the memory 330 or as a separate memory operated independently of the memory 330 .

이미지 시그널 프로세서(460)는 이미지 센서(430)을 통하여 획득된 이미지 또는 메모리(450)에 저장된 이미지에 대하여 하나 이상의 이미지 처리들을 수행할 수 있다. 상기 하나 이상의 이미지 처리들은, 예를 들면, 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening)을 포함할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(460)는 카메라 모듈(380)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(430))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(460)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(450)에 다시 저장되거나 카메라 모듈(380)의 외부 구성 요소(예: 메모리(330), 표시 장치(360), 전자 장치(302), 전자 장치(304), 또는 서버(308))로 제공될 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서(460)는 프로세서(320)의 적어도 일부로 구성되거나, 프로세서(320)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 이미지 시그널 프로세서(460)이 프로세서(320)과 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(460)에 의해 처리된 적어도 하나의 이미지는 프로세서(320)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(360)를 통해 표시될 수 있다.The image signal processor 460 may perform one or more image processing on an image acquired through the image sensor 430 or an image stored in the memory 450 . The one or more image processes may include, for example, depth map generation, three-dimensional modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring, sharpening, or softening. Additionally or alternatively, the image signal processor 460 may include at least one of the components included in the camera module 380 (eg, an image sensor). 430), for example, exposure time control, readout timing control, etc. The image processed by the image signal processor 460 is stored back in the memory 450 for further processing. or may be provided as an external component of the camera module 380 (eg, the memory 330 , the display device 360 , the electronic device 302 , the electronic device 304 , or the server 308 ). According to an example, the image signal processor 460 may be configured as at least a part of the processor 320 or as a separate processor operated independently of the processor 320. The image signal processor 460 may include the processor 320 . and a separate processor, the at least one image processed by the image signal processor 460 may be displayed through the display device 360 as it is by the processor 320 or after additional image processing.

일 실시 예에 따르면, 전자 장치(301)는 각각 다른 속성 또는 기능을 가진 복수의 카메라 모듈(380)들을 포함할 수 있다. 이런 경우, 예를 들면, 상기 복수의 카메라 모듈(380)들 중 적어도 하나는 광각 카메라이고, 적어도 다른 하나는 망원 카메라일 수 있다. 유사하게, 상기 복수의 카메라 모듈(380)들 중 적어도 하나는 전면 카메라이고, 적어도 다른 하나는 후면 카메라일 수 있다.According to an embodiment, the electronic device 301 may include a plurality of camera modules 380 each having different properties or functions. In this case, for example, at least one of the plurality of camera modules 380 may be a wide-angle camera, and at least the other may be a telephoto camera. Similarly, at least one of the plurality of camera modules 380 may be a front camera, and at least the other may be a rear camera.

도 5는 일 실시 예에 따른 전자 장치에서 제1 객체에 대한 이미지를 사전 처리하는 흐름을 나타내는 흐름도이다. 도 5의 다양한 실시 예에 따른 동작들은, 전자 장치에서 제1 객체에 대한 이미지를 사전 처리하는 모습을 나타내는 도 6a, 도 6b을 참조하여 설명한다. 5 is a flowchart illustrating a flow of pre-processing an image of a first object in an electronic device according to an exemplary embodiment. Operations according to various embodiments of FIG. 5 will be described with reference to FIGS. 6A and 6B , which show images of the first object being pre-processed in the electronic device.

일 실시 예에 따르면, 동작 510에서 전자 장치(110)는 제1 객체를 촬영할 수 있다. According to an embodiment, in operation 510 , the electronic device 110 may photograph the first object.

일 실시 예에서 사용자는 어플리케이션 매뉴얼에 따라 요가 매트리스(610)를 촬영할 수 있다. 예를 들면 전자 장치(110)는 사용자의 촬영 입력에 기반하여 요가 매트리스(610)의 사진 또는 동영상을 촬영할 수 있다. 구체적으로, 전자 장치(110)는 사용자의 촬영 동작에 기반하여 촬영 화면의 중앙에 제1 객체(예: 요가 매트리스(610))가 위치하도록 사진 또는 동영상을 촬영할 수 있다.In an embodiment, the user may photograph the yoga mattress 610 according to the application manual. For example, the electronic device 110 may take a picture or a video of the yoga mattress 610 based on a user's shooting input. Specifically, the electronic device 110 may capture a picture or a video so that the first object (eg, the yoga mattress 610) is located in the center of the photographing screen based on the user's photographing motion.

일 실시 예에서 전자 장치(110)의 카메라 모듈(예:380)은 RGB 카메라를 포함할 수 있다. 예를 들면 전자 장치(110)는 카메라 모듈(예:380)의 RGB 카메라에 기반하여 요가 매트리스(610)의 사진 또는 동영상을 촬영할 수 있다. In an embodiment, the camera module (eg, 380) of the electronic device 110 may include an RGB camera. For example, the electronic device 110 may take a picture or a video of the yoga mattress 610 based on the RGB camera of the camera module (eg, 380 ).

일 실시 예에 따르면, 동작 520에서 전자 장치(110)는 촬영 이미지에서 제1 객체의 색상 정보를 검출할 수 있다. According to an embodiment, in operation 520 , the electronic device 110 may detect color information of the first object from the captured image.

일 실시 예에서 전자 장치(110)는 카메라 모듈(예:380)로 요가 매트리스(610)를 촬영한 이미지로부터 요가 매트리스(610)의 색상 정보를 검출할 수 있다. 예를 들면 요가 매트리스(610)의 색이 흰색인 경우, 흰색에 대한 RGB 정보(예: (R, G, B)=(255, 253, 244) 등)를 얻을 수 있다. 다른 예를 들면 요가 매트리스(610)의 색이 자주색인 경우, 자주색에 대한 RGB 정보(예: (R, G, B)=(255, 0, 244) 등)를 얻을 수 있다. In an embodiment, the electronic device 110 may detect color information of the yoga mattress 610 from an image obtained by photographing the yoga mattress 610 with a camera module (eg, 380 ). For example, when the color of the yoga mattress 610 is white, RGB information for white (eg, (R, G, B)=(255, 253, 244), etc.) may be obtained. For another example, when the color of the yoga mattress 610 is purple, RGB information (eg, (R, G, B)=(255, 0, 244), etc.) for purple may be obtained.

다른 실시 예에서 전자 장치(110)는 카메라 모듈(예:380)에 기반하여 제1 객체의 색상 정보가 급격히 변하는 지점까지 동일한 물체로 판단할 수 있다. 예를 들면 전자 장치(110)는 자주색의 요가 매트리스(610)와 흰색의 주변 배경에 있어서 요가 매트리스(610)가 화면 중앙에 위치하도록 촬영할 수 있다. 도 6b에 나타낸 것과 같이, 전자 장치(110)는 화면 중앙 지점을 시작으로 상/하/좌/우로 한 픽셀마다 옮겨가면서 RGB 컬러 값을 검출할 수 있다. 또한 전자 장치(110)는 상기 검출을 하는 중에 색상 정보(예: RGB 컬러 값)이 급격히 변하는 지점을 경계로 하여 동일한 물체를 결정할 수 있다. 예를 들면 전자 장치(110)는 요가 매트리스(610)의 색상 정보를 검출하는 중에 자주색의 요가 매트리스(610)와 흰색 배경의 경계에서 색상 정보(예: RGB 컬러 값)가 급격히 변하는 지점들을 확인할 수 있다. 이 경우 전자 장치(110)는 색상 정보가 급격히 변하는 지점들까지 자주색의 요가 매트리스(610)라고 판단할 수 있다.In another embodiment, the electronic device 110 may determine the same object as the same object up to a point where the color information of the first object rapidly changes based on the camera module (eg, 380 ). For example, the electronic device 110 may take a picture so that the yoga mattress 610 is located in the center of the screen in the background of the purple yoga mattress 610 and the white surrounding background. As shown in FIG. 6B , the electronic device 110 may detect RGB color values by moving up/down/left/right for each pixel starting from the center point of the screen. In addition, the electronic device 110 may determine the same object based on a point at which color information (eg, an RGB color value) changes rapidly during the detection as a boundary. For example, while detecting the color information of the yoga mattress 610, the electronic device 110 may identify points at which the color information (eg, RGB color value) changes rapidly at the boundary between the purple yoga mattress 610 and the white background. have. In this case, the electronic device 110 may determine that the yoga mattress 610 is purple up to the points where the color information changes rapidly.

일 실시 예에 따르면, 동작 530에서 전자 장치(110)는 제1 객체의 대표색을 결정할 수 있다. According to an embodiment, in operation 530 , the electronic device 110 may determine a representative color of the first object.

일 실시 예에서 조명이나 촬영 각도에 따라서 제1 객체(예: 요가 매트리스)에서 색상 정보의 RGB 컬러 값 등이 차이가 나는 경우가 있을 수 있다. 예를 들어 요가 매트리스(610)의 색상 정보(예: 자주색)가 전등이나 햇빛, 촬영 각도 등에 따라 차이가 있을 수 있다. 이 경우 전자 장치(110)는 상술한 동작 520에 따라 색상 정보를 검출할 수 있고, 검출한 RGB 컬러 값의 평균 값을 구함으로써 상기 평균 값을 요가 매트리스(610)의 대표색으로 결정할 수 있다. According to an embodiment, there may be a case where the RGB color value of color information in the first object (eg, yoga mattress) is different depending on lighting or a shooting angle. For example, color information (eg, purple) of the yoga mattress 610 may be different depending on a light, sunlight, or shooting angle. In this case, the electronic device 110 may detect color information according to operation 520 described above, and may determine the average value as the representative color of the yoga mattress 610 by obtaining an average value of the detected RGB color values.

다른 실시 예에서 동일한 물체의 RGB 컬러 값의 평균 값은 촬영시마다 동일할 수 있다. 예를 들어 요가 매트리스(610)의 RGB 컬러 값의 평균 값은 시간의 차이를 두고 촬영을 하여도 자주색에 대응하는 값일 수 있다. 전자 장치(110)는 검출한 제1 객체(예: 요가 매트리스)의 RGB 컬러 값의 평균 값을 시간의 차이를 두고 구할 수 있고 상기 평균 값에 대응하는 색은 시간의 차이를 두고 촬영을 하여도 대표색(예: 자주색)과 동일할 수 있다. In another embodiment, the average value of the RGB color values of the same object may be the same for every photographing. For example, the average value of the RGB color values of the yoga mattress 610 may be a value corresponding to purple even when shooting with a time difference. The electronic device 110 may obtain the average value of the RGB color values of the detected first object (eg, yoga mattress) with a time difference, and the color corresponding to the average value can be obtained with a time difference even when shooting It can be the same as the representative color (eg purple).

[수학식 1][Equation 1]

Figure pat00001
Figure pat00001

Figure pat00002
Figure pat00002

Figure pat00003
Figure pat00003

다양한 실시 예에서 제1 객체(예: 요가 매트리스(610)) 이미지의 RGB 평균 컬러 값은 상기 수학식 1(이하에서는, '제1 조건')에 기반하여 구해질 수 있다. 예를 들면 제1 객체(예: 요가 매트리스(610)) 이미지의 빨간색(R, red) 평균 컬러 값은, 제1 객체(예: 요가 매트리스(610)) 이미지의 중앙 픽셀부터 최외측의 픽셀까지의 R의 컬러 값의 합을 픽셀의 수로 나눈 값일 수 있다. 다른 예를 들면 제1 객체(예: 요가 매트리스(610)) 이미지의 녹색(G, green) 평균 컬러 값은, 제1 객체(예: 요가 매트리스(610)) 이미지의 중앙 픽셀부터 최외측의 픽셀까지의 G의 컬러 값의 합을 픽셀의 수로 나눈 값일 수 있다. 또한 제1 객체(예: 요가 매트리스(610)) 이미지의 파란색(B, blue) 평균 컬러 값은, 제1 객체(예: 요가 매트리스(610)) 이미지의 중앙 픽셀부터 최외측의 픽셀까지의 B의 컬러 값의 합을 픽셀의 수로 나눈 값일 수 있다.In various embodiments, the RGB average color value of the image of the first object (eg, the yoga mattress 610) may be obtained based on Equation 1 (hereinafter, 'first condition'). For example, the red (R, red) average color value of the image of the first object (eg, yoga mattress 610) is from the center pixel of the image of the first object (eg, yoga mattress 610) to the outermost pixel It may be a value obtained by dividing the sum of the color values of R by the number of pixels. For another example, the green (G, green) average color value of the image of the first object (eg, yoga mattress 610) is the outermost pixel from the center pixel of the image of the first object (eg, yoga mattress 610) It may be a value obtained by dividing the sum of the color values of G up to and including the number of pixels. In addition, the blue (B, blue) average color value of the image of the first object (eg, yoga mattress 610) is B from the center pixel of the image of the first object (eg, yoga mattress 610) to the outermost pixel It may be a value obtained by dividing the sum of the color values of , by the number of pixels.

일 실시 예에 따르면, 동작 540에서 전자 장치(110)는 제1 객체의 색상 정보 및 대표색을 저장할 수 있다. 예를 들면 전자 장치(100)는 요가 매트리스의 색(예: 자주색), 배경의 색(예: 흰색) 등에 대응하는 색상 정보(예: RGB 정보 등) 및 대표색에 대한 데이터를 메모리에 저장할 수 있다. According to an embodiment, in operation 540 , the electronic device 110 may store color information and a representative color of the first object. For example, the electronic device 100 may store color information (eg, RGB information, etc.) corresponding to the color of the yoga mattress (eg, purple), the color of the background (eg, white), and data on the representative color in the memory. have.

도 7은 일 실시 예에 따른 전자 장치에서 제1 객체 이미지를 결정하는 흐름을 나타내는 흐름도이다. 7 is a flowchart illustrating a flow of determining a first object image in an electronic device according to an exemplary embodiment.

일 실시 예에 따르면, 동작 710에서 전자 장치(110)는 객체들을 동영상 촬영할 수 있다. 객체들은 제1 객체 및 제1 객체 상에서 움직이는 제2 객체를 적어도 포함할 수 있다. 예를 들면, 도 1에 나타낸 것과 같이 전자 장치(110)는 사용자(140)가 요가 매트리스(130) 위에서 요가를 하는 모습을 동영상 촬영할 수 있다. 다른 예를 들면 전자 장치(110)가 동영상 촬영을 하면 사용자(140), 요가 매트리스(130)만이 아니라 바닥, 꽃병, 전등 등을 포함하는 배경도 함께 동영상 촬영될 수 있다. According to an embodiment, in operation 710 , the electronic device 110 may capture a moving picture of the objects. The objects may include at least a first object and a second object moving on the first object. For example, as shown in FIG. 1 , the electronic device 110 may capture a video of the user 140 doing yoga on the yoga mattress 130 . For another example, when the electronic device 110 shoots a video, a video may be captured not only with the user 140 and the yoga mattress 130 , but also with a background including a floor, a vase, a lamp, and the like.

일 실시 예에 따르면, 동작 720에서 전자 장치(110)는 메모리에 저장된 제1 객체의 색상 정보와 촬영한 객체들의 색상 정보를 비교할 수 있다.According to an embodiment, in operation 720, the electronic device 110 may compare the color information of the first object stored in the memory with the color information of the photographed objects.

일 실시 예에서 전자 장치(110)는 사용자(140), 요가 매트리스(130) 등이 포함된 촬영 중인 화면에서 상기 객체들의 색상 정보를 획득할 수 있다. 이 경우 전자 장치(110)는 동작 540에서 저장했던 요가 매트리스(130)의 색(예: 자주색)에 대응하는 색상 정보에 기반하여 사용자(140), 요가 매트리스(130) 등에서 요가 매트리스(130)의 색(예: 자주색)에 대응하는 색상 정보와 동일한 색상 정보를 가진 객체를 화면에서 검색할 수 있다. 구체적으로 예를 들면 전자 장치(110)는 산출한 RGB 평균 컬러 값(예: 자주색의 RGB의 평균 컬러 값)과 동일한 RGB 평균 컬러 값을 가지는 객체를 동일한 색상 정보를 가지는 객체로 판단할 수 있다. In an embodiment, the electronic device 110 may acquire color information of the objects from a screen being photographed including the user 140 , the yoga mattress 130 , and the like. In this case, the electronic device 110 determines the color of the yoga mattress 130 by the user 140, the yoga mattress 130, etc., based on the color information corresponding to the color (eg, purple) of the yoga mattress 130 stored in operation 540 . An object having the same color information as color information corresponding to a color (eg, purple) can be searched for on the screen. Specifically, for example, the electronic device 110 may determine an object having the same RGB average color value as the calculated RGB average color value (eg, the purple RGB average color value) as an object having the same color information.

다른 예를 들면 전자 장치(110)는 동작 540에서 저장했던 요가 매트리스(130)의 색(예: 자주색)의 색상 정보에 기반하여 사용자(140), 요가 매트리스(130), 바닥, 꽃병, 전등 등 중에서 요가 매트리스(130)의 색(예: 자주색)과 대응하는 색상 정보를 가진 객체를 화면에서 검색할 수 있다. 예를 들어 전자 장치(110)는 산출한 RGB의 평균 컬러 값에서 특정 범위 이내의 RGB 평균 컬러 값을 가지는 객체들은 동일한 객체로 판단할 수 있다. 구체적으로 예를 들면 전자 장치(110)는 산출한 RGB의 평균 컬러 값(예: 자주색의 RGB의 평균 컬러 값)에서 2% 이내 또는 5% 이내의 RGB 평균 컬러 값을 가지는 객체들은 동일한 객체로 판단할 수 있다. 상술한 2%, 5%는 일 실시 예이고, 전자 장치(110)의 설정에 따라 다양한 범위가 될 수 있다. For another example, based on the color information of the color (eg, purple) of the yoga mattress 130 stored in operation 540 , the electronic device 110 may display the user 140 , the yoga mattress 130 , a floor, a vase, a lamp, and the like. Among them, an object having color information corresponding to a color (eg, purple) of the yoga mattress 130 may be searched for on the screen. For example, the electronic device 110 may determine that objects having RGB average color values within a specific range from the calculated average RGB color values are the same object. Specifically, for example, the electronic device 110 determines that objects having RGB average color values within 2% or within 5% of the calculated RGB average color value (eg, purple RGB average color value) are the same object. can do. The 2% and 5% described above are an example, and may be various ranges according to the setting of the electronic device 110 .

일 실시 예에 따르면, 동작 730에서 전자 장치(110)는 제1 객체의 색상 정보에 대응되는 이미지를 결정할 수 있다. 또한 제1 객체의 색상 정보에 대응되는 이미지는 '제1 객체 이미지'일 수 있다. 예를 들면 전자 장치(110)는 동작 540에서 저장했던 요가 매트리스(610)의 색(예: 자주색)의 색상 정보에 기반하여 동작 710에서 촬영 중인 객체들 중 동일한 색상 정보를 가지는 요가 매트리스(610)를 검출하여 요가 매트리스(610) 이미지를 결정할 수 있다. 다른 예를 들면 전자 장치(110)는 동작 540에서 저장했던 요가 매트리스(610)의 색(예: 자주색)의 색상 정보에 기반하여 동작 710에서 촬영 중인 객체들 중 특정 범위 내(예: 2% 범위 내)로 유사한 색상 정보를 가지는 요가 매트리스(610)를 검출하여 요가 매트리스(610) 이미지를 결정할 수 있다.According to an embodiment, in operation 730, the electronic device 110 may determine an image corresponding to the color information of the first object. Also, the image corresponding to the color information of the first object may be a 'first object image'. For example, the electronic device 110 may perform the yoga mattress 610 having the same color information among the objects being photographed in operation 710 based on color information (eg, purple) of the color (eg, purple) of the yoga mattress 610 stored in operation 540 . It is possible to determine the yoga mattress 610 image by detecting . For another example, the electronic device 110 may store within a specific range (eg, 2% range) among objects being photographed in operation 710 based on color information (eg, purple) of the yoga mattress 610 stored in operation 540 . By detecting the yoga mattress 610 having similar color information to (in), it is possible to determine the yoga mattress 610 image.

도 8은 일 실시 예에 따른 전자 장치에서 위치 정보를 기반으로, 제1 객체 이미지의 거리 값(d)을 조정하고 제2 객체의 움직임을 추적하는 흐름을 나타내는 흐름도이다. 도 8의 다양한 실시 예에 따른 동작들은, 전자 장치에서 위치 정보를 기반으로 제2 객체의 움직임을 추적하는 개념을 나타내는 도 9a, 9b, 9c를 참조하여 설명한다.8 is a flowchart illustrating a flow of adjusting a distance value d of a first object image and tracking a motion of a second object based on location information in an electronic device, according to an exemplary embodiment. Operations according to various embodiments of FIG. 8 will be described with reference to FIGS. 9A, 9B, and 9C illustrating a concept of tracking a motion of a second object based on location information in an electronic device.

일 실시 예에 따르면, 동작 810에서 전자 장치(110)는 객체들을 동영상 촬영할 수 있다. 예를 들면 전자 장치(110)는 요가 매트리스(910), 사람(920) 등을 동영상 촬영할 수 있다. 또한 사람(920)은 요가 매트리스(910)에 밀착한 상태(예: 엎드린 동작, 누운 동작 등)로 운동을 하고 있을 수 있다.According to an embodiment, in operation 810 , the electronic device 110 may capture a moving picture of the objects. For example, the electronic device 110 may capture a video of the yoga mattress 910 , the person 920 , and the like. In addition, the person 920 may be exercising in a state in close contact with the yoga mattress 910 (eg, a prone motion, a lying motion, etc.).

일 실시 예에 따르면, 동작 820에서 전자 장치(110)는 객체들의 위치 정보를 획득할 수 있다. 객체들은 제1 객체(예: 요가 매트리스(910)), 제1 객체 위에서 움직이는 제2 객체(예: 사람) 등을 포함할 수 있다. According to an embodiment, in operation 820, the electronic device 110 may obtain location information of objects. The objects may include a first object (eg, the yoga mattress 910) and a second object (eg, a person) moving on the first object.

일 실시 예에서 전자 장치(110)는 카메라 모듈(380)의 스테레오 카메라를 이용하여 요가 매트리스(910), 사람(920)의 위치 정보를 획득할 수 있다. 위치 정보는 거리 정보(예: 거리 값), 좌표 정보, 좌표의 움직임 정보, 관절 정보, 좌표축 정보 등을 포함할 수 있다. 또한 도 9c의 점과 같이 사람(920)의 관절 정보는 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 손가락 관절, 골반 관절, 무릎 관절, 발목 관절의 좌표 등을 포함할 수 있다. 다른 예를 들어 사람(920)이 팔을 드는 경우, 위치 정보는 어깨 관절, 손목 관절 등의 좌표 정보 및 상기 좌표의 움직임 정보를 포함할 수 있다. 또 다른 예를 들어 전자 장치(110)을 기준으로 하는 좌표축(x 축, y 축, z 축)에 기반하여 객체들의 다양한 좌표 정보, 좌표의 움직임 정보 등을 포함하는 위치 정보를 얻을 수 있다. In an embodiment, the electronic device 110 may obtain position information of the yoga mattress 910 and the person 920 by using the stereo camera of the camera module 380 . The location information may include distance information (eg, a distance value), coordinate information, coordinate movement information, joint information, coordinate axis information, and the like. Also, as shown in the dot of FIG. 9C , the joint information of the person 920 may include coordinates of a neck joint, a shoulder joint, a wrist joint, a wrist joint, a finger joint, a pelvic joint, a knee joint, an ankle joint, and the like. For another example, when the person 920 raises an arm, the location information may include coordinate information of a shoulder joint, a wrist joint, and the like, and motion information of the coordinates. As another example, location information including various coordinate information of objects, coordinate movement information, etc. may be obtained based on the coordinate axes (x-axis, y-axis, and z-axis) with respect to the electronic device 110 .

일 실시 예에 따르면, 동작 830에서 제1 객체의 색상 정보에 대응되는 이미지의 거리 값(d)를 조정할 수 있다. 도 9b를 참조하여 설명하면, 전자 장치(110)는 동작 730에서 요가 매트리스(910) 이미지를 결정하고 요가 매트리스(910), 사람(920) 등의 위치 정보를 획득할 수 있다. 예를 들면 전자 장치(110)로부터 요가 매트리스(910)까지의 거리 정보를 획득할 수 있다. 상기 거리 정보는, 전자 장치(110)로부터 요가 매트리스(910)까지의 거리 값, 상기 거리에 대한 좌표 값 등을 포함할 수 있다. 다양한 실시 예에서 전자 장치(110)로부터 사람(920)까지의 거리 값은 d로 표현될 수 있다. 전자 장치(110)는 전자 장치(110)를 기준으로 사람(920)의 거리 값(d)(예: 5)에 대응하는 좌표(예:(3, 4, 0))를 설정할 수 있다. According to an embodiment, in operation 830, the distance value d of the image corresponding to the color information of the first object may be adjusted. Referring to FIG. 9B , the electronic device 110 may determine an image of the yoga mattress 910 in operation 730 and acquire location information of the yoga mattress 910 and the person 920 . For example, distance information from the electronic device 110 to the yoga mattress 910 may be acquired. The distance information may include a distance value from the electronic device 110 to the yoga mattress 910, a coordinate value for the distance, and the like. In various embodiments, the distance value from the electronic device 110 to the person 920 may be expressed as d. The electronic device 110 may set coordinates (eg, (3, 4, 0)) corresponding to the distance value d (eg, 5) of the person 920 with respect to the electronic device 110 .

일 실시 예에서 전자 장치(110)는 설정된 값(α) 또는 특정한 거리 값(β)에 기반하여 요가 매트리스(910) 이미지의 위치를 특정 좌표축을 기준으로 변경할 수 있다. 설정된 값(α)은, 전자 장치(110)에 거리 조정을 위해 미리 설정된 임의의 값일 수 있다. 특정한 거리 값(β)은, 전자 장치(110)에서 동영상 촬영 중에 획득한 거리 값일 수 있다. 설정된 값(α), 특정한 거리 값(β)에 대한 상세한 설명은 각 동작에서 개별 서술한다. In an embodiment, the electronic device 110 may change the position of the yoga mattress 910 image based on a specific coordinate axis based on a set value α or a specific distance value β. The set value α may be an arbitrary value preset for distance adjustment in the electronic device 110 . The specific distance value β may be a distance value obtained while capturing a video by the electronic device 110 . Detailed descriptions of the set value (α) and the specific distance value (β) are separately described in each operation.

전자 장치(110)는 요가 매트리스(910) 이미지의 본래의 위치에서 전자 장치(110)로부터 미리 설정한 값(α)만큼 -z축 방향으로 더 멀어지도록 거리 값(d)을 변경할 수 있다. 또한 요가 매트리스(910) 이미지의 원래 위치에서 특정한 거리 값(β)만큼 -z축 방향으로 더 멀어지도록 할 수 있다. 이 경우 요가 매트리스(1010) 이미지의 거리 값(d)은 변경될 수 있고(예: 거리 값(d')), 좌표(예: (a, b, c))도 다른 좌표(예: (a, b, c'))로 변경될 수 있다.The electronic device 110 may change the distance value d from the original position of the image of the yoga mattress 910 to be further away from the electronic device 110 in the -z-axis direction by a preset value α. In addition, the yoga mattress 910 may be moved further away from the original position of the image by a specific distance value β in the -z-axis direction. In this case, the distance value (d) of the image of the yoga mattress 1010 may be changed (eg, the distance value (d')), and the coordinates (eg, (a, b, c)) are also different coordinates (eg (a)) , b, c')).

다양한 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(910)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 값을 메모리에 특정한 데이터로서 저장할 수 있다. According to various embodiments, the electronic device 110 may store a value obtained by changing the distance value d of the image of the first object (eg, yoga mattress 910) based on a specific coordinate axis as specific data in the memory.

일 실시 예에 따르면, 동작 840에서 전자 장치(110)는 객체들의 위치 정보에 기반하여 제2 객체의 관절 정보를 획득할 수 있다. According to an embodiment, in operation 840, the electronic device 110 may acquire joint information of the second object based on the location information of the objects.

일 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(910))가 데이터 상에서 특정 좌표축을 기준으로 더 멀어진 상태에서, 카메라 모듈에 기반하여 제 2 객체(예: 사람(920)의 관절 정보를 획득할 수 있다. 예를 들면 전자 장치(110)는 도 9c에 점으로 나타낸 것과 같이, 사람(920)의 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 골반 관절, 무릎 관절, 발목 관절 등을 포함하는 관절 정보를 얻을 수 있다. 또한 전자 장치(110)는 데이터 상으로는 요가 매트리스(910)가 사람(920)의 아래에 위치하지 않은 상태(예: 사람(920)과 요가 매트리스(910)가 분리된 상태)에서 사람(920)의 상기 관절 정보(930)를 얻을 수 있다. In an embodiment, the electronic device 110 sets a second object (eg, a person 920) based on the camera module in a state where the first object (eg, yoga mattress 910) is further away from the data based on a specific coordinate axis. For example, the electronic device 110 may obtain the joint information of the person 920, as indicated by dots in FIG. It is possible to obtain joint information including an ankle joint, etc. In addition, according to the data, the electronic device 110 indicates that the yoga mattress 910 is not positioned under the person 920 (eg, the person 920 and the yoga mattress 910 ). The joint information 930 of the person 920 may be obtained in a state in which the 910 is separated).

일 실시 예에 따르면, 동작 850에서 전자 장치(110)는 관절 정보를 기반으로 제2 객체의 움직임을 추적할 수 있다. 예를 들어 전자 장치(110)는 사람(920)이 엎드린 자세로 운동하고 있는 경우에 좌표 정보를 포함하는 각 관절들의 관절 정보를 획득할 수 있다. 또한 사람(920)이 엎드린 자세에서 팔굽혀펴기를 하는 동작을 하는 경우, 전자 장치(110)는 사람(920)이 자세를 바꾸는 중에 실시간으로 각 관절들의 좌표 정보들을 획득할 수 있다. 전자 장치(110)는 상기 좌표 정보 및 좌표 움직임 정보에 기반하여 사람(920)의 움직임을 추적할 수 있다. According to an embodiment, in operation 850, the electronic device 110 may track the motion of the second object based on joint information. For example, when the person 920 is exercising in a prone position, the electronic device 110 may obtain joint information of each joint including coordinate information. Also, when the person 920 performs push-ups in the prone position, the electronic device 110 may acquire coordinate information of each joint in real time while the person 920 changes the posture. The electronic device 110 may track the movement of the person 920 based on the coordinate information and the coordinate movement information.

다양한 실시 예에서 전자 장치(110)는 디스플레이 장치(120)에 제1 객체 이미지의 위치 정보에 관한 데이터 및 제2 객체의 움직임 추적에 관한 데이터 등을 전송할 수 있고 디스플레이 장치(120)는 제1 객체 및 제2 객체에 관한 데이터에 기반하여 제2 객체의 운동 영상을 디스플레이 할 수 있다.In various embodiments, the electronic device 110 may transmit data related to the location information of the first object image and data related to the motion tracking of the second object to the display device 120 , and the display device 120 may transmit the first object and a motion image of the second object may be displayed based on data about the second object.

일 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(910)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 특정한 데이터가 아닌, 본래의 데이터를 디스플레이 장치(120)에 전송할 수 있다. 또한 전자 장치(110)는 제2 객체의 움직임을 추적한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 이 경우에 상술한 데이터들을 수신한 디스플레이 장치(120)는 사람(920)이 요가 매트리스(910) 위에서 운동을 하는 모습의 영상을 디스플레이 할 수 있다. In an embodiment, the electronic device 110 displays original data, not specific data obtained by changing the distance value d of the image of the first object (eg, yoga mattress 910) based on a specific coordinate axis, on the display device 120 ) can be sent to Also, the electronic device 110 may transmit data tracking the motion of the second object to the display device 120 . In this case, the display device 120 receiving the above-described data may display an image of the person 920 exercising on the yoga mattress 910 .

다른 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(910)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 특정한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 또한 전자 장치(110)는 제2 객체의 움직임을 추적한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 이 경우에 상술한 데이터들을 수신한 디스플레이 장치(120)는 사람(920)이 요가 매트리스(910)가 아래에 위치하지 않은 상태에서 운동을 하는 모습의 영상을 디스플레이 할 수 있다. In another embodiment, the electronic device 110 may transmit specific data obtained by changing the distance value d of the image of the first object (eg, yoga mattress 910 ) based on a specific coordinate axis to the display device 120 . Also, the electronic device 110 may transmit data tracking the motion of the second object to the display device 120 . In this case, the display device 120 receiving the above-described data may display an image of the person 920 exercising in a state where the yoga mattress 910 is not positioned below.

도 10은 다양한 실시 예에 따른 거리 값(d) 변경을 이용하여 제2 객체의 움직임을 추적하는 개념을 나타내는 도면이다. 10 is a diagram illustrating a concept of tracking a motion of a second object by using a change in a distance value d according to various embodiments of the present disclosure;

예를 들면 전자 장치(110)는 요가 매트리스(1010), 사람(1020)을 동영상 촬영할 수 있다. 다른 예를 들면 전자 장치(110)는 꽃병(1040), 전등(1050)을 포함하는 객체들을 동영상 촬영할 수 있다. For example, the electronic device 110 may capture a video of the yoga mattress 1010 and the person 1020 . For another example, the electronic device 110 may capture a moving picture of objects including the vase 1040 and the lamp 1050 .

일 실시 예에서 전자 장치(110)는 카메라 모듈(380)의 스테레오 카메라에 기반하여 요가 매트리스(1010), 사람(1020)의 위치 정보를 획득할 수 있다. 또한 전자 장치(110)는 카메라 모듈에 기반하여 꽃병(1040), 전등(1050) 등의 위치 정보를 획득할 수도 있다.In an embodiment, the electronic device 110 may acquire location information of the yoga mattress 1010 and the person 1020 based on the stereo camera of the camera module 380 . Also, the electronic device 110 may acquire location information of the vase 1040 and the lamp 1050 based on the camera module.

다양한 실시 예에서 위치 정보는 거리 정보(예: 거리 값), 좌표 정보, 좌표의 움직임 정보, 관절 정보, 좌표축 정보 등을 포함할 수 있다. 예를 들어 도 10에 나타낸 것과 같이 사람(1020)의 관절 정보(1030)는 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 손가락 관절, 골반 관절, 무릎 관절, 발목 관절의 좌표 등을 포함할 수 있다. 다른 예를 들어 사람(1020)이 팔을 드는 경우, 위치 정보는 어깨 관절, 손목 관절 등의 좌표 정보 및 상기 좌표의 움직임 정보를 포함할 수 있다. 또 다른 예를 들어 전자 장치(110)을 기준으로 하는 좌표축(x 축, y 축, z 축)에 기반하여 객체들의 다양한 좌표 정보, 좌표의 움직임 정보 등을 포함하는 위치 정보를 얻을 수 있다. In various embodiments, the location information may include distance information (eg, a distance value), coordinate information, coordinate movement information, joint information, coordinate axis information, and the like. For example, as shown in FIG. 10 , the joint information 1030 of the person 1020 may include coordinates of a neck joint, a shoulder joint, a wrist joint, a wrist joint, a finger joint, a pelvic joint, a knee joint, an ankle joint, etc. have. For another example, when the person 1020 raises an arm, the location information may include coordinate information of a shoulder joint, a wrist joint, and the like, and motion information of the coordinates. As another example, location information including various coordinate information of objects, coordinate movement information, etc. may be obtained based on the coordinate axes (x-axis, y-axis, and z-axis) with respect to the electronic device 110 .

전자 장치(110)는 요가 매트리스(1010) 이미지를 결정하고 요가 매트리스(1010), 사람(1020), 꽃병(1040), 전등(1050) 등의 위치 정보를 획득할 수 있다.The electronic device 110 may determine an image of the yoga mattress 1010 and obtain location information such as the yoga mattress 1010 , the person 1020 , the vase 1040 , and the lamp 1050 .

다양한 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010))의 색상 정보에 대응되는 이미지의 거리 값(d)를 변경할 수 있다. 또한 전자 장치(110)는 설정된 값(α) 또는 촬영 이미지로부터 얻은 특정한 거리 값(β)에 기반하여 요가 매트리스(1010) 이미지의 위치를 다양한 좌표축을 기준으로 변경할 수 있다.In various embodiments, the electronic device 110 may change the distance value d of the image corresponding to the color information of the first object (eg, the yoga mattress 1010). Also, the electronic device 110 may change the position of the yoga mattress 1010 image based on various coordinate axes based on the set value α or a specific distance value β obtained from the captured image.

예를 들어 요가 매트리스(1010) 이미지의 위치를 본래의 위치에서 전자 장치(110)로부터 꽃병(1040)까지의 거리 값을 이용하여 y축 방향으로 더 멀어지도록 거리 값(d)을 변경할 수 있다. 다른 예를 들어 요가 매트리스(1010) 이미지의 거리 값(d)을 본래의 위치에서 전자 장치(110)로부터 전등(1050)까지의 거리 값을 이용하여 -z축 방향으로 더 멀어지도록 거리 값(d)을 변경할 수 있다. 상술한 예시에서 꽃병(1040), 전등(1050)까지의 거리 값을 이용하는 경우, 전자 장치(110)는 사람(1020) 이미지와 요가 매트리스(1010) 이미지가 겹치지 않도록 조정하여 거리 값(d)을 변경할 수 있다.For example, the distance value d may be changed so that the position of the image of the yoga mattress 1010 is further away in the y-axis direction by using the distance value from the electronic device 110 to the vase 1040 from the original position. For another example, the distance value (d) of the yoga mattress 1010 image is set further away in the -z-axis direction by using the distance value from the electronic device 110 to the electric lamp 1050 from the original position. ) can be changed. In the above example, when using the distance value to the vase 1040 and the light 1050, the electronic device 110 adjusts the image of the person 1020 and the yoga mattress 1010 so that the image does not overlap to obtain the distance value d. can be changed

구체적인 예를 들면, 전자 장치(110)는 카메라 화면 상에서 y축 기준으로 가장 멀리 있다고 판단되는 객체(예: 꽃병(1040))의 거리 값(β)을 구할 수 있다. 전자 장치(110)는 본래의 제1 객체 이미지(예: 요가 매트리스(1010) 이미지)의 거리 값(d)에 대응하는 좌표(예: (a, b, c))를 상기 거리 값(β)을 이용하여 y축 방향으로 더 멀어지도록 할 수 있다. 이 경우 제1 객체 이미지(예: 요가 매트리스(1010) 이미지)의 거리 값(d)은 변경될 수 있고(예: 거리 값(d')), 좌표(예: (a, b, c))도 다른 좌표(예: (a, b+ β', c))로 변경될 수 있다. 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010))와 제2 객체(예: 사람(1020))를 특정한 거리 값만큼 분리하기 위해, 상술한 방식 이외에도 다양한 방식으로 구현될 수 있다. As a specific example, the electronic device 110 may obtain the distance value β of the object (eg, the vase 1040 ) determined to be the furthest from the y-axis on the camera screen. The electronic device 110 converts the coordinates (eg, (a, b, c)) corresponding to the distance value (d) of the original first object image (eg, the image of the yoga mattress 1010) to the distance value (β) can be used to move further away in the y-axis direction. In this case, the distance value (d) of the first object image (eg, the image of the yoga mattress 1010) may be changed (eg, the distance value (d')), and the coordinates (eg (a, b, c)) can also be changed to other coordinates (eg (a, b+ β', c)). In order to separate the first object (eg, the yoga mattress 1010 ) and the second object (eg, the person 1020 ) by a specific distance value, the electronic device 110 may be implemented in various ways other than the above-described method. .

다양한 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 값을 메모리에 특정한 데이터로서 저장할 수 있다. In various embodiments, the electronic device 110 may store a value obtained by changing the distance value d of the image of the first object (eg, yoga mattress 1010 ) based on a specific coordinate axis as specific data in the memory.

일 실시 예에 따르면, 전자 장치(110)는 객체들의 위치 정보에 기반하여 제2 객체의 관절 정보를 획득할 수 있다. According to an embodiment, the electronic device 110 may acquire joint information of the second object based on the location information of the objects.

일 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010))가 데이터 상에서 특정 좌표축을 기준으로 더 멀어진 상태에서, 스테레오 카메라를 이용하여 제 2 객체(예: 사람(1020))의 관절 정보를 획득할 수 있다. 예를 들면 전자 장치(110)는 도 10에 나타낸 것과 같이 사람(1020)의 목 관절, 어깨 관절, 팔목 관절, 손목 관절, 골반 관절, 무릎 관절, 발목 관절 등을 포함하는 관절 정보(1030)를 얻을 수 있다. 다른 예를 들면 전자 장치(110)는 데이터 상으로는 요가 매트리스(1010)가 사람(1020)의 아래에 위치하지 않은 상태에서 사람(1020)의 상기 관절 정보(1030)를 얻을 수 있다. In an embodiment, the electronic device 110 uses a stereo camera in a state in which the first object (eg, the yoga mattress 1010) is further away from the data based on a specific coordinate axis, and the second object (eg, the person 1020) ) of the joint information can be obtained. For example, the electronic device 110 obtains joint information 1030 including a neck joint, a shoulder joint, a wrist joint, a wrist joint, a pelvic joint, a knee joint, an ankle joint, etc. of the person 1020 as shown in FIG. 10 . can be obtained For another example, the electronic device 110 may obtain the joint information 1030 of the person 1020 in a state where the yoga mattress 1010 is not located under the person 1020 on the data.

일 실시 예에 따르면, 전자 장치(110)는 관절 정보(1030)를 기반으로 제2 객체(1020)의 움직임을 추적할 수 있다. 예를 들어 전자 장치(110)는 사람(1020)이 정자세로 서 있는 경우에 좌표 정보를 포함하는 각 관절들의 관절 정보(1030)을 획득할 수 있다. 이 경우에 사람(1020)은 오른쪽 무릎은 굽히고, 오른쪽 손은 하늘을 향하여 뻗은 요가 동작을 할 수 있다. 또한 전자 장치(110)는 사람(1020)이 정자세에서 상기 요가 동작 자세로 바꾸는 중에 실시간으로 각 관절들의 좌표 정보들을 획득할 수 있다. 전자 장치(110)는 상기 좌표 정보 및 좌표 움직임 정보에 기반하여 사람(1020)의 움직임을 추적할 수 있다. According to an embodiment, the electronic device 110 may track the movement of the second object 1020 based on the joint information 1030 . For example, when the person 1020 is standing in an upright posture, the electronic device 110 may obtain joint information 1030 of each joint including coordinate information. In this case, the person 1020 may perform a yoga movement in which the right knee is bent and the right hand is stretched toward the sky. Also, the electronic device 110 may acquire coordinate information of each joint in real time while the person 1020 is changing from the normal posture to the yoga posture. The electronic device 110 may track the movement of the person 1020 based on the coordinate information and the coordinate movement information.

다양한 실시 예에서 전자 장치(110)는 디스플레이 장치(120)에 제1 객체 이미지의 위치 정보에 관한 데이터 및 제2 객체의 움직임 추적에 관한 데이터 등을 전송할 수 있고 디스플레이 장치(120)는 제1 객체 및 제2 객체에 관한 데이터에 기반하여 제2 객체의 운동 영상을 디스플레이 할 수 있다.In various embodiments, the electronic device 110 may transmit data related to the location information of the first object image and data related to the motion tracking of the second object to the display device 120 , and the display device 120 may transmit the first object and a motion image of the second object may be displayed based on data about the second object.

일 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 특정한 데이터가 아닌 본래의 데이터를 디스플레이 장치(120)에 전송할 수 있다. 또한 전자 장치(110)는 제2 객체(1020)의 움직임을 추적한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 이 경우에 상술한 데이터들을 수신한 디스플레이 장치(120)는 예를 들어, 사람(1020)이 요가 매트리스(1010) 위에서 요가를 하는 모습의 영상을 디스플레이 할 수 있다. In an embodiment, the electronic device 110 displays original data, not specific data obtained by changing the distance value d of the first object (eg, yoga mattress 1010) image based on a specific coordinate axis, to the display device 120 . can be sent to Also, the electronic device 110 may transmit data tracking the movement of the second object 1020 to the display device 120 . In this case, the display device 120 receiving the above-described data may display, for example, an image of a person 1020 doing yoga on the yoga mattress 1010 .

다른 실시 예에서 전자 장치(110)는 제1 객체(예: 요가 매트리스(1010)) 이미지의 거리 값(d)을 특정 좌표축을 기준으로 변경한 특정한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 또한 전자 장치(110)는 제2 객체(1020)의 움직임을 추적한 데이터를 디스플레이 장치(120)에 전송할 수 있다. 이 경우에 상술한 데이터들을 수신한 디스플레이 장치(120)는 예를 들어, 사람(1020)이 요가 매트리스(1010)가 아래에 위치하지 않은 상태에서 요가를 하는 모습의 영상을 디스플레이 할 수 있다. In another embodiment, the electronic device 110 may transmit specific data obtained by changing the distance value d of the image of the first object (eg, yoga mattress 1010 ) based on a specific coordinate axis to the display device 120 . Also, the electronic device 110 may transmit data tracking the movement of the second object 1020 to the display device 120 . In this case, the display device 120 receiving the above-described data may display, for example, an image of a person 1020 doing yoga in a state where the yoga mattress 1010 is not positioned below.

본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of this document is not limited to the above-described devices.

본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B," "A, B or C," "at least one of A, B and C," and "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as “first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

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

본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(301)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(336) 또는 외장 메모리(338))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(340))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(301))의 프로세서(예: 프로세서(320))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present disclosure, one or more instructions stored in a storage medium (eg, internal memory 336 or external memory 338) readable by a machine (eg, electronic device 301) may be implemented as software (eg, the program 340) including For example, the processor (eg, the processor 320 ) of the device (eg, the electronic device 301 ) may call at least one of one or more instructions stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, the method according to various embodiments disclosed in this document may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices (eg, It can be distributed (eg downloaded or uploaded) directly, online between smartphones (eg: smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.

Claims (20)

전자 장치에 있어서,
적어도 하나의 카메라 모듈;
메모리; 및
상기 적어도 하나의 카메라 모듈 및 상기 메모리와 작동적으로 연결되는 프로세서를 포함하고, 상기 프로세서는:
제1 객체의 이미지를 촬영하고,
상기 촬영된 제1 객체의 색상(RGB) 정보를 획득하고,
동영상 촬영 명령에 응답하여, 상기 제1 객체 및 상기 제1 객체 상에서 움직이는 제2 객체에 대한 동영상 촬영을 시작하고,
상기 제1 객체의 상기 색상 정보에 기반하여, 상기 동영상 촬영에 의해 획득되는 데이터에서 상기 제1 객체에 대응하는 제1 객체 이미지를 결정하고,
상기 데이터에서 상기 제1 객체 이미지로 결정된 영역의 3차원 좌표를 지정된 거리 값에 기초하여 변경하고,
상기 제1 객체 이미지의 3차원 좌표가 변경된 데이터에 기반하여 상기 제2 객체의 움직임을 추적(tracking)하는, 전자 장치.
In an electronic device,
at least one camera module;
Memory; and
a processor operatively coupled to the at least one camera module and the memory, the processor comprising:
Taking an image of the first object,
Obtaining color (RGB) information of the photographed first object,
In response to a video recording command, starting video recording of the first object and a second object moving on the first object,
Based on the color information of the first object, determining a first object image corresponding to the first object from the data obtained by shooting the video,
Changing the three-dimensional coordinates of the area determined as the first object image in the data based on a specified distance value,
An electronic device for tracking a movement of the second object based on data in which the three-dimensional coordinates of the first object image are changed.
청구항 1에 있어서,
상기 적어도 하나의 카메라 모듈은 RGB 카메라 및 스테레오 카메라를 더 포함하고,
상기 프로세서는,
RGB 카메라로부터 획득한 이미지와 스테레오 카메라로부터 획득한 이미지를 서로 대응하도록 처리하는, 전자 장치.
The method according to claim 1,
The at least one camera module further comprises an RGB camera and a stereo camera,
The processor is
An electronic device that processes an image obtained from an RGB camera and an image obtained from a stereo camera to correspond to each other.
청구항 1에 있어서,
상기 제1 객체의 색상 정보는 상기 제1 객체의 중앙 지점의 픽셀로부터 검출한 색상 정보인, 전자 장치.
The method according to claim 1,
The color information of the first object is color information detected from a pixel at a central point of the first object.
청구항 1에 있어서,
상기 프로세서는,
상기 제2 객체의 움직임을 실시간으로 추적(tracking)하는, 전자 장치.
The method according to claim 1,
The processor is
An electronic device that tracks the movement of the second object in real time.
청구항 1에 있어서,
상기 프로세서는,
상기 제1 객체의 색상 정보 및 제1 조건에 기반하여 상기 제1 객체의 대표색을 계산하고, 상기 대표색을 메모리에 저장하는, 전자 장치.
The method according to claim 1,
The processor is
and calculating a representative color of the first object based on color information of the first object and a first condition, and storing the representative color in a memory.
청구항 1에 있어서,
상기 프로세서는,
상기 제1 객체 이미지의 거리 값을 변경한 데이터를 상기 메모리에 저장하는, 전자 장치.
The method according to claim 1,
The processor is
and storing, in the memory, data obtained by changing the distance value of the first object image.
청구항 1에 있어서,
상기 제2 객체의 위치 정보는 상기 제2 객체의 관절 정보를 포함하고,
상기 프로세서는, 상기 관절 정보에 기반하여 제2 객체의 움직임을 추적(tracking)하는, 전자 장치.
The method according to claim 1,
The location information of the second object includes joint information of the second object,
The processor, based on the joint information, tracking the movement of the second object (tracking), the electronic device.
청구항 1에 있어서,
상기 프로세서는,
상기 제2 객체의 움직임을 추적(tracking)하여 획득한 움직임 추적 데이터를 디스플레이 장치에 전송하는, 전자 장치.
The method according to claim 1,
The processor is
An electronic device for transmitting motion tracking data obtained by tracking a motion of the second object to a display device.
청구항 1에 있어서,
상기 적어도 하나의 카메라 모듈은 RGB 카메라 및 스테레오 카메라를 포함하고,
상기 프로세서는, 상기 RGB 카메라에 기반하여 상기 제1 객체의 색상 정보를 획득하고, 상기 스테레오 카메라에 기반하여 상기 객체들의 위치 정보를 획득하는, 전자 장치.
The method according to claim 1,
The at least one camera module includes an RGB camera and a stereo camera,
The processor is configured to obtain color information of the first object based on the RGB camera and obtain location information of the objects based on the stereo camera.
청구항 1에 있어서,
상기 객체들의 상기 위치 정보는, 상기 객체들의 거리 정보, 좌표 정보, 좌표의 움직임 정보, 관절 정보, 좌표축 정보를 포함하는, 전자 장치.
The method according to claim 1,
The location information of the objects includes distance information, coordinate information, coordinate movement information, joint information, and coordinate axis information of the objects.
전자 장치의 동작 방법에 있어서,
제1 객체의 이미지를 촬영하는 동작;
상기 촬영된 제1 객체의 색상(RGB) 정보를 획득하는 동작;
동영상 촬영 명령에 응답하여, 상기 제1 객체 및 상기 제1 객체 상에서 움직이는 제2 객체에 대한 동영상 촬영을 시작하는 동작;
상기 제1 객체의 상기 색상 정보에 기반하여, 상기 동영상 촬영에 의해 획득되는 데이터에서 상기 제1 객체에 대응하는 제1 객체 이미지를 결정하는 동작;
상기 데이터에서 상기 제1 객체 이미지로 결정된 영역의 3차원 좌표를 지정된 거리 값에 기초하여 변경하는 동작;
상기 제1 객체 이미지의 3차원 좌표가 변경된 데이터에 기반하여 상기 제2 객체의 움직임을 추적(tracking)하는 동작을 포함하는, 방법.
A method of operating an electronic device, comprising:
photographing an image of the first object;
obtaining color (RGB) information of the photographed first object;
in response to a video recording command, starting video recording of the first object and a second object moving on the first object;
determining a first object image corresponding to the first object from data obtained by photographing the moving picture based on the color information of the first object;
changing the three-dimensional coordinates of the region determined as the first object image in the data based on a specified distance value;
and tracking the motion of the second object based on data in which the three-dimensional coordinates of the first object image are changed.
청구항 11에 있어서,
RGB 카메라로부터 획득한 이미지와 스테레오 카메라로부터 획득한 이미지를 서로 대응하도록 처리하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
The method further comprising the operation of processing the image acquired from the RGB camera and the image acquired from the stereo camera to correspond to each other.
청구항 11에 있어서,
상기 제1 객체의 색상 정보는 상기 제1 객체의 중앙 지점의 픽셀로부터 검출한 색상 정보인, 방법.
12. The method of claim 11,
The color information of the first object is color information detected from a pixel of a central point of the first object.
청구항 11에 있어서,
상기 촬영 이미지 중 상기 제1 객체의 색상 정보에 대응하는 색상 정보를 가지는 이미지를 제1 객체 이미지로 결정하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
and determining an image having color information corresponding to the color information of the first object from among the photographed images as a first object image.
청구항 11에 있어서,
상기 제1 객체의 색상 정보 및 제1 조건에 기반하여 상기 제1 객체의 대표색을 계산하는 동작; 및
상기 대표색을 메모리에 저장하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
calculating a representative color of the first object based on color information of the first object and a first condition; and
The method further comprising the operation of storing the representative color in a memory.
청구항 11에 있어서,
상기 제1 객체 이미지의 거리 값을 변경한 데이터를 상기 메모리에 저장하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
The method further comprising the operation of storing data obtained by changing the distance value of the first object image in the memory.
청구항 11에 있어서,
상기 제2 객체의 위치 정보는 상기 제2 객체의 관절 정보를 포함하고,
상기 관절 정보에 기반하여 제2 객체의 움직임을 추적(tracking)하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
The location information of the second object includes joint information of the second object,
The method further comprising the operation of tracking the motion of the second object based on the joint information.
청구항 11에 있어서,
상기 제2 객체의 움직임을 추적(tracking)하여 획득한 움직임 추적 데이터를 디스플레이 장치에 전송하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
The method further comprising the operation of transmitting the motion tracking data obtained by tracking the motion of the second object to a display device.
청구항 11에 있어서,
RGB 카메라에 기반하여 상기 제1 객체의 색상 정보를 획득하는 동작; 및
스테레오 카메라에 기반하여 상기 객체들의 위치 정보를 획득하는 동작을 더 포함하는, 방법.
12. The method of claim 11,
obtaining color information of the first object based on an RGB camera; and
The method further comprising: obtaining position information of the objects based on a stereo camera.
청구항 11에 있어서,
상기 객체들의 상기 위치 정보는, 상기 객체들의 거리 정보, 좌표 정보, 좌표의 움직임 정보, 관절 정보, 좌표축 정보를 포함하는, 방법.
12. The method of claim 11,
The location information of the objects includes distance information, coordinate information, coordinate motion information, joint information, and coordinate axis information of the objects.
KR1020200021685A 2020-02-21 2020-02-21 Electronic device and method for tracking movements of an object KR20210106763A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200021685A KR20210106763A (en) 2020-02-21 2020-02-21 Electronic device and method for tracking movements of an object
PCT/KR2021/002061 WO2021167365A2 (en) 2020-02-21 2021-02-18 Electronic device and method for tracking movement of object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200021685A KR20210106763A (en) 2020-02-21 2020-02-21 Electronic device and method for tracking movements of an object

Publications (1)

Publication Number Publication Date
KR20210106763A true KR20210106763A (en) 2021-08-31

Family

ID=77391106

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200021685A KR20210106763A (en) 2020-02-21 2020-02-21 Electronic device and method for tracking movements of an object

Country Status (2)

Country Link
KR (1) KR20210106763A (en)
WO (1) WO2021167365A2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9011293B2 (en) * 2011-01-26 2015-04-21 Flow-Motion Research And Development Ltd. Method and system for monitoring and feed-backing on execution of physical exercise routines
KR101815975B1 (en) * 2011-07-27 2018-01-09 삼성전자주식회사 Apparatus and Method for Detecting Object Pose
KR20160146567A (en) * 2015-06-12 2016-12-21 신동한 Method and device for detecting variable and fast moving object
KR20180058139A (en) * 2016-11-23 2018-05-31 한국기술교육대학교 산학협력단 Smart health service system and smart health service method
KR20190056458A (en) * 2017-11-10 2019-05-27 전자부품연구원 Seperation Method for Overlapping Objects in Object Tracking

Also Published As

Publication number Publication date
WO2021167365A2 (en) 2021-08-26
WO2021167365A3 (en) 2021-10-14

Similar Documents

Publication Publication Date Title
KR102664688B1 (en) Method for providing shoot mode based on virtual character and electronic device performing thereof
KR102344104B1 (en) The Electronic Device Controlling the Effect for Displaying of the Image and Method for Displaying the Image
CN109756763B (en) Electronic device for processing image based on priority and operating method thereof
US11048923B2 (en) Electronic device and gesture recognition method thereof
EP3641294B1 (en) Electronic device and method for obtaining images
US11509815B2 (en) Electronic device and method for processing image having human object and providing indicator indicating a ratio for the human object
US11284020B2 (en) Apparatus and method for displaying graphic elements according to object
KR20200117695A (en) Electronic device and method for controlling camera using external electronic device
US11144197B2 (en) Electronic device performing function according to gesture input and operation method thereof
EP3621292B1 (en) Electronic device for obtaining images by controlling frame rate for external moving object through point of interest, and operating method thereof
US20230388441A1 (en) Electronic device and method for capturing image by using angle of view of camera module
KR20210106763A (en) Electronic device and method for tracking movements of an object
KR20210101571A (en) method for generating image and electronic device thereof
CN115066882A (en) Electronic device and method for performing auto-focusing
KR20210101416A (en) Image sensor controlling method and apparatus
KR20200046417A (en) Apparatus and method for creating avatar based on compensated image
EP4116850A1 (en) Biometric authentication system and electronic device for same
US20210192679A1 (en) Electronic device and omni-directional image display method of electronic device
KR20210115786A (en) Method for self-image capturing and electronic device therefor
KR20210151613A (en) Image Processing Device and Image Processing Method
KR20230082523A (en) Apparatus and method for measuring size of part of body
CN116051647A (en) Camera calibration method and electronic equipment
KR20210058339A (en) The electronic apparatus and the method for controlling thereof