KR102209741B1 - Electronic device and method for processing information associated with food - Google Patents

Electronic device and method for processing information associated with food Download PDF

Info

Publication number
KR102209741B1
KR102209741B1 KR1020200065859A KR20200065859A KR102209741B1 KR 102209741 B1 KR102209741 B1 KR 102209741B1 KR 1020200065859 A KR1020200065859 A KR 1020200065859A KR 20200065859 A KR20200065859 A KR 20200065859A KR 102209741 B1 KR102209741 B1 KR 102209741B1
Authority
KR
South Korea
Prior art keywords
electronic device
information
food
processor
image
Prior art date
Application number
KR1020200065859A
Other languages
Korean (ko)
Other versions
KR20200066278A (en
Inventor
이상현
조정찬
최지환
박지윤
손병준
오양근
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to KR1020200065859A priority Critical patent/KR102209741B1/en
Publication of KR20200066278A publication Critical patent/KR20200066278A/en
Application granted granted Critical
Publication of KR102209741B1 publication Critical patent/KR102209741B1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30128Food products

Abstract

다양한 실시예들에 따른 전자 장치는, 명령어들을 저장하는 메모리와, 적어도 하나의 카메라와, 적어도 하나의 디스플레이와, 적어도 하나의 프로세서를 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라를 통해 획득되고 음식들과 관련된 객체들을 포함하는 이미지와 함께 상기 음식들 각각의 권장 섭취량을 나타내기 위한 인디케이션들을 표시하고, 상기 음식들 중 제1 인디케이션과 관련된 음식의 권장 섭취량을 목표 섭취량으로 변경하기 위한 사용자 입력을 검출하고, 상기 사용자 입력에 기반하여, 상기 인디케이션들 중 상기 제1 인디케이션의 크기를 변경하고 상기 인디케이션들 중 상기 제1 인디케이션와 구별되는 제2 인디케이션의 크기를 변경하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. An electronic device according to various embodiments may include a memory storing instructions, at least one camera, at least one display, and at least one processor, and the at least one processor may include the at least one Indications for indicating the recommended intake of each of the foods are displayed together with an image obtained through a camera and including objects related to the foods, and the recommended intake of foods related to the first indication among the foods is a target intake A user input for changing to is detected, the size of the first indication among the indications is changed, and the size of the second indication distinguished from the first indication among the indications based on the user input Can be set to execute the stored instructions to change

Description

음식과 관련된 정보를 처리하기 위한 전자 장치 및 방법{ELECTRONIC DEVICE AND METHOD FOR PROCESSING INFORMATION ASSOCIATED WITH FOOD} Electronic devices and methods for processing food-related information {ELECTRONIC DEVICE AND METHOD FOR PROCESSING INFORMATION ASSOCIATED WITH FOOD}

다양한 실시예들은 음식과 관련된 정보를 처리하기 위한 전자 장치(electronic device) 및 그의 방법에 관한 것이다. Various embodiments relate to an electronic device and method thereof for processing information related to food.

기술의 발달로, 카메라를 통해 획득되는 이미지 내에 포함된 객체(object)를 인식하기 위한 기능을 가지는 전자 장치의 보급이 증가하고 있다. 이러한 전자 장치는 인식된 객체에 대한 정보에 기반하여 건강(health)과 관련된 정보를 제공할 수 있다. With the development of technology, the spread of electronic devices having a function for recognizing an object included in an image acquired through a camera is increasing. Such an electronic device may provide health-related information based on information on the recognized object.

미국 등록 특허 US 7,541,548 B1US registered patent US 7,541,548 B1

건강(health)에 대한 관심이 증가함에 따라, 식단의 조절에 대한 관심 또한 증가하고 있다. 한편, 스마트폰, 웨어러블 장치와 같은 전자 장치의 보급이 증가함에 따라, 전자 장치를 이용하여 건강을 관리하는 어플리케이션들이 개발되고 있다. 따라서, 전자 장치에서 직관적으로(intuitively) 음식의 섭취에 대한 정보를 제공하기 위한 방안(solution)이 요구될 수 있다. As interest in health increases, interest in diet control is also increasing. Meanwhile, as the spread of electronic devices such as smart phones and wearable devices increases, applications for managing health using electronic devices are being developed. Accordingly, a solution may be required for intuitively providing information on food intake in an electronic device.

본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다. The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems that are not mentioned can be clearly understood by those of ordinary skill in the technical field to which the present invention belongs from the following description. There will be.

다양한 실시예들에 따른 전자 장치(electronic device)는, 명령어(instruction)들을 저장하는 메모리와, 적어도 하나의 카메라와, 적어도 하나의 디스플레이와, 적어도 하나의 프로세서를 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라를 이용하여 이미지를 획득하고, 상기 이미지로부터 복수의 음식(food)들과 관련된 복수의 객체들을 식별하고, 상기 식별된 복수의 객체들 각각에 상응하는 영양 정보(nutrition information)를 획득하고, 상기 영양 정보에 기반하여, 상기 복수의 음식들과 관련된 권장 섭취량(recommended amount of intake)에 대한 정보를 획득하고, 상기 이미지를 표시하고, 상기 권장 섭취량에 대한 정보를 나타내기 위한 복수의 인디케이션(indication)들을 상기 이미지 내에 포함된 상기 복수의 객체들과 연관하여 표시하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. An electronic device according to various embodiments may include a memory storing instructions, at least one camera, at least one display, and at least one processor, and the at least one The processor acquires an image using the at least one camera, identifies a plurality of objects related to a plurality of foods from the image, and provides nutritional information corresponding to each of the identified plurality of objects. information), and based on the nutritional information, obtaining information on a recommended amount of intake related to the plurality of foods, displaying the image, and displaying information on the recommended intake amount It may be configured to execute the stored instructions to display a plurality of indications for in association with the plurality of objects included in the image.

다양한 실시예들에 따른 전자 장치는, 명령어들을 저장하는 메모리와, 적어도 하나의 카메라와, 적어도 하나의 디스플레이와, 적어도 하나의 프로세서를 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라를 통해 획득되고 음식들과 관련된 객체들을 포함하는 이미지와 함께 상기 음식들 각각의 권장 섭취량을 나타내기 위한 인디케이션들을 표시하고, 상기 음식들 중 제1 인디케이션과 관련된 음식의 권장 섭취량을 목표 섭취량으로 변경하기 위한 사용자 입력을 검출하고, 상기 사용자 입력에 기반하여, 상기 인디케이션들 중 상기 제1 인디케이션의 크기를 변경하고 상기 인디케이션들 중 상기 제1 인디케이션와 구별되는 제2 인디케이션의 크기를 변경하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. An electronic device according to various embodiments may include a memory storing instructions, at least one camera, at least one display, and at least one processor, and the at least one processor may include the at least one Indications for indicating the recommended intake of each of the foods are displayed together with an image obtained through a camera and including objects related to the foods, and the recommended intake of foods related to the first indication among the foods is a target intake A user input for changing to is detected, the size of the first indication among the indications is changed, and the size of the second indication distinguished from the first indication among the indications based on the user input Can be set to execute the stored instructions to change

다양한 실시예들에 따른 전자 장치를 동작하기 위한 방법은, 상기 전자 장치의 적어도 하나의 카메라를 이용하여 이미지를 획득하는 동작과, 상기 이미지로부터 복수의 음식(food)들과 관련된 복수의 객체들을 식별하는 동작과, 상기 복수의 객체들 각각에 상응하는 영양 정보를 획득하는 동작과, 상기 영양 정보에 기반하여 상기 복수의 음식들과 관련된 권장 섭취량(recommended amount of intake)에 대한 정보를 획득하는 동작과, 상기 권장 섭취량을 나타내기 위한 복수의 인디케이션(indication)들을 상기 이미지 내에 포함된 상기 복수의 객체들과 연관하여 표시하는 동작을 포함할 수 있다. A method for operating an electronic device according to various embodiments includes: acquiring an image using at least one camera of the electronic device, and identifying a plurality of objects related to a plurality of foods from the image An operation, obtaining nutritional information corresponding to each of the plurality of objects, obtaining information on a recommended amount of intake related to the plurality of foods based on the nutritional information, and And displaying a plurality of indications for indicating the recommended intake in association with the plurality of objects included in the image.

다양한 실시예들에 따른 전자 장치를 동작하기 위한 방법은, 상기 전자 장치의 적어도 하나의 카메라를 통해 획득되고 음식들과 관련된 객체들을 포함하는 이미지와 함께 상기 음식들 각각의 권장 섭취량을 나타내기 위한 인디케이션들을 표시하는 동작과, 상기 음식들 중 제1 인디케이션과 관련된 음식의 권장 섭취량을 목표 섭취량으로 변경하기 위한 사용자 입력을 검출하는 동작과, 상기 사용자 입력에 기반하여 상기 인디케이션들 중 상기 제1 인디케이션의 크기를 변경하고 상기 인디케이션들 중 상기 제1 인디케이션와 구별되는 제2 인디케이션의 크기를 변경하는 동작을 포함할 수 있다. A method for operating an electronic device according to various embodiments of the present disclosure includes an image obtained through at least one camera of the electronic device and including objects related to foods, and an indie for indicating a recommended intake amount of each of the foods. An operation of displaying indications, an operation of detecting a user input for changing a recommended intake amount of food related to the first indication among the foods to a target intake amount, and the first of the indications based on the user input The operation of changing the size of the indication and changing the size of the second indication distinguished from the first indication among the indications may be included.

다양한 실시예들에 따른 비-일시적 컴퓨터 판독 가능 저장 매체(non-transitory computer-readable storage medium)는 상기 저장 매체와 관련된 전자 장치의 적어도 하나의 카메라를 이용하여 이미지를 획득하는 동작과, 상기 이미지로부터 복수의 음식(food)들과 관련된 복수의 객체들을 식별하는 동작과, 상기 영양 정보에 기반하여 상기 복수의 음식들과 관련된 권장 섭취량(recommended amount of intake)에 대한 정보를 획득하는 동작과, 상기 이미지를 표시하는 동작과, 상기 권장 섭취량에 대한 정보를 나타내기 위한 복수의 인디케이션(indication)들을 상기 이미지 내에 포함된 상기 복수의 객체들과 연관하여 표시하는 동작을 실행하기 위한 하나 이상의 프로그램들을 저장할 수 있다. A non-transitory computer-readable storage medium according to various embodiments includes an operation of acquiring an image using at least one camera of an electronic device related to the storage medium, and from the image. An operation of identifying a plurality of objects related to a plurality of foods, an operation of acquiring information on a recommended amount of intake related to the plurality of foods based on the nutritional information, and the image One or more programs for executing an operation of displaying and displaying a plurality of indications for indicating information on the recommended intake in association with the plurality of objects included in the image may be stored. have.

다양한 실시예들에 따른 비-일시적 컴퓨터 판독 가능 저장 매체는 상기 저장 매체와 관련된 전자 장치의 적어도 하나의 카메라를 통해 획득되고 음식들과 관련된 객체들을 포함하는 이미지와 함께 상기 음식들 각각의 권장 섭취량을 나타내기 위한 인디케이션들을 표시하는 동작과, 상기 음식들 중 제1 인디케이션과 관련된 음식의 권장 섭취량을 목표 섭취량으로 변경하기 위한 사용자 입력을 검출하는 동작과, 상기 사용자 입력에 기반하여 상기 인디케이션들 중 상기 제1 인디케이션의 크기를 변경하고 상기 인디케이션들 중 상기 제1 인디케이션와 구별되는 제2 인디케이션의 크기를 변경하는 동작을 실행하기 위한 하나 이상의 프로그램들을 저장할 수 있다. A non-transitory computer-readable storage medium according to various embodiments is obtained through at least one camera of an electronic device associated with the storage medium and determines the recommended intake of each of the foods together with an image including objects related to the food. An operation of displaying indications for indication, an operation of detecting a user input for changing a recommended intake amount of food related to the first indication among the foods to a target intake amount, and the indications based on the user input One or more programs for executing an operation of changing the size of the first indication and changing the size of the second indication distinguished from the first indication among the indications may be stored.

다양한 실시 예들에 따른 전자 장치(electronic device) 및 그의 방법은, 음식과 관련된 객체를 포함하는 이미지를 직관적인 사용자 인터페이스(user interface)를 통해 제공함으로써, 사용자에게 적합한 음식의 섭취를 가이드할 수 있다. An electronic device and a method thereof according to various embodiments may guide intake of food suitable for a user by providing an image including an object related to food through an intuitive user interface.

본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다. The effects obtainable in the present disclosure are not limited to the above-mentioned effects, and other effects not mentioned may be clearly understood by those of ordinary skill in the technical field to which the present disclosure belongs from the following description. will be.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다.
도 2는 다양한 실시예들에 따른 전자 장치의 기능적 구성의 예를 도시한다.
도 3은 다양한 실시예들에 따른 전자 장치와 외부 전자 장치 사이의 시그널링의 예를 도시한다.
도 4는 다양한 실시예들에 따른 전자 장치의 동작의 예를 도시한다.
도 5는 다양한 실시예들에 따라 음식들과 관련된 객체들에 대한 인디케이션들을 표시하는 전자 장치의 동작의 예를 도시한다.
도 6은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 예를 도시한다.
도 7은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 다른 예를 도시한다.
도 8은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 또 다른 예를 도시한다.
도 9는 다양한 실시예들에 따라 음식들 각각의 권장 섭취량에 대한 정보를 획득하는 전자 장치의 동작의 예를 도시한다.
도 10은 다양한 실시예들에 따라 인디케이션의 표시를 변경하는 전자 장치의 동작의 예를 도시한다.
도 11은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 또 다른 예를 도시한다.
도 12는 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 또 다른 예를 도시한다.
도 13은 다양한 실시예들에 따라 음식들과 관련된 객체들과 연관 정보를 함께 표시하는 전자 장치의 동작의 예를 도시한다.
도 14는 다양한 실시예들에 따른 전자 장치에서 표시되는 사용자 인터페이스의 예를 도시한다.
도 15는 다양한 실시예들에 따른 전자 장치에서 표시되는 사용자 인터페이스의 다른 예를 도시한다.
도 16은 다양한 실시예들에 따라 섭취량에 대한 정보를 획득하는 전자 장치의 동작의 예를 도시한다.
도 17은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 또 다른 예를 도시한다.
도 18은 다양한 실시예들에 따른 전자 장치에서 표시되는 이미지의 또 다른 예를 도시한다.
도 19는 다양한 실시예들에 따른 전자 장치에서 표시되는 사용자 인터페이스의 또 다른 예를 도시한다.
도 20은 다양한 실시예들에 따라 권장 섭취량과 관련된 정보를 표시하는 전자 장치의 동작의 예를 도시한다.
도 21은 다양한 실시예들에 따른 전자 장치에서 표시되는 사용자 인터페이스의 또 다른 예를 도시한다.
도 22는 다양한 실시예들에 따른 전자 장치와 다른 전자 장치 사이의 연동의 예를 도시한다.
1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.
2 illustrates an example of a functional configuration of an electronic device according to various embodiments.
3 illustrates an example of signaling between an electronic device and an external electronic device according to various embodiments.
4 illustrates an example of an operation of an electronic device according to various embodiments.
5 illustrates an example of an operation of an electronic device that displays indications on objects related to food, according to various embodiments.
6 illustrates an example of an image displayed on an electronic device according to various embodiments.
7 illustrates another example of an image displayed on an electronic device according to various embodiments of the present disclosure.
8 illustrates another example of an image displayed on an electronic device according to various embodiments.
9 illustrates an example of an operation of an electronic device obtaining information on a recommended intake amount of each food according to various embodiments.
10 illustrates an example of an operation of an electronic device that changes the display of an indication according to various embodiments.
11 illustrates another example of an image displayed on an electronic device according to various embodiments.
12 illustrates another example of an image displayed on an electronic device according to various embodiments.
13 illustrates an example of an operation of an electronic device that displays objects related to food and related information together according to various embodiments.
14 illustrates an example of a user interface displayed on an electronic device according to various embodiments.
15 illustrates another example of a user interface displayed on an electronic device according to various embodiments.
16 illustrates an example of an operation of an electronic device for obtaining information on an intake amount according to various embodiments.
17 illustrates another example of an image displayed on an electronic device according to various embodiments of the present disclosure.
18 illustrates another example of an image displayed on an electronic device according to various embodiments.
19 illustrates another example of a user interface displayed on an electronic device according to various embodiments.
20 illustrates an example of an operation of an electronic device displaying information related to a recommended intake amount according to various embodiments.
21 illustrates another example of a user interface displayed on an electronic device according to various embodiments.
22 illustrates an example of interworking between an electronic device and another electronic device according to various embodiments.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1, in a network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (for example, a short-range wireless communication network), or a second network 199 It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input device 150, an audio output device 155, a display device 160, an audio module 170, and a sensor module ( 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or antenna module 197 ) Can be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).

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

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

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

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

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

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 155 may output an sound signal to the outside of the electronic device 101. The sound output device 155 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 an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

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

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

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

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

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

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

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

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101. 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).

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

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, electronic device 102, electronic device 104, or server 108). It is possible to support establishment and communication through the established communication channel. The communication module 190 operates independently of the processor 120 (eg, an application processor), and may include one or more communication processors that support direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 190 is a wireless communication module 192 (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 194 (eg : A LAN (local area network) communication module, or a power line communication module) may be included. Among these communication modules, a corresponding communication module is a first network 198 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a second network 199 (for example, a cellular network, the Internet, or It can communicate with external electronic devices through a computer network (for example, 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 separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 in a communication network such as the first network 198 or the second network 199. The electronic device 101 can be checked and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 하나 이상의 안테나들을 포함할 수 있고, 이로부터, 제 1 네트워크 198 또는 제 2 네트워크 199와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다.The antenna module 197 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside. According to an embodiment, the antenna module 197 may include one or more antennas, from which at least one antenna suitable for a communication method used in a communication network such as a first network 198 or a second network 199, For example, it may be selected by the communication module 190. The signal or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( E.g. commands or data) can be exchanged with each other.

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

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.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. The electronic device according to the embodiment of the present 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 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and 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 substitutes of the corresponding embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or a plurality of the items unless clearly indicated otherwise in a related context. In this document, “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 Each of the phrases such as "at least one of B, or C" may include all possible combinations of items listed together in the corresponding phrase among the phrases. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other corresponding components, and the components may be referred to in other aspects (eg, importance or Order) is not limited. Some (eg, a first) component is referred to as “coupled” or “connected” with or without the terms “functionally” or “communicatively” to another (eg, second) component. When mentioned, it means that any of the above components can be connected to the other components directly (eg by wire), wirelessly, or via a third component.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits. The module may be an integrally configured component or a minimum unit of the component or a part thereof 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)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (for example, the program 140) including them. For example, the processor (eg, the processor 120) of the device (eg, the electronic device 101) may call and execute at least one command among one or more commands stored from a storage medium. This makes it possible for the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here,'non-transient' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term refers to a case where data is semi-permanently stored It does not distinguish between temporary storage cases.

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

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, a module or program) of the above-described components may include a singular number 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 in the same or similar to that 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 sequentially, parallel, repeatedly, or heuristically executed, or one or more of the above operations are executed in a different order or omitted. Or one or more other actions may be added.

도 2는 다양한 실시예들에 따른 전자 장치의 기능적 구성의 예를 도시한다. 이러한 기능적 구성은 도 1에 도시된 전자 장치(101)에 포함되거나 전자 장치(101) 내에서 실행될 수 있다. 2 illustrates an example of a functional configuration of an electronic device according to various embodiments. Such a functional configuration may be included in the electronic device 101 illustrated in FIG. 1 or may be executed within the electronic device 101.

도 2를 참조하면, 전자 장치(101)는 프로세서(120), 메모리(130), 표시 장치(160), 센서 모듈(176), 카메라 모듈(180), 및 통신 모듈(190)을 포함할 수 있다. Referring to FIG. 2, the electronic device 101 may include a processor 120, a memory 130, a display device 160, a sensor module 176, a camera module 180, and a communication module 190. have.

다양한 실시예들에서, 프로세서(120)는 도 1에 도시된 프로세서(120)을 포함할 수 있고, 메모리(130)는 도 1에 도시된 메모리(130)을 포함할 수 있고, 표시 장치(160)는 도 1에 도시된 센서 모듈(176)을 포함할 수 있고, 카메라 모듈(180)은 도 1에 도시된 카메라 모듈(180)을 포함할 수 있으며, 통신 모듈(190)은 도 1에 도시된 통신 모듈(190) 또는 도 1에 도시된 인터페이스(177) 중 적어도 하나를 포함할 수 있다. In various embodiments, the processor 120 may include the processor 120 illustrated in FIG. 1, and the memory 130 may include the memory 130 illustrated in FIG. 1, and the display device 160 ) May include the sensor module 176 shown in FIG. 1, the camera module 180 may include the camera module 180 shown in FIG. 1, and the communication module 190 is shown in FIG. It may include at least one of the communication module 190 or the interface 177 shown in FIG. 1.

다양한 실시예들에서, 프로세서(120)는 이미지 처리 모듈(210), 생체(biometric) 정보 처리 모듈(240), 및 렌더링(rendering) 모듈(270)을 포함하거나, 메모리(130)에 포함된 명령어(instruction)들을 실행함으로써 이미지 처리 모듈(210), 생체(biometric) 정보 처리 모듈(240), 및 렌더링(rendering) 모듈(270)을 구동할 수 있다. In various embodiments, the processor 120 includes an image processing module 210, a biometric information processing module 240, and a rendering module 270, or instructions included in the memory 130 By executing the (instructions), the image processing module 210, the biometric information processing module 240, and the rendering module 270 may be driven.

다양한 실시예들에서, 이미지 처리 모듈(210)은 카메라 모듈(180)(예: 적어도 하나의 카메라)을 통해 획득되는 이미지를 처리할 수 있다. 상기 이미지는 음식과 관련될 수 있다. 예를 들면, 상기 이미지는 복수의 음식들과 관련된 복수의 객체들을 포함할 수 있다. 다양한 실시예들에서, 이미지 처리 모듈(210)은 인공지능 서비스를 위한 어플리케이션(예: 빅스비 비젼(bixby vision)TM)으로 참조될 수 있다. 다양한 실시예들에서, 이미지 처리 모듈(210)은 특징점 추출부(feature point extractor)(212), 스케일 추정부(scale estimator)(214), 면 검출부(surface detector)(216), 이미지 분할부(image segmentation unit)(218), 트래킹부(trackor)(220), 객체 인식부(object recognizer)(222), 및 음성 인식부(voice recognizer)(224)를 포함할 수 있다. In various embodiments, the image processing module 210 may process an image acquired through the camera module 180 (eg, at least one camera). The image may relate to food. For example, the image may include a plurality of objects related to a plurality of foods. In various embodiments, the image processing module 210 may be referred to as an application (eg, bixby vision TM ) for an artificial intelligence service. In various embodiments, the image processing module 210 includes a feature point extractor 212, a scale estimator 214, a surface detector 216, and an image segmentation unit. An image segmentation unit 218, a tracker 220, an object recognizer 222, and a voice recognizer 224 may be included.

다양한 실시예들에서, 특징점 추출부(212)는 카메라 모듈(180)을 통해 획득되는 이미지의 주요 피사체(main subject for photography)가 무엇인지를 식별하기 위해 상기 이미지로부터 적어도 하나의 특징점을 추출할 수 있다. 다양한 실시예들에서, 특징점 추출부(212)는 상기 이미지 내에 포함된 복수의 객체들 중에서 주요 객체를 식별하기 위해 적어도 하나의 특징점을 추출할 수 있다. 다양한 실시예들에서, 특징점 추출부(212)는 상기 이미지가 무엇에 관한 이미지인지를 식별하기 위해 적어도 하나의 특징점을 추출할 수 있다. 예를 들면, 프로세서(120)(또는 이미지 처리 모듈(210))는 특징점 추출부(212)를 이용하여 상기 이미지로부터 적어도 하나의 특징점을 추출함으로써, 상기 이미지가 음식과 관련됨을 식별할 수 있다. In various embodiments, the feature point extracting unit 212 may extract at least one feature point from the image to identify what is the main subject for photography of the image acquired through the camera module 180. have. In various embodiments, the feature point extracting unit 212 may extract at least one feature point to identify a major object from among a plurality of objects included in the image. In various embodiments, the feature point extracting unit 212 may extract at least one feature point to identify what the image is about. For example, the processor 120 (or the image processing module 210) may identify that the image is related to food by extracting at least one feature point from the image using the feature point extracting unit 212.

다양한 실시예들에서, 스케일 추정부(214)는 카메라 모듈(180)을 통해 획득되는 이미지와 관련된 깊이 정보(depth information)(및/또는 길이 정보(length information))에 기반하여 상기 이미지 내에 포함된 객체와 관련된 음식의 양(부피, 질량 등)을 추정할 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 2D(two dimensions)로 설정된(configured with) 상기 이미지를 3D(three dimensions) 이미지로 변경(change)하거나 변환(convert)하기 위해 획득되는 정보를 의미할 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 상기 이미지를 획득하는 동안 레이저(laser), 적외선 등과 같은 빛을 전자 장치(101)로부터 발산함으로써 획득될 수 있다. 예를 들면, 상기 깊이 정보는, 상기 이미지를 획득하는 동안 전자 장치(101)로부터 발산되는 적외선에 기반하여 반사되는 파장에 대한 정보에 기반하여, 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 서로 다른 특성을 가지는 2개 이상의 카메라들을 통해 이미지를 획득함으로써, 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 획득된 이미지의 전처리(pre-processing) 또는 후처리(post-processing)를 통해 획득될 수 있다. 예를 들면, 상기 깊이 정보는, 기준점으로부터 상기 이미지 내에 포함된 각 객체들 사이의 거리를 식별함으로써 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 좌영상을 위한 카메라 및 우영상을 위한 카메라를 이용한 스테레오 매칭 장치를 이용하여 좌영상 및 우영상의 시차를 이용하여 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 상기 이미지를 획득하는 동안 수신되는 음성 신호(예: 메뉴의 종류 및 양과 관련된 음성 신호 등)의 인식에 기반하여 획득될 수 있다. 예를 들면, 상기 깊이 정보는 트레이닝된 모델을 이용하여 카메라로부터 획득된 하나의 이미지로부터 획득될 수 있다. 다양한 실시예들에서, 스케일 추정부(214)는 상기 깊이 정보에 기반하여 상기 객체의 크기를 추정함으로써, 상기 객체와 관련된 음식의 양을 추정할 수 있다. In various embodiments, the scale estimating unit 214 is included in the image based on depth information (and/or length information) related to the image acquired through the camera module 180. You can estimate the amount of food (volume, mass, etc.) associated with an object. In various embodiments, the depth information may mean information obtained to change or convert the image configured with two dimensions (2D) into a three dimensions (3D) image. have. In various embodiments, the depth information may be obtained by emitting light such as a laser or infrared light from the electronic device 101 while acquiring the image. For example, the depth information may be obtained based on information on a wavelength reflected based on infrared rays emitted from the electronic device 101 while acquiring the image. In various embodiments, the depth information may be obtained by acquiring an image through two or more cameras having different characteristics. In various embodiments, the depth information may be obtained through pre-processing or post-processing of the obtained image. For example, the depth information may be obtained by identifying a distance between each object included in the image from a reference point. In various embodiments, the depth information may be obtained by using a parallax between the left image and the right image using a stereo matching device using a camera for a left image and a camera for a right image. In various embodiments, the depth information may be obtained based on recognition of a voice signal (eg, a voice signal related to a type and quantity of a menu, etc.) received while acquiring the image. For example, the depth information may be obtained from one image acquired from a camera using a trained model. In various embodiments, the scale estimating unit 214 may estimate the size of the object based on the depth information, thereby estimating the amount of food associated with the object.

다양한 실시예들에서, 면 검출부(216)는 카메라 모듈(180)을 통해 획득되는 이미지에 기반하여, 상기 이미지 내의 객체의 평면(surface), 곡률(curvature), 또는 질감(texture) 중 적어도 하나에 대한 정보를 획득할 수 있다. 면 검출부(216)는 상기 획득된 정보에 적어도 기반하여 상기 객체가 음식과 관련됨을 인식하기 위한 정보를 획득할 수 있다. In various embodiments, the surface detection unit 216 determines at least one of a surface, a curvature, or a texture of the object in the image based on the image acquired through the camera module 180. You can get information about it. The surface detection unit 216 may acquire information for recognizing that the object is related to food based at least on the acquired information.

다양한 실시예들에서, 이미지 분할부(218)는 카메라 모듈(180)을 통해 획득되는 이미지로부터 상기 이미지 내에 포함된 객체를 분할할 수 있다. 다양한 실시예들에서, 이미지 분할부(218)는, 상기 이미지의 연속성에 대한 정보, 상기 이미지와 관련된 깊이 정보, 상기 이미지를 구성하는 색깔들의 정보, 상기 이미지와 관련된 돌극성(saliency) 맵(예: 상기 이미지 내의 각 픽셀들의 고유 품질(unique quality에 대한 데이터)에 대한 정보, 또는 상기 이미지와 관련된 인덱싱 정보에 적어도 기반하여, 상기 이미지로부터 객체를 식별하거나 추출할 수 있다. 예를 들면, 이미지 분할부(218)는, 상기 객체가 어떤 음식과 관련되는지를 인식하기 위해, 상기 객체를 상기 이미지로부터 분할할 수 있다. 다양한 실시예들에서, 상기 분할된 객체에 대한 정보는, 인식(recognition)을 위해 메모리(130)에 저장된 데이터베이스(database)에 제공될 수 있다. 예를 들면, 프로세서(120)는 상기 객체에 대한 정보를 이용하여 상기 데이터베이스를 검색(search 또는 retrieve)함으로써, 상기 객체가 어떤 음식과 관련되는지를 식별할 수 있다. 다양한 실시예들에서, 상기 분할된 객체에 대한 정보는, 인식을 위해 통신 모듈(190)을 통해 전자 장치(101)와 관련된 외부 전자 장치(예: 서버(108) 등)에게 제공될 수 있다. 예를 들면, 상기 외부 전자 장치는 상기 수신된 객체에 대한 정보를 이용하여 상기 외부 전자 장치에 포함된 데이터베이스를 검색함으로써 상기 객체가 어떤 음식과 관련되는지를 식별할 수 있다. In various embodiments, the image dividing unit 218 may divide an object included in the image from an image acquired through the camera module 180. In various embodiments, the image segmentation unit 218 includes information on the continuity of the image, depth information related to the image, information on colors constituting the image, and a saliency map related to the image (e.g. : An object can be identified or extracted from the image based at least on information on the unique quality (data on unique quality) of each pixel in the image or indexing information related to the image. The installment plan 218 may divide the object from the image in order to recognize which food the object is associated with. In various embodiments, the information on the segmented object is a recognition (recognition). It may be provided to a database stored in the memory 130. For example, the processor 120 searches (search or retrieve) the database using information on the object, In various embodiments, the information on the divided object is an external electronic device (for example, the server 108) related to the electronic device 101 through the communication module 190 for recognition. ), etc.) For example, the external electronic device can identify which food is related to the object by searching a database included in the external electronic device using the information on the received object. I can.

다양한 실시예들에서, 트래킹 부(220)는 카메라 모듈(180)을 통해 획득되고 있는(being acquired) 이미지로부터 상기 이미지 내에 포함된 주요 객체(예: 음식과 관련된 객체)를 추적할 수 있다. 다양한 실시예들에서, 트래킹 부(220)는 카메라 모듈(180)을 통해 획득되고 있는 이미지 내에 포함된 미리 결정된(predetermined) 마커(marker)를 추적할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 트래킹 부(220)를 이용하여, 상기 획득되고 있는(being acquired) 이미지의 상태가 변경되는지 여부 또는 상기 이미지의 획득하는 사용자의 의도(intention)가 변경되는지 여부를 모니터링할 수 있다. In various embodiments, the tracking unit 220 may track a major object (eg, an object related to food) included in the image from an image being acquired through the camera module 180. In various embodiments, the tracking unit 220 may track a predetermined marker included in an image being acquired through the camera module 180. In various embodiments, the processor 120 uses the tracking unit 220 to determine whether the state of the image being acquired is changed or the user's intention to acquire the image. You can monitor whether it changes.

다양한 실시예들에서, 객체 인식부(222)는 이미지 분할부(218)를 통해 분할된 객체가 어떤 음식과 관련된지를 인식할 수 있다. 예를 들면, 객체 인식부(222)는 상기 분할된 객체가 포크 커틀릿(pork cutlet)과 관련됨을 인식할 수 있다. 객체 인식부(222)는, 상기 인식을 위해, 상기 외부 전자 장치와 연동하거나 메모리(130)에 저장된 상기 데이터베이스와 연동될 수 있다. 다양한 실시예들에서, 객체 인식부(222)는 상기 객체와 관련된 음식과 관련된 연관 정보(association information)를 획득할 수 있다. 예를 들면, 객체 인식부(222)는 상기 객체와 관련된 음식의 단위 당 칼로리에 대한 정보 또는 상기 음식의 구성 성분들(예: 탄수화물, 단백질, 지방, 비타민 등)에 대한 정보를 획득하기 위한 파라미터들을 획득할 수 있다. 예를 들면, 객체 인식부(222)는, 상기 객체와 관련된 파장을 이용하여, 상기 객체가 상기 음식과 관련됨을 인식할 수 있다. 다양한 실시예들에서, 프로세서(120)는 객체 인식부(222)에 의해 획득된 데이터에 기반하여, 상기 정보의 획득을 위해, 음식과 관련된 데이터를 포함하는 메모리(130)에 저장된 데이터베이스를 검색하거나, 외부 전자 장치(예: 빅 데이터 서버)와의 시그널링을 수행할 수 있다. 프로세서(120)는 상기 검색 또는 상기 시그널링에 적어도 기반하여, 전자 장치(101)의 데이터베이스 내의 테이블 또는 외부 전자 장치에 저장된 데이터 베이스 내의 테이블을 이용하여 상기 음식을 구성하는 구성 성분(또는 영양 성분)들을 획득할 수 있다. In various embodiments, the object recognition unit 222 may recognize which food the divided object is related to through the image division unit 218. For example, the object recognition unit 222 may recognize that the divided object is related to a pork cutlet. The object recognition unit 222 may interlock with the external electronic device or the database stored in the memory 130 for the recognition. In various embodiments, the object recognition unit 222 may obtain association information related to food related to the object. For example, the object recognition unit 222 is a parameter for acquiring information on calories per unit of food related to the object or information on constituents of the food (eg, carbohydrates, proteins, fats, vitamins, etc.) Can be obtained. For example, the object recognition unit 222 may recognize that the object is related to the food by using a wavelength related to the object. In various embodiments, the processor 120 searches a database stored in the memory 130 including data related to food in order to obtain the information based on the data acquired by the object recognition unit 222 , It is possible to perform signaling with an external electronic device (eg, a big data server). The processor 120 may use a table in a database of the electronic device 101 or a table in a database stored in an external electronic device, based at least on the search or the signaling, to select components (or nutritional components) constituting the food. Can be obtained.

다양한 실시예들에서, 음성 인식부(224)는 상기 이미지를 획득하는 동안 수신되거나 상기 이미지를 획득한 후 지정된 시간 이내에 수신되는 음성 명령(voice command)을 인식할 수 있다. 예를 들면, 음성 인식부(224)는, 마이크로폰(또는 트랜스듀서(transducer))를 이용하여 상기 이미지를 획득하는 동안 또는 상기 이미지를 획득한 후 지정된 시간 이내에서 상기 음성 명령을 수신할 수 있다. 음성 인식부(224)는, 메모리(130)에 저장된 음성 인식과 관련된 데이터베이스를 검색하거나 외부 전자 장치(예: 음성 인식 서버)와의 시그널링을 통해 상기 음성 명령을 인식할 수 있다. 음성 인식부(224)는, 상기 인식된 음성 명령이 상기 이미지와 관련된다고 식별하는 경우, 상기 음성 명령에 대한 정보를 프로세서(120)와 관련된 다양한 구성요소들(예: 이미지 처리 모듈 내의 구성요소들, 생체 정보 처리 모듈(240), 렌더링 모듈(270) 등)에게 제공할 수 있다. In various embodiments, the voice recognition unit 224 may recognize a voice command received while acquiring the image or within a specified time after acquiring the image. For example, the voice recognition unit 224 may receive the voice command while acquiring the image using a microphone (or a transducer) or within a specified time after acquiring the image. The voice recognition unit 224 may search a database related to voice recognition stored in the memory 130 or recognize the voice command through signaling with an external electronic device (eg, a voice recognition server). When it is identified that the recognized voice command is related to the image, the voice recognition unit 224 stores information on the voice command to various components related to the processor 120 (eg, components in the image processing module). , Biometric information processing module 240, rendering module 270, etc.).

다양한 실시예들에서, 생체 정보 처리 모듈(240)은 사용자의 생체 정보(biometric information)를 처리할 수 있다. 다양한 실시예들에서, 상기 생체 정보는, 전자 장치(101)에 포함된 센서 모듈(176)을 통해 획득될 수 있다. 다양한 실시예들에서, 상기 생체 정보는, 전자 장치(101)와 연동된 도 1에 도시된 전자 장치(102)와 같은 다른 전자 장치(예: 웨어러블 장치 등)로부터 획득될 수 있다. 다양한 실시예들에서, 생체 정보 처리 모듈(240)은 음식 관리부(food manager)(242), 스케줄러(scheduler)(244), 및 사용자 프로파일 데이터베이스(user profile database)(246)를 포함할 수 있다. In various embodiments, the biometric information processing module 240 may process biometric information of a user. In various embodiments, the biometric information may be obtained through the sensor module 176 included in the electronic device 101. In various embodiments, the biometric information may be obtained from another electronic device (eg, a wearable device) such as the electronic device 102 illustrated in FIG. 1 linked to the electronic device 101. In various embodiments, the biometric information processing module 240 may include a food manager 242, a scheduler 244, and a user profile database 246.

다양한 실시예들에서, 음식 관리부(242)는 음식과 관련된 데이터베이스를 포함할 수 있다. 다양한 실시예들에서, 상기 음식과 관련된 데이터베이스는 서버 등을 통해 획득될 수 있다. 다양한 실시예들에서, 상기 음식과 관련된 데이터베이스는 상기 사용자에 의한 전자 장치(101)의 이용(use)에 의해 기록되거나 업데이트될 수 있다. 다양한 실시예들에서, 상기 음식과 관련된 데이터베이스 또는 상기 데이터베이스와 관련된 명령어들(또는 프로그램들)은 음식 인텔리전트 에이전트(food intelligent agent)로 참조될 수 있다. 다양한 실시예들에서, 상기 음식 인텔리전트 에이전트는, 상기 음식과 관련된 데이터베이스를 구성하거나 상기 음식과 관련된 데이터베이스를 이용하기 위해 이용될 수 있다. In various embodiments, the food management unit 242 may include a database related to food. In various embodiments, the food-related database may be obtained through a server or the like. In various embodiments, the food-related database may be recorded or updated by use of the electronic device 101 by the user. In various embodiments, the database related to the food or commands (or programs) related to the database may be referred to as a food intelligent agent. In various embodiments, the food intelligent agent may be used to construct a database related to the food or to use a database related to the food.

다양한 실시예들에서, 음식 관리부(242)는 상기 데이터베이스를 이용하여 음식과 관련된 정보를 제공할 수 있다. In various embodiments, the food management unit 242 may provide food-related information using the database.

다양한 실시예들에서, 스케줄러(244)는 이미지 처리 모듈(210)에 의해 인식되는 객체와 관련된 음식에 대한 연관 정보에 기반하여 전자 장치(101)과 관련된 사용자를 위한 음식의 종류 및 음식의 섭취에 대한 스케줄을 생성할 수 있다. 다양한 실시예들에서, 스케줄러(244)는 객체 인식부(222)로부터 객체와 관련된 음식의 단위 당 칼로리에 대한 정보 또는 상기 음식의 구성 성분들에 대한 정보 중 적어도 하나를 상기 연관 정보로 획득할 수 있다. 스케줄러(244)는, 상기 연관 정보에 적어도 기반하여, 상기 사용자의 신체적 특성(예: 몸무게, 키, 나이, 식습관, 체지방도 등)에 부합하는 음식의 종류가 무엇인지를 식별하거나 상기 사용자의 신체적 특성에 부합하는 섭취량이 얼마인지를 식별할 수 있다. In various embodiments, the scheduler 244 determines the type of food and the intake of food for the user related to the electronic device 101 based on the food related information related to the object recognized by the image processing module 210. You can create a schedule for it. In various embodiments, the scheduler 244 may obtain at least one of information on calories per unit of food related to the object or information on constituents of the food from the object recognition unit 222 as the related information. have. The scheduler 244, based at least on the related information, identifies what type of food is suitable for the user's physical characteristics (eg, weight, height, age, eating habits, body fat level, etc.), or You can identify how much intake that matches your characteristics.

다양한 실시예들에서, 스케줄러(244)는 상기 사용자의 신체적 특성 또는 상기 사용자의 생체 정보에 기반하여 식별된 상기 연관 정보를 처리할 수 있다. 예를 들면, 스케줄러(244)는, 상기 사용자의 신체적 특성에 부합하는 음식의 종류에 대한 정보 또는 상기 사용자의 신체적 특성에 부합하는 섭취량에 대한 정보에 적어도 기반하여, 상기 사용자 섭취한 음식의 열량에 대한 정보, 특정(certain) 영양소, 또는 특정 영양소가 포함된 음식의 섭취를 가이드하기 위한 정보를 생성할 수 있다. 스케줄러(244)는, 렌더링 모듈(270)과 연동함으로써, 상기 생성된 정보를 표시 장치(160)를 통해 표시할 수 있다. In various embodiments, the scheduler 244 may process the associated information identified based on the user's physical characteristics or the user's biometric information. For example, the scheduler 244, based at least on information on the type of food corresponding to the user's physical characteristics or information on the intake amount corresponding to the physical characteristics of the user, the calorie amount of the food consumed by the user Information about, specific nutrients, or information to guide the intake of foods containing specific nutrients can be generated. The scheduler 244 may display the generated information through the display device 160 by interworking with the rendering module 270.

다양한 실시예들에서, 사용자 프로파일 데이터베이스(246)는 전자 장치(101)과 관련된 상기 사용자의 생체 정보를 저장할 수 있다. 다양한 실시예들에서, 상기 생체 정보는 사용자의 키, 체중, 혈압, 혈당 등과 같은 건강(health) 정보를 포함할 수 있다. 다양한 실시예들에서, 상기 생체 정보는 외부 서버(예: 병원, 헬스 센터 등과 관련된 서버)로부터 획득될 수 있다. 다양한 실시예들에서, 상기 생체 정보는, 전자 장치(101)의 적어도 하나의 센서에 의해 업데이트될 수 있다. 예를 들면, 상기 생체 정보는, 전자 장치(101)과 관련된 사용자에 의해 섭취된 음식 및 사용자의 운동 등으로 인하여 소비되는 열량에 적어도 기반하여, 업데이트될 수 있다. 예를 들면, 사용자 프로파일 데이터베이스(246)는 센서 모듈(176)을 통해 획득되었던 사용자의 생체 정보 또는 다른 전자 장치(예: 웨어러블 장치)의 센서 모듈을 통해 획득되고 상기 다른 전자 장치로부터 수신된 상기 사용자의 생체 정보 중 적어도 하나에 기반하여 생성된 데이터를 저장할 수 있다. 예를 들면, 사용자 프로파일 데이터베이스(246)에 저장된 상기 데이터는, 상기 사용자의 체중 변화에 대한 정보, 상기 사용자가 섭취한 음식의 양에 대한 정보 등을 포함할 수 있다. 사용자 프로파일 데이터베이스(246)는 사용자 프로파일 데이터베이스(246)에 저장된 상기 데이터를 제공하기 위해 전자 장치(101) 내의 다른 구성요소들(예: 이미지 처리 모듈(210), 생체 정보 처리 모듈(240) 등)과 연동될 수 있다. 다양한 실시예들에서, 프로세서(120)는, 사용자 프로파일 데이터베이스(246)로부터 음식의 섭취와 관련된 정보를 획득할 수 있다. In various embodiments, the user profile database 246 may store the user's biometric information related to the electronic device 101. In various embodiments, the biometric information may include health information such as height, weight, blood pressure, blood sugar, and the like of the user. In various embodiments, the biometric information may be obtained from an external server (eg, a server related to a hospital or a health center). In various embodiments, the biometric information may be updated by at least one sensor of the electronic device 101. For example, the biometric information may be updated based at least on food consumed by the user related to the electronic device 101 and calories consumed due to exercise of the user. For example, the user profile database 246 is the user's biometric information obtained through the sensor module 176 or the user obtained through a sensor module of another electronic device (for example, a wearable device) Data generated based on at least one of the biometric information of may be stored. For example, the data stored in the user profile database 246 may include information on a change in weight of the user, information on an amount of food consumed by the user, and the like. The user profile database 246 includes other components (eg, image processing module 210, biometric information processing module 240, etc.) in the electronic device 101 to provide the data stored in the user profile database 246 Can be linked with. In various embodiments, the processor 120 may obtain information related to food intake from the user profile database 246.

다양한 실시예들에서, 렌더링 모듈(270)은 이미지 처리 모듈(210)을 통해 획득되는 정보 또는 생체 정보 처리 모듈(240)을 통해 획득되는 정보 중 적어도 하나를 표시 장치(160)을 통해 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 이미지 처리 모듈(210)을 통해 획득되는 정보를 인공지능 서비스를 제공하기 위한 어플리케이션(예: 빅스비(bixby)TM)과 관련된 사용자 인터페이스 내에서(within) 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 이미지 처리 모듈(210)을 통해 획득되는 정보를 알림(notification) 영역 또는 알림 바 내에서 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 이미지 처리 모듈(210)을 통해 획득되는 정보를 헬스 어플리케이션(예: S(samsung)-헬스TM)과 관련된 사용자 인터페이스 내에서 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 생체 정보 처리 모듈(210)을 통해 획득되는 정보를 인공지능 서비스를 제공하기 위한 어플리케이션(예: 빅스비(bixby)TM)과 관련된 사용자 인터페이스 내에서(within) 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 생체 정보 처리 모듈(210)을 통해 획득되는 정보를 알림(notification) 영역 또는 알림 바 내에서 표시할 수 있다. 다양한 실시예들에서, 렌더링 모듈(270)은 생체 정보 처리 모듈(210)을 통해 획득되는 정보를 헬스 어플리케이션(예: S(samsung)-헬스TM)과 관련된 사용자 인터페이스 내에서 표시할 수 있다. In various embodiments, the rendering module 270 may display at least one of information obtained through the image processing module 210 or information obtained through the biometric information processing module 240 through the display device 160. have. In various embodiments, the rendering module 270 provides information acquired through the image processing module 210 within a user interface related to an application (eg, bixby TM ) for providing an artificial intelligence service. ) Can be displayed. In various embodiments, the rendering module 270 may display information acquired through the image processing module 210 in a notification area or a notification bar. In various embodiments, the rendering module 270 may display information acquired through the image processing module 210 in a user interface related to a health application (eg, S(samsung)-health TM ). In various embodiments, the rendering module 270 includes information acquired through the biometric information processing module 210 within a user interface related to an application (eg, bixby TM ) for providing an artificial intelligence service ( within) can be displayed. In various embodiments, the rendering module 270 may display information acquired through the biometric information processing module 210 in a notification area or a notification bar. In various embodiments, the rendering module 270 may display information acquired through the biometric information processing module 210 in a user interface related to a health application (eg, S(samsung)-health TM ).

도 2에 도시된 전자 장치(101)(또는 프로세서(120))는 도 4 내지 도 21을 통해 후술될 동작들을 수행할 수 있다. The electronic device 101 (or processor 120) illustrated in FIG. 2 may perform operations to be described later through FIGS. 4 to 21.

도 3은 다양한 실시예들에 따른 전자 장치와 외부 전자 장치 사이의 시그널링의 예를 도시한다. 이러한 시그널링은 도 1에 도시된 전자 장치(101) 또는 도 2에 도시된 전자 장치(101)와 도 1에 도시된 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 사이에서 야기될 수 있다. 3 illustrates an example of signaling between an electronic device and an external electronic device according to various embodiments of the present disclosure. Such signaling is performed by the electronic device 101 shown in FIG. 1 or the electronic device 101 shown in FIG. 2 and the external electronic device shown in FIG. 1 (for example, the electronic device 102, the electronic device 104, or the server). (108)) can be caused between.

도 3을 참조하면, 전자 장치(101)의 이미지 처리 모듈(210)은 카메라 모듈(180)을 통해 획득되는 이미지로부터 음식과 관련된 객체를 식별할 수 있다. 이미지 처리 모듈(210)은 통신 모듈(190)과 연동함으로써, 상기 객체에 대한 정보(또는 상기 객체를 포함하는 이미지에 대한 정보)를 외부 전자 장치(310)에게 송신할 수 있다. 다양한 실시예들에서, 외부 전자 장치(310)는 상기 이미지 내에 포함된 상기 객체를 인식하기 위한 서버일 수 있다. 다양한 실시예들에서, 외부 전자 장치(310)는 상기 수신된 객체에 대한 정보에 적어도 기반하여 상기 객체가 어떤 음식과 관련되는지 식별할 수 있다. 외부 전자 장치(310)는 상기 객체와 관련되는 것으로 식별된 음식에 대한 정보를 이미지 처리 모듈(210)에게 제공할 수 있다. 예를 들면, 상기 음식에 대한 정보는 상기 음식의 유형에 대한 데이터, 상기 음식의 영양 성분에 대한 데이터 등을 포함할 수 있다. Referring to FIG. 3, the image processing module 210 of the electronic device 101 may identify an object related to food from an image acquired through the camera module 180. The image processing module 210 may transmit information on the object (or information on an image including the object) to the external electronic device 310 by interworking with the communication module 190. In various embodiments, the external electronic device 310 may be a server for recognizing the object included in the image. In various embodiments, the external electronic device 310 may identify which food is associated with the object based at least on information on the received object. The external electronic device 310 may provide information on food identified as being related to the object to the image processing module 210. For example, the information on the food may include data on the type of the food, data on the nutritional component of the food, and the like.

다양한 실시예들에서, 이미지 처리 모듈(210)은 통신 모듈(190)과 연동함으로써, 상기 이미지에 대한 정보, 상기 객체에 대한 정보, 또는 상기 음식의 유형에 대한 정보를 외부 전자 장치(320)에게 송신할 수 있다. 다양한 실시예들에서, 외부 전자 장치(320)는 상기 이미지에 포함된 객체와 관련되는 음식에 대한 부가 정보를 제공하기 위한 서버일 수 있다. 다양한 실시예들에서, 외부 전자 장치(320)는 상기 수신된 정보에 적어도 기반하여 상기 음식에 대한 부가 정보를 식별할 수 있다. 다양한 실시예들에서, 상기 부가 정보는 상기 음식 및 상기 음식의 영양성분들, 또는 상기 음식의 칼로리 등을 의미할 수 있다. 다양한 실시예들에서, 상기 부가 정보는 상기 음식의 조리법(recipe) 또는 상기 음식과 관련된 반조리식품의 쇼핑 가이드 등을 의미할 수도 있다. In various embodiments, the image processing module 210 interlocks with the communication module 190 to provide information on the image, information on the object, or information on the type of food to the external electronic device 320. I can send it. In various embodiments, the external electronic device 320 may be a server for providing additional information on food related to an object included in the image. In various embodiments, the external electronic device 320 may identify additional information on the food based at least on the received information. In various embodiments, the additional information may mean the food and nutritional components of the food, or calories of the food. In various embodiments, the additional information may mean a recipe for the food or a shopping guide for semi-cooked foods related to the food.

다양한 실시예들에서, 상기 부가 정보는 상기 음식과 관련된 다른 음식에 대한 정보를 의미할 수 있다. 예를 들면, 외부 전자 장치(320)는 상기 수신된 정보에 적어도 기반하여 상기 음식과 관련된 다른 음식에 대한 정보를 상기 부가 정보로 식별하거나 상기 음식 또는 상기 다른 음식의 조리법(recipe)에 대한 정보를 상기 부가 정보로 식별할 수 있다. 다양한 실시예들에서, 상기 다른 음식은 상기 음식을 구성하는 영양성분들과 다른 영양성분들을 제공할 수 있는 음식을 의미할 수 있다. 다양한 실시예들에서, 상기 다른 음식은 상기 음식을 구성하는 영양성분들과 유사한 영양성분들을 제공할 수 있는 음식을 의미할 수도 있다. In various embodiments, the additional information may mean information on other foods related to the food. For example, the external electronic device 320 may identify information on another food related to the food as the additional information based at least on the received information, or obtain information on the food or a recipe of the other food. It can be identified by the additional information. In various embodiments, the other food may mean a food capable of providing nutritional components different from the nutritional components constituting the food. In various embodiments, the other food may refer to a food capable of providing nutrients similar to nutrients constituting the food.

외부 전자 장치(320)는 상기 부가 정보를 이미지 처리 모듈(210)에게 제공할 수 있다. 이미지 처리 모듈(210)은 상기 부가 정보를 다양한 방법들을 통해 처리할 수 있다. 예를 들면, 이미지 처리 모듈(210)은 상기 부가 정보를 헬스 어플리케이션의 사용자 인터페이스, 웹페이지와 관련된 사용자 인터페이스, 동영상 재생과 관련된 사용자 인터페이스 등을 통해 표시할 수 있다. The external electronic device 320 may provide the additional information to the image processing module 210. The image processing module 210 may process the additional information through various methods. For example, the image processing module 210 may display the additional information through a user interface of a health application, a user interface related to a web page, a user interface related to video playback, or the like.

다양한 실시예들에서, 이미지 처리 모듈(210)은 상기 객체와 관련된 음식에 대한 정보 또는 상기 음식과 관련된 부가 정보 중 적어도 하나를 외부 전자 장치(330)에게 송신할 수 있다. 외부 전자 장치(330)는 음식과 관련된 빅 데이터(big data)를 구성(configure)하기 위한 서버일 수 있다. 다양한 실시예들에서, 외부 전자 장치(330)는 전자 장치(101) 뿐 아니라 다른 전자 장치들로부터 음식과 관련된 정보를 수신하고, 수신된 정보에 기반하여 빅 데이터를 구성하는 서버를 의미할 수 있다. 외부 전자 장치(330)는 전자 장치(101) 등과 같은 장치로부터 요청을 수신하는 것에 기반하여, 상기 음식에 대한 정보 또는 상기 음식과 관련된 부가 정보 등을 상기 장치에게 송신할 수 있따. In various embodiments, the image processing module 210 may transmit at least one of information on food related to the object or additional information related to the food to the external electronic device 330. The external electronic device 330 may be a server for configuring big data related to food. In various embodiments, the external electronic device 330 may refer to a server that receives food-related information from not only the electronic device 101 but also other electronic devices, and configures big data based on the received information. . The external electronic device 330 may transmit information on the food or additional information related to the food to the device based on receiving a request from a device such as the electronic device 101.

다양한 실시예들에서, 이미지 처리 모듈(210)은, 이미지 처리 모듈(210)에 의해 처리된 음식과 관련된 정보, 외부 전자 장치(310)로부터 획득된 음식과 관련된 정보, 외부 전자 장치(320)로부터 획득된 음식과 관련된 정보, 또는 외부 전자 장치(330)에게 송신되거나 수신되는(도 3에서 미도시) 음식과 관련된 정보 중 적어도 하나를 생체 정보 처리 모듈(240)에게 제공할 수 있다. 예를 들면, 이미지 처리 모듈(210)은, 상기 정보를 사용자의 생체 정보와 연동하기 위하여, 상기 정보를 생체 정보 처리 모듈(240)에게 제공할 수 있다. In various embodiments, the image processing module 210 includes information related to food processed by the image processing module 210, information related to food obtained from the external electronic device 310, and At least one of acquired food-related information or food-related information transmitted to or received from the external electronic device 330 (not shown in FIG. 3) may be provided to the biometric information processing module 240. For example, the image processing module 210 may provide the information to the biometric information processing module 240 in order to link the information with the user's biometric information.

다양한 실시예들에서, 생체 정보 처리 모듈(240)은 상기 정보를 처리할 수 있다. 다양한 실시예들에서, 생처 정보 처리 모듈(240)은 사용자의 신체적 특성과 같은 사용자의 생체 정보에 기반하여 상기 정보를 가공할 수 있다. 예를 들면, 생체 정보 처리 모듈(240)은 사용자의 식습관을 모니터링하기 위해 상기 정보를 저장할 수 있다. 다른 예를 들면, 생체 정보 처리 모듈(240)은 생체 정보 처리 모듈(240)에 의해 획득된 상기 사용자의 생체 정보와 상기 정보를 연관하는 연관 정보를 생성하고, 상기 연관 정보를 표시하거나 저장할 수 있다. 생체 정보 처리 모듈(240)에 의해 처리되거나 가공된 정보는 다양한 방법들(예: 알림의 제공 등)을 통해 사용자에게 제공될 수 있다. In various embodiments, the biometric information processing module 240 may process the information. In various embodiments, the living location information processing module 240 may process the information based on the user's biometric information, such as the user's physical characteristics. For example, the biometric information processing module 240 may store the information to monitor a user's eating habits. For another example, the biometric information processing module 240 may generate the user's biometric information obtained by the biometric information processing module 240 and the association information that associates the information, and display or store the association information. . Information processed or processed by the biometric information processing module 240 may be provided to a user through various methods (eg, providing a notification).

도 3은 외부 전자 장치(310), 외부 전자 장치(320), 및 외부 전자 장치(330)가 독립적으로 구성되는 예를 도시하고 있으나, 이는 설명의 편의를 위한 것이다. 실시예들에 따라, 외부 전자 장치(310), 외부 전자 장치(320), 및 외부 전자 장치(330) 중 적어도 일부는 하나의 전자 장치로 구현될 수도 있다. 3 illustrates an example in which the external electronic device 310, the external electronic device 320, and the external electronic device 330 are independently configured, but this is for convenience of description. According to embodiments, at least some of the external electronic device 310, the external electronic device 320, and the external electronic device 330 may be implemented as one electronic device.

도 4는 다양한 실시예들에 따른 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 4 illustrates an example of an operation of an electronic device according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 4를 참조하면, 동작 410에서, 프로세서(120)는 카메라 모듈(180)을 통해 획득되는 이미지를 표시할 수 있다. 다양한 실시예들에서, 상기 이미지는 카메라 모듈(180)에 포함된 적어도 하나의 카메라를 통해 획득될 수 있다. 예를 들면, 상기 이미지는 상기 적어도 하나의 카메라 중 제1 카메라를 통해 획득된 이미지, 상기 적어도 하나의 카메라 중 상기 제1 카메라와 다른 특성을 가지는 제2 카메라를 통해 획득되는 이미지, 또는 상기 제1 카메라를 통해 획득되는 제1 이미지 및 상기 제2 카메라를 통해 획득되는 제2 이미지를 합성한 이미지일 수 있다. 다양한 실시예들에서, 상기 제1 카메라의 시야는, 상기 제2 카메라의 시야와 비교하여(relative to) 디스패리티(disparity, 또는 시차)를 가질 수 있다. 예를 들면, 상기 디스패리티는 사람의 왼쪽 눈과 사라마의 오른쪽 눈 사이의 디스패리티에 상응할 수 있다. 상기 디스패리티로 인하여, 프로세서(120)는, 상기 제1 이미지 및 상기 제2 이미지를 합성한 이미지와 관련된 깊이 정보를 획득할 수 있다. 다양한 실시예들에서, 상기 이미지는 음식들과 관련될 수 있다. 다양한 실시예들에서, 상기 이미지는 상기 음식들과 관련된 객체들을 포함할 수 있다. 예를 들면, 상기 이미지는 복수의 음식들을 촬영함으로써 획득되는 이미지일 수 있다. Referring to FIG. 4, in operation 410, the processor 120 may display an image acquired through the camera module 180. In various embodiments, the image may be acquired through at least one camera included in the camera module 180. For example, the image may be an image obtained through a first camera among the at least one camera, an image obtained through a second camera having characteristics different from the first camera among the at least one camera, or the first It may be an image obtained by combining a first image obtained through a camera and a second image obtained through the second camera. In various embodiments, the field of view of the first camera may have disparity (or parallax) relative to the field of view of the second camera. For example, the disparity may correspond to a disparity between a left eye of a person and a right eye of Sarama. Due to the disparity, the processor 120 may obtain depth information related to an image obtained by combining the first image and the second image. In various embodiments, the image may be associated with foods. In various embodiments, the image may include objects related to the foods. For example, the image may be an image obtained by photographing a plurality of foods.

동작 420에서, 프로세서(120)는 상기 이미지와 관련된 깊이 정보(depth information)를 획득할 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 상기 이미지를 획득하는 동안 전자 장치(101)로부터 발산되는(emitted) 적어도 하나의 빛에 기반하여 획득될 수 있다. 상기 적어도 하나의 빛은 상기 적어도 하나의 카메라의 시야(예: FOV(field of view) 또는 AOV(angle of view))에 상응하는 방향으로 발산될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는, 서로 다른 특성을 가지는 카메라들(예: 상기 제1 카메라 및 상기 제2 카메라)을 통해 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 상기 획득된 이미지의 후처리(post-process) 동작을 통해 획득될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 상기 이미지에 포함된 상기 객체들과 관련된 상기 음식들 각각의 양(예: 상기 음식들 각각의 부피, 상기 음식들 각각의 질량 등)을 식별하기 위해 이용될 수 있다. In operation 420, the processor 120 may obtain depth information related to the image. In various embodiments, the depth information may be acquired based on at least one light emitted from the electronic device 101 while acquiring the image. The at least one light may be emitted in a direction corresponding to the field of view (eg, field of view (FOV) or angle of view (AOV)) of the at least one camera. In various embodiments, the depth information may be obtained through cameras having different characteristics (eg, the first camera and the second camera). In various embodiments, the depth information may be obtained through a post-process operation of the acquired image. In various embodiments, the depth information may be used to identify the amount of each of the foods (e.g., the volume of each of the foods, the mass of each of the foods, etc.) associated with the objects included in the image. I can.

동작 430에서, 프로세서(120)는 상기 이미지로부터 음식들과 관련된 객체들을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 이미지로부터 적어도 하나의 특징점을 추출할 수 있다. 프로세서(120)는 상기 적어도 하나의 특징점에 기반하여 상기 이미지가 상기 음식들과 관련됨을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 트레이닝된(trained) 데이터에 기반하여, 상기 이미지가 상기 음식들과 관련됨을 식별할 수 있다. 다양한 실시예들에서, 상기 트레이닝된 데이터는 기계학습(machine learning), 신경망, 또는 딥러닝 알고리즘과 같은 인공지능 알고리즘에 기반하여 트레인될 수 있다. 상기 트레이닝된 데이터는 학습 데이터로 참조될 수 있다. 프로세서(120)는, 상기 식별에 기반하여, 이미지 처리(image processing)를 통해 상기 이미지 내의 복수의 객체들 각각의 경계에 대한 정보, 상기 복수의 객체들 각각의 면(surface)에 대한 정보, 상기 복수의 객체들 각각과 관련된 곡률에 대한 정보, 또는 상기 복수의 객체들과 관련된 질감에 대한 정보를 획득함으로써, 상기 복수의 객체들 중에서 상기 음식들과 관련된 상기 객체들을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 객체들을 상기 이미지로부터 분할할 수 있다. 예를 들면, 프로세서(120)는 상기 객체들 각각을 인식하기 위해 상기 이미지로부터 상기 객체들을 분할할 수 있다. In operation 430, the processor 120 may identify objects related to foods from the image. In various embodiments, the processor 120 may extract at least one feature point from the image. The processor 120 may identify that the image is related to the foods based on the at least one feature point. In various embodiments, processor 120 may identify that the image is associated with the foods, based on trained data. In various embodiments, the trained data may be trained based on artificial intelligence algorithms such as machine learning, neural networks, or deep learning algorithms. The trained data may be referred to as training data. Based on the identification, the processor 120 includes information on a boundary of each of the plurality of objects in the image through image processing, information on a surface of each of the plurality of objects, and The objects related to the food may be identified among the plurality of objects by acquiring information on curvature related to each of the plurality of objects or information on texture related to the plurality of objects. In various embodiments, the processor 120 may divide the objects from the image. For example, the processor 120 may divide the objects from the image to recognize each of the objects.

동작 440에서, 프로세서(120)는 상기 객체들 각각에 대한 부가 정보를 표시하기 위한 적어도 하나의 동작을 수행할 수 있다. 다양한 실시예들에서, 상기 부가 정보는, 상기 객체들 각각에 대한 인식 결과에 대한 데이터를 포함할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 음식들과 각각 관련된 상기 객체들을 인식함으로써 획득되는 다양한 종류의 상기 부가 정보를 획득하기 위해, 상기 적어도 하나의 동작을 수행할 수 있다. 상기 적어도 하나의 동작은 상기 음식들과 관련된 상기 부가 정보를 직관적으로 제공하기 위해 요구되는 동작을 의미할 수 있다. 다양한 실시예들에서, 상기 적어도 하나의 동작에 대한 설명은 도 5 내지 도 21을 통해 후술될 것이다. In operation 440, the processor 120 may perform at least one operation for displaying additional information on each of the objects. In various embodiments, the additional information may include data on a recognition result for each of the objects. In various embodiments, the processor 120 may perform the at least one operation to obtain various types of the additional information obtained by recognizing the objects respectively associated with the foods. The at least one operation may mean an operation required to intuitively provide the additional information related to the foods. In various embodiments, a description of the at least one operation will be described later with reference to FIGS. 5 to 21.

도 5는 다양한 실시예들에 따라 음식들과 관련된 객체들에 대한 인디케이션들을 표시하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 5 illustrates an example of an operation of an electronic device displaying indications on objects related to food according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 5의 동작 510 내지 동작 540은 도 4의 동작 440과 관련될 수 있다. Operations 510 to 540 of FIG. 5 may be related to operation 440 of FIG. 4.

도 5를 참조하면, 동작 510에서, 프로세서(120)는 객체들 각각에 대한 정보에 적어도 기반하여 음식들 각각의 단위 당 칼로리에 대한 제1 정보를 획득할 수 있다. 다양한 실시예들에서, 프로세서(120)는 도 4의 동작 430과 같은 동작을 통해, 상기 이미지로부터 상기 음식들과 관련된 상기 객체들을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 객체들 각각에 대한 정보에 적어도 기반하여 상기 객체들 각각을 인식할 수 있다. 예를 들면, 프로세서(120)는 상기 객체들 각각의 질감, 경계, 또는 면에 대한 데이터를 포함하는 상기 객체들 각각에 대한 정보를 이용하여 메모리(130)에 저장된 데이터베이스를 검색함으로써, 상기 객체들이 어떤 음식들에 각각 해당하는지를 인식할 수 있다. 프로세서(120)는, 상기 인식 결과에 기반하여, 메모리(130)에 저장된 데이터베이스를 검색하거나, 전자 장치(101)과 연동된 서버를 검색하거나, 웹페이지를 검색함으로써, 상기 객체들 각각과 관련된 상기 음식들 각각의 단위 당 칼로리(예: 100g 당 칼로리, 1회 제공량에 상응하는 칼로리 등)에 대한 상기 제1 정보를 획득할 수 있다. 다른 예를 들면, 프로세서(120)는 상기 식별된 객체들에 대한 정보를 이미지 인식과 관련되고 전자 장치(101)과 연동되는 외부 전자 장치(예: 서버)에게 송신할 수 있다. 상기 객체들에 대한 정보를 수신한 상기 외부 전자 장치는 상기 객체들이 어떤 음식들에 각각 해당하는지를 인식할 수 있다. 상기 외부 전자 장치는 상기 인식 결과에 대한 정보를 전자 장치(101)에게 송신할 수 있다. 프로세서(120)는 상기 수신된 정보에 기반하여, 메모리(130)에 저장된 데이터베이스를 검색하거나, 전자 장치(101)과 연동된 서버(상기 외부 전자 장치와 동일할 수도 있고 다를 수도 있음)를 검색하거나, 웹페이지를 검색함으로써, 상기 객체들 각각과 관련된 상기 음식들 각각의 단위 당 칼로리에 대한 상기 제1 정보를 획득할 수 있다. Referring to FIG. 5, in operation 510, the processor 120 may obtain first information about calories per unit of food based at least on information about each of the objects. In various embodiments, the processor 120 may identify the objects related to the food from the image through an operation such as operation 430 of FIG. 4. In various embodiments, the processor 120 may recognize each of the objects based at least on information about each of the objects. For example, the processor 120 searches a database stored in the memory 130 by using information on each of the objects including data on the texture, boundary, or surface of each of the objects, so that the objects are You can recognize which food each corresponds to. Based on the recognition result, the processor 120 searches a database stored in the memory 130, searches a server linked to the electronic device 101, or searches a web page, thereby The first information about calories per unit of food (eg, calories per 100g, calories corresponding to a serving amount, etc.) may be obtained. For another example, the processor 120 may transmit information on the identified objects to an external electronic device (eg, a server) related to image recognition and interworking with the electronic device 101. The external electronic device receiving the information on the objects may recognize which foods each of the objects correspond to. The external electronic device may transmit information on the recognition result to the electronic device 101. Based on the received information, the processor 120 searches for a database stored in the memory 130 or a server (which may be the same as or different from the external electronic device) linked with the electronic device 101, or , By searching a web page, the first information on the calories per unit of each of the foods associated with each of the objects may be obtained.

동작 520에서, 프로세서(120)는 상기 깊이 정보 및 상기 제1 정보에 적어도 기반하여 상기 음식들 각각의 총 칼로리에 대한 제2 정보를 획득할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 제1 정보에 포함된 상기 음식들 각각의 단위 당 칼로리에 대한 데이터와 상기 깊이 정보를 통해 획득되는 상기 음식들 각각의 양에 대한 데이터에 적어도 기반하여, 상기 제2 정보를 획득할 수 있다. 예를 들어, 상기 제1 정보에 포함된 음식 A의 단위 당 칼로리가 114 (kcal/100g)이고 상기 깊이 정보에 포함된 상기 음식 A의 양이 600(g)인 경우, 프로세서(120)는 상기 음식 A의 총 칼로리를 684(kcal)로 산출할 수 있다. 프로세서(120)는 상기 음식 A의 총 칼로리가 684(kcal)임을 나타내는 데이터를 포함하는 상기 제2 정보를 획득할 수 있다. 다른 예를 들어, 상기 제1 정보에 포함된 음식 B의 단위 당 칼로리가 319 (kcal/100g)이고 상기 깊이 정보에 포함된 상기 음식 B의 양이 1000(g)인 경우, 프로세서(120)는 상기 음식 B의 총 칼로리를 3188.56(kcal)로 산출할 수 있다. 프로세서(120)는 상기 음식 B의 총 칼로리가 3188.56(kcal)임을 나타내는 데이터를 포함하는 상기 제2 정보를 획득할 수 있다. In operation 520, the processor 120 may obtain second information on the total calories of each of the foods based at least on the depth information and the first information. In various embodiments, the processor 120 is at least based on data on calories per unit of each of the foods included in the first information and data on the amount of each of the foods obtained through the depth information. , It is possible to obtain the second information. For example, when the calorie per unit of food A included in the first information is 114 (kcal/100g) and the amount of food A included in the depth information is 600 (g), the processor 120 The total calories in Food A can be calculated as 684 (kcal). The processor 120 may obtain the second information including data indicating that the total calories of the food A is 684 (kcal). For another example, when the calorie per unit of food B included in the first information is 319 (kcal/100g) and the amount of food B included in the depth information is 1000 (g), the processor 120 The total calories of food B may be calculated as 3188.56 (kcal). The processor 120 may obtain the second information including data indicating that the total calories of the food B is 3188.56 (kcal).

동작 530에서, 프로세서(120)는 상기 제2 정보에 적어도 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. 프로세서(120)는 상기 이미지 내에 포함된 상기 객체들 각각과 관련된 상기 음식들 각각의 총 칼로리에 대한 상기 제2 정보에 기반하여, 상기 음식들을 모두 섭취하는 경우의 총 칼로리를 산출할 수 있다. 상기 예시의 경우, 프로세서(120)는 상기 음식 A의 총 칼로리 684(kcal)와 상기 음식 B의 총 칼로리 3188.56(kcal)를 합산한 3872.56(kcal)를 상기 음식들을 모두 섭취하는 경우의 총 칼로리로 산출할 수 있다. 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보에 적어도 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. In operation 530, the processor 120 may obtain information on the recommended intake amount for each of the foods based at least on the second information. The processor 120 may calculate total calories when all of the foods are consumed, based on the second information on the total calories of each of the foods related to each of the objects included in the image. In the above example, the processor 120 uses 3872.56 (kcal), which is a sum of 684 (kcal) total calories of the food A and 3188.56 (kcal) of the food B, as the total calories when all the foods are consumed Can be calculated. The processor 120 may obtain information on the recommended intake amount for each of the foods based at least on the information on the calculated total calories.

다양한 실시예들에서, 프로세서(120)는 상기 제2 정보 및 전자 장치(101)과 관련된 상기 사용자의 생체 정보에 적어도 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. 상기 생체 정보는, 전자 장치(101)에 저장되어 있거나 전자 장치(101)와 연동된 서버 내에 저장될 수 있다. In various embodiments, the processor 120 may obtain information on the recommended intake amount for each of the foods based at least on the second information and the user's biometric information related to the electronic device 101. The biometric information may be stored in the electronic device 101 or in a server interlocked with the electronic device 101.

예를 들면, 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보 및 전자 장치(101)과 관련된 사용자의 음식 섭취 이력에 대한 정보에 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들어, 상기 음식 섭취 이력에 대한 정보가 상기 사용자가 탄수화물을 지방 또는 단백질보다 많이 섭취하였음을 나타내는 경우, 프로세서(120)는 지방 또는 단백질과 관련된 음식의 권장 섭취량을 탄수화물과 관련된 음식의 권장 섭취량보다 높게 할당할 수 있다. 다른 예를 들어, 상기 음식 섭취 이력에 대한 정보가 상기 사용자가 이전 식사에서 과식하였음을 나타내는 경우, 프로세서(120)는 상기 음식들의 총 권장 섭취량을 기준 권장 섭취량보다 낮게 식별할 수 있다. 프로세서(120)는 상기 식별된 총 권장 섭취량에 기반하여 상기 음식들 각각의 상기 권장 섭취량에 대한 정보를 획득할 수 있다. For example, the processor 120 may obtain information on the recommended intake for each of the foods based on the calculated information on the total calories and information on the food intake history of the user related to the electronic device 101. I can. For example, when the information on the food intake history indicates that the user has consumed more carbohydrates than fat or protein, the processor 120 determines the recommended intake amount of food related to fat or protein. Can be assigned higher. For another example, when the information on the food intake history indicates that the user has overeated in a previous meal, the processor 120 may identify the total recommended intake of the foods to be lower than the reference recommended intake. The processor 120 may obtain information on the recommended intake amount of each of the foods based on the identified total recommended intake amount.

다른 예를 들면, 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보 및 상기 사용자의 질병 이력에 대한 정보에 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들어, 상기 질병 이력에 대한 정보가 상기 사용자가 당뇨를 앓고 있음을 나타내는 경우, 프로세서(120)는, 높은 당 수치를 가지는 음식의 권장 섭취량을 기준 권장 섭취량보다 낮게 식별하고, 낮은 당 수치를 가지는 음식의 권장 섭취량을 기준 권장 섭취량보다 높게 식별할 수 있다. 프로세서(120)는 상기 식별 결과에 기반하여 상기 음식들 각각의 상기 권장 섭취량에 대한 정보를 획득할 수 있다. For another example, the processor 120 may obtain information on a recommended intake amount for each of the foods based on the calculated information on the total calories and information on the user's disease history. For example, if the information on the disease history indicates that the user is suffering from diabetes, the processor 120 identifies the recommended intake of food having a high sugar level to be lower than the reference recommended intake, and determines a low sugar level Eggplants can identify the recommended intake of food higher than the standard recommended intake. The processor 120 may obtain information on the recommended intake amount of each of the foods based on the identification result.

또 다른 예를 들면, 프로세서(120)는 영양 성분에 관련된 비율에 대한 정보를 수신하고, 상기 정보에 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수있다. 예를 들어, 프로세서(120)는 단백질 비율을 80%, 탄수화물 및 지방의 비율을 각각 10%로 설정하기 위한 상기 영양 성분에 관련된 비율에 대한 입력을 수신할 수 있다. 예를 들어, 프로세서(120)는, 복수의 음식들 각각에 대한 영양 성분에 기반하여, 상기 복수의 음식들 중 단백질 함량이 높은 음식 및 탄수화물 함량이 낮은 음식들에 대한 정보를 획득할 수 있다. For another example, the processor 120 may receive information on a ratio related to a nutritional component, and obtain information on a recommended intake amount for each of the foods based on the information. For example, the processor 120 may receive an input for a ratio related to the nutritional component for setting the protein ratio to 80% and the carbohydrate and fat ratio to 10%, respectively. For example, the processor 120 may acquire information on foods having a high protein content and foods having a low carbohydrate content among the plurality of foods, based on a nutritional component of each of the plurality of foods.

또 다른 예를 들면, 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보 및 상기 사용자의 운동 이력에 대한 정보에 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들어, 상기 운동 이력에 대한 정보가 지정된 시간 구간 동안 상기 사용자가 많은 칼로리를 소모하는 운동을 함을 나타내는 경우, 프로세서(120)는, 식사 당 권장 섭취량보다 높은 값으로 상기 총 권장 섭취량을 식별할 수 있다. 프로세서(120)는, 상기 식별된 총 권장 섭취량에 기반하여, 상기 음식들 각각의 권장 섭취량에 대한 정보를 획득할 수 있다. For another example, the processor 120 may obtain information on the recommended intake amount for each of the foods based on the calculated information on the total calories and information on the user's exercise history. For example, if the information on the exercise history indicates that the user is exercising that consumes a lot of calories during a specified time period, the processor 120 identifies the total recommended intake as a value higher than the recommended intake per meal can do. The processor 120 may obtain information on the recommended intake amount of each of the foods based on the identified total recommended intake amount.

또 다른 예를 들면, 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보 및 상기 음식들 각각의 영양 성분들(예: 탄수화물, 지방, 단백질, 비타민 등)에 기반하여 상기 음식들 각각의 권장 섭취량에 대한 정보를 획득할 수 있다. For another example, the processor 120 is based on the calculated information on the total calories and the nutritional components (eg, carbohydrates, fats, proteins, vitamins, etc.) of each of the foods. You can obtain information about.

또 다른 예를 들면, 프로세서(120)는 상기 산출된 총 칼로리에 대한 정보 및 상기 사용자의 스트레스 지수에 기반하여 상기 음식들 각각의 권장 섭취량에 대한 정보를 획득할 수 있다. As another example, the processor 120 may obtain information on the recommended intake of each of the foods based on the calculated information on the total calories and the user's stress index.

다양한 실시예들에 따른 프로세서(120)는 사용자의 신체적 특성에 관련된 정보, 운동 이력에 대한 정보, 산출된 총 칼로리에 대한 정보, 상기 음식들 각각에 대한 영양 성분들에 대한 정보, 스트레스 지수, 사용자의 질병 이력에 대한 정보에 기반하여 상기 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득할 수 있는 것으로 서술되었지만, 본 개시는 이에 제한되지 않는다. The processor 120 according to various embodiments includes information related to a user's physical characteristics, information on exercise history, information on calculated total calories, information on nutritional components for each of the foods, stress index, and user Although it has been described as being able to obtain information on the recommended intake for each of the foods based on information on the disease history of, the present disclosure is not limited thereto.

동작 540에서, 프로세서(120)는 상기 권장 섭취량을 나타내기 위한 인디케이션들을 상기 객체들과 함께 표시할 수 있다. In operation 540, the processor 120 may display indications for indicating the recommended intake amount together with the objects.

예를 들면, 상기 권장 섭취량을 나타내기 위한 상기 인디케이션들 각각은 상기 권장 섭취량을 나타내는 숫자 또는 문자 중 적어도 하나로 설정될(configured with) 수 있다. 상기 숫자 또는 문자 중 적어도 하나로 설정된 상기 인디케이션들 각각은 상기 음식들과 관련된 상기 객체들 각각과의 연계를 위해, 상기 객체들 각각의 주변에서 표시될 수 있다. 예를 들면, 상기 숫자 또는 상기 문자 중 적어도 하나로 설정된 상기 인디케이션들 각각은 상기 객체들 각각에 중첩될(또는 일부 중첩(partially superimposed on)) 수 있다. 다른 예를 들면, 상기 숫자 또는 상기 문자 중 적어도 하나로 설정된 상기 인디케이션들 각각은 상기 객체들 각각 내에서(within) 표시될 수 있다. 또 다른 예를 들면, 상기 숫자 또는 상기 문자 중 적어도 하나로 설정된 상기 인디케이션들 각각은 상기 객체들 각각으로부터 지정된 거리 이내(within)에서 표시될 수 있다. 하지만 이에 한정되지 않는다. For example, each of the indications for indicating the recommended intake amount may be configured with at least one of a number or a letter indicating the recommended intake amount. Each of the indications set to at least one of the numbers or letters may be displayed around each of the objects for association with each of the objects related to the food. For example, each of the indications set to at least one of the number or the letter may be superimposed on each of the objects (or partially superimposed on). For another example, each of the indications set to at least one of the number or the letter may be displayed within each of the objects. For another example, each of the indications set to at least one of the number or the letter may be displayed within a specified distance from each of the objects. However, it is not limited thereto.

다른 예를 들면, 상기 권장 섭취량을 나타내기 위한 상기 인디케이션들 각각은 상기 권장 섭취량에 해당하는 객체의 일부를 상기 객체의 다른 일부와 비교하여(relative to) 강조함으로써 표시될 수 있다. 예를 들어, 도 6을 참조하면, 부분 이미지(600)는 상기 인디케이션들 중 하나의 인디케이션(620)을 포함할 수 있다. 프로세서(120)는 부분 이미지(600) 내의 음식(예: 포크 커틀릿)과 관련된 객체(610)에 중첩된 인디케이션(620)을 표시할 수 있다. 사용자는 인디케이션(620)의 크기와 객체(610)의 크기 사이의 차이를 통해, 상기 음식(예: 포크 커틀릿)의 권장 사용량을 인지할 수 있다. 다양한 실시예들에서, 프로세서(120)는 부분 이미지(600) 내에서 상기 권장 사용량을 나타내기 위한 다른 인디케이션(630)을 더 포함할 수 있다. 인디케이션(630)은, 상기 권장 사용량을 명시적으로 제공하기 위해, 숫자 또는 문자의 조합으로 설정될 수 있다. As another example, each of the indications for indicating the recommended intake amount may be displayed by comparing a part of the object corresponding to the recommended intake amount with another part of the object and highlighting it. For example, referring to FIG. 6, the partial image 600 may include one indication 620 of the indications. The processor 120 may display the indication 620 superimposed on the object 610 related to food (eg, pork cutlet) in the partial image 600. The user may recognize the recommended usage of the food (eg, pork cutlet) through a difference between the size of the indication 620 and the size of the object 610. In various embodiments, the processor 120 may further include another indication 630 for indicating the recommended usage in the partial image 600. The indication 630 may be set as a combination of numbers or letters in order to explicitly provide the recommended usage.

도 6은 인디케이션(630)을 시각적으로 제공하는 예를 도시하고 있으나, 이는 설명의 편의를 위한 것이다. 다양한 실시예들에서, 인디케이션(630)은 음성 알림(voice notification)과 같은 소리를 통해 출력될 수도 있다. 다양한 실시예들에서, 인디케이션(630)은 햅틱 효과를 통해 출력될 수도 있다. 하지만, 이에 제한되지 않는다. 6 illustrates an example of visually providing the indication 630, but this is for convenience of description. In various embodiments, the indication 630 may be output through a sound such as a voice notification. In various embodiments, the indication 630 may be output through a haptic effect. However, it is not limited thereto.

또 다른 예를 들면, 상기 권장 섭취량을 나타내기 위한 상기 인디케이션들 각각은 상기 객체의 일부의 형상으로 설정될 수 있다. 예를 들어, 도 7을 참조하면, 부분 이미지(700)는 상기 인디케이션들 중 하나의 인디케이션(720)을 포함할 수 있다. 프로세서(120)는 부분 이미지(700) 내의 음식과 관련된 객체(710)의 일부의 표시(representation)를 인디케이션(720)으로 이용할 수 있다. 예를 들면, 프로세서(120)는 부분 이미지(700) 내의 객체(710)에서 상기 권장 섭취량에 상응하는 크기를 가지는 부분을 추출할 수 있다. 프로세서(120)는 상기 권장 섭취량에 상응하는 객체(710)의 부분을 인디케이션(720)으로 표시할 수 있다. 다양한 실시예들에서, 인디케이션(720)는 객체(710)의 주변에서 플로팅될(floated on) 수 있다. 다양한 실시예들에서, 프로세서(120)는 인디케이션(720)의 플로팅을 표시하기 위해, 상기 권장 섭취량에 상응하는 객체(710)의 부분의 투명도를 제어할 수 있다. 예를 들면, 프로세서(120)는 상기 권장 섭취량에 상응하는 객체(710)의 부분에 해당하는 영역(730)을 반투명하게 표시할 수 있다. For another example, each of the indications for indicating the recommended intake amount may be set as a shape of a part of the object. For example, referring to FIG. 7, the partial image 700 may include one indication 720 of the indications. The processor 120 may use a representation of a part of the object 710 related to food in the partial image 700 as the indication 720. For example, the processor 120 may extract a portion having a size corresponding to the recommended intake amount from the object 710 in the partial image 700. The processor 120 may display a portion of the object 710 corresponding to the recommended intake amount as an indication 720. In various embodiments, the indication 720 may be floated on around the object 710. In various embodiments, the processor 120 may control the transparency of a portion of the object 710 corresponding to the recommended intake amount in order to display the floating of the indication 720. For example, the processor 120 may semitransparently display the area 730 corresponding to the portion of the object 710 corresponding to the recommended intake amount.

다양한 실시예들에서, 프로세서(120)는 상기 객체들 각각과 함께 상기 인디케이션들 각각을 표시할 수 있다. 예를 들어, 도 8을 참조하면, 프로세서(120)는 이미지(800)을 표시할 수 있다. 이미지(800)는 상기 음식들과 관련된 객체들을 포함할 수 있다. 예를 들면, 이미지(800)는 햄버거와 관련된 객체(810), 스테이크와 관련된 객체(820), 프렌치 프라이(french fries)와 관련된 객체(830), 빵(bread)와 관련된 객체(840), 카페 라떼(cafe latte)와 관련된 객체(850), 및 리코타 치즈 샐러드(ricotta cheese salad)와 관련된 객체(860)를 포함할 수 있다. 이미지(800)는 상기 객체들 중 적어도 일부와 관련된 인디케이션들을 포함할 수 있다. 예를 들면, 이미지(800)는 객체(810)와 관련된 인디케이션(815), 객체(820)와 관련된 인디케이션(825), 객체(830)와 관련된 인디케이션(835), 객체(840)와 관련된 인디케이션(845), 및 객체(850)와 관련된 인디케이션(855)를 포함할 수 있다. 인디케이션(815), 인디케이션(825), 인디케이션(835), 인디케이션(845), 및 인디케이션(855) 각각은 객체(810), 객체(820), 객체(830), 객체(840), 및 객체(850) 각각과 관련된 음식의 상기 권장 섭취량을 나타낼 수 있다. 예를 들면, 인디케이션(815)의 면적은 햄버거의 권장 섭취량에 상응하고, 인디케이션(825)의 면적은 스테이크의 권장 섭취량에 상응하고, 인디케이션(835)의 면적은 프렌치 프라이의 권장 섭취량에 상응하고, 인디케이션(845)의 면적은 빵의 권장 섭취량에 상응하고, 인디케이션(855)의 면적은 커피의 권장 섭취량에 상응할 수 있다. 도 8에 도시된 바와 같이, 객체(860)는 인디케이션과 연관되지 않을 수 있다. 예를 들어, 상기 사용자가 치즈를 섭취하면 알러지가 발생하는 사용자인 경우, 프로세서(120)는 동작 530과 같이 음식들 각각에 대한 권장 섭취량에 대한 정보를 획득하는 동작에서 치즈가 함유된 음식의 권장 섭취량을 0으로 설정함으로써 상기 사용자가 알러지를 유발하는 음식을 섭취하는 것을 제한할 수 있다. In various embodiments, the processor 120 may display each of the indications together with each of the objects. For example, referring to FIG. 8, the processor 120 may display an image 800. Image 800 may include objects related to the foods. For example, the image 800 is a hamburger-related object 810, a steak-related object 820, a French fries-related object 830, a bread (bread)-related object 840, a cafe. It may include an object 850 related to a cafe latte, and an object 860 related to a ricotta cheese salad. The image 800 may include indications related to at least some of the objects. For example, the image 800 includes an indication 815 related to the object 810, an indication 825 related to the object 820, an indication 835 related to the object 830, and the object 840. A related indication 845 and an indication 855 related to the object 850 may be included. Each of the indication 815, the indication 825, the indication 835, the indication 845, and the indication 855 is an object 810, an object 820, an object 830, an object 840 ), and the recommended intake amount of food associated with each of the objects 850. For example, the area of the indication 815 corresponds to the recommended intake of a hamburger, the area of the indication 825 corresponds to the recommended intake of steak, and the area of the indication 835 corresponds to the recommended intake of French fries. Correspondingly, the area of the indication 845 may correspond to the recommended intake amount of bread, and the area of the indication 855 may correspond to the recommended intake amount of coffee. As shown in FIG. 8, the object 860 may not be associated with an indication. For example, in the case of a user who is allergic to when the user consumes cheese, the processor 120 recommends food containing cheese in the operation of acquiring information on the recommended intake amount for each food as in operation 530. By setting the intake amount to 0, it is possible to limit the user's consumption of allergenic food.

일부 실시예들에서, 프로세서(120)는, 이미지(800)과 같이 복수의 음식들과 관련된 복수의 객체들 중에서, 사용자의 선호도(preference)에 부합하지 않거나 객체의 인식을 통해 획득되지 않은 음식과 관련된 객체를 블러(blur) 처리할 수 있다. 예를 들면, 프로세서(120)는, 이미지(800) 내에서 객체(810), 객체(820), 객체(830), 객체(840), 객체(850), 객체(860)를 제외한 나머지 객체들을 도 8과 같이 블러 처리할 수 있다. In some embodiments, the processor 120, among a plurality of objects related to a plurality of foods, such as the image 800, does not meet the user's preference or is not acquired through recognition of the object and You can blur related objects. For example, the processor 120, in the image 800, except for the object 810, the object 820, the object 830, the object 840, the object 850, the object 860 Blur can be processed as shown in FIG. 8.

도 8은 객체들 및 인디케이션들을 표시하는 방법들 중 하나의 예에 해당할 뿐, 다양한 실시예들에 따른 전자 장치(101)는 다양한 방법들을 통해 상기 객체들 또는 상기 인디케이션들 중 적어도 하나를 표시할 수 있다. 예를 들면, 다양한 실시예들에 따른 전자 장치(101)의 프로세서(120)는 사용자에게 유해한 음식이 선택되지 않도록, 상기 음식과 관련된 객체를 비활성화하거나, 경고(alert)를 나타내는 시각적 객체를 표시할 수 있다. 다른 예를 들면, 다양한 실시예들에 따른 전자 장치(101)의 프로세서(120)는, 음식들 각각의 영양 성분을 사용자가 인지할 수 있도록, 음식들 각각의 영양 성분 별로 상기 음식들 각각과 연계된 상기 객체들 각각의 질감, 색깔, 또는 밝기를 다르게 설정할 수 있다. 예를 들면, 프로세서(120)는, 탄수화물을 주 영양 성분으로 하는 음식을 제1 색상에 기반하여 표시하고, 단백질을 주 영양 성분으로 하는 음식을 제2 색상에 기반하여 표시할 수 있다. 하지만, 이에 제한되지 않는다. FIG. 8 is only one example of methods of displaying objects and indications, and the electronic device 101 according to various embodiments displays at least one of the objects or the indications through various methods. Can be displayed. For example, the processor 120 of the electronic device 101 according to various embodiments may deactivate an object related to the food or display a visual object indicating an alert so that food that is harmful to the user is not selected. I can. For another example, the processor 120 of the electronic device 101 according to various embodiments associates with each of the foods for each nutritional component so that the user can recognize the nutritional components of each food. The texture, color, or brightness of each of the objects may be set differently. For example, the processor 120 may display food containing carbohydrates as a main nutritional component based on a first color, and display foods containing protein as a main nutritional component based on a second color. However, it is not limited thereto.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)(또는 프로세서(120)는, 사용자 인터페이스 내에서 표시되고 카메라를 통해 획득되는 프리뷰 이미지 내에 증강 현실(AR, augmented reality)과 관련된 시각적 효과를 표시함으로써, 사용자의 음식의 섭취를 직관적으로 가이드할 수 있다. 다양한 실시예들에서, 전자 장치(101)는, 사용자가 직관적으로 권장 섭취량을 인식할 수 있도록, 증강 현실과 관련된 시각적 효과를 위한 인디케이션을 표시할 수 있다. As described above, the electronic device 101 (or the processor 120) according to various embodiments is a visual effect related to augmented reality (AR) in a preview image displayed in a user interface and acquired through a camera. By displaying, it is possible to intuitively guide the user's intake of food. In various embodiments, the electronic device 101 provides visual effects related to augmented reality so that the user can intuitively recognize the recommended intake amount. You can display an indication.

도 9는 다양한 실시예들에 따라 음식들 각각의 권장 섭취량에 대한 정보를 획득하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 9 illustrates an example of an operation of an electronic device for obtaining information on a recommended intake amount of each food according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 9의 동작 910 내지 동작 950은 도 5의 동작 530과 관련될 수 있다. Operations 910 to 950 of FIG. 9 may be related to operation 530 of FIG. 5.

도 9를 참조하면, 동작 910에서, 프로세서(120)는 상기 사용자의 생체 정보에 기반하여 상기 사용자의 권장 섭취량에 대한 정보를 획득할 수 있다. 다양한 실시예들에서, 상기 생체 정보는 상기 사용자의 질병 이력, 상기 사용자의 음식 섭취 이력, 또는 상기 사용자의 운동 이력 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에서, 상기 생체 정보는 상기 사용자에 의해 섭취된 식단에 대한 정보, 상기 사용자에 의해 수행된 건강 프로그램 또는 운동 프로그램에 대한 정보, 또는 상기 사용자의 운동량에 대한 정보 중 적어도 하나를 포함할 수 있다. 도 9는 프로세서(120)가 상기 생체 정보에 기반하여 상기 사용자의 권장 섭취량에 대한 정보를 획득하는 예를 도시하고 있으나, 이는 설명의 편의를 위한 것이다. 다양한 실시예들에서, 프로세서(120)는 상기 생체 정보와 구별되고 음식과 관련된 다른(another) 정보에 기반하여 상기 사용자의 권장 섭취량에 대한 정보를 획득할 수 있다. 일부 실시예들에서, 프로세서(120)는 식단과 관련된 사용자의 설정(setting)에 대한 정보에 기반하여 상기 사용자의 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들면, 프로세서(120)는, 상기 사용자의 설정에 대한 정보가 상기 사용자가 고단백질을 가지는 식단을 제공함을 나타내는 경우, 단백질 위주의 영양이 섭취되도록 상기 사용자의 권장 섭취량에 대한 정보를 식별할 수 있다. 다른 일부 실시예들에서, 프로세서(120)는 시간에 대한 정보에 기반하여 상기 사용자의 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들면, 프로세서(120)는, 전자 장치(101)에 의해 측정된 시간대가 저녁인 경우, 저탄수화물 위주의 영양이 섭취되도록 상기 사용자의 권장 섭취량에 대한 정보를 식별할 수 있다. Referring to FIG. 9, in operation 910, the processor 120 may obtain information on the recommended intake amount of the user based on the user's biometric information. In various embodiments, the biometric information may include at least one of the user's disease history, the user's food consumption history, or the user's exercise history. In various embodiments, the biometric information may include at least one of information on a diet consumed by the user, information on a health program or exercise program performed by the user, or information on the amount of exercise of the user. I can. FIG. 9 shows an example in which the processor 120 obtains information on the recommended intake amount of the user based on the biometric information, but this is for convenience of description. In various embodiments, the processor 120 may obtain information on the recommended intake amount of the user based on other information that is distinguished from the biometric information and related to food. In some embodiments, the processor 120 may obtain information on the recommended intake amount of the user based on information on the user's setting related to the diet. For example, when the information on the user's setting indicates that the user provides a diet having a high protein, the processor 120 may identify information on the recommended intake amount of the user so that protein-oriented nutrition is ingested. I can. In some other embodiments, the processor 120 may obtain information on the recommended intake amount of the user based on the information on time. For example, when the time zone measured by the electronic device 101 is evening, the processor 120 may identify information on the recommended intake amount of the user so that low-carb-oriented nutrition is ingested.

동작 920에서, 프로세서(120)는 상기 사용자의 권장 섭취량에 대한 상기 정보 및 상기 제2 정보에 기반하여 상기 사용자를 위한 식단을 식별할 수 있다. 예를 들면, 프로세서(120)는 상기 사용자에게 알러지를 유발하는 음식을 제외한 음식들의 조합으로 상기 사용자를 위한 식단을 식별할 수 있다. 다른 예를 들면, 프로세서(120)는 상기 이미지 내에 포함된 상기 객체들과 관련된 상기 음식들 중 메인 디쉬(main dish)에 해당하는 음식을 위주로 상기 사용자를 위한 식단을 식별할 수 있다. 또 다른 예를 들면, 프로세서(120)는 상기 사용자의 선호도를 위주로 상기 사용자를 위한 식단을 식별할 수 있다. 또 다른 예를 들면, 프로세서(120)는, 상기 사용자가 오후에 탄수화물 및 나트륨을 과다 섭취한 경우, 저탄수화물 및 저 나트륨을 가지는 음식들을 위주로 상기 사용자를 위한 식단을 식별할 수 있다. 또 다른 예를 들면, 프로세서(120)는, 상기 사용자가 다이어트 중인 경우, 저칼로리를 가지는 음식들을 위주로 상기 사용자를 위한 식단을 식별할 수 있다. In operation 920, the processor 120 may identify a diet for the user based on the information on the recommended intake amount of the user and the second information. For example, the processor 120 may identify a diet for the user as a combination of foods other than foods that cause allergies to the user. For another example, the processor 120 may identify a diet for the user based on a food corresponding to a main dish among the foods related to the objects included in the image. For another example, the processor 120 may identify a diet for the user based on the user's preference. For another example, when the user consumes excessive amounts of carbohydrates and sodium in the afternoon, the processor 120 may identify a diet for the user based on foods having low carbohydrates and low sodium. For another example, when the user is on a diet, the processor 120 may identify a diet for the user mainly on foods having low calories.

동작 930에서, 프로세서(120)는 상기 식별된 식단에 포함된 음식들 각각의 권장 섭취량에 대한 정보를 획득할 수 있다. 예를 들면, 프로세서(120)는 상기 식단에 포함된 음식들 각각에게 상기 사용자의 권장 섭취량을 분배함으로써, 상기 음식들 각각의 권장 섭취량에 대한 정보를 획득할 수 있다. In operation 930, the processor 120 may obtain information on the recommended intake amount of each food included in the identified diet. For example, the processor 120 may obtain information on the recommended intake of each of the foods by distributing the recommended intake of the user to each of the foods included in the diet.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는 상기 사용자의 선호도, 상기 사용자의 생체 정보, 또는 상기 사용자의 설정에 적어도 일부 기반하여, 상기 사용자를 위한 식단을 식별하고, 상기 식별된 식단에 포함된 음식들 각각의 권장 섭취량을 식별함으로써, 사용자가 균형 있게 음식을 섭취할 수 있도록 가이드할 수 있다. As described above, the electronic device 101 according to various embodiments identifies a diet for the user based on at least part of the user's preference, the user's biometric information, or the user's setting, and the identification By identifying the recommended intake amount of each of the foods included in the prepared diet, it is possible to guide the user to consume the food in a balanced manner.

도 10은 다양한 실시예들에 따라 인디케이션의 표시를 변경하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 10 illustrates an example of an operation of an electronic device for changing the display of an indication according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 10을 참조하면, 동작 1010에서, 프로세서(120)는 상기 권장 섭취량을 나타내기 위한 인디케이션들을 상기 객체들과 함께 표시할 수 있다. 다양한 실시예들에서, 동작 1010은 동작 540에 상응할 수 있다. Referring to FIG. 10, in operation 1010, the processor 120 may display indications for indicating the recommended intake amount together with the objects. In various embodiments, operation 1010 may correspond to operation 540.

동작 1020에서, 프로세서(120)는 상기 음식들 중 선호되는(preferred) 음식을 선택하기 위한 입력을 검출할 수 있다. 다양한 실시예들에서, 상기 입력은 다양한 속성들을 가질 수 있다. 예를 들면, 상기 입력은 싱글 탭 입력, 더블 탭 입력, 드래그 입력, 포스 터치 입력, 롱 프레스 입력, 또는 호버링(hovering) 입력을 포함할 수 있다. 다양한 실시예들에서, 상기 입력은 상기 객체들 중 적어도 하나의 객체를 선택하기 위한 입력을 포함할 수 있다. 다양한 실시예들에서, 상기 입력은 상기 인디케이션들 중 적어도 하나의 인디케이션을 선택하기 위한 입력을 포함할 수 있다. 다양한 실시예들에서, 상기 입력은 마이크로폰(또는 트랜스듀서(transducer))를 통해 입력되는 사용자의 음성 명령에 상응할 수 있다. 상기 입력은 상기 객체들 중 적어도 하나를 지칭하기 위한 음성 명령을 포함할 수 있다. 예를 들어, 상기 입력은 상기 복수의 음식들 중 하나의 음식에 대응하는 단어(예: "포크 커틀릿") 또는 상기 단어를 포함하는 문장(예: "포크 커틀릿 먹을래")을 포함할 수 있다. In operation 1020, the processor 120 may detect an input for selecting a preferred food among the foods. In various embodiments, the input may have various properties. For example, the input may include a single tap input, a double tap input, a drag input, a force touch input, a long press input, or a hovering input. In various embodiments, the input may include an input for selecting at least one of the objects. In various embodiments, the input may include an input for selecting at least one indication from among the indications. In various embodiments, the input may correspond to a user's voice command input through a microphone (or transducer). The input may include a voice command for indicating at least one of the objects. For example, the input may include a word corresponding to one of the plurality of foods (eg, “fork cutlet”) or a sentence including the word (eg, “I want to eat pork cutlet”). .

다양한 실시예들에서, 프로세서(120)는 상기 입력을 검출하는 것에 응답하여, 상기 선택된 음식에 대한 권장 섭취량을 목표 섭취량으로 변경하기 위한 정보를 표시할 수 있다. In various embodiments, in response to detecting the input, the processor 120 may display information for changing the recommended intake amount for the selected food into a target intake amount.

예를 들어, 도 11을 참조하면, 프로세서(120)는 객체(820) 또는 인디케이션(825)에 대한 상기 입력(1120)을 검출하는 것에 응답하여, 이미지(800)에 중첩된 윈도우(1125)를 표시할 수 있다. 윈도우(1125)는 상기 권장 섭취량을 목표 섭취량으로 변경하기 위한 적어도 하나의 시각적 객체(1130)를 포함할 수 있다.For example, referring to FIG. 11, in response to detecting the input 1120 for an object 820 or an indication 825, the processor 120 is a window 1125 superimposed on the image 800. Can be displayed. The window 1125 may include at least one visual object 1130 for changing the recommended intake amount to a target intake amount.

다른 예를 들어, 도 11을 참조하면, 프로세서(120)는 객체(820) 또는 인디케이션(825)에 대한 입력(1135)을 검출하는 것에 응답하여, 이미지(800)에 중첩된 적어도 하나의 시각적 객체(1140)를 표시할 수 있다. 적어도 하나의 시각적 객체(1140)는 상기 권장 섭취량을 상기 목표 섭취량으로 변경하기 위해 이미지(800) 내에서 표시될 수 있다. For another example, referring to FIG. 11, in response to detecting an input 1135 for an object 820 or an indication 825, the processor 120 The object 1140 may be displayed. At least one visual object 1140 may be displayed in the image 800 to change the recommended intake amount to the target intake amount.

동작 1030에서, 프로세서(120)는 선택된 음식에 대한 권장 섭취량을 상기 목표 섭취량으로 변경하기 위한 입력을 검출할 수 있다. 다양한 실시예들에서, 상기 목표 섭취량은, 상기 권장 섭취량과 구별될 수 있다. 다양한 실시예들에서, 상기 목표 섭취량은, 사용자에 의해 입력되는 특정 음식에 대한 섭취량을 의미할 수 있다. 예를 들어, 도 11을 참조하면, 프로세서(120)는 윈도우(1125) 내에 표시된 시각적 객체(1130)에 대한 입력을 검출할 수 있다. 다양한 실시예들에서, 시각적 객체(1130)에 대한 입력은 시각적 객체(1130)에 포함된 적어도 하나의 버튼(예: (-) 버튼 및 (+) 버튼)에 대한 입력을 포함할 수 있다. 다양한 실시예들에서, 시각적 객체(1130)에 대한 입력은 시각적 객체(1130)에 포함된 숫자(150)에 대한 입력을 포함할 수 있다. 도 11에 도시하지 않았으나, 숫자(150)에 대한 상기 입력을 검출하는 경우, 프로세서(120)는 상기 숫자를 변경하기 위한 가상 키패드를 더 표시할 수 있다. 상기 가상 키패드에 포함된 복수의 숫자키들을 통해 프로세서(120)는 상기 목표 섭취량을 식별할 수 있다. 다른 예를 들어, 도 11을 참조하면, 프로세서(120)는 인디케이션(825)의 크기(또는 면적)를 변경하기 위한 입력을 검출할 수 있다. 예를 들면, 상기 입력은 적어도 하나의 시각적 객체(1140)와 상응하는 방향을 가지는 드래그 입력을 포함할 수 있다. 또 다른 예를 들면, 상기 입력은 포스 터치와 관련된 입력을 포함할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 입력에 의해 야기되는 압력의 변화를 식별함으로써, 상기 목표 섭취량을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 입력에 기반하여 변경되는 인디케이션(825)의 크기에 기반하여, 상기 목표 섭취량을 식별할 수 있다. In operation 1030, the processor 120 may detect an input for changing the recommended intake amount for the selected food into the target intake amount. In various embodiments, the target intake may be distinguished from the recommended intake. In various embodiments, the target intake amount may mean an intake amount for a specific food input by a user. For example, referring to FIG. 11, the processor 120 may detect an input for the visual object 1130 displayed in the window 1125. In various embodiments, the input to the visual object 1130 may include an input to at least one button (eg, a (-) button and a (+) button) included in the visual object 1130. In various embodiments, the input to the visual object 1130 may include an input to the number 150 included in the visual object 1130. Although not shown in FIG. 11, when detecting the input for the number 150, the processor 120 may further display a virtual keypad for changing the number. The processor 120 may identify the target intake amount through a plurality of numeric keys included in the virtual keypad. For another example, referring to FIG. 11, the processor 120 may detect an input for changing the size (or area) of the indication 825. For example, the input may include a drag input having a direction corresponding to at least one visual object 1140. As another example, the input may include an input related to a force touch. In various embodiments, processor 120 may identify the target intake by identifying a change in pressure caused by the input. In various embodiments, the processor 120 may identify the target intake amount based on the size of the indication 825 that is changed based on the input.

동작 1040에서, 프로세서(120)는 상기 사용자에 대한 권장 섭취량 및 상기 목표 섭취량에 기반하여 상기 사용자의 식사에 할당될 남은 섭취량을 식별할 수 있다. 예를 들면, 프로세서(120)는 상기 사용자에 대한 권장 섭취량으로부터 상기 목표 섭취량을 차감함으로써, 상기 사용자의 식사에 할당될 남은 섭취량을 식별할 수 있다. In operation 1040, the processor 120 may identify a remaining intake to be allocated to the user's meal based on the recommended intake amount and the target intake amount for the user. For example, the processor 120 may identify the remaining intake to be allocated to the user's meal by subtracting the target intake from the recommended intake for the user.

동작 1050에서, 프로세서(120)는 상기 식별된 남은 섭취량에 기반하여 식단을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 목표 섭취량이 상기 선택된 음식에 대한 권장 섭취량보다 큰 경우, 동작 1010에서의 표시를 통해 포함된 음식들 중 적어도 일부의 권장 섭취량을 감소함으로써 상기 식단을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 목표 섭취량이 상기 선택된 음식에 대한 권장 섭취량보다 큰 경우, 동작 1010에서의 표시를 통해 포함된 음식들 중 적어도 일부를 제외하고, 적어도 하나의 다른 음식을 추가함으로써 상기 식단을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 목표 섭취량이 상기 선택된 음식에 대한 권장 섭취량보다 작은 경우, 동작 1010에서의 표시를 통해 포함된 음식들 중 적어도 일부의 권장 섭취량을 증가함으로써 상기 식단을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 목표 섭취량이 상기 선택된 음식에 대한 권장 섭취량보다 작은 경우, 동작 1010에서의 표시를 통해 포함된 음식들과 구별되는 적어도 하나의 다른 음식을 추가함으로써, 상기 식단을 식별할 수 있다. In operation 1050, the processor 120 may identify a diet based on the identified remaining intake amount. In various embodiments, the processor 120, when the target intake amount is greater than the recommended intake amount for the selected food, decreases the recommended intake amount of at least some of the included foods through the display in operation 1010 to reduce the recommended intake amount of the food. Can be identified. In various embodiments, the processor 120, when the target intake amount is greater than the recommended intake amount for the selected food, excluding at least some of the foods included through the display in operation 1010, at least one other food You can identify the diet by adding. In various embodiments, the processor 120, when the target intake amount is less than the recommended intake amount for the selected food, increases the recommended intake amount of at least some of the included foods through the display in operation 1010 to improve the diet. Can be identified. In various embodiments, the processor 120, when the target intake amount is less than the recommended intake amount for the selected food, by adding at least one other food that is distinguished from the included foods through the display in operation 1010, The diet can be identified.

동작 1060에서, 프로세서(120)는 상기 식별된 식단에 기반하여 인디케이션들 중 적어도 하나의 표시를 변경할 수 있다. 예를 들어, 도 12를 참조하면, 프로세서(120)는 스테이크에 대한 권장 섭취량으로부터 변경된 목표 섭취량을 나타내기 위한 인디케이션(1210)을 이미지(800) 내에서 표시할 수 있다. 인디케이션(1210)은 상기 권장 섭취량으로부터 변경된 상기 목표 섭취량을 나타내기 때문에, 인디케이션(825)보다 큰 면적을 가질 수 있다. 프로세서(120)는 상기 권장 섭취량으로부터 변경된 목표 섭취량으로 인하여 변경된 다른 인디케이션들을 이미지(800) 내에서 표시할 수 있다. 예를 들면, 프로세서(120)는 빵에 대한 권장 섭취량을 나타내는 인디케이션(845)보다 작은 면적을 가지는 인디케이션(1215)를 이미지(800) 내에서 더 표시할 수 있다. 다른 예를 들면, 프로세서(120)는 햄버거에 대한 권장 섭취량을 나타내는 인디케이션(815)보다 작은 면적을 가지는 인디케이션(1220)을 이미지(800) 내에서 더 표시할 수 있다. 또 다른 예를 들면, 프로세서(120)는 동작 540 및 동작 1010에 따른 표시 동작에서 제외되었던 리코타 치즈 샐러드를 상기 사용자를 위한 식단으로 추가할 수 있다. 프로세서(120)는 리코타 치즈 샐러드와 관련된 객체(860) 내에서 상기 리코타 치즈 샐러드의 권장 섭취량을 나타내는 인디케이션(1225)을 더 표시할 수 있다. In operation 1060, the processor 120 may change the display of at least one of the indications based on the identified diet. For example, referring to FIG. 12, the processor 120 may display an indication 1210 in the image 800 for indicating a target intake amount changed from a recommended intake amount for a steak. Since the indication 1210 represents the target intake amount changed from the recommended intake amount, the indication 1210 may have a larger area than the indication 825. The processor 120 may display other indications changed due to the target intake amount changed from the recommended intake amount in the image 800. For example, the processor 120 may further display an indication 1215 having an area smaller than the indication 845 indicating a recommended intake amount for bread in the image 800. For another example, the processor 120 may further display an indication 1220 having an area smaller than the indication 815 indicating a recommended intake amount for a hamburger in the image 800. For another example, the processor 120 may add ricotta cheese salad, which was excluded from the display operation according to operations 540 and 1010, as a diet for the user. The processor 120 may further display an indication 1225 indicating the recommended intake amount of the ricotta cheese salad in the object 860 related to the ricotta cheese salad.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는, 특정(certain) 음식에 대한 권장 섭취량을 목표 섭취량으로 변경하기 위한 입력에 기반하여 식단을 재구성하고, 상기 재구성된 식단을 이미지 내에서 증강 현실과 관련된 시각적 효과를 통해 표시할 수 있다. 다양한 실시예들에 따른 전자 장치(101)는 상기 시각적 효과의 표시를 통해 상기 사용자에게 적합한 음식의 섭취를 가이드할 수 있다. As described above, the electronic device 101 according to various embodiments reconstructs a diet based on an input for changing a recommended intake for a specific food into a target intake, and reconfigures the reconfigured diet in an image. Can be displayed through visual effects related to augmented reality. The electronic device 101 according to various embodiments may guide intake of food suitable for the user through the display of the visual effect.

도 13은 다양한 실시예들에 따라 음식들과 관련된 객체들과 연관 정보를 함께 표시하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 13 illustrates an example of an operation of an electronic device that displays objects related to food and related information together according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 13의 동작 1310 내지 동작 1340은 도 4의 동작 440과 관련될 수 있다. Operations 1310 to 1340 of FIG. 13 may be related to operation 440 of FIG. 4.

도 13을 참조하면, 동작 1310에서, 프로세서(120)는 객체들 각각에 대한 정보에 적어도 기반하여 음식들 각각의 단위 당 칼로리에 대한 제1 정보를 획득할 수 있다. 다양한 실시예들에서, 동작 1310은 도 5에 도시된 동작 510과 동일하거나 유사하게 구현될 수 있다. Referring to FIG. 13, in operation 1310, the processor 120 may obtain first information about calories per unit of food based at least on information about each of the objects. In various embodiments, operation 1310 may be implemented the same as or similar to operation 510 illustrated in FIG. 5.

동작 1320에서, 프로세서(120)는 상기 깊이 정보 및 상기 제1 정보에 적어도 기반하여 음식들 각각의 총 칼로리에 대한 제2 정보를 획득할 수 있다. 다양한 실시예들에서, 동작 1320은 도 5에 도시된 동작 520과 동일하거나 유사하게 구현될 수 있다. In operation 1320, the processor 120 may obtain second information about total calories of each food based at least on the depth information and the first information. In various embodiments, operation 1320 may be implemented the same as or similar to operation 520 illustrated in FIG. 5.

동작 1330에서, 프로세서(120)는 상기 음식들에 대한 연관 정보를 획득할 수 있다. 다양한 실시예들에서, 상기 연관 정보는 상기 음식들로부터 도출되는 정보를 의미할 수 있다. 예를 들면, 상기 연관 정보는 상기 음식들 각각의 영양 성분들의 종류, 상기 음식들 각각의 영양 성분들의 구성 비율, 상기 음식들 각각의 가격에 대한 정보, 상기 음식들 각각을 구성하는 영양 성분들에 대한 정보, 상기 음식들 각각이 판매되는 장소에 대한 정보, 상기 음식들 각각과 같이 섭취하기 좋은 다른 음식에 대한 정보, 상기 음식들 각각과 관련된 이미지(예: 스틸 이미지 또는 동영상 등)에 대한 정보, 상기 음식들 각각을 판매하는 장소와 관련된 웹페이지에 대한 정보, 상기 음식들을 포함하는 이미지를 업로드하기 위한 웹페이지에 대한 정보, 또는 상기 음식들과 관련된 객체들을 포함하는 이미지를 획득하기 위해 이용된 어플리케이션과 구별되고, 상기 어플리케이션과 연동되는 다른 어플리케이션에 대한 정보 중 하나 이상을 포함할 수 있다. 다양한 실시예들에서, 상기 연관 정보는, 전자 장치(101)의 메모리(130) 내에 저장된 데이터베이스를 통해 획득될 수도 있고, 전자 장치(101)와 연동된 서버 내에 저장된 데이터베이스를 통해 획득될 수도 있다. In operation 1330, the processor 120 may obtain related information on the foods. In various embodiments, the related information may mean information derived from the foods. For example, the related information may include the type of nutritional components of each of the foods, the composition ratio of the nutritional components of each of the foods, information about the price of each of the foods, and nutritional components constituting each of the foods. Information, information on the places where each of the foods is sold, information on other foods that are good to eat like each of the foods, information on images (eg, still images or videos) related to each of the foods, An application used to obtain information on a web page related to a place where each of the foods is sold, information on a web page for uploading an image including the food, or an image including objects related to the food It is distinguished from and may include one or more of information on other applications that are linked to the application. In various embodiments, the related information may be obtained through a database stored in the memory 130 of the electronic device 101 or may be obtained through a database stored in a server interlocked with the electronic device 101.

동작 1340에서, 프로세서(120)는 상기 객체들을 ?l마하는 이미지, 상기 제2 정보와 관련된 아이콘, 또는 음식들과 관련된 연관 정보와 관련된 적어도 하나의 아이콘 중 하나 이상을 표시할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 음식들과 관련된 상기 객체들을 포함하는 상기 이미지를 표시하는 사용자 인터페이스와 함께, 상기 이미지에 대한 정보뿐 아니라 상기 음식들과 관련된 다양한 정보를 제공하기 위해, 상기 객체들을 포함하는 이미지, 상기 제2 정보와 관련된 아이콘, 및 음식들과 관련된 연관 정보와 관련된 적어도 하나의 아이콘을 표시할 수 있다. 예를 들면, 프로세서(120)는 이미지 인식 서비스를 제공하는 어플리케이션의 음식 모드(food mode)를 통해 상기 이미지를 획득하거나 상기 어플리케이션의 노멀 모드(normal mode)를 통해 상기 이미지를 획득할 수 있다. 일 실시예에 따라, 프로세서(120)는, 상기 노멀 모드를 통해 획득한 이미지의 특징점 추출에 기반하여, 상기 획득한 이미지가 음식에 대한 이미지를 포함하는 것을 결정하는 것에 응답하여, 상기 어플리케이션의 동작 모드를 상기 음식 모드로 변경할 수도 있다. 프로세서(120)는 상기 음식들을 포함하는 영역으로 지향된 카메라를 통해 획득되는 상기 이미지(예: 프리뷰 이미지)를 상기 어플리케이션의 사용자 인터페이스를 이용하여 표시할 수 있다. 프로세서(120)는 상기 이미지가 지정된 시간 동안 고정됨(또는 유지됨)을 식별하거나 검출하는 것에 기반하여 상기 이미지 내의 주요 피사체를 식별하고, 상기 주요 피사체가 차지하는 ROI(region of interest) 영역을 식별한 후, 상기 주요 피사체를 트래킹할 수 있다. 프로세서(120)는 상기 트래킹에 기반하여 상기 주요 피사체를 상기 이미지로부터 추출하고, 상기 추출된 주요 피사체를 인식함으로써, 상기 이미지 내의 상기 객체들이 상기 음식들과 관련됨을 식별할 수 있다. 프로세서(120)는 상기 식별에 기반하여, 상기 객체들과 관련된 상기 음식들의 총 칼로리에 대한 정보를 획득하고 상기 음식들에 대한 상기 연관 정보를 획득할 수 있다. 상기 음식들의 총 칼로리에 대한 정보는, 상기 카메라를 통해 획득된 상기 음식들에 대한 깊이 정보 및 상기 식별에 대응하여 외부 전자 장치(예: 서버) 또는 메모리로부터 획득된 상기 음식들 각각에 대한 영양 정보에 기반하여 획득될 수 있다. In operation 1340, the processor 120 may display one or more of an image representing the objects, an icon related to the second information, or at least one icon related to related information related to food. In various embodiments, the processor 120, together with a user interface for displaying the image including the objects related to the foods, to provide information on the image as well as various information related to the foods. , An image including the objects, an icon related to the second information, and at least one icon related to related information related to food may be displayed. For example, the processor 120 may acquire the image through a food mode of an application providing an image recognition service or acquire the image through a normal mode of the application. According to an embodiment, the processor 120, in response to determining that the acquired image includes an image of food, based on the extraction of feature points of the image acquired through the normal mode, the operation of the application It is also possible to change the mode to the food mode. The processor 120 may display the image (eg, a preview image) acquired through a camera directed to the area containing the food, using a user interface of the application. The processor 120 identifies a main subject in the image based on identifying or detecting that the image is fixed (or maintained) for a specified time, and identifies a region of interest (ROI) region occupied by the main subject, The main subject can be tracked. The processor 120 may identify that the objects in the image are related to the food by extracting the main subject from the image based on the tracking and recognizing the extracted main subject. Based on the identification, the processor 120 may obtain information on total calories of the foods related to the objects and obtain the related information on the foods. The information on the total calories of the foods is depth information on the foods obtained through the camera and nutritional information on each of the foods obtained from an external electronic device (eg, a server) or a memory in response to the identification Can be obtained based on

예를 들어, 도 14를 참조하면, 프로세서(120)는, 이미지 인식 서비스를 제공하는 상기 어플리케이션의 사용자 인터페이스(1410)를 통해, 음식들과 관련된 객체들을 포함하고, 상기 적어도 하나의 카메라를 통해 획득되는 이미지를 표시할 수 있다. 프로세서(120)는, 전자 장치(101)의 적어도 하나의 카메라의 시야(FOV 또는 AOV)가 지정된 시간 동안 유지됨을 검출하거나 상기 적어도 하나의 카메라를 통해 획득되는 이미지가 상기 지정된 시간 동안 변화되지 않고 유지됨을 검출하는 것에 기반하여, 상기 이미지의 분석을 개시할 수 있다. 예를 들면, 프로세서(120)는, 상기 이미지 내의 적어도 하나의 특징점을 추출하고, 상기 이미지 내의 복수의 객체들의 특성(예: 질감, 면, 곡률 등)을 추출함으로써, 상기 이미지 내에서 상기 객체들이 주요 피사체에 해당함을 식별할 수 있다. 프로세서(120)는, 상기 식별에 기반하여, 상기 객체들에 대한 정보를 이용하여 전자 장치(101)의 데이터베이스를 검색하거나 전자 장치(101)과 관련된 적어도 하나의 외부 전자 장치(예: 웹 서버, 인공지능 서비스 서버)의 데이터베이스를 검색함으로써, 상기 객체가 상기 음식들과 관련됨을 식별할 수 있다. 프로세서(120)는, 상기 식별을 수행하는 동안, 상기 이미지 내의 객체 인식이 수행되고 있음을 나타내기 위한 애니메이션 효과를 표시할 수 있다. 예를 들면, 프로세서(120)는 사용자 인터페이스(1410)로부터 변경된 사용자 인터페이스(1420)를 표시할 수 있다. 다양한 실시예들에서, 사용자 인터페이스(1420)는, 사용자 인터페이스(1410)와 비교하여, 상기 이미지 내의 상기 객체들(예: 마카롱들)에 대한 인식이 수행되고 있음을 나타내기 위한 애니메이션 효과(1425)를 표시할 수 있다. For example, referring to FIG. 14, the processor 120 includes objects related to food, through the user interface 1410 of the application providing an image recognition service, and is obtained through the at least one camera. You can display the image. The processor 120 detects that the field of view (FOV or AOV) of at least one camera of the electronic device 101 is maintained for a specified time, or an image acquired through the at least one camera remains unchanged for the specified time. Based on the detection of, analysis of the image can be initiated. For example, the processor 120 extracts at least one feature point in the image and extracts characteristics (eg, texture, surface, curvature, etc.) of a plurality of objects in the image, so that the objects are It can be identified that it corresponds to the main subject. Based on the identification, the processor 120 searches a database of the electronic device 101 by using information on the objects or at least one external electronic device (eg, a web server, By searching the database of the artificial intelligence service server), it is possible to identify that the object is related to the foods. While performing the identification, the processor 120 may display an animation effect for indicating that object recognition in the image is being performed. For example, the processor 120 may display the user interface 1420 changed from the user interface 1410. In various embodiments, the user interface 1420 is compared with the user interface 1410, an animation effect 1425 for indicating that recognition of the objects (eg, macaroons) in the image is being performed. Can be displayed.

프로세서(120)는 상기 객체가 상기 음식들과 관련됨을 식별하는 것에 기반하여, 동작 1310 및 동작 1320을 수행함으로써, 상기 제2 정보와 관련된 아이콘을 사용자 인터페이스(1420)로부터 변경된 사용자 인터페이스(1430) 내에서 표시할 수 있다. 다양한 실시예들에서, 상기 제2 정보와 관련된 아이콘은 상기 이미지에 중첩된 투명 레이어로 설정될(configured with) 수 있다. 다양한 실시예들에서, 상기 제2 정보와 관련된 아이콘은 상기 제2 정보에 포함되는 데이터(예: 상기 음식들의 유형(예: 마카롱), 상기 음식들의 분류(예: 디저트), 상기 음식들 각각의 총 칼로리(예: 105 cal/each))를 포함할 수 있다. Based on identifying that the object is related to the foods, the processor 120 performs operations 1310 and 1320 to display the icon related to the second information in the changed user interface 1430 from the user interface 1420. Can be displayed in. In various embodiments, the icon related to the second information may be configured with a transparent layer superimposed on the image. In various embodiments, the icon related to the second information is data included in the second information (eg, the type of food (eg, macaron), the classification of the food (eg, dessert)), and each of the foods May contain total calories (eg 105 cal/each).

프로세서(120)는 사용자 인터페이스(1430) 내의 슈팅(shooting) 버튼에 대한 입력(1437)을 검출하는 것에 기반하여, 사용자 인터페이스(1430)로부터 변경된 사용자 인터페이스(1440)를 표시할 수 있다. 사용자 인터페이스(1440)는 상기 이미지를 고정 뷰(fixed view 또는 frozen view)로 표시할 수 있다. 다양한 실시예들에서, 사용자 인터페이스(1410), 사용자 인터페이스(1420), 및 사용자 인터페이스(1430) 내에 표시된 상기 이미지는 라이브 뷰(live view)에 해당하는 이미지(예: 프리뷰 이미지)인 반면, 사용자 인터페이스(1440) 내에 표시된 상기 이미지는 고정 뷰에 해당하는 이미지일 수 있다. The processor 120 may display the changed user interface 1440 from the user interface 1430 based on detecting an input 1437 for a shooting button in the user interface 1430. The user interface 1440 may display the image in a fixed view or a frozen view. In various embodiments, the image displayed in the user interface 1410, the user interface 1420, and the user interface 1430 is an image corresponding to a live view (eg, a preview image), whereas the user interface The image displayed in 1440 may be an image corresponding to a fixed view.

프로세서(120)는, 사용자 인터페이스(1430) 내의 상기 제2 정보와 관련된 아이콘에 대한 입력(1435)을 검출하는 것에 기반하여, 사용자 인터페이스(1430)로부터 변경된 사용자 인터페이스(1440) 내에서 연관 정보(1445)의 적어도 일부를 표시할 수 있다. 도 14의 사용자 인터페이스(1440) 내에 표시된 연관 정보(1445)는 입력(1437)을 검출한 후, 입력(1435)를 검출한 예를 도시하고 있으나, 이는 설명의 편의를 위한 것이다. 프로세서(120)는, 사용자 인터페이스(1430) 내에서 상기 제2 정보와 관련된 상기 아이콘에 대한 입력(1435)만을 검출하는 경우, 라이브 뷰에 해당하는 상기 이미지에 중첩된 연관 정보(1445)를 표시할 수도 있다. Based on the detection of the input 1435 for the icon related to the second information in the user interface 1430, the processor 120 provides the related information 1445 in the user interface 1440 changed from the user interface 1430. ) Can be displayed. The related information 1445 displayed in the user interface 1440 of FIG. 14 shows an example in which the input 1435 is detected after the input 1437 is detected, but this is for convenience of description. When the processor 120 detects only the input 1435 for the icon related to the second information in the user interface 1430, the processor 120 displays the related information 1445 superimposed on the image corresponding to the live view. May be.

프로세서(120)는, 사용자 인터페이스(1440) 내에서 연관 정보(1445)를 표시한 상태에서 다양한 입력들을 수신할 수 있다. The processor 120 may receive various inputs while displaying the related information 1445 in the user interface 1440.

예를 들면, 프로세서(120)는 연관 정보(1445)를 제1 방향(도 14의 경우 윗 방향)으로 드래그하는 입력(1445)을 수신할 수 있다. 프로세서(120)는 입력(1445)를 수신하는 것에 응답하여, 사용자 인터페이스(1440)에 중첩된 연관 정보(1446)를 표시할 수 있다. 연관 정보(1446)는 연관 정보(1445)의 확장일 수 있다. 예를 들면, 연관 정보(1446)는 연관 정보(1445)의 상세 정보일 수 있다. For example, the processor 120 may receive an input 1445 for dragging the related information 1445 in the first direction (upward direction in FIG. 14 ). In response to receiving the input 1445, the processor 120 may display the related information 1446 superimposed on the user interface 1440. The related information 1444 may be an extension of the related information 1445. For example, the related information 1446 may be detailed information of the related information 1445.

다른 예를 들면, 프로세서(120)는 연관 정보(1445) 내의 적어도 하나의 아이콘 중 제1 아이콘에 대한 입력(1450)을 수신하는 것에 응답하여, 상기 객체들 각각과 관련된 레시피를 제공하는 웹사이트에 접속할 수 있다. For another example, in response to receiving an input 1450 for a first icon among at least one icon in the associated information 1445, the processor 120 may access a website that provides a recipe related to each of the objects. You can connect.

또 다른 예를 들면, 프로세서(120)는 연관 정보(1445) 내의 적어도 하나의 아이콘 중 제2 아이콘에 대한 입력(1452)을 수신하는 것에 응답하여, 상기 이미지를 업로드하기 위한 웹사이트(예: SNS(social networking service)와 관련된 웹사이트) 또는 상기 이미지와 관련된 음식을 요리하기 위한 방법 등이 개시된 웹사이트에 접속할 수 있다. For another example, in response to receiving an input 1452 for a second icon among at least one icon in the associated information 1445, the processor 120 may use a website (e.g., SNS) for uploading the image. (a website related to social networking service) or a method for cooking food related to the image may be accessed.

또 다른 예를 들면, 프로세서(120)는 연관 정보(1445) 내의 적어도 하나의 아이콘 중 제3 아이콘에 대한 입력(1454)을 수신하는 것에 응답하여, 음식 및 상기 어플리케이션(예: 이미지 인식 서비스를 제공하는 어플리케이션)과 관련된 다른 어플리케이션(예: 헬스 서비스를 제공하는 어플리케이션)을 실행할 수 있다. 프로세서(120)는, 상기 다른 어플리케이션의 실행에 기반하여, 사용자 인터페이스(1440)로부터 변경된 상기 다른 어플리케이션의 사용자 인터페이스(1455)를 표시할 수 있다. 사용자 인터페이스(1455)는 사용자의 생체 정보뿐 아니라 사용자 인터페이스(1440) 내에 포함된 정보(예: 상기 연관 정보, 상기 제2 정보, 상기 이미지 등) 중 적어도 일부를 포함할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 어플리케이션과 상기 다른 어플리케이션 사이의 연동을 통해, 상기 다른 어플리케이션의 사용자 인터페이스 또는 상기 다른 어플리케이션에게 할당된 메모리의 영역에 상기 어플리케이션을 통해 획득된 정보를 삽입(또는 포함)할 수 있다. For another example, in response to receiving an input 1454 for a third icon among at least one icon in the related information 1445, the processor 120 provides food and the application (eg, image recognition service). Another application (eg, an application that provides a health service) related to an application to be executed may be executed. The processor 120 may display the user interface 1455 of the other application changed from the user interface 1440 based on the execution of the other application. The user interface 1455 may include at least some of information (eg, the related information, the second information, the image, etc.) included in the user interface 1440 as well as the user's biometric information. In various embodiments, the processor 120 inserts the information obtained through the application into a user interface of the other application or a memory area allocated to the other application through interworking between the application and the other application. Can (or include).

다른 예를 들어, 도 15를 참조하면, 프로세서(120)는, 이미지 인식 서비스를 제공하는 상기 어플리케이션의 사용자 인터페이스(1510)를 통해, 음식들과 관련된 객체들을 포함하고, 상기 적어도 하나의 카메라를 통해 획득되는 이미지를 표시할 수 있다. 프로세서(120)는 상기 이미지에 포함된 상기 객체들을 인식하는 것에 기반하여, 사용자 인터페이스(1510)로부터 변경된 사용자 인터페이스(1520)를 표시할 수 있다. 다양한 실시예들에서, 사용자 인터페이스(1520)는 상기 객체들 각각과 관련된 상기 음식들에 대한 정보(예: ricotta cheese salad) 및 상기 음식들 각각의 총 칼로리에 대한 정보(예: 150cal/ea)를 표시할 수 있다. 상기 음식들에 대한 정보 및 상기 총 칼로리에 대한 정보는 상기 이미지에 중첩될 수 있다. 프로세서(120)는, 사용자 인터페이스(1520) 내의 메뉴 아이콘에 대한 입력을 검출하는 것에 응답하여, 사용자 인터페이스(1520)로부터 변경된 사용자 인터페이스(1530)를 표시할 수 있다. 사용자 인터페이스(1530)는 상기 음식들과 관련된 연관 정보를 포함할 수 있다. 상기 연관 정보는 상기 이미지에 중첩될 수 있다. 상기 연관 정보는, 상기 연관 정보와 관련된 적어도 하나의 아이콘을 포함할 수 있다. 프로세서(120)는 상기 연관 정보 내에 포함된 상기 적어도 하나의 아이콘 중 상기 어플리케이션과 연동되는 상기 다른 어플리케이션에 접근하기 위한 아이콘에 대한 입력을 검출하는 것에 응답하여, 사용자 인터페이스(1530)로부터 변경된 사용자 인터페이스(1540)를 표시할 수 있다. 사용자 인터페이스(1540)는 상기 어플리케이션과 구별되는 상기 다른 어플리케이션의 실행 화면에 해당할 수 있다. 사용자 인터페이스(1540)는 상기 음식들(예: 리코타 치즈 샐러드)에 대한 상세 정보를 포함할 수 있다. 예를 들면, 상기 상세 정보는 상기 음식의 영양성분들의 용량에 대한 정보, 상기 음식의 칼로리에 대한 정보, 또는 상기 이미지가 획득된 시점에 대한 정보 중 적어도 하나를 포함할 수 있다. 예를 들어, 상기 이미지가 아침식사(breakfast)와 관련된 시간대에 획득되는 경우, 프로세서(120)는 사용자 인터페이스(1540) 내의 아침식사에 해당하는 영역 내에 상기 음식의 칼로리에 대한 정보를 삽입할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 사용자가 섭취하는 음식의 칼로리에 대한 정보를 건강 서비스를 제공하는 상기 다른 어플리케이션에 직접 입력하는 것을 우회(bypass)하거나 생략(jump 또는 skip)하기 위해, 사용자 인터페이스(1530) 내의 상기 연관 정보에 포함된 적어도 하나의 아이콘에 대한 입력을 통해, 상기 음식의 칼로리에 대한 정보를 시간대 별로 할당하여 저장할 수 있다. 예를 들어, 프로세서(120)는 터치 입력을 통한 섭취 칼로리의 입력을 우회하기 위해, 상기 복수의 음식들 중 음성 인식에 의해 식별된 음식에 대한 권장 섭취량을 목표 섭취량으로 변환할 수 있다. 다른 예를 들어, 프로세서(120)는 상기 음성 인식을 통한 섭취 칼로리의 입력을 우회하기 위해, 섭취 이후의 제2 시점에 상응하는 이미지를 획득할 것을 지시하는 가이드 정보를 표시할 수 있다. 프로세서(120)는 상기 표시에 대응하여 획득된 상기 제2 시점의 이미지에 기반하여, 복수의 음식들 중 부피(또는 길이)에 대한 값이 감소한 음식들을 식별할 수 있다. 프로세서(120)는 상기 식별된 음식들 및 상기 식별된 음식들에 상응하는 부피 변화에 기반하여, 상기 사용자가 섭취하는 음식의 칼로리에 대한 정보를 획득할 수 있다. For another example, referring to FIG. 15, the processor 120 includes objects related to food, through the user interface 1510 of the application providing an image recognition service, and through the at least one camera. The acquired image can be displayed. The processor 120 may display the changed user interface 1520 from the user interface 1510 based on recognizing the objects included in the image. In various embodiments, the user interface 1520 provides information on the foods associated with each of the objects (eg, ricotta cheese salad) and information on the total calories of each of the foods (eg 150 cal/ea). Can be displayed. The information on the foods and information on the total calories may be superimposed on the image. The processor 120 may display the changed user interface 1530 from the user interface 1520 in response to detecting an input for a menu icon in the user interface 1520. The user interface 1530 may include related information related to the foods. The related information may be superimposed on the image. The related information may include at least one icon related to the related information. In response to detecting an input for an icon for accessing the other application linked to the application among the at least one icon included in the related information, the processor 120 changes the user interface from the user interface 1530 ( 1540) can be displayed. The user interface 1540 may correspond to an execution screen of the other application that is distinguished from the application. The user interface 1540 may include detailed information on the foods (eg, ricotta cheese salad). For example, the detailed information may include at least one of information on the capacity of nutrients of the food, information on calories of the food, or information on when the image is acquired. For example, when the image is acquired in a time zone related to breakfast, the processor 120 may insert information on the calories of the food into an area corresponding to breakfast in the user interface 1540. . In various embodiments, the processor 120, in order to bypass or skip (jump or skip) directly inputting information on the calories of food consumed by the user into the other application that provides a health service, Through an input to at least one icon included in the related information in the user interface 1530, information on calories of the food may be allocated and stored for each time period. For example, the processor 120 may convert a recommended intake amount for a food identified by voice recognition among the plurality of foods into a target intake amount in order to bypass the input of intake calories through a touch input. For another example, the processor 120 may display guide information instructing to acquire an image corresponding to a second point in time after ingestion in order to bypass the input of calorie intake through the voice recognition. The processor 120 may identify foods whose volume (or length) value has decreased among the plurality of foods, based on the image of the second viewpoint acquired in response to the display. The processor 120 may obtain information on calories of food consumed by the user based on the identified foods and a volume change corresponding to the identified foods.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는, 이미지 인식 서비스를 제공하는 어플리케이션과 건강 서비스를 제공하는 어플리케이션를 연동함으로써, 음식의 섭취와 관련된 사용자의 건강 정보를 손쉽게 관리할 수 있다. 이러한 관리를 통해, 다양한 실시예들에 따른 전자 장치(101)는 강화된(enhanced) 사용자 경험(UX, user experience)을 제공할 수 있다. As described above, the electronic device 101 according to various embodiments may easily manage user's health information related to food consumption by linking an application providing an image recognition service and an application providing a health service. . Through such management, the electronic device 101 according to various embodiments may provide an enhanced user experience (UX).

도 16은 다양한 실시예들에 따라 섭취량에 대한 정보를 획득하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 16 illustrates an example of an operation of an electronic device for obtaining information on an intake amount according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 16의 동작 1610 내지 동작 1670은 도 4의 동작 440과 관련될 수 있다. Operations 1610 to 1670 of FIG. 16 may be related to operation 440 of FIG. 4.

도 16을 참조하면, 동작 1610에서, 프로세서(120)는 상기 이미지 내에 포함된 상기 음식들과 관련된 상기 객체들 각각에 대한 정보에 적어도 기반하여 상기 음식들 각각의 단위 당 칼로리에 대한 제1 정보를 획득할 수 있다. 다양한 실시예들에서, 동작 1610은 도 5의 동작 510과 동일하거나 유사하게 구현될 수 있다. Referring to FIG. 16, in operation 1610, the processor 120 provides first information on calories per unit of each of the foods based at least on information on each of the objects related to the foods included in the image. Can be obtained. In various embodiments, operation 1610 may be implemented the same as or similar to operation 510 of FIG. 5.

동작 1620에서, 프로세서(120)는 상기 깊이 정보 및 상기 제1 정보에 적어도 기반하여 상기 음식들 각각의 총 칼로리에 대한 상기 제2 정보를 획득할 수 있다. 다양한 실시예들에서, 동작 1620은 도 5의 동작 520과 동일하거나 유사하게 구현될 수 있다. In operation 1620, the processor 120 may obtain the second information on the total calories of each of the foods based at least on the depth information and the first information. In various embodiments, operation 1620 may be implemented the same as or similar to operation 520 of FIG. 5.

동작 1630에서, 프로세서(120)는 상기 객체들 각각과 연계된 상기 제2 정보를 표시할 수 있다. 다양한 실시예들에서, 상기 객체들 각각과 상기 제2 정보 사이의 연계는 상기 객체들 각각에 중첩된 상기 제2 정보를 표시하는 것에 의해 지시될(indicated) 수 있다. 다양한 실시예들에서, 상기 객체들 각각과 상기 제2 정보 사이의 연계는 상기 객체들 각각을 향하고 상기 이미지에 중첩되며 상기 제2 정보를 포함하는 말풍선(또는 윈도우)에 의해 지시될 수 있다. In operation 1630, the processor 120 may display the second information associated with each of the objects. In various embodiments, the association between each of the objects and the second information may be indicated by displaying the second information superimposed on each of the objects. In various embodiments, the association between each of the objects and the second information may be indicated by a speech balloon (or window) that faces each of the objects and overlaps the image and includes the second information.

예를 들어, 도 17을 참조하면, 프로세서(120)는 상기 음식들과 관련된 상기 객체들을 포함하는 이미지(1700)을 표시할 수 있다. 이미지(1700)는 계란 후라이(fried egg)와 관련된 객체와 연계되고 계란 후라이의 총 칼로리의 크기(1ea, 87kcal)를 나타내기 위한 제2 정보(1710), 스테이크(stake)와 관련된 객체와 연계되고 스테이크의 총 칼로리의 크기(200g, 504kcal)를 나타내기 위한 제2 정보(1720), 프렌치 후라이(french fries)와 관련된 객체와 연계되고 프렌치 후라이의 총 칼로리의 크기(100g, 229kcal)를 나타내기 위한 제2 정보(1730), 카페 라떼(caffe latte)와 관련된 객체와 연계되고 카페 라떼의 총 칼로리의 크기(200ml, 105kcal)를 나타내기 위한 제2 정보(1740), 콘 샐러드(corn salad)와 관련된 객체와 연계되고 콘 샐러드의 총 칼로리의 크기(100g, 160kcal)를 나타내기 위한 제2 정보(1750), 빵(bread)와 관련된 객체와 연계되고 빵의 총 칼로리의 크기(100g, 245kcal)를 나타내기 위한 제2 정보(1760), 및 리코타 치즈 샐러드(ricotta cheese salad)와 관련된 객체와 연계되고 리코타 치즈 샐러드의 총 칼로리의 크기(150g, 150kcal)를 나타내기 위한 제2 정보(1770)를 포함할 수 있다. 사용자는 이미지(1700)를 통해 이미지(1700) 내에 포함된 상기 객체들과 관련된 상기 음식들 각각의 총 칼로리를 인지할 수 있다. For example, referring to FIG. 17, the processor 120 may display an image 1700 including the objects related to the foods. The image 1700 is associated with an object related to a fried egg, second information 1710 for indicating the total calorie size (1ea, 87kcal) of the fried egg, and an object related to a steak. Second information (1720) to indicate the size of the total calories of the steak (200g, 504kcal), associated with objects related to French fries, Second information (1740), second information (1740) for indicating the total calorie size (200ml, 105kcal) of the cafe latte and associated with the object related to the cafe latte, and related to the corn salad. Second information (1750) to indicate the total calorie size (100g, 160kcal) of the corn salad and associated with the object, and indicate the total calorie size of the bread (100g, 245kcal). Second information 1760 for wagering, and second information 1770 associated with an object related to ricotta cheese salad and for indicating the size of the total calories (150 g, 150 kcal) of the ricotta cheese salad. Can include. The user may recognize the total calories of each of the foods related to the objects included in the image 1700 through the image 1700.

동작 1640에서, 프로세서(120)는 상기 음식들에 대한 사용자의 섭취량을 결정하기 위한 입력을 검출할 수 있다. 다양한 실시예들에서, 상기 입력은 상기 이미지 내에 표시된 상기 제2 정보를 통해 입력될 수 있다. 다양한 실시예들에서, 상기 입력은 상기 이미지 내에 표시된 객체를 통해 입력될 수 있다. 다양한 실시예들에서, 상기 입력은 사용자가 상기 이미지에 포함된 상기 객체들과 관련된 상기 음식들을 섭취한 후에 입력될 수도 있고, 상기 이미지에 포함된 상기 객체들과 관련된 상기 음식들을 섭취하기 전에 입력될 수도 있다. 다양한 실시예들에서, 상기 입력은 전자 장치(101)과 관련된 외부 전자 장치(예: 웨어러블 장치(예: 스마트 글라스), 또는 IoT(internet of things) 장치 등)에 의해 획득되는 이미지에 대한 정보를 상기 외부 전자 장치로부터 수신하는 것을 포함할 수 있다. 다양한 실시예들에서, 상기 외부 전자 장치는 상기 사용자와 관련된 상기 음식들을 상기 사용자가 식사를 하는 동안 촬영할 수 있는 장치를 의미할 수 있다. 후술될 도 18은 상기 음식들을 섭취하기 전에 사용자가 상기 입력을 야기하는 예를 도시하고 있으나, 이는 설명의 편의를 위한 것임에 유의하여야 한다. In operation 1640, the processor 120 may detect an input for determining a user's intake of the foods. In various embodiments, the input may be input through the second information displayed in the image. In various embodiments, the input may be input through an object displayed in the image. In various embodiments, the input may be input after the user consumes the foods related to the objects included in the image, or may be input before eating the foods related to the objects included in the image. May be. In various embodiments, the input includes information about an image acquired by an external electronic device (eg, a wearable device (eg, smart glass) or an Internet of things (IoT) device) related to the electronic device 101. It may include receiving from the external electronic device. In various embodiments, the external electronic device may refer to a device capable of photographing the foods related to the user while the user is eating. 18 to be described later shows an example in which the user causes the input before eating the food, but it should be noted that this is for convenience of explanation.

예를 들어, 도 18을 참조하면, 프로세서(120)는, 이미지(1700) 내의 제2 정보(1720)에 대한 입력(1810)을 검출할 수 있다. 프로세서(120)는, 입력(1810)을 검출하는 것에 응답하여, 상기 제2 정보(1720)로부터 변경된 윈도우(1820)를 표시할 수 있다. 다양한 실시예들에서, 윈도우(1820)는 스테이크에 대한 사용자의 섭취량(또는 예상 섭취량)을 결정하기 위한 요소(element)들을 포함할 수 있다. 다양한 실시예들에서, 윈도우(1820)는 상기 사용자의 섭취량(또는 예상 섭취량)을 입력하기 위한 실행 가능한(executable) 객체(1825)를 포함할 수 있다. 다양한 실시예들에서, 윈도우(1820)는 객체(1825)를 통해 입력된 값을 확정하기 위한 실행 가능한 객체(1830)를 더 포함할 수 있다. 다양한 실시예들에서, 윈도우(1820)는 객체(1825)를 통해 입력된 값을 취소하기 위한 실행 가능한 객체(1835)를 더 포함할 수 있다. 다양한 실시예들에서, 윈도우(1820)는 객체(1825)를 통해 입력된 값에 따라 산출되는 상기 사용자의 섭취량(또는 예상 섭취량)을 표시하는 객체(1840)를 더 포함할 수 있다. For example, referring to FIG. 18, the processor 120 may detect an input 1810 for the second information 1720 in the image 1700. In response to detecting the input 1810, the processor 120 may display the window 1820 changed from the second information 1720. In various embodiments, window 1820 may include elements for determining a user's intake (or expected intake) for a steak. In various embodiments, the window 1820 may include an executable object 1825 for inputting the user's intake amount (or expected intake amount). In various embodiments, the window 1820 may further include an executable object 1830 for determining a value input through the object 1825. In various embodiments, the window 1820 may further include an executable object 1835 for canceling a value input through the object 1825. In various embodiments, the window 1820 may further include an object 1840 that displays the user's intake amount (or expected intake amount) calculated according to a value input through the object 1825.

다른 예를 들어, 도 18을 참조하면, 프로세서(120)는, 이미지(1700) 내의 콘 샐러드와 관련된 객체에 대한 입력을 검출할 수 있다. 다양한 실시예들에서, 상기 입력은 싱글 탭 입력, 더블 탭 입력, 드래그 입력, 포스 터치 입력, 롱 프레스 입력, 또는 호버링(hovering) 입력을 포함할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 입력을 검출하는 것에 응답하여, 상기 사용자의 섭취량(또는 예상 섭취량)을 결정하기 위한 영역(1850)을 표시할 수 있다. 다양한 실시예들에서, 프로세서(120)는 영역(1850)에 대한 입력(1845)을 검출할 수 있다. 입력(1845)은 영역(1850)의 면적을 변경하기 위한 드래그 입력을 포함할 수 있다. 프로세서(120)는, 입력(1845)에 기반하여, 콘샐러드에 대한 상기 사용자의 섭취량을 식별할 수 있다. 예를 들면, 프로세서(120)는, 입력(1845)에 의해 변경된 영역(1850)의 면적에 기반하여, 상기 사용자의 섭취량을 식별할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 식별된 사용자의 섭취량을 제2 정보(1750) 내의 지시자(indicator)(예: 100g, 160kcal)의 변경을 통해 나타낼 수 있다. For another example, referring to FIG. 18, the processor 120 may detect an input for an object related to the corn salad in the image 1700. In various embodiments, the input may include a single tap input, a double tap input, a drag input, a force touch input, a long press input, or a hovering input. In various embodiments, in response to detecting the input, the processor 120 may display an area 1850 for determining an intake amount (or an expected intake amount) of the user. In various embodiments, the processor 120 may detect an input 1845 for the region 1850. The input 1845 may include a drag input for changing the area of the area 1850. The processor 120 may identify the user's intake amount for corn salad based on the input 1845. For example, the processor 120 may identify the user's intake amount based on the area of the region 1850 changed by the input 1845. In various embodiments, the processor 120 may indicate the identified user's intake amount by changing an indicator (eg, 100g, 160kcal) in the second information 1750.

다양한 실시예들에서, 프로세서(120)는 상기 사용자의 섭취량을 메모리(130)에 저장하기 위한 객체(1860)를 표시할 수 있다. 다양한 실시예들에서, 객체(1860)는 상기 이미지(예: 이미지(1700))에 대한 입력에 기반하여 표시될 수 있다. 다양한 실시예들에서, 이미지(1700)에 대한 입력의 속성은 제2 정보에 대한 입력(예: 입력(1810))의 속성과 구별될(distinct from) 수 있다. 다양한 실시예들에서, 이미지(1700)에 대한 입력의 속성은 상기 객체에 대한 입력(예: 입력(1845))의 속성과 구별될 수 있다. 다양한 실시예들에서, 객체(1860)는, 입력(1810), 입력(1845) 등과 같은 입력을 수신하는 것에 기반하여, 이미지(1700) 내에서 표시될 수도 있다. In various embodiments, the processor 120 may display an object 1860 for storing the user's intake amount in the memory 130. In various embodiments, the object 1860 may be displayed based on an input to the image (eg, the image 1700). In various embodiments, the attribute of the input for the image 1700 may be distinct from the attribute of the input for the second information (eg, the input 1810). In various embodiments, the attribute of the input to the image 1700 may be distinguished from the attribute of the input to the object (eg, input 1845). In various embodiments, object 1860 may be displayed within image 1700 based on receiving an input such as input 1810, input 1845, and the like.

동작 1650에서, 프로세서(120)는 상기 검출된 입력에 기반하여 결정되는 사용자의 섭취량에 대한 정보를 획득할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 검출된 입력에 의해 특정된 값에 기반하여 상기 사용자의 섭취량에 대한 정보를 획득할 수 있다. 예를 들어, 도 18을 참조하면, 프로세서(120)는, 객체(1860)에 대한 입력을 검출하는 것에 응답하여, 이미지(1700) 내에서 현재 제공 중인 제2 정보에 기반하여 상기 사용자의 섭취량에 대한 정보를 획득하고, 상기 획득된 정보를 메모리(130)에 저장할 수 있다. 다양한 실시예들에서, 상기 획득된 정보는 건강 서비스를 제공하는 어플리케이션에 연동되거나 제공될 수 있다. In operation 1650, the processor 120 may obtain information on the user's intake amount determined based on the detected input. In various embodiments, the processor 120 may obtain information on the user's intake amount based on a value specified by the detected input. For example, referring to FIG. 18, in response to detecting an input to the object 1860, the processor 120 may determine the amount of intake of the user based on the second information currently provided in the image 1700. Information about the information may be acquired, and the acquired information may be stored in the memory 130. In various embodiments, the acquired information may be linked to or provided with an application providing a health service.

동작 1660에서, 프로세서(120)는 상기 섭취량에 대한 정보를 표시하기 위한 이벤트가 발생하는지 여부를 검출할 수 있다. 다양한 실시예들에서, 상기 이벤트는, 건강 서비스를 제공하는 어플리케이션의 실행을 포함할 수 있다. 다양한 실시예들에서, 상기 이벤트는, 객체(1860)에 대한 입력의 검출과 같이, 상기 사용자의 섭취량의 결정을 확정함을 검출하는 것을 포함할 수 있다. 다양한 실시예들에서, 상기 이벤트는, 사용자가 음식의 섭취와 관련된 서비스를 제공 받기 위한 시간대가 도래하는 것을 포함할 수 있다. 하지만, 이에 한정되지 않는다. In operation 1660, the processor 120 may detect whether an event for displaying information on the intake amount occurs. In various embodiments, the event may include the execution of an application that provides a health service. In various embodiments, the event may include detecting determination of the amount of consumption of the user, such as detection of an input to the object 1860. In various embodiments, the event may include the arrival of a time period for the user to receive a service related to food consumption. However, it is not limited thereto.

동작 1670에서, 프로세서(120)는, 상기 이벤트가 발생함을 검출하는 것에 기반하여, 상기 사용자의 섭취량에 대한 정보를 표시할 수 있다. 다양한 실시예들에서, 프로세서(120)는, 상기 사용자의 섭취량에 대한 정보를 건강 서비스를 제공하는 어플리케이션의 사용자 인터페이스 내에서 표시할 수 있다. In operation 1670, the processor 120 may display information on the user's intake amount based on detecting that the event occurs. In various embodiments, the processor 120 may display information on the intake amount of the user in a user interface of an application providing a health service.

예를 들어, 도 19를 참조하면, 프로세서(120)는 상기 어플리케이션의 사용자 인터페이스(1900) 내에서 상기 사용자의 섭취량에 대한 정보(1910)를 표시할 수 있다. 정보(1910)는 상기 사용자가 음식을 섭취한 시간대에 대한 정보, 상기 사용자가 상기 시간대에서 섭취한 음식의 종류에 대한 정보, 상기 음식의 섭취량에 대한 정보, 또는 상기 사용자가 상기 시간대에 섭취한 총 섭취량에 대한 정보 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에서, 정보(1910)는 다른 정보(예: 상기 사용자의 수면 정보, 상기 사용자의 심박 정보, 상기 사용자의 산소 포화도 정보, 상기 사용자의 스트레스 정보 등)와 함께 사용자 인터페이스(1900) 내에서 표시될 수 있다. For example, referring to FIG. 19, the processor 120 may display information 1910 on the amount of consumption of the user in the user interface 1900 of the application. The information 1910 is information on the time zone in which the user ate food, information on the type of food consumed by the user in the time zone, information on the amount of food intake, or the total intake by the user in the time zone. It may include at least one of information on intake amount. In various embodiments, the information 1910 is included in the user interface 1900 together with other information (eg, the user's sleep information, the user's heart rate information, the user's oxygen saturation information, the user's stress information, etc.). Can be displayed in

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는, 음식들에 대한 이미지를 통해 사용자가 섭취량을 결정할 수 있는 사용자 인터페이스를 제공함으로써, 건강 어플리케이션의 사용자 인터페이스를 통해 사용자가 직접 섭취량을 입력하는 것을 우회할 수 있다. 이러한 우회를 통해, 전자 장치(101)는 향상된(enhanced) 사용자 경험을 제공할 수 있다. As described above, the electronic device 101 according to various embodiments provides a user interface through which a user can determine an intake amount through images of food, so that the user directly selects the intake amount through the user interface of the health application. You can bypass typing. Through this bypass, the electronic device 101 may provide an enhanced user experience.

도 20은 다양한 실시예들에 따라 권장 섭취량과 관련된 정보를 표시하는 전자 장치의 동작의 예를 도시한다. 이러한 동작은 도 1에 도시된 전자 장치(101), 도 2에 도시된 전자 장치(101), 도 1에 도시된 전자 장치(101)의 프로세서(120), 또는 도 2에 도시된 전자 장치(101)의 프로세서(120)에 의해 수행될 수 있다. 20 illustrates an example of an operation of an electronic device displaying information related to a recommended intake amount according to various embodiments. These operations include the electronic device 101 shown in FIG. 1, the electronic device 101 shown in FIG. 2, the processor 120 of the electronic device 101 shown in FIG. 1, or the electronic device ( 101) may be performed by the processor 120.

도 20을 참조하면, 동작 2010에서, 프로세서(120)는 사용자의 섭취량에 대한 정보를 획득할 수 있다. 동작 2010은 동작 1650과 동일하거나 유사하게 구현될 수 있다. Referring to FIG. 20, in operation 2010, the processor 120 may obtain information on the user's intake amount. Operation 2010 may be implemented in the same manner as or similar to operation 1650.

동작 2020에서, 프로세서(120)는 상기 사용자의 생체 정보를 모니터링할 수 있다. 다양한 실시예들에서, 프로세서(120)는 상기 사용자의 섭취량에 대한 정보를 획득한 후 변경되는 상기 사용자의 생체 정보를 모니터링할 수 있다. In operation 2020, the processor 120 may monitor the user's biometric information. In various embodiments, the processor 120 may monitor the user's biometric information that is changed after obtaining information about the user's intake amount.

동작 2030에서, 프로세서(120)는 상기 사용자의 섭취량에 대한 정보 및 상기 모니터링된 생체 정보에 기반하여 다음 식사에 대한 사용자의 권장 섭취량을 식별할 수 있다. In operation 2030, the processor 120 may identify the user's recommended intake amount for the next meal based on the information on the user's intake amount and the monitored biometric information.

동작 2040에서, 프로세서(120)는 상기 식별된 권장 섭취량과 관련된 정보를 표시하기 위한 이벤트가 발생하는지 여부를 검출할 수 있다. 다양한 실시예들에서, 상기 이벤트는 건강 서비스를 제공하는 어플리케이션의 실행을 포함할 수 있다. 다양한 실시예들에서, 상기 이벤트는 지정된 시간대(예: 다음 식사 시간대)가 도래하는 것을 포함할 수 있다. 하지만, 이에 한정되지 않는다. 다양한 실시예들에서, 상기 권장 섭취량과 관련된 정보는 다음 식사에 대한 권장 섭취량에 대한 데이터를 포함할 수 있다. 다양한 실시예들에서, 상기 권장 섭취량과 관련된 정보는, 다음 식사에 대한 권장 섭취량에 상응하는(또는 부합하는) 음식의 종류에 대한 데이터를 포함할 수 있다. 다양한 실시예들에서, 상기 권장 섭취량과 관련된 정보는, 다음 식사에 대한 권장 섭취량에 상응하는 음식의 조리법(recipe)에 대한 데이터를 포함할 수 있다. In operation 2040, the processor 120 may detect whether an event for displaying information related to the identified recommended intake amount occurs. In various embodiments, the event may include execution of an application that provides health services. In various embodiments, the event may include the arrival of a specified time period (eg, the next meal time period). However, it is not limited thereto. In various embodiments, the information related to the recommended intake amount may include data on the recommended intake amount for the next meal. In various embodiments, the information related to the recommended intake amount may include data on the type of food corresponding to (or corresponding to) the recommended intake amount for the next meal. In various embodiments, the information related to the recommended intake amount may include data on a recipe of food corresponding to the recommended intake amount for the next meal.

동작 2050에서, 프로세서(120)는, 상기 권장 섭취량과 관련된 정보를 표시하기 위한 이벤트가 발생함을 검출하는 것에 기반하여, 상기 권장 섭취량과 관련된 정보를 표시할 수 있다. 예를 들어, 도 21을 참조하면, 프로세서(120)는, 상기 검출에 기반하여, 건강 서비스를 제공하는 어플리케이션의 사용자 인터페이스(2100)을 표시할 수 있다. 다양한 실시예들에서, 사용자 인터페이스(2100)는 다음 식사의 권장 섭취량에 상응하는 음식의 조리법들에 접근하기 위한 썸네일 이미지들을 포함하는 정보(2110)를 포함할 수 있다. 프로세서(210)는, 정보(2110) 내에 포함된 썸네일 이미지들(예: 그린 샐러드(green salad)와 관련된 썸네일 이미지, 연어 샐러드(salmon salad)와 관련된 썸네일 이미지, 카프레세 샐러드(caprese salad)와 관련된 썸네일 이미지 등) 중 하나의 썸네일 이미지에 대한 입력을 검출하는 것에 기반하여, 상기 하나의 썸네일 이미지에 의해 표시되는(represented) 음식의 조리법을 표시할 수 있다. In operation 2050, the processor 120 may display information related to the recommended intake amount based on detecting that an event for displaying information related to the recommended intake amount occurs. For example, referring to FIG. 21, the processor 120 may display a user interface 2100 of an application providing a health service based on the detection. In various embodiments, the user interface 2100 may include information 2110 including thumbnail images for accessing recipes of food corresponding to the recommended intake of the next meal. The processor 210 includes thumbnail images included in the information 2110 (eg, a thumbnail image related to a green salad, a thumbnail image related to a salmon salad, and a caprese salad). A recipe for food represented by the one thumbnail image may be displayed based on detecting an input to one of the thumbnail images).

다양한 실시예들에서, 정보(2110)는 다른 정보와 함께 사용자 인터페이스(2100) 내에서 표시될 수 있다. 예를 들면, 정보(2110)는 사용자의 이전 식사에 대한 정보와 함께 표시될 수 있다. 다른 예를 들면, 정보(2110)는 사용자의 칼로리 소모 정보(또는 운동 이력 정보)와 함께 표시될 수도 있다. In various embodiments, information 2110 may be displayed within user interface 2100 along with other information. For example, the information 2110 may be displayed together with information on the user's previous meal. For another example, the information 2110 may be displayed together with the user's calorie consumption information (or exercise history information).

다양한 실시예들에서, 정보(2110)는 전자 장치(101)와 연동된 외부 전자 장치 내에서 표시될 수도 있다. 예를 들면, 프로세서(120)는, 상기 건강 어플리케이션에 의해 획득된 사용자의 생체 정보 및 상기 사용자의 음식의 섭취와 관련된 정보를 서버(예: IoT 허브(hub)를 위한 서버)에게 송신할 수 있다. 상기 서버는, 상기 생체 정보 및 상기 음식의 섭취와 관련된 정보에 적어도 기반하여 정보(2110)를 획득할 수 있다. 상기 서버는, 획득된 정보(2110)를 전자 장치(101)과 구별되고 전자 장치(101)과 연동된 상기 외부 전자 장치(예: 디스플레이를 가지는 냉장고)에게 송신할 수 있다. 상기 외부 전자 장치는 정보(2110)를 상기 다른 전자 장치의 디스플레이를 통해 표시할 수 있다. 다양한 실시예들에서, 상기 외부 전자 장치가 디스플레이를 가지는 냉장고에 해당하는 경우, 상기 외부 전자 장치는 상기 다음 식사의 권장 섭취량에 상응하는 음식을 조리하기 위해 요구되는 식재료들 중 상기 냉장고에 포함된 식재료와 다른 적어도 하나의 식재료를 구매하기 위한 가이드 정보를 정보(2110)과 함께 더 표시할 수도 있다. 예를 들면, 상기 다음 식사를 조리하기 위해 식재료 A 및 식재료 B는 상기 냉장고에 저장되어 있으나, 식재료 C가 상기 냉장고에 저장되지 않은 경우, 상기 외부 전자 장치는, 식재료 C의 구매를 가이드하기 위해, 식재료 C를 판매하는 출처(예: 웹사이트 등)에 대한 정보, 식재료 C의 가격에 대한 정보, 또는 식재료 C의 할인 정보 등을 정보(2110)와 함께 표시할 수 있다. 하지만, 이에 제한되지 않는다. In various embodiments, the information 2110 may be displayed in an external electronic device interlocked with the electronic device 101. For example, the processor 120 may transmit the user's biometric information acquired by the health application and information related to the user's food intake to a server (eg, a server for an IoT hub). . The server may obtain the information 2110 based at least on the biometric information and information related to the consumption of the food. The server may transmit the obtained information 2110 to the external electronic device (eg, a refrigerator having a display) that is distinguished from the electronic device 101 and interlocked with the electronic device 101. The external electronic device may display information 2110 through a display of the other electronic device. In various embodiments, when the external electronic device corresponds to a refrigerator having a display, the external electronic device is a food material included in the refrigerator among food ingredients required for cooking food corresponding to the recommended intake amount of the next meal. Guide information for purchasing at least one food ingredient different from and may be further displayed together with the information 2110. For example, when food material A and food material B are stored in the refrigerator to cook the next meal, but food material C is not stored in the refrigerator, the external electronic device, in order to guide the purchase of food material C, Information about the source (e.g., website, etc.) that sells food ingredient C, information about the price of food ingredient C, or discount information of ingredient C may be displayed together with information 2110. However, it is not limited thereto.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는, 사용자가 식습관을 개선할 수 있도록, 다음 식사에 대한 권장 섭취량과 관련된 정보를 표시할 수 있다. As described above, the electronic device 101 according to various embodiments may display information related to a recommended intake amount for the next meal so that the user can improve his or her eating habits.

도 22는 다양한 실시예들에 따른 전자 장치와 다른 전자 장치 사이의 연동의 예를 도시한다. 이러한 연동은 도 1 또는 도 2에 도시된 전자 장치(101)와 도 1에 도시된 전자 장치(102) 사이에서 야기될 수 있다. 22 illustrates an example of interworking between an electronic device and another electronic device according to various embodiments. This linkage may be caused between the electronic device 101 shown in FIG. 1 or 2 and the electronic device 102 shown in FIG. 1.

도 22를 참조하면, 동작 2210에서, 다른 전자 장치(102)는 전자 장치(101)에게 제1 이미지에 대한 정보를 송신할 수 있다. 다양한 실시예들에서, 다른 전자 장치(102)는 이미지를 획득하기 위한 적어도 하나의 카메라를 포함할 수 있다. 다양한 실시예들에서, 다른 전자 장치(102)는 전자 장치(101)와 연동된 장치일 수 있다. 예를 들면, 다른 전자 장치(102)는 전자 장치(101)와 연동된 웨어러블 장치(예: 스마트 안경)를 포함할 수 있다. 다른 예를 들면, 다른 전자 장치(102)는 전자 장치(101)와 연동되고 식탁 등의 위에 설치되는 IoT(internet of things) 장치(예: 카메라를 구비한 스마트 전구, 천장(ceiling)에 설치된 카메라 등)를 포함할 수 있다. 하지만, 이에 제한되지 않는다. Referring to FIG. 22, in operation 2210, the other electronic device 102 may transmit information on the first image to the electronic device 101. In various embodiments, the other electronic device 102 may include at least one camera for obtaining an image. In various embodiments, the other electronic device 102 may be a device interlocked with the electronic device 101. For example, the other electronic device 102 may include a wearable device (eg, smart glasses) interlocked with the electronic device 101. For another example, the other electronic device 102 is an Internet of things (IoT) device (e.g., a smart light bulb with a camera, a camera installed on the ceiling) that is interlocked with the electronic device 101 and installed on a table, etc. Etc.). However, it is not limited thereto.

다양한 실시예들에서, 상기 제1 이미지는 음식들과 관련된 객체들을 포함할 수 있다. 다양한 실시예들에서, 다른 전자 장치(102)는, 다른 전자 장치(102)의 적어도 하나의 카메라의 시야 내에 특정(certain) 피사체가 진입(enter)함을 식별하는 것에 응답하여, 전자 장치(101)에게 상기 제1 이미지에 대한 정보를 송신할 수 있다. 다양한 실시예들에서, 다른 전자 장치(102)는, 다른 전자 장치(102)와 전자 장치(101) 사이의 연결이 수립됨을 식별하는 것에 응답하여, 전자 장치(101)에게 상기 제1 이미지에 대한 정보를 송신할 수 있다. 다양한 실시예들에서, 다른 전자 장치(102)는, 지정된 시간대가 도래함을 식별하는 것에 응답하여, 전자 장치(101)에게 상기 제1 이미지에 대한 정보를 송신할 수 있다. 하지만, 이에 제한되지 않는다. 전자 장치(101)는 다른 전자 장치(102)로부터 상기 제1 이미지에 대한 정보를 수신할 수 있다. In various embodiments, the first image may include objects related to foods. In various embodiments, the other electronic device 102, in response to identifying that a specific object enters the field of view of at least one camera of the other electronic device 102, the electronic device 101 ), the information on the first image may be transmitted. In various embodiments, the other electronic device 102, in response to identifying that a connection between the other electronic device 102 and the electronic device 101 is established, tells the electronic device 101 for the first image. You can send information. In various embodiments, the other electronic device 102 may transmit the information on the first image to the electronic device 101 in response to identifying that the specified time zone has arrived. However, it is not limited thereto. The electronic device 101 may receive information on the first image from another electronic device 102.

동작 2215에서, 전자 장치(101)는 상기 제1 이미지와 관련된 깊이 정보를 획득할 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 상기 제1 이미지에 대한 정보에 포함될 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 전자 장치(101)의 상기 제1 이미지에 대한 이미지 프로세싱을 통해 획득될 수 있다. 하지만, 이에 제한되지 않는다. In operation 2215, the electronic device 101 may obtain depth information related to the first image. In various embodiments, the depth information may be included in the information on the first image. In various embodiments, the depth information may be obtained through image processing of the first image by the electronic device 101. However, it is not limited thereto.

동작 2220에서, 전자 장치(101)는 상기 제1 이미지로부터 상기 음식들과 관련된 객체들을 식별할 수 있다. 다양한 실시예들에서, 전자 장치(101)는 전자 장치(101)의 상기 제1 이미지의 처리에 기반하여 상기 음식들과 관련된 객체들을 식별할 수 있다. 다양한 실시예들에서, 전자 장치(101)는, 전자 장치(101) 및 다른 전자 장치(102)와 구별되는 외부 전자 장치(예: 인공지능 서버, 이미지 인식 서버 등)와의 시그널링을 통해 상기 제1 이미지로부터 상기 음식들과 관련된 객체들을 식별할 수 있다. In operation 2220, the electronic device 101 may identify objects related to the food from the first image. In various embodiments, the electronic device 101 may identify objects related to the foods based on the processing of the first image by the electronic device 101. In various embodiments, the electronic device 101 communicates with the electronic device 101 and an external electronic device (eg, an artificial intelligence server, an image recognition server, etc.) distinguished from the electronic device 101 and the first electronic device. Objects related to the foods can be identified from the image.

동작 2225에서, 전자 장치(101)는 상기 객체들 각각에 대한 정보에 적어도 기반하여 상기 음식들 각각의 단위 당 칼로리에 대한 제1 정보를 획득할 수 있다. 다양한 실시예들에서, 전자 장치(101)는 전자 장치(101)의 메모리(130)에 저장된 데이터베이스를 이용하여, 상기 제1 정보를 획득할 수 있다. 다양한 실시예들에서, 전자 장치(101)는 전자 장치(101)과 연동된 외부 전자 장치(예: 특정 웹페이지의 서버 또는 음식 관련 서비스를 제공하는 서버 등)와의 시그널링을 통해, 상기 제1 정보를 획득할 수 있다. In operation 2225, the electronic device 101 may acquire first information about calories per unit of each of the foods based at least on information about each of the objects. In various embodiments, the electronic device 101 may obtain the first information by using a database stored in the memory 130 of the electronic device 101. In various embodiments, the electronic device 101 provides the first information through signaling with an external electronic device (eg, a server of a specific web page or a server providing food-related services) interlocked with the electronic device 101. Can be obtained.

동작 2230에서, 전자 장치(101)는 상기 깊이 정보 및 상기 제1 정보에 적어도 기반하여 상기 음식들 각각의 총 칼로리에 대한 제2 정보를 획득할 수 있다. 다양한 실시예들에서, 전자 장치(101)는 상기 깊이 정보를 통해 상기 음식들 각각의 양을 식별하고, 상기 식별된 양에 대한 정보 및 상기 제1 정보를 이용하여 상기 제2 정보를 획득할 수 있다. In operation 2230, the electronic device 101 may obtain second information on the total calories of each of the foods based at least on the depth information and the first information. In various embodiments, the electronic device 101 may identify the amount of each of the foods through the depth information, and obtain the second information by using the information on the identified amount and the first information. have.

동작 2235에서, 전자 장치(101)는 상기 제2 정보에 기반하여 제1 식단을 구성할 수 있다. 다양한 실시예들에서, 상기 제1 식단은 상기 제2 정보에 적어도 기반하여 식별되는 전자 장치(101)과 관련된 사용자의 권장 섭취량에 기반하여 구성될 수 있다. In operation 2235, the electronic device 101 may configure a first diet based on the second information. In various embodiments, the first diet may be configured based on a user's recommended intake amount associated with the electronic device 101 identified based at least on the second information.

동작 2240에서, 전자 장치(101)는 상기 구성된 제1 식단에 대한 정보를 표시할 수 있다. 예를 들면, 전자 장치(101)는, 도 8에 도시된 예와 같이, 상기 제1 식단에 대한 정보를 표시할 수 있다. In operation 2240, the electronic device 101 may display information on the configured first diet. For example, the electronic device 101 may display information on the first diet, as in the example illustrated in FIG. 8.

동작 2245에서, 다른 전자 장치(102)는 전자 장치(101)에게 제2 이미지에 대한 정보를 송신할 수 있다. 다양한 실시예들에서, 상기 제2 이미지는 상기 제1 제1 식단에 대한 정보의 표시 후 사용자의 섭취에 의해 변경된(또는 감소된) 상기 음식들과 관련된 객체들을 포함할 수 있다. In operation 2245, the other electronic device 102 may transmit information on the second image to the electronic device 101. In various embodiments, the second image may include objects related to the foods that have been changed (or reduced) by the user's consumption after displaying the information on the first diet.

상기 제1 이미지의 송신과 상기 제2 이미지의 송신 사이의 간격은 다양하게 설정될 수 있다. 예를 들면, 다른 전자 장치(102)는 상기 제1 이미지를 송신한 후, 지정된 주기마다 상기 제1 이미지와 관련된(또는 변경된) 이미지(예: 제2 이미지)를 송신할 수 있다. 다른 예를 들면, 다른 전자 장치(102)는 상기 제1 이미지의 송신 후 획득되는 이미지와 상기 제1 이미지 사이의 차이가 기준 정도보다 크다는 것을 식별하는 것에 기반하여, 상기 제1 이미지의 송신 후 획득되는 이미지(예: 제2 이미지)를 송신할 수도 있다. 하지만, 이에 제한되지 않는다. The interval between transmission of the first image and transmission of the second image may be variously set. For example, after transmitting the first image, the other electronic device 102 may transmit an image (eg, a second image) related to (or changed) the first image every specified period. As another example, based on identifying that the difference between the image acquired after transmission of the first image and the first image is greater than a reference degree, the other electronic device 102 acquires the first image after transmission. It is also possible to transmit an image (for example, a second image). However, it is not limited thereto.

전자 장치(101)는 다른 전자 장치(102)로부터 상기 제2 이미지에 대한 정보를 수신할 수 있다. The electronic device 101 may receive information on the second image from another electronic device 102.

동작 2250에서, 전자 장치(101)는 상기 제2 이미지와 관련된 깊이 정보를 획득할 수 있다. 다양한 실시예들에서, 상기 깊이 정보는 상기 제1 이미지에 포함된 객체들과 관련된 음식들 각각의 양과 상기 제2 이미지에 포함된 객체들과 관련된 음식들 각각의 양 사이의 차이를 식별하기 위해 이용될 수 있다. In operation 2250, the electronic device 101 may obtain depth information related to the second image. In various embodiments, the depth information is used to identify a difference between the amount of each food associated with the objects included in the first image and the amount of each food associated with the objects included in the second image. Can be.

동작 2255에서, 전자 장치(101)는 상기 제1 이미지와 상기 제2 이미지 사이의 차이를 식별할 수 있다. 다양한 실시예들에서, 전자 장치(101)는, 현재 식사에서 사용자의 섭취량을 인식하기 위해, 상기 제1 이미지와 상기 제2 이미지 사이의 차이를 식별할 수 있다. 동작 2255는 상기 제1 이미지와 상기 제2 이미지 사이의 차이를 식별하는 예를 도시하고 있으나, 동작 2255는 적어도 하나의 다른 동작으로 대체될 수 있다. 예를 들면, 동작 2255는 동작 2220 내지 동작 2230으로 대체될 수 있다. 하지만, 이에 제한되지 않는다. In operation 2255, the electronic device 101 may identify a difference between the first image and the second image. In various embodiments, the electronic device 101 may identify a difference between the first image and the second image in order to recognize the amount of consumption of the user in the current meal. Operation 2255 illustrates an example of identifying a difference between the first image and the second image, but operation 2255 may be replaced with at least one other operation. For example, operation 2255 may be replaced with operation 2220 to operation 2230. However, it is not limited thereto.

동작 2260에서, 전자 장치(101)는 상기 식별된 차이에 기반하여 상기 사용자의 현재 섭취량에 대한 정보를 획득할 수 있다. 예를 들면, 전자 장치(101)는 상기 제1 이미지와 관련된 깊이 정보와 상기 제2 이미지와 관련된 깊이 정보 사이의 차이에 기반하여, 상기 사용자의 현재 섭취량에 대한 정보를 획득할 수 있다. In operation 2260, the electronic device 101 may obtain information on the current consumption amount of the user based on the identified difference. For example, the electronic device 101 may obtain information on the current consumption amount of the user based on a difference between depth information related to the first image and depth information related to the second image.

동작 2265에서, 전자 장치(101)는 상기 식별된 현재 섭취량이 상기 사용자의 권장 섭취량보다 큰 지 여부를 식별할 수 있다. 다양한 실시예들에서, 상기 현재 섭취량이 상기 권장 섭취량보다 큰 경우, 전자 장치(101)는 동작 2270을 수행할 수 있다. 다양한 실시예들에서, 상기 현재 섭취량이 상기 권장 섭취량보다 작은 경우, 전자 장치(101)는 동작 2275를 수행할 수 있다. In operation 2265, the electronic device 101 may identify whether the identified current consumption amount is greater than the user's recommended consumption amount. In various embodiments, when the current intake amount is greater than the recommended intake amount, the electronic device 101 may perform operation 2270. In various embodiments, when the current intake amount is smaller than the recommended intake amount, the electronic device 101 may perform operation 2275.

동작 2270에서, 전자 장치(101)는 상기 현재 섭취량이 상기 권장 섭취량보다 큼을 식별하는 것에 기반하여, 알림을 제공할 수 있다. 다양한 실시예들에서, 상기 알림은 상기 사용자가 현재 음식을 과다 섭취하고 있음을 나타내기 위해 이용될 수 있다. 다양한 실시예들에서, 상기 알림은, 화면의 표시를 통해 제공되거나, 음성의 출력을 통해 제공되거나, 인디케이터 기능을 수행하는 발광 다이오드의 색상의 변경을 통해 제공될 수 있다. 하지만, 이에 제한되지 않는다. In operation 2270, the electronic device 101 may provide a notification based on identifying that the current intake amount is greater than the recommended intake amount. In various embodiments, the notification may be used to indicate that the user is currently consuming too much food. In various embodiments, the notification may be provided through a screen display, a voice output, or a color change of a light emitting diode that performs an indicator function. However, it is not limited thereto.

동작 2275에서, 전자 장치(101)는 상기 현재 섭취량에 대한 정보에 기반하여 상기 제2 식단을 구성할 수 있다. 다양한 실시예들에서, 전자 장치(101)는 상기 현재 섭취량에 대한 정보에 기반하여 사용자가 섭취한 음식들의 종류와 상기 사용자가 섭취한 영양 성분들의 비율 등을 인식할 수 있다. 전자 장치(101)는 상기 인식에 기반하여 상기 제1 식단으로부터 변경된 상기 제2 식단을 구성할 수 있다. In operation 2275, the electronic device 101 may configure the second diet based on the information on the current intake amount. In various embodiments, the electronic device 101 may recognize a type of food consumed by the user and a ratio of nutritional components consumed by the user based on the information on the current consumption amount. The electronic device 101 may configure the second diet changed from the first diet based on the recognition.

동작 2280에서, 전자 장치(101)는 상기 구성된 제2 식단에 대한 정보를 표시할 수 있다. 다양한 실시예들에서, 상기 제2 식단에 대한 정보는 사용자의 섭취에 따라 변경된 상황(context)을 투영하는(represent) 정보일 수 있다. In operation 2280, the electronic device 101 may display information on the configured second diet. In various embodiments, the information on the second diet may be information representing a context changed according to the user's consumption.

상술한 바와 같이, 다양한 실시예들에 따른 전자 장치(101)는, 음식의 섭취 상황을 실시간으로 촬영할 수 있는 다른 전자 장치(102)와의 연동을 통해, 사용자에게 부합하는 식단을 실시간으로 변경할 수 있다. 다양한 실시예들에 따른 전자 장치(101)는, 상기 변경을 통해, 사용자의 건강의 개선에 도움이 되는 식단을 사용자의 섭취 상황에 맞춰 제공할 수 있다. As described above, the electronic device 101 according to various embodiments may change a diet suitable for a user in real time through interworking with another electronic device 102 capable of capturing a food intake situation in real time. . The electronic device 101 according to various embodiments of the present disclosure may provide a diet that is helpful for improving the user's health through the change according to the user's consumption situation.

상술한 바와 같은 다양한 실시예들에 따른 전자 장치(예: 전자 장치(101))는, 명령어(instruction)들을 저장하는 메모리(예: 메모리(130))와, 적어도 하나의 카메라(예: 카메라 모듈(180)), 적어도 하나의 디스플레이(예: 표시 장치(160))와, 적어도 하나의 프로세서(예: 프로세서(120))를 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라를 이용하여 이미지를 획득하고, 상기 이미지로부터 복수의 음식(food)들과 관련된 복수의 객체들을 식별하고, 상기 식별된 복수의 객체들과 관련된 권장 섭취량(recommended amount of intake)에 대한 정보를 획득하고, 상기 이미지를 표시하고, 상기 권장 섭취량을 나타내기 위한 복수의 인디케이션(indication)들을 상기 이미지 내에 포함된 상기 복수의 객체들과 연관하여 표시하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. An electronic device (eg, electronic device 101) according to various embodiments as described above includes a memory (eg, memory 130) that stores instructions, and at least one camera (eg, a camera module). (180)), at least one display (e.g., display device 160), and at least one processor (e.g., processor 120), the at least one processor, the at least one camera Acquire an image by using, identify a plurality of objects related to a plurality of foods from the image, obtain information on a recommended amount of intake related to the identified plurality of objects, and , It may be configured to execute the stored instructions to display the image and display a plurality of indications for indicating the recommended intake in association with the plurality of objects included in the image.

다양한 실시예들에서, 상기 복수의 인디케이션들 각각은, 상기 복수의 객체들 각각에 중첩될 수 있다. In various embodiments, each of the plurality of indications may overlap each of the plurality of objects.

다양한 실시예들에서, 상기 복수의 인디케이션들 각각은, 상기 복수의 객체들 각각이 차지하는 영역 안에서 상기 권장 섭취량에 상응하는 영역을 강조함으로써 표시될 수 있다. In various embodiments, each of the plurality of indications may be displayed by highlighting an area corresponding to the recommended intake amount within an area occupied by each of the plurality of objects.

다양한 실시예들에서, 상기 적어도 하나의 프로세서는, 상기 복수의 객체들 중 적어도 하나의 객체와 관련된 적어도 하나의 음식 각각에 대한 권장 섭취량을 목표(targeted) 섭취량으로 변경하기 위한 입력을 검출하고, 상기 적어도 하나의 음식 각각에 대한 상기 목표 섭취량으로의 상기 변경에 적어도 기반하여 상기 복수의 인디케이션들 중 적어도 일부의 표시를 변경하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있다. 예를 들면, 상기 적어도 하나의 프로세서는, 상기 입력을 검출하는 것에 기반하여, 상기 적어도 하나의 음식 각각에 대한 상기 권장 섭취량을 상기 목표 섭취량으로 변경하고, 상기 변경된 목표 섭취량에 적어도 기반하여, 남은 음식들 각각에 대한 권장 섭취량을 식별하고, 상기 적어도 하나의 음식 각각에 대한 상기 목표 섭취량 및 상기 남은 음식들 각각에 대한 상기 권장 섭취량에 적어도 기반하여, 상기 적어도 하나의 객체와 관련된 적어도 하나의 인디케이션 및 상기 남은 음식들 중 적어도 일부와 관련된 인디케이션들의 표시를 변경하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. 예를 들면, 상기 입력은, 상기 복수의 인디케이션들 중 상기 적어도 하나의 객체와 관련된 적어도 하나의 인디케이션을 확대하거나 축소하기(reduce) 위한 드래그 입력에 상응할 수 있다. In various embodiments, the at least one processor detects an input for changing a recommended intake amount for each of at least one food related to at least one object among the plurality of objects into a targeted intake amount, and the It may be further configured to execute the stored instructions to change the display of at least some of the plurality of indications based at least on the change to the target intake for each of the at least one food. For example, the at least one processor, based on detecting the input, changes the recommended intake amount for each of the at least one food into the target intake amount, and at least based on the changed target intake amount, the remaining food Identifying a recommended intake for each of the at least one food, at least based on the target intake for each of the at least one food and the recommended intake for each of the remaining foods, at least one indication associated with the at least one object, and It may be set to execute the stored commands to change the display of indications related to at least some of the leftover foods. For example, the input may correspond to a drag input for expanding or reducing at least one indication related to the at least one object among the plurality of indications.

다양한 실시예들에서, 상기 적어도 하나의 프로세서는, 상기 이미지와 관련된 깊이 정보를 획득하고, 상기 깊이 정보에 적어도 기반하여 상기 복수의 음식들 각각의 단위 당 칼로리에 대한 제1 정보를 획득하고, 상기 깊이 정보 및 상기 제1 정보에 적어도 기반하여, 상기 복수의 음식들 각각의 총 칼로리에 대한 제2 정보를 획득하고, 상기 제2 정보에 적어도 기반하여 상기 복수의 음식들 각각에 대한 상기 권장 섭취량에 대한 정보를 획득하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있다. In various embodiments, the at least one processor acquires depth information related to the image, acquires first information about calories per unit of each of the plurality of foods based at least on the depth information, and the Obtaining second information on the total calories of each of the plurality of foods, at least based on depth information and the first information, and based on at least the second information, to the recommended intake amount for each of the plurality of foods It may be further configured to execute the stored instructions to obtain information about the.

다양한 실시예들에서, 상기 적어도 하나의 프로세서는, 상기 권장 섭취량에 대한 정보 및 상기 전자 장치와 관련된 사용자(user)의 음식의 섭취 이력에 대한 정보에 기반하여 상기 복수의 음식들 각각에 대한 상기 권장 섭취량에 대한 상기 정보를 획득하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. In various embodiments, the at least one processor provides the recommendation for each of the plurality of foods based on information on the recommended intake amount and information on a food consumption history of a user related to the electronic device. It may be set to execute the stored instructions to obtain the information about the intake.

다양한 실시예들에서, 상기 전자 장치는 통신 인터페이스(예: 통신 모듈(190))를 더 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 통신 인터페이스를 통해 상기 전자 장치와 관련된 사용자의 칼로리 소모량에 대한 정보를 수신하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있고, 상기 칼로리 소모량에 대한 정보 및 상기 제2 정보에 적어도 기반하여 상기 복수의 음식들 각각에 대한 상기 권장 섭취량에 대한 상기 정보를 획득하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. In various embodiments, the electronic device may further include a communication interface (for example, the communication module 190), and the at least one processor may determine the calorie consumption amount of the user related to the electronic device through the communication interface. It may be further configured to execute the stored commands to receive information about, and obtain the information on the recommended intake for each of the plurality of foods based at least on the information on the calorie consumption and the second information To execute the stored instructions.

다양한 실시예들에서, 상기 적어도 하나의 프로세서는, 상기 이미지로부터 복수의 음식(food)들과 관련된 복수의 객체들 각각에 대한 정보에 적어도 기반하여, 상기 복수의 음식들 중 적어도 하나의 음식에 대한 요약 정보를 획득하고, 상기 적어도 하나의 카메라를 통해 획득되는 상기 이미지에 중첩되는 상기 요약 정보(abstract information)를 표시하고, 상기 요약 정보에 대한 입력을 검출하는 것에 응답하여, 상기 요약 정보로부터 변경된 상기 적어도 하나의 음식에 대한 상세 정보를 표시하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있다. 얘를 들면, 상기 전자 장치는 통신 인터페이스를 더 포함할 수 있고, 상기 상세 정보(detail information)는, 적어도 하나의 웹사이트에 접속하기 위한 적어도 하나의 아이콘을 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 아이콘 중 하나의(an) 아이콘에 대한 입력을 검출하는 것에 응답하여, 상기 통신 인터페이스를 통해 상기 하나의 아이콘에 의해 지시되는 웹 사이트에 접속하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있다. In various embodiments, the at least one processor, based on at least information on each of a plurality of objects related to a plurality of foods from the image, for at least one of the plurality of foods In response to obtaining summary information, displaying the abstract information superimposed on the image obtained through the at least one camera, and detecting an input to the summary information, the changed from the summary information It may be further configured to execute the stored instructions to display detailed information about at least one food. For example, the electronic device may further include a communication interface, and the detail information may include at least one icon for accessing at least one website, and the at least one processor Further, in response to detecting an input for an icon of the at least one icon, execute the stored instructions to access a web site indicated by the one icon through the communication interface. Can be set.

상술한 바와 같은 다양한 실시예들에 따른 전자 장치는 명령어(instruction)들을 저장하는 메모리와, 적어도 하나의 카메라와, 적어도 하나의 디스플레이와, 적어도 하나의 프로세서를 포함할 수 있고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라를 통해 획득되고 음식들과 관련된 객체들을 포함하는 이미지와 함께 상기 음식들 각각의 권장 섭취량을 나타내기 위한 인디케이션들을 표시하고, 상기 음식들 중 제1 인디케이션과 관련된 음식의 권장 섭취량을 목표 섭취량으로 변경하기 위한 사용자 입력을 검출하고, 상기 사용자 입력에 기반하여, 상기 인디케이션들 중 상기 제1 인디케이션의 크기를 변경하고 상기 인디케이션들 중 상기 제1 인디케이션와 구별되는 제2 인디케이션의 크기를 변경하기 위해 상기 저장된 명령어들을 실행하도록 설정될 수 있다. The electronic device according to various embodiments as described above may include a memory storing instructions, at least one camera, at least one display, and at least one processor, and the at least one processor Is, displaying indications for indicating the recommended intake of each of the foods together with an image obtained through the at least one camera and including objects related to foods, and a food related to the first indication among the foods Detects a user input for changing the recommended intake amount of to a target intake amount, and changes the size of the first indication among the indications based on the user input, and is distinguished from the first indication among the indications. It may be set to execute the stored commands to change the size of the second indication.

다양한 실시예들에서, 상기 제1 인디케이션의 크기는, 상기 음식의 목표 섭취량을 나타내기 위해 변경될 수 있고, 상기 제2 인디케이션의 크기는, 상기 목표 섭취량에 기반하여 변경되는 다른 음식의 권장 섭취량을 나타내기 위해 변경될 수 있다. 예를 들면, 상기 적어도 하나의 프로세서는, 상기 사용자 입력에 기반하여, 상기 인디케이션들 중 상기 제1 인디케이션 및 상기 제2 인디케이션과 구별되는 제3 인디케이션을 표시하는 것을 중단(cease)하기 위해 상기 저장된 명령어들을 실행하도록 더 설정될 수 있다. In various embodiments, the size of the first indication may be changed to indicate a target intake amount of the food, and the size of the second indication is a recommendation of another food that is changed based on the target intake amount. Can be changed to indicate intake. For example, the at least one processor ceases to display the first indication and a third indication distinguished from the second indication among the indications based on the user input. It may be further configured to execute the stored instructions for.

다양한 실시예들에서, 상기 인디케이션들 각각은, 상기 객체들 각각이 차지하는 영역 안에서 상기 권장 섭취량에 상응하는 영역을 강조함으로써 표시될 수 있다. 예를 들면, 상기 인디케이션들 각각은, 상기 객체들 각각에 중첩될 수 있다. 예를 들면, 상기 사용자 입력은, 상기 제1 인디케이션을 확대하거나 축소하기 위한 드래그 입력에 상응할 수 있다. 예를 들면, 상기 적어도 하나의 프로세서는, 상기 이미지 및 상기 인디케이션들과 함께 상기 음식들 각각의 총 칼로리에 대한 정보를 표시하기 위해 상기 저장된 명령어들을 더 실행하도록 설정될 수 있다. 예를 들면, 상기 총 칼로리에 대한 정보는, 상기 이미지에 대한 깊이 정보(depth information)에 기반하여 식별될 수 있다. In various embodiments, each of the indications may be displayed by highlighting an area corresponding to the recommended intake amount within the area occupied by each of the objects. For example, each of the indications may overlap each of the objects. For example, the user input may correspond to a drag input for expanding or reducing the first indication. For example, the at least one processor may be configured to further execute the stored instructions to display information on total calories of each of the foods together with the image and the indications. For example, the information on the total calories may be identified based on depth information on the image.

다양한 실시예들에서, 상기 권장 섭취량은, 상기 전자 장치와 관련된 상기 사용자의 생체 정보에 기반하여 획득될 수 있다. In various embodiments, the recommended intake amount may be obtained based on biometric information of the user related to the electronic device.

본 개시의 청구항 또는 명세서에 기재된 실시예들에 따른 방법들은 하드웨어, 소프트웨어, 또는 하드웨어와 소프트웨어의 조합의 형태로 구현될(implemented) 수 있다. The methods according to the embodiments described in the claims or specification of the present disclosure may be implemented in the form of hardware, software, or a combination of hardware and software.

소프트웨어로 구현하는 경우, 하나 이상의 프로그램(소프트웨어 모듈)을 저장하는 컴퓨터 판독 가능 저장 매체가 제공될 수 있다. 컴퓨터 판독 가능 저장 매체에 저장되는 하나 이상의 프로그램은, 전자 장치(device) 내의 하나 이상의 프로세서에 의해 실행 가능하도록 구성된다(configured for execution). 하나 이상의 프로그램은, 전자 장치로 하여금 본 개시의 청구항 또는 명세서에 기재된 실시예들에 따른 방법들을 실행하게 하는 명령어(instructions)를 포함한다. When implemented in software, a computer-readable storage medium storing one or more programs (software modules) may be provided. One or more programs stored in a computer-readable storage medium are configured to be executable by one or more processors in an electronic device (device). The one or more programs include instructions that cause the electronic device to execute methods according to embodiments described in the claims or specification of the present disclosure.

이러한 프로그램(소프트웨어 모듈, 소프트웨어)은 랜덤 액세스 메모리 (random access memory), 플래시(flash) 메모리를 포함하는 불휘발성(non-volatile) 메모리, 롬(ROM: read only memory), 전기적 삭제가능 프로그램가능 롬(EEPROM: electrically erasable programmable read only memory), 자기 디스크 저장 장치(magnetic disc storage device), 컴팩트 디스크 롬(CD-ROM: compact disc-ROM), 디지털 다목적 디스크(DVDs: digital versatile discs) 또는 다른 형태의 광학 저장 장치, 마그네틱 카세트(magnetic cassette)에 저장될 수 있다. 또는, 이들의 일부 또는 전부의 조합으로 구성된 메모리에 저장될 수 있다. 또한, 각각의 구성 메모리는 다수 개 포함될 수도 있다. These programs (software modules, software) include random access memory, non-volatile memory including flash memory, read only memory (ROM), and electrically erasable programmable ROM. (EEPROM: electrically erasable programmable read only memory), magnetic disc storage device, compact disc-ROM (CD-ROM), digital versatile discs (DVDs), or other types of It may be stored in an optical storage device or a magnetic cassette. Alternatively, it may be stored in a memory composed of a combination of some or all of them. In addition, a plurality of configuration memories may be included.

또한, 상기 프로그램은 인터넷(Internet), 인트라넷(Intranet), LAN(local area network), WLAN(wide LAN), 또는 SAN(storage area network)과 같은 통신 네트워크, 또는 이들의 조합으로 구성된 통신 네트워크를 통하여 접근(access)할 수 있는 부착 가능한(attachable) 저장 장치(storage device)에 저장될 수 있다. 이러한 저장 장치는 외부 포트를 통하여 본 개시의 실시 예를 수행하는 장치에 접속할 수 있다. 또한, 통신 네트워크상의 별도의 저장장치가 본 개시의 실시 예를 수행하는 장치에 접속할 수도 있다. In addition, the program is a communication network such as the Internet (Internet), intranet (Intranet), LAN (local area network), WLAN (wide LAN), or SAN (storage area network), or a communication network consisting of a combination thereof. It may be stored in an attachable storage device that can be accessed. Such a storage device may be connected to a device performing an embodiment of the present disclosure through an external port. In addition, a separate storage device on the communication network may access a device performing an embodiment of the present disclosure.

상술한 본 개시의 구체적인 실시예들에서, 개시에 포함되는 구성 요소는 제시된 구체적인 실시 예에 따라 단수 또는 복수로 표현되었다. 그러나, 단수 또는 복수의 표현은 설명의 편의를 위해 제시한 상황에 적합하게 선택된 것으로서, 본 개시가 단수 또는 복수의 구성 요소에 제한되는 것은 아니며, 복수로 표현된 구성 요소라 하더라도 단수로 구성되거나, 단수로 표현된 구성 요소라 하더라도 복수로 구성될 수 있다. In the above-described specific embodiments of the present disclosure, components included in the disclosure are expressed in the singular or plural according to the presented specific embodiments. However, the singular or plural expression is selected appropriately for the situation presented for convenience of description, and the present disclosure is not limited to the singular or plural constituent elements, and even constituent elements expressed in plural are composed of the singular or in the singular. Even the expressed constituent elements may be composed of pluralities.

한편 본 개시의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 개시의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 개시의 범위는 설명된 실시 예에 국한되어 정해져서는 아니 되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다. Meanwhile, although specific embodiments have been described in the detailed description of the present disclosure, various modifications are possible without departing from the scope of the present disclosure. Therefore, the scope of the present disclosure is limited to the described embodiments and should not be determined, and should be determined by the scope of the claims as well as the equivalents of the claims to be described later.

Claims (20)

전자 장치(electronic device)에 있어서,
적어도 하나의 카메라;
적어도 하나의 디스플레이;
적어도 하나의 프로세서; 및
상기 적어도 하나의 프로세서에 의해 실행 가능한 명령어들(instructions)을 저장하는 메모리를 포함하고, 상기 명령어들은,
상기 적어도 하나의 카메라를 이용하여 이미지를 획득하여 표시하고,
상기 표시된 이미지로부터 제1 음식(food) 아이템 및 제2 음식 아이템을 포함하는 복수의 음식 아이템들을 식별하고,
상기 복수의 음식 아이템들 각각에 대응하는 영양 정보(nutrition information)를 획득하고,
상기 영양 정보에 기반하여 상기 복수의 음식 아이템들과 관련된 권장 섭취량들(recommended consumption quantities)을 포함하는 권장 정보를 획득하고,
각 음식 아이템의 권장 섭취량을 나타내는 인디케이션을 각 음식 아이템과 중첩되도록 표시하고, 및
상기 복수의 음식 아이템들 중 상기 제1 음식 아이템에 중첩된 제1 인디케이션을 선택하여 크기를 변경하는 입력의 검출에 대응하여:
상기 제1 음식 아이템에 대한 제1 권장 섭취량을 새로운 목표 섭취량으로 변경하고, 및
상기 표시된 이미지 내에 포함된 상기 복수의 음식 아이템들의 총 섭취량을 유지하기 위해, 상기 제1 음식 아이템의 상기 새로운 목표 섭취량에 따른 상기 제2 음식 아이템에 대한 제2 권장 섭취량의 변화를 나타내기 위해 상기 제2 음식 아이템에 중첩된 제2 인디케이션의 크기를 변경하도록 상기 전자 장치를 야기하는 전자 장치.
In an electronic device,
At least one camera;
At least one display;
At least one processor; And
And a memory storing instructions executable by the at least one processor, the instructions,
Acquiring and displaying an image using the at least one camera,
Identifying a plurality of food items including a first food item and a second food item from the displayed image,
Obtaining nutritional information corresponding to each of the plurality of food items,
Obtaining recommended information including recommended consumption quantities related to the plurality of food items based on the nutritional information,
An indication indicating the recommended intake amount of each food item is displayed to overlap with each food item, and
In response to detection of an input for changing the size by selecting a first indication overlapping the first food item from among the plurality of food items:
Change the first recommended intake amount for the first food item to a new target intake amount, and
In order to maintain the total intake amount of the plurality of food items included in the displayed image, the second recommended intake amount for the second food item according to the new target intake amount of the first food item is changed. 2 An electronic device causing the electronic device to change the size of a second indication superimposed on a food item.
청구항 1에 있어서, 각 인디케이션은,
음식 아이템의 적어도 일부에 중첩된 하이라이팅 효과(highlighting effect)를 포함하고,
상기 하이라이팅 효과는,
상기 음식 아이템의 권장 섭취량을 나타내는 전자 장치.
The method according to claim 1, each indication,
Including a highlighting effect superimposed on at least a portion of the food item,
The highlighting effect is,
An electronic device indicating the recommended intake of the food item.
청구항 1에 있어서, 상기 명령어들은,
각 음식 아이템의 영양 성분에 기초하여, 상기 각 음식 아이템의 질감, 색상 또는 밝기 중 적어도 하나를 다르게 표시하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 1, wherein the instructions,
An electronic device further executable by the at least one processor to cause the electronic device to display at least one of a texture, color, or brightness of each food item differently based on the nutritional content of each food item.
청구항 1에 있어서, 상기 입력은,
상기 제1 인디케이션에 대한 드래그 입력을 포함하는 전자 장치.
The method of claim 1, wherein the input,
An electronic device comprising a drag input for the first indication.
청구항 1에 있어서, 상기 명령어들은,
상기 제1 인디케이션의 크기가 증가되면, 상기 제2 인디케이션의 크기를 감소하여 상기 복수의 음식 아이템들의 총 섭취량이 유지되도록 상기 전자 장치를 야기하는 전자 장치.
The method of claim 1, wherein the instructions,
When the size of the first indication increases, the electronic device causes the electronic device to decrease the size of the second indication to maintain the total intake of the plurality of food items.
청구항 1에 있어서,
상기 이미지가 상기 적어도 하나의 카메라를 이용하여 획득될 시, 깊이 정보(depth information)가 획득되고,
상기 영양 정보는,
상기 이미지 내의 각 음식 아이템에 대한 단위 무게 당 칼로리를 포함하고,
상기 명령어들은,
상기 깊이 정보를 이용하여 상기 각 음식 아이템의 무게를 추정하고,
상기 추정된 무게 및 상기 단위 무게 당 칼로리에 기반하여 상기 각 음식 아이템의 추정된 칼로리 값을 산출하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능하며,
상기 각 음식 아이템의 권장 섭취량은,
상기 추정된 칼로리 값에 적어도 일부 기반되는 전자 장치.
The method according to claim 1,
When the image is acquired using the at least one camera, depth information is acquired,
The nutritional information above,
Including calories per unit weight for each food item in the image,
The above commands are:
Estimating the weight of each food item using the depth information,
Further executable by the at least one processor to cause the electronic device to calculate an estimated calorie value of each food item based on the estimated weight and the calories per unit weight,
The recommended intake for each of the above food items is,
An electronic device based at least in part on the estimated calorie value.
청구항 1에 있어서, 상기 권장 섭취량은,
상기 전자 장치와 관련된 사용자의 음식 섭취 이력에 더 기반되는 전자 장치.
The method of claim 1, wherein the recommended intake is,
An electronic device further based on a user's food intake history associated with the electronic device.
청구항 1에 있어서,
통신 인터페이스를 더 포함하고,
상기 명령어들은,
상기 통신 인터페이스를 통해 상기 전자 장치의 사용자의 칼로리 소비에 대한 정보를 수신하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능하며,
상기 권장 섭취량은, 상기 수신된 정보에 기반되는 전자 장치.
The method according to claim 1,
Further comprising a communication interface,
The above commands are:
Further executable by the at least one processor to cause the electronic device to receive information on calorie consumption of a user of the electronic device via the communication interface,
The recommended intake amount is an electronic device based on the received information.
청구항 1에 있어서, 상기 명령어들은,
상기 복수의 음식 아이템들 중 적어도 하나의 음식 아이템에 대한 요약 정보를 획득하고 상기 이미지 위에 중첩된 상기 요약 정보를 표시하고,
입력을 검출하는 것에 응답하여, 상기 요약 정보의 표시를 상기 적어도 하나의 음식 아이템에 대한 상세 정보(detail information)로 변경하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 1, wherein the instructions,
Acquiring summary information on at least one food item among the plurality of food items and displaying the summary information superimposed on the image,
In response to detecting an input, an electronic device further executable by the at least one processor to cause the electronic device to change the presentation of the summary information to detail information for the at least one food item .
청구항 9에 있어서,
통신 인터페이스를 더 포함하고,
상기 상세 정보는,
적어도 하나의 웹 사이트에 접속하기 위한 적어도 하나의 아이콘을 포함하고,
상기 명령어들은,
상기 적어도 하나의 아이콘의 선택을 검출하는 것에 응답하여, 상기 통신 인터페이스를 이용하여 상기 적어도 하나의 웹 사이트에 접속하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 9,
Further comprising a communication interface,
The above detailed information,
Includes at least one icon for accessing at least one website,
The above commands are:
An electronic device further executable by the at least one processor to cause the electronic device to access the at least one web site using the communication interface in response to detecting the selection of the at least one icon.
청구항 1에 있어서, 상기 명령어들은
상기 제1 음식 아이템에 대한 제1 인디케이션의 선택에 대응하여, 상기 제1 음식 아이템과 적어도 일부가 중첩되고, 상기 제1 음식 아이템에 대한 상기 제1 권장 섭취량을 상기 새로운 목표 섭취량으로 변경할 수 있는 다수의 객체들을 포함하는 윈도우를 표시하고, 및
상기 윈도우에 포함된 다수의 객체들을 이용하여, 상기 제1 음식 아이템에 대한 상기 새로운 목표 섭취량을 설정하는 입력을 감지하고, 상기 설정된 새로운 목표 섭취량에 대응하여 상기 제1 인디케이션의 크기를 변경하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 1, wherein the instructions are
In response to selection of the first indication for the first food item, at least a portion of the first food item overlaps, and the first recommended intake amount for the first food item may be changed to the new target intake amount. Displaying a window including a plurality of objects, and
By using a plurality of objects included in the window, the input for setting the new target intake amount for the first food item is sensed, and the size of the first indication is changed in response to the set new target intake amount. An electronic device further executable by the at least one processor to cause an electronic device.
전자 장치(electronic device)에 있어서,
적어도 하나의 카메라;
적어도 하나의 디스플레이;
적어도 하나의 프로세서; 및
메모리를 포함하고, 상기 메모리는,
상기 적어도 하나의 카메라를 통해 복수의 음식(food) 아이템들(items)을 포함하는 이미지를 캡쳐하여 표시하고,
상기 표시된 이미지로부터 제1 음식 아이템 및 제2 음식 아이템을 포함하는 복수의 음식 아이템들을 식별하고,
상기 복수의 음식 아이템들과 관련된 권장 섭취량들(recommended consumption quantities)을 포함하는 권장 정보를 획득하고,
상기 표시된 이미지 내에 포함된 각 음식 아이템의 권장 섭취량을 나타내는 인디케이션을 각 음식 아이템과 중첩되도록 표시하고, 및
상기 복수의 음식 아이템들 중 상기 제1 음식 아이템에 중첩된 제1 인디케이션을 선택하여 크기를 변경하는 사용자 입력의 검출에 대응하여:
상기 제1 음식 아이템에 대한 제1 권장 섭취량을 새로운 목표 섭취량으로 변경하고, 및
상기 표시된 이미지 내에 포함된 상기 복수의 음식 아이템들의 총 섭취량을 유지하기 위해, 상기 제1 음식 아이템들의 상기 새로운 목표 섭취량에 따른 상기 제2 음식 아이템에 대한 제2 권장 섭취량의 변화를 나타내기 위해 상기 제2 음식 아이템에 중첩된 제2 인디케이션의 크기를 변경하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 실행 가능한 명령어들(instructions)을 저장하는 전자 장치.
In an electronic device,
At least one camera;
At least one display;
At least one processor; And
It includes a memory, the memory,
Capturing and displaying an image including a plurality of food items through the at least one camera,
Identifying a plurality of food items including a first food item and a second food item from the displayed image,
Obtaining recommended information including recommended consumption quantities associated with the plurality of food items,
Displaying an indication indicating the recommended intake amount of each food item included in the displayed image to overlap with each food item, and
In response to detection of a user input of changing a size by selecting a first indication overlapping the first food item from among the plurality of food items:
Change the first recommended intake amount for the first food item to a new target intake amount, and
In order to maintain the total intake amount of the plurality of food items included in the displayed image, the second recommended intake amount for the second food item is changed according to the new target intake amount of the first food items. 2 An electronic device storing instructions executable by the at least one processor to cause the electronic device to change the size of a second indication superimposed on a food item.
청구항 12에 있어서, 상기 제1 인디케이션의 변경된 크기는,
상기 제1 음식 아이템의 목표 섭취량을 나타내고,
상기 제2 인디케이션의 변경된 크기는,
상기 목표 섭취량에 기반하여 변경되는 상기 제2 음식 아이템의 권장 섭취량을 나타내는 전자 장치.
The method of claim 12, wherein the changed size of the first indication,
Represents the target intake amount of the first food item,
The changed size of the second indication,
An electronic device indicating a recommended intake amount of the second food item that is changed based on the target intake amount.
청구항 13에 있어서, 상기 명령어들은,
상기 사용자 입력에 응답하여, 상기 제1 인디케이션 및 상기 제2 인디케이션과 다른 제3 인디케이션의 표시를 중단하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 13, wherein the instructions,
The electronic device further executable by the at least one processor to cause the electronic device to stop displaying the first indication and a third indication different from the second indication in response to the user input.
청구항 12에 있어서, 각 인디케이션은,
음식 아이템의 적어도 일부에 중첩되는 강조 효과를 포함하고,
상기 강조 효과는,
상기 음식 아이템의 권장 섭취량을 나타내는 전자 장치.
The method according to claim 12, each indication,
Includes an emphasis effect superimposed on at least some of the food items,
The emphasis effect is,
An electronic device indicating the recommended intake of the food item.
청구항 12에 있어서, 상기 사용자 입력은,
상기 제1 인디케이션에서의 드래그 입력을 포함하는 전자 장치.
The method of claim 12, wherein the user input,
An electronic device including a drag input in the first indication.
청구항 12에 있어서, 상기 명령어들은,
상기 제1 인디케이션의 크기가 증가되면, 상기 제2 인디케이션의 크기를 감소하여 상기 복수의 음식 아이템들의 총 섭취량이 유지되도록 상기 전자 장치를 야기하는 전자 장치.
The method of claim 12, wherein the instructions,
When the size of the first indication increases, the electronic device causes the electronic device to decrease the size of the second indication to maintain the total intake of the plurality of food items.
청구항 12에 있어서, 상기 명령어들은,
상기 각 음식 아이템의 총 칼로리에 대한 정보를 표시하도록 상기 전자 장치를 야기하기 위해 상기 적어도 하나의 프로세서에 의해 더 실행 가능한 전자 장치.
The method of claim 12, wherein the instructions,
The electronic device further executable by the at least one processor to cause the electronic device to display information about the total calories of each food item.
청구항 18에 있어서, 상기 총 칼로리에 대한 정보는,
상기 각 음식 아이템의 스케일 및 무게를 추정하기 위해 이용되는 깊이 정보(depth information)에 적어도 일부 기반하여 산출되는 전자 장치.
The method of claim 18, wherein the information on the total calories,
An electronic device that is calculated based at least in part on depth information used to estimate the scale and weight of each food item.
청구항 12에 있어서, 상기 권장 섭취량은,
상기 전자 장치와 관련된 상기 사용자에 대한 생체 정보에 기반하여 획득되는 전자 장치.
The method of claim 12, wherein the recommended intake is,
An electronic device obtained based on biometric information about the user related to the electronic device.
KR1020200065859A 2020-06-01 2020-06-01 Electronic device and method for processing information associated with food KR102209741B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200065859A KR102209741B1 (en) 2020-06-01 2020-06-01 Electronic device and method for processing information associated with food

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200065859A KR102209741B1 (en) 2020-06-01 2020-06-01 Electronic device and method for processing information associated with food

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020180002476A Division KR20190084567A (en) 2018-01-08 2018-01-08 Electronic device and method for processing information associated with food

Publications (2)

Publication Number Publication Date
KR20200066278A KR20200066278A (en) 2020-06-09
KR102209741B1 true KR102209741B1 (en) 2021-01-29

Family

ID=71082724

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200065859A KR102209741B1 (en) 2020-06-01 2020-06-01 Electronic device and method for processing information associated with food

Country Status (1)

Country Link
KR (1) KR102209741B1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11754090B2 (en) 2020-03-04 2023-09-12 Lg Electronics Inc. Blower
US11473593B2 (en) 2020-03-04 2022-10-18 Lg Electronics Inc. Blower comprising a fan installed in an inner space of a lower body having a first and second upper body positioned above and a space formed between the bodies wherein the bodies have a first and second openings formed through respective boundary surfaces which are opened and closed by a door assembly
TWI810561B (en) 2020-05-14 2023-08-01 南韓商Lg電子股份有限公司 Blower
US20210372437A1 (en) 2020-06-02 2021-12-02 Lg Electronics Inc. Blower
US11739760B2 (en) 2020-06-02 2023-08-29 Lg Electronics Inc. Blower
KR102633833B1 (en) * 2020-11-30 2024-02-02 주식회사 아이앤아이솔루션 Healthy menu plan information collection and service provision platform system
WO2022145533A1 (en) * 2020-12-30 2022-07-07 주식회사 누비랩 System and method for monitoring food waste
KR102563874B1 (en) * 2023-01-03 2023-08-04 주식회사 두잉랩 An electronic apparatus that performs autocrraling based artifical intelligence and an electronic apparatus that provides nutrient information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130335418A1 (en) * 2011-02-25 2013-12-19 Lg Electronics Inc. Analysis of food items captured in digital images
US20160035248A1 (en) * 2013-03-14 2016-02-04 Sciencestyle Capital Partners, Llc Providing Food-Portion Recommendations to Facilitate Dieting

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7432454B1 (en) 2008-03-10 2008-10-07 International Business Machines Corporation Nutrition intake tracker
KR20120039102A (en) * 2010-10-15 2012-04-25 엘지전자 주식회사 Apparatus and method for diet management
KR20160128017A (en) * 2015-04-28 2016-11-07 삼성전자주식회사 Electronic apparatus, server and control method thereof
KR20170031517A (en) * 2015-09-11 2017-03-21 엘지전자 주식회사 Mobile terminal and operating method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130335418A1 (en) * 2011-02-25 2013-12-19 Lg Electronics Inc. Analysis of food items captured in digital images
US20160035248A1 (en) * 2013-03-14 2016-02-04 Sciencestyle Capital Partners, Llc Providing Food-Portion Recommendations to Facilitate Dieting

Also Published As

Publication number Publication date
KR20200066278A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
US10803315B2 (en) Electronic device and method for processing information associated with food
KR102209741B1 (en) Electronic device and method for processing information associated with food
KR102647656B1 (en) Electronic device displaying additional object on augmented reality image and method for driving the electronic device
US20200134811A1 (en) Capturing color information from a physical environment
US9053483B2 (en) Personal audio/visual system providing allergy awareness
CN111161035B (en) Dish recommendation method and device, server, electronic equipment and storage medium
CN104081438B (en) The treatment of name bubble
US20140282137A1 (en) Automatically fitting a wearable object
KR20160084706A (en) Device for Providing Description Information Regarding Workout Record and Method Thereof
US11126845B1 (en) Comparative information visualization in augmented reality
CN105912667A (en) Method and device for information recommendation and mobile terminal
CN110019918B (en) Information display method, device, equipment and storage medium of virtual pet
US20160148343A1 (en) Information Processing Method and Electronic Device
EP3876139B1 (en) Method for estimating object parameters and electronic device
CN111222569A (en) Method, device, electronic equipment and medium for identifying food
US11596764B2 (en) Electronic device and method for providing information for stress relief by same
CN111506758A (en) Method and device for determining article name, computer equipment and storage medium
CN110246110B (en) Image evaluation method, device and storage medium
CN112951373A (en) Food material recommendation method and device, intelligent refrigerator and intelligent terminal
CN112464013A (en) Information pushing method and device, electronic equipment and storage medium
KR20210104360A (en) Method and system for providing image recognition based artificial intelligence service
KR102326540B1 (en) Methods for management of nutrition and disease using food images
US10758159B2 (en) Measuring somatic response to stimulus utilizing a mobile computing device
KR20190048922A (en) Smart table and controlling method thereof
KR20230031107A (en) Device and method of generating emotion combiend content

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant