KR102662050B1 - Electronic device and method for providing image acquired through camera to a plurality of applications - Google Patents

Electronic device and method for providing image acquired through camera to a plurality of applications Download PDF

Info

Publication number
KR102662050B1
KR102662050B1 KR1020190011920A KR20190011920A KR102662050B1 KR 102662050 B1 KR102662050 B1 KR 102662050B1 KR 1020190011920 A KR1020190011920 A KR 1020190011920A KR 20190011920 A KR20190011920 A KR 20190011920A KR 102662050 B1 KR102662050 B1 KR 102662050B1
Authority
KR
South Korea
Prior art keywords
camera
application
image processing
electronic device
image
Prior art date
Application number
KR1020190011920A
Other languages
Korean (ko)
Other versions
KR20200094436A (en
Inventor
안규식
민병현
백우현
윤준호
박광규
정인호
이기혁
Original Assignee
삼성전자 주식회사
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to KR1020190011920A priority Critical patent/KR102662050B1/en
Priority to PCT/KR2019/011927 priority patent/WO2020159032A1/en
Publication of KR20200094436A publication Critical patent/KR20200094436A/en
Application granted granted Critical
Publication of KR102662050B1 publication Critical patent/KR102662050B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Abstract

본 문서는 복수의 어플리케이션에 카메라에서 획득한 이미지를 제공하는 전자 장치 및 그의 동작 방법에 관한 것으로, 다양한 실시예에 따른 전자 장치는 카메라, 프로세서 및 메모리를 포함할 수 있다. 다양한 실시예에 따르면, 메모리는, 실행 시에, 프로세서가, 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성하고, 제1 어플리케이션의 카메라 동작 요청에 대한 응답으로, 이미지 정보를 획득하고, 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공하고, 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공하는 인스트럭션들을 저장할 수 있다. 그 밖의 다양한 실시예가 가능하다.This document relates to an electronic device that provides images acquired from a camera to a plurality of applications and a method of operating the same. The electronic device according to various embodiments may include a camera, a processor, and memory. According to various embodiments, when the memory is executed, the processor generates a plurality of image processing code sets based on image processing-related information included in the plurality of applications and responds to a camera operation request of the first application. Obtaining image information, processing the obtained image information using a first image processing code set corresponding to the first application, and providing it to the first application, in response to a camera operation request from the second application, The obtained image information may be processed using a second image processing code set corresponding to the second application among the plurality of image processing code sets, and instructions provided to the second application may be stored. Various other embodiments are possible.

Description

복수의 어플리케이션에 카메라에서 획득한 이미지를 제공하는 전자 장치 및 그의 동작 방법{ELECTRONIC DEVICE AND METHOD FOR PROVIDING IMAGE ACQUIRED THROUGH CAMERA TO A PLURALITY OF APPLICATIONS}Electronic device for providing images acquired from a camera to multiple applications and method of operating the same {ELECTRONIC DEVICE AND METHOD FOR PROVIDING IMAGE ACQUIRED THROUGH CAMERA TO A PLURALITY OF APPLICATIONS}

본 문서에 개시된 다양한 실시예들은, 복수의 어플리케이션에 카메라에서 획득한 이미지를 제공하는 전자 장치 및 그의 동작 방법에 관한 것으로, 예를 들어, 카메라를 통해 획득한 이미지를 처리하여 복수의 어플리케이션에 제공할 수 있는 전자 장치 및 그의 동작 방법에 관한 것이다.Various embodiments disclosed in this document relate to an electronic device that provides images acquired from a camera to a plurality of applications and a method of operating the same. For example, images acquired through a camera are processed and provided to a plurality of applications. It relates to an electronic device that can operate the same and its operating method.

이동통신 기술 및 프로세서 기술의 발달에 따라 휴대 단말 장치(이하, 전자 장치)는 종래의 통화 기능에서 나아가 다양한 어플리케이션들을 구현할 수 있게 되었다. 전자 장치는 카메라 모듈을 구비하여 영상을 획득하고, 획득된 영상들을 어플리케이션에 제공할 수 있고, 어플리케이션은 영상을 디스플레이 상에 출력하거나, 영상의 편집, 오브젝트 인식을 포함한 다양한 기능을 수행할 수 있다.With the development of mobile communication technology and processor technology, portable terminal devices (hereinafter referred to as electronic devices) have been able to implement various applications beyond the conventional call function. An electronic device may be equipped with a camera module to acquire images and provide the acquired images to an application, and the application may output images on a display or perform various functions including image editing and object recognition.

전자 장치에는 카메라 서비스를 이용하는 복수의 어플리케이션이 설치될 수 있다. 또한 카메라 서비스를 이용하는 다양한 형태의 복수의 어플리케이션이 동시에 실행될 수 있다.Multiple applications that use camera services may be installed on an electronic device. Additionally, multiple applications of various types that use camera services can be executed simultaneously.

하나의 어플리케이션이 카메라 모듈에 액세스하여 영상을 획득하는 경우 해당 어플리케이션이 독점적으로 카메라 모듈을 포함한 카메라 리소스를 사용하고, 다른 어플리케이션은 카메라 모듈에 액세스하지 못하는 경우가 있을 수 있다.When one application accesses a camera module to acquire images, there may be cases where the application exclusively uses camera resources, including the camera module, and other applications are unable to access the camera module.

복수의 어플리케이션 각각이 카메라 리소스를 사용하는 경우, 각각의 어플리케이션으로부터 카메라 동작 요청이 있을 때마다 카메라 모듈을 활성화하여 이미지 처리를 수행함으로써, 카메라 리소스의 낭비가 발생할 수 있다.When a plurality of applications each use camera resources, the camera module is activated to perform image processing whenever a camera operation request is made from each application, which may result in waste of camera resources.

카메라를 통한 지속적인 모니터링이 요구되는 이미지 처리 수행 시 일정한 성능으로 이미지를 획득하여 처리하는 경우, 카메라 리소스가 낭비될 수 있다.When performing image processing that requires continuous monitoring through a camera, camera resources may be wasted if images are acquired and processed with constant performance.

본 문서에 개시된 다양한 실시예에 따른 전자 장치는 카메라, 프로세서 및 상기 프로세서와 전기적으로 연결되는 메모리를 포함할 수 있다. 다양한 실시예에 따르면 상기 메모리는, 실행 시에, 상기 프로세서가, 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성하고, 상기 복수의 어플리케이션 중 제1 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 카메라를 통해 이미지 정보를 획득하고, 상기 복수의 이미지 처리 코드 세트 중 상기 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공하고, 상기 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공하는 인스트럭션들을 저장할 수 있다.Electronic devices according to various embodiments disclosed in this document may include a camera, a processor, and a memory electrically connected to the processor. According to various embodiments, when the memory is executed, the processor generates a plurality of image processing code sets based on image processing-related information included in the plurality of applications, and executes the first application among the plurality of applications. In response to a camera operation request, image information is acquired through the camera, and the obtained image information is processed using a first image processing code set corresponding to the first application among the plurality of image processing code sets. provided to a first application, and in response to a camera operation request of a second application among the plurality of applications, the obtained image processing code set using a second image processing code set corresponding to the second application among the plurality of image processing code sets. Image information can be processed and instructions provided to the second application can be stored.

본 문서에 개시된 다양한 실시예에 따른 전자 장치의 동작 방법은, 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성하는 동작, 상기 복수의 어플리케이션 중 제1 어플리케이션의 카메라 동작 요청에 대한 응답으로, 카메라로부터 이미지 정보를 획득하는 동작, 상기 복수의 이미지 처리 코드 세트 중 상기 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공하는 동작 및 상기 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공하는 동작을 포함할 수 있다.A method of operating an electronic device according to various embodiments disclosed in this document includes generating a plurality of image processing code sets based on image processing-related information included in a plurality of applications, and operating a first application among the plurality of applications. In response to a camera operation request, obtaining image information from a camera, processing the obtained image information using a first image processing code set corresponding to the first application among the plurality of image processing code sets, 1 In response to the operation provided to the application and the camera operation request of the second application among the plurality of applications, the obtained image processing code set is obtained using a second image processing code set corresponding to the second application among the plurality of image processing code sets. It may include processing image information and providing it to the second application.

본 개시의 다양한 실시예에 따른 전자 장치는 복수의 어플리케이션으로부터 서로 다른 이미지 처리 데이터 요청을 수신하는 경우, 카메라를 통해 획득한 이미지를 처리하여 서로 다른 이미지 처리 데이터를 생성하여 복수의 어플리케이션 각각에 제공함으로써, 카메라 리소스의 낭비를 줄일 수 있다.When receiving different image processing data requests from a plurality of applications, an electronic device according to various embodiments of the present disclosure processes images acquired through a camera to generate different image processing data and provides it to each of the plurality of applications. , waste of camera resources can be reduced.

본 개시의 다양한 실시예에 따른 전자 장치는 소프트웨어 플랫폼을 통해 카메라 제어 및 이미지 처리를 수행하므로, 한 번의 이미지 처리를 통해 획득한 이미지 처리 데이터를 복수의 어플리케이션 각각에 제공할 수 있어서, 카메라 리소스의 낭비를 줄일 수 있다.Electronic devices according to various embodiments of the present disclosure perform camera control and image processing through a software platform, so that image processing data obtained through one image processing can be provided to each of a plurality of applications, thereby wasting camera resources. can be reduced.

본 개시의 다양한 실시예에 따른 전자 장치는 카메라를 통한 지속적인 모니터링이 요구되는 이미지 처리 수행 시 복수의 사용자의 패턴을 분석한 결과에 기초하여 카메라 리소스의 성능을 조정함으로써 카메라 리소스의 낭비를 줄일 수 있다.Electronic devices according to various embodiments of the present disclosure can reduce waste of camera resources by adjusting the performance of camera resources based on the results of analyzing patterns of multiple users when performing image processing that requires continuous monitoring through a camera. .

도 1은 본 개시의 다양한 실시예에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 개시의 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은 본 개시의 다양한 실시예에 따른 카메라에서 획득된 이미지 정보를 처리한 데이터가 적어도 하나의 어플리케이션으로 전달되는 과정을 도시한 도면이다.
도 4는 본 개시의 다양한 실시예에 따른 이미지 처리를 수행하는 과정을 도시한 도면이다.
도 5는 본 개시의 다양한 실시예에 따른 카메라를 통해 이미지 정보를 획득하는 방법을 도시한 블록도이다.
도 6은 본 개시의 다양한 실시예에 따른 전자 장치의 블록도이다.
도 7은 본 개시의 다양한 실시예에 따른 프로세서의 블록도이다.
도 8은 본 개시의 다양한 실시예에 따른 복수의 어플리케이션으로 이미지 처리 데이터를 제공하는 방법을 나타낸 동작흐름도이다.
도 9는 본 개시의 다양한 실시예에 따른 복수의 어플리케이션으로 이미지 처리 데이터를 제공하는 방법을 나타낸 동작흐름도이다.
도 10은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.
도 11은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.
도 12는 본 개시의 다양한 실시예에 따른 사용자 감정 분석 데이터를 획득할 때의 전자 장치의 동작 방법을 도시한 도면이다.
도 13은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure.
2 is a block diagram illustrating a program according to various embodiments of the present disclosure.
FIG. 3 is a diagram illustrating a process in which data obtained by processing image information obtained from a camera is transmitted to at least one application according to various embodiments of the present disclosure.
FIG. 4 is a diagram illustrating a process for performing image processing according to various embodiments of the present disclosure.
Figure 5 is a block diagram illustrating a method of acquiring image information through a camera according to various embodiments of the present disclosure.
6 is a block diagram of an electronic device according to various embodiments of the present disclosure.
7 is a block diagram of a processor according to various embodiments of the present disclosure.
FIG. 8 is an operation flowchart illustrating a method of providing image processing data to a plurality of applications according to various embodiments of the present disclosure.
Figure 9 is an operation flowchart illustrating a method of providing image processing data to a plurality of applications according to various embodiments of the present disclosure.
10 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.
11 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.
FIG. 12 is a diagram illustrating a method of operating an electronic device when acquiring user emotion analysis data according to various embodiments of the present disclosure.
13 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.

도 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 the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., 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 (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one 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 ) may include. 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 a single integrated circuit. For example, the sensor module 176 (e.g., a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented while being embedded in the display device 160 (e.g., 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 (e.g., program 140) to configure at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes a main processor 121 (e.g., a central processing unit or an application processor), and an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, an image signal processor). , sensor hub processor, or communication processor). Additionally or alternatively, the auxiliary processor 123 may be set to use less power than the main processor 121 or to specialize in a designated function. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

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

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

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

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 155 may output sound signals 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 incoming calls. 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 can 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 one embodiment, the display device 160 may include touch circuitry configured to detect a touch, or a sensor circuit configured to measure the intensity of force generated by the touch (e.g., a pressure sensor). there is.

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

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air 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, humidity sensor, or light 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 can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102). According to one 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 one 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 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one 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 can capture still images and moving images. According to one 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 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 388 may be implemented as at least a part of, for example, 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 one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, 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 provides a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (e.g., 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 (e.g., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, WiFi direct, or IrDA (infrared data association)) or a second network 199 (e.g., a cellular network, the Internet, or It can communicate with external electronic devices through a computer network (e.g., a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 can be confirmed and authenticated.

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

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (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 one 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 the same or different type of device from the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 must perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may process the result as 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. This can be used.

도 2는 다양한 실시예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.Figure 2 is a block diagram 200 illustrating program 140 according to various embodiments. According to one embodiment, the program 140 includes an operating system 142, middleware 144, or an application 146 executable on the operating system 142 for controlling one or more resources of the electronic device 101. It can be included. Operating system 142 may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM . At least some of the programs 140 are preloaded into the electronic device 101, for example, at the time of manufacture, or are stored in an external electronic device (e.g., the electronic device 102 or 104, or a server) when used by a user. It can be downloaded or updated from 108)).

운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.The operating system 142 may control management (eg, allocation or retrieval) of one or more system resources (eg, process, memory, or power) of the electronic device 101 . Operating system 142 may additionally or alternatively operate on other hardware devices of electronic device 101, such as input device 150, audio output device 155, display device 160, audio module 170. , 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 It may include one or more driver programs for driving the antenna module 197.

미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다. The middleware 144 may provide various functions to the application 146 so that functions or information provided from one or more resources of the electronic device 101 can be used by the application 146. The middleware 144 includes, for example, an application manager 201, a window manager 203, a multimedia manager 205, a resource manager 207, a power manager 209, a database manager 211, and a package manager 213. ), connectivity manager (215), notification manager (217), location manager (219), graphics manager (221), security manager (223), call manager (225), or voice recognition manager (227). You can.

어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.The application manager 201 may, for example, manage the life cycle of the application 146. The window manager 203 may, for example, manage one or more GUI resources used on the screen. For example, the multimedia manager 205 identifies one or more formats required for playing media files, and encodes or decodes the corresponding media file using a codec suitable for the selected format. It can be done. The resource manager 207 may, for example, manage the source code of the application 146 or the memory space of the memory 130. The power manager 209 manages, for example, the capacity, temperature, or power of the battery 189, and may use this information to determine or provide related information necessary for the operation of the electronic device 101. . According to one embodiment, the power manager 209 may interface with a basic input/output system (BIOS) (not shown) of the electronic device 101.

데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. Database manager 211 may create, search, or change a database to be used by application 146, for example. The package manager 213 may, for example, manage the installation or update of applications distributed in the form of package files. The connectivity manager 215 may manage, for example, a wireless connection or direct connection between the electronic device 101 and an external electronic device. For example, the notification manager 217 may provide a function for notifying the user of the occurrence of a designated event (eg, an incoming call, message, or alarm). The location manager 219 may, for example, manage location information of the electronic device 101. The graphics manager 221 may, for example, manage one or more graphic effects to be provided to the user or a user interface related thereto.

시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.Security manager 223 may provide, for example, system security or user authentication. The telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101. For example, the voice recognition manager 227 transmits the user's voice data to the server 108 and provides a command corresponding to a function to be performed in the electronic device 101 based at least in part on the voice data, Alternatively, text data converted based at least in part on the voice data may be received from the server 108. According to one embodiment, the middleware 244 may dynamically delete some existing components or add new components. According to one embodiment, at least a portion of the middleware 144 may be included as part of the operating system 142 or may be implemented as separate software different from the operating system 142.

어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다. The application 146 includes, for example, home 251, dialer 253, SMS/MMS (255), instant message (IM) 257, browser 259, camera 261, and alarm 263. , Contacts (265), Voice Recognition (267), Email (269), Calendar (271), Media Player (273), Album (275), Watch (277), Health (279) (such as exercise amount or blood sugar) It may include applications that measure biometric information) or environmental information 281 (e.g., measure atmospheric pressure, humidity, or temperature information). According to one embodiment, the application 146 may further include an information exchange application (not shown) that can support information exchange between the electronic device 101 and an external electronic device. The information exchange application may include, for example, a notification relay application configured to deliver designated information (e.g., calls, messages, or alarms) to an external electronic device, or a device management application configured to manage the external electronic device. there is. The notification relay application, for example, transmits notification information corresponding to a specified event (e.g., mail reception) generated in another application (e.g., email application 269) of the electronic device 101 to an external electronic device. You can. Additionally or alternatively, the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 101.

장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 표시 장치(160) 또는 카메라 모듈(180))의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 표시 장치(160) 또는 카메라 모듈(180)의 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.The device management application may, for example, control the power (e.g., turn-on or turn-on) of an external electronic device or some component thereof (e.g., display device 160 or camera module 180) that communicates with the electronic device 101. -off) or functions (e.g., brightness, resolution, or focus of the display device 160 or the camera module 180) can be controlled. A device management application may additionally or alternatively support installation, deletion, or update of applications running on external electronic devices.

도 3은 본 개시의 다양한 실시예에 따른 카메라에서 획득된 영상을 처리한 데이터가 적어도 하나의 어플리케이션으로 전달되는 과정을 도시한 도면이다.FIG. 3 is a diagram illustrating a process in which data processed from an image acquired from a camera is transmitted to at least one application according to various embodiments of the present disclosure.

도 3은 각각의 하드웨어 및 소프트웨어 계층에서, 영상 데이터를 어플리케이션에 전달하는 과정을 개략적으로 설명하고 있으며, 카메라(350), HAL(340)(hardware abstraction layer), 카메라 서비스(330), 소프트웨어 플랫폼(310) 및 어플리케이션(321, 322, 323)을 포함할 수 있다. Figure 3 schematically explains the process of delivering image data to the application in each hardware and software layer, including camera 350, HAL (340) (hardware abstraction layer), camera service (330), and software platform ( 310) and applications 321, 322, and 323.

도 3을 참조하면, 다양한 실시예에 따른 소프트웨어 플랫폼(310)은, 예를 들어, 적어도 하나의 어플리케이션(321, 322, 323)에 영상 처리 데이터를 제공하는 프레임워크를 의미할 수 있다. 소프트웨어 플랫폼(310)은, 예를 들어, 다양한 이미지 처리를 위한 복수의 이미지 처리 코드 세트를 이용하여 이미지 처리를 수행할 수 있다. 이미지 처리 코드 세트는, 예를 들어, 솔루션이 될 수 있다.이하에서, 솔루션 처리하는 동작은, 적어도 하나의 이미지 처리 코드 세트를 이용하여 획득한 이미지를 처리하여 데이터를 획득하는 동작을 의미할 수 있다. 예를 들어, 전자 장치는 소프웨어 플랫폼(310)에 포함된 복수의 이미지 처리 코드 세트를 이용하여 이미지 처리하여 사용자 얼굴 인식, 사용자 손바닥 인식, 사용자 행동 분석, 이미지 캡쳐, 오브젝트 인식, 사용자 감정 분석 또는 컬러 처리 데이터 획득할 수 있다. 예를 들어, 소프트웨어 플랫폼(310)의 솔루션 1이 사용자 감정 분석 처리를 수행하는 동작인 경우, 솔루션 1은 획득한 이미지를 처리하여 사용자 감정 분석 데이터를 획득할 수 있는 이미지 처리 코드 세트를 포함할 수 있다.Referring to FIG. 3 , the software platform 310 according to various embodiments may mean, for example, a framework that provides image processing data to at least one application 321, 322, and 323. The software platform 310 may perform image processing using, for example, a plurality of image processing code sets for various image processing. An image processing code set may be, for example, a solution. Hereinafter, the operation of processing a solution may refer to an operation of obtaining data by processing an image obtained using at least one image processing code set. there is. For example, the electronic device processes images using a plurality of image processing code sets included in the software platform 310 to perform user face recognition, user palm recognition, user behavior analysis, image capture, object recognition, user emotion analysis, or color. Processed data can be obtained. For example, if Solution 1 of the software platform 310 is an operation that performs user emotion analysis processing, Solution 1 may include a set of image processing code that can process the obtained images to obtain user emotion analysis data. there is.

다양한 실시예에 따른, 카메라 서비스(330)는, 소프트웨어 플랫폼(310)에서 실행되는 솔루션 처리를 위하여 카메라(350)로부터 이미지를 획득하여 소프트웨어 플랫폼(310)에 제공할 수 있다. 예를 들어, 카메라 서비스(330)는 HAL(340) 제어하여 카메라(350)로부터 이미지를 획득할 수 있고, 획득한 이미지를 소프트웨어 플랫폼(310)에 제공할 수 있다.According to various embodiments, the camera service 330 may obtain an image from the camera 350 and provide the image to the software platform 310 for processing a solution executed on the software platform 310. For example, the camera service 330 can acquire an image from the camera 350 by controlling the HAL 340 and provide the acquired image to the software platform 310.

다양한 실시예에 따른 HAL(340)은, 예를 들어, 물리적인 하드웨어와 전자 장치에서 실행되는 소프트웨어 사이의 추상화 계층으로서, 카메라 서비스(330)의 제어 하에 카메라(350)를 제어하거나 카메라(350)가 획득한 이미지를 가공, 예를 들어 이미지 포맷 가공을 할 수 있다.The HAL 340 according to various embodiments is, for example, an abstraction layer between physical hardware and software running on an electronic device, and controls the camera 350 under the control of the camera service 330 or The acquired image can be processed, for example, image format processing.

다양한 실시예에 따른 카메라(350)는 적어도 하나의 이미지 센서 및 렌즈를 포함할 수 있으며, 각각의 이미지 센서 및 렌즈를 통해 이미지 정보를 획득할 수 있다.The camera 350 according to various embodiments may include at least one image sensor and a lens, and may acquire image information through each image sensor and lens.

다양한 실시예에 따르면, 전자 장치(101)는 복수의 어플리케이션을 포 그라운드(foreground) 및/또는 백 그라운드(background)에서 동시에 실행할 수 있다.According to various embodiments, the electronic device 101 may simultaneously execute a plurality of applications in the foreground and/or background.

본 개시의 다양한 실시예에 따른 전자 장치(101)는 카메라 서비스(330)와 관련된 소프트웨어 플랫폼(310)을 통하여 이미지 처리 과정을 수행할 수 있다. 다양한 실시예에 따르면, 복수의 어플리케이션 각각이 카메라에 액세스하여 카메라 서비스(330)를 이용할 수도 있고, 복수의 어플리케이션이 상기 소프트웨어 플랫폼(310)에 카메라 동작 요청을 하여 상기 소프트웨어 플랫폼(310)이 복수의 어플리케이션의 요청을 총괄하여 처리할 수도 있다.The electronic device 101 according to various embodiments of the present disclosure may perform an image processing process through the software platform 310 related to the camera service 330. According to various embodiments, each of a plurality of applications may access the camera and use the camera service 330, and a plurality of applications may request a camera operation to the software platform 310, so that the software platform 310 may use the camera service 330. Application requests can also be processed collectively.

다양한 실시예에 따르면, 소프트웨어 플랫폼(310)은 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 생성된 복수의 이미지 처리 코드 세트를 저장할 수 있다. According to various embodiments, the software platform 310 may store a plurality of image processing code sets generated based on image processing-related information included in a plurality of applications.

다양한 실시예에 따르면, 적어도 하나의 어플리케이션은 소프트웨어 플랫폼(310)으로 카메라 동작 요청을 제공할 수 있다. 카메라 동작 요청은, 예를 들면, 어플리케이션의 특징 정보를 포함하는 API(application programming interface) 호출을 통하여 수행될 수 있다. API는, 예를 들면, API 프로그래밍 함수들의 집합으로, 운영 체제에 따라 다른 구성으로 제공될 수 있다. 어플리케이션 특징 정보란, 예를 들어, 어플리케이션에서 사용할 용도와 관련된 정보일 수 있다. 예를 들어, 어플리케이션은 카메라에서 획득한 영상을 사용자 얼굴 인식, 사용자 손바닥 인식, 사용자 행동 분석, 이미지 캡쳐, 오브젝트 인식, 사용자 감정 분석 또는 컬러 처리에 사용할 수 있다. 소프트웨어 플랫폼(310)은, 예를 들어, API 호출에 포함된 정보에 기초하여, 상기 어플리케이션에 대응하는 이미지 처리 코드 세트를 이용하여 획득한 이미지를 처리할 수 있다.According to various embodiments, at least one application may provide a camera operation request to the software platform 310. A camera operation request may be performed, for example, through an API (application programming interface) call that includes application characteristic information. An API, for example, is a set of API programming functions and may be provided in different configurations depending on the operating system. Application characteristic information may be, for example, information related to the purpose of use in an application. For example, the application can use the image obtained from the camera for user face recognition, user palm recognition, user behavior analysis, image capture, object recognition, user emotion analysis, or color processing. The software platform 310 may process the acquired image using an image processing code set corresponding to the application, for example, based on information included in the API call.

다양한 실시예에 따르면, 소프트웨어 플랫폼(310)은 제1 어플리케이션(321)으로부터 솔루션 1의 이미지 처리를 위한 API 호출을 수신할 수 있다. 상기 API 호출에 대한 응답으로 소프트웨어 플랫폼(310)은 카메라 서비스(330), HAL(340)을 통해 카메라(350)가 이미지 정보를 획득할 수 있도록 제어할 수 있고, 카메라(350)가 획득한 이미지 정보를 HAL(340) 및 카메라 서비스(330)를 통하여 제공받을 수 있다. 소프트웨어 플랫폼(310)은 솔루션 1에 포함된 제1 어플리케이션(321)에 대응하는 제1 이미지 처리 코드 세트를 이용하여 제공 받은 이미지 정보를 처리하여 이미지 처리 데이터를 획득할 수 있다. 소프트웨어 플랫폼(310)은 획득한 이미지 처리 데이터를 제1 어플리케이션(321)에 제공할 수 있다.According to various embodiments, the software platform 310 may receive an API call for image processing of Solution 1 from the first application 321. In response to the API call, the software platform 310 can control the camera 350 to acquire image information through the camera service 330 and the HAL 340, and the image acquired by the camera 350 Information can be provided through HAL (340) and camera service (330). The software platform 310 may obtain image processing data by processing the provided image information using a first image processing code set corresponding to the first application 321 included in Solution 1. The software platform 310 may provide the acquired image processing data to the first application 321.

다양한 실시예에 따르면, 소프트웨어 플랫폼(310)은 복수의 어플리케이션으로부터 API 호출을 동시 또는 순차적으로 수신할 수 있다. 예를 들어, 제1 어플리케이션(321)으로부터 솔루션 1의 이미지 처리를 위한 API 호출을 수신한 후 솔루션 2의 이미지 처리를 위한 제2 어플리케이션(322)으로부터 API 호출을 수신할 수 있다. 이 경우, 소프트웨어 플랫폼(310)은 카메라(350)를 통해 획득한 이미지를 이용하여 서로 다른 이미지 처리 데이터를 생성하여 제1 및 제2 어플리케이션(321, 322)에 제공할 수 있다. 예를 들어, 소프트웨어 플랫폼(310)은, 솔루션 1에 포함된 제1 어플리케이션(321)에 대응하는 제1 이미지 처리 코드 세트를 이용하여 카메라(350)를 통해 획득한 이미지 정보를 처리하여 제1 이미지 처리 데이터를 생성할 수 있고, 솔루션 2에 포함된 제2 어플리케이션(322)에 대응하는 제2 이미지 처리 코드 세트를 이용하여 상기 획득한 이미지 정보를 처리하여 제2 이미지 처리 데이터를 생성할 수 있다. 소프트웨어 플랫폼(310)은, 제1 이미지 처리 데이터를 제1 어플리케이션(321)에 제공하고, 제2 이미지 처리 데이터를 제2 어플리케이션(322)에 제공할 수 있다. 다양한 실시예에 따르면 전자 장치(101)는 복수의 어플리케이션의 API 호출만으로도 소프트웨어 플랫폼(310)을 이용하여 복수의 어플리케이션에 이미지 처리 데이터를 제공함으로써, 어플리케이션 내부에 이미지 처리를 위한 별도의 코드를 포함하지 않아도 이미지 처리 데이터를 제공받을 수 있다.According to various embodiments, the software platform 310 may simultaneously or sequentially receive API calls from a plurality of applications. For example, after receiving an API call for image processing of solution 1 from the first application 321, an API call may be received from the second application 322 for image processing of solution 2. In this case, the software platform 310 may generate different image processing data using the image acquired through the camera 350 and provide it to the first and second applications 321 and 322. For example, the software platform 310 processes image information acquired through the camera 350 using a first image processing code set corresponding to the first application 321 included in Solution 1 to produce a first image. Processing data can be generated, and the obtained image information can be processed using a second image processing code set corresponding to the second application 322 included in Solution 2 to generate second image processing data. The software platform 310 may provide first image processing data to the first application 321 and second image processing data to the second application 322. According to various embodiments, the electronic device 101 provides image processing data to a plurality of applications using the software platform 310 just by calling the API of the plurality of applications, without including separate code for image processing within the application. Image processing data can be provided without any need.

다양한 실시예에 따르면 소프트웨어 플랫폼(310)은 복수의 어플리케이션으로부터 동일한 이미지 처리 데이터를 요청하는 API 호출을 동시 또는 순차적으로 수신할 수 있다. 예를 들어, 제1 어플리케이션(321)으로부터 솔루션 1의 이미지 처리를 위한 API 호출을 수신한 후, 솔루션 1의 이미지 처리를 위한 제3 어플리케이션(323)으로부터 API 호출을 수신할 수 있다. API 호출이 중복되는 경우, 이미지 처리 동작은 1번만 수행하고, 동일한 이미지 처리 데이터를 제1 및 제3 어플리케이션(321, 323)에 제공할 수 있다. 예를 들어, 소프트웨어 플랫폼(310)은 제1 및 제3 어플리케이션(321, 323)으로부터 수신한 API 요청이 중복되는지 판단하고, 중복되는 경우, 솔루션 1에 포함된 이미지 처리 코드를 이용하여 카메라(350)를 통해 획득한 이미지를 처리한 데이터를 제1 및 제3 어플리케이션(321, 323) 각각에 제공할 수 있다.According to various embodiments, the software platform 310 may simultaneously or sequentially receive API calls requesting the same image processing data from a plurality of applications. For example, after receiving an API call for image processing of Solution 1 from the first application 321, an API call may be received from the third application 323 for image processing of Solution 1. If API calls are duplicated, the image processing operation may be performed only once and the same image processing data may be provided to the first and third applications 321 and 323. For example, the software platform 310 determines whether the API requests received from the first and third applications 321 and 323 overlap, and if so, uses the image processing code included in Solution 1 to request the camera 350. ) can be provided to the first and third applications 321 and 323, respectively.

다양한 실시예에 따르면, 전자 장치는 소프트웨어 플랫폼(310)이 카메라 리소스를 선점하여 사용하고 복수의 어플리케이션으로부터 API 호출을 수신하는 경우 이에 응답하여 획득한 이미지의 이미지 처리 결과를 각각 제공함으로써 카메라 리소스 낭비를 줄일 수 있다.According to various embodiments, when the software platform 310 preemptively uses camera resources and receives an API call from a plurality of applications, the electronic device provides image processing results of the images acquired in response to the call, thereby reducing the waste of camera resources. It can be reduced.

도 4는 본 개시의 다양한 실시예에 따른 이미지 처리를 수행하는 과정을 도시한 도면이다.FIG. 4 is a diagram illustrating a process for performing image processing according to various embodiments of the present disclosure.

도 4를 참조하면, 어플리케이션은 소프트웨어 플랫폼(420)에 카메라 동작 요청을 전송할 수 있다. 카메라 동작 요청은, 예를 들어, API 호출(410)을 통하여 수행될 수 있다. 소프트웨어 플랫폼(420)은, 어플리케이션의 API 호출(410)에 응답하여 카메라 서비스를 이용할 수 있다. Referring to FIG. 4, the application may transmit a camera operation request to the software platform 420. A camera operation request may be performed, for example, through an API call 410. The software platform 420 may use the camera service in response to the application's API call 410.

다양한 실시예에 따르면, 소프트웨어 플랫폼(420)은 어플리케이션의 API 호출(410)에 응답하여, 카메라를 개방(open)(421)하도록 제어할 수 있다. 소프트웨어 플랫폼(420)은, 예를 들어, 카메라를 통해 획득한 원본 이미지로부터 스트림을 생성(422)하고, 생성한 스트림을 구성(423)할 수 있다. 소프트웨어 플랫폼(420)은, 예를 들어, 스트림에 기초하여 프로세스 캡쳐 요청(424)을 할 수 있고, 프로세스 캡쳐 결과를 획득(425)하여 이미지 정보를 획득할 수 있다. 소프트웨어 플랫폼(420)은, 예를 들어, 이미지 처리 코드 세트를 이용하여 획득한 이미지 정보를 처리(426)할 수 있다.According to various embodiments, the software platform 420 may control the camera to open (421) in response to the API call (410) of the application. For example, the software platform 420 may generate a stream (422) from an original image acquired through a camera and configure (423) the generated stream. For example, the software platform 420 may make a process capture request 424 based on a stream and obtain image information by obtaining a process capture result 425. The software platform 420 may process 426 the acquired image information using, for example, an image processing code set.

다양한 실시예에 따른 전자 장치는, 어플리케이션 내에 이미지 처리를 위한 코드를 저장하고 있지 않아도, API 호출(410)을 통해 소프트웨어 플랫폼(420)으로부터 이미지 처리 데이터를 획득할 수 있다.Electronic devices according to various embodiments may obtain image processing data from the software platform 420 through an API call 410 even if the code for image processing is not stored in the application.

도 5는 본 개시의 다양한 실시예에 따른 카메라를 통해 이미지 정보를 획득하는 방법을 도시한 블록도이다.Figure 5 is a block diagram illustrating a method of acquiring image information through a camera according to various embodiments of the present disclosure.

도 5를 참조하면, 다양한 실시예에 따른 카메라(350)는 적어도 하나의 렌즈(510) 및 이미지 센서(520)를 포함할 수 있다.Referring to FIG. 5 , a camera 350 according to various embodiments may include at least one lens 510 and an image sensor 520.

다양한 실시예에 따르면 카메라(350)는 전자 장치의 하우징(미도시)의 적어도 일면(예를 들어, 전면 및/또는 후면)을 통해 전자 장치의 외부로 노출될 수 있다. 다양한 실시예에 따르면 렌즈(510)는, 예를 들어, 광학 렌즈(510), 어안 렌즈(510) 또는 일반 렌즈(510) 중 어느 하나일 수 있다.According to various embodiments, the camera 350 may be exposed to the outside of the electronic device through at least one side (eg, front and/or back) of the housing (not shown) of the electronic device. According to various embodiments, the lens 510 may be, for example, one of an optical lens 510, a fisheye lens 510, or a general lens 510.

다양한 실시예에 따르면 전자 장치는, 렌즈(510)를 통해 미가공 이미지 정보(raw image data)를 획득하고, 획득한 미가공 이미지 정보를 이미지 센서(520)로 제공할 수 있다. 이미지 센서(520)는, 예를 들어, 미가공 이미지 정보로부터 Y 신호(Y signal)로 구성된 Y 영상을 출력할 수 있다. Y 신호는, 예를 들어, 이미지의 명암을 나타내는 전기 신호 중 밝기 성분을 나타내는 휘도 신호를 의미할 수 있다. 다양한 실시예에 따르면, 이미지 센서(520)는 비닝 모드(binning mode)로 동작할 수 있다. 비닝 모드는, 예를 들어, 획득한 이미지에 픽셀 비닝을 수행하여 저화질의 이미지 정보를 출력 하도록 설정된 모드를 의미할 수 있다. 이미지 센서(520)가 비닝 모드로 동작하는 경우, 화질이 낮은 이미지를 출력함으로써 이미지 처리에 사용되는 전력을 낮출 수 있다.According to various embodiments, the electronic device may acquire raw image information (raw image data) through the lens 510 and provide the acquired raw image information to the image sensor 520. For example, the image sensor 520 may output a Y image composed of a Y signal from raw image information. For example, the Y signal may refer to a luminance signal representing a brightness component among electrical signals representing the contrast of an image. According to various embodiments, the image sensor 520 may operate in binning mode. For example, the binning mode may mean a mode set to output low-quality image information by performing pixel binning on the acquired image. When the image sensor 520 operates in binning mode, power used for image processing can be reduced by outputting images of low quality.

다양한 실시예에 따르면 HAL(530)(예: 도 3의 HAL(340))은 이미지 센서(520)로부터 수신한 Y 신호로 구성된 Y 영상을 가공하여, Y 스트림을 생성할 수 있다. HAL(530)은, 예를 들어, 생성한 Y 스트림을 카메라 서비스(540)(예: 도 3의 카메라 서비스(330))에 제공할 수 있다.According to various embodiments, the HAL 530 (e.g., the HAL 340 in FIG. 3) may process a Y image composed of a Y signal received from the image sensor 520 to generate a Y stream. For example, the HAL 530 may provide the generated Y stream to the camera service 540 (eg, the camera service 330 in FIG. 3).

다양한 실시예에 따른 전자 장치(101)는, 이미지 센서(520)로부터 출력되는 Y 신호로 구성된 작은 사이즈의 Y 영상을 이용하여 이미지 처리를 수행하는 경우, 이미지 시그널 프로세서(image signal processor, ISP)를 통해 보정 처리(예를 들어, 렌즈(510) 왜곡 보정)을 수행하지 않을 수 있어서, 이미지 처리에 필요한 전력을 줄일 수 있다. 다양한 실시예에 따른 전자 장치(101)는, 이미지 센서(520)를 비닝 모드로 동작시켜서 이미지 처리에 필요한 전력을 줄일 수 있다.When performing image processing using a small-sized Y image composed of a Y signal output from the image sensor 520, the electronic device 101 according to various embodiments uses an image signal processor (ISP). Since correction processing (for example, lens 510 distortion correction) may not be performed, power required for image processing can be reduced. The electronic device 101 according to various embodiments may reduce power required for image processing by operating the image sensor 520 in a binning mode.

도 6은 본 개시의 다양한 실시예에 따른 전자 장치의 블록도이다.6 is a block diagram of an electronic device according to various embodiments of the present disclosure.

도 6을 참조하면, 다양한 실시예에 따른 전자 장치(101)는 프로세서(610)(예: 도 1의 프로세서(120)), 메모리(620)(예: 도 1의 메모리(130)), 카메라(630)(예: 도 1의 카메라 모듈(180), 도 3의 카메라(350)), 통신 회로(640)(예: 도 1의 통신 모듈(190)), 센서 회로(650)(예: 도 1의 센서 모듈(176)) 및 디스플레이(660)(예: 도 1의 표시 장치(160))를 포함할 수 있다. 도 6에 도시된 구성 중 일부가 생략 또는 치환되더라고 본 문서의 개시된 다양한 실시예를 구현함에는 지장이 없을 것이다.Referring to FIG. 6, the electronic device 101 according to various embodiments includes a processor 610 (e.g., processor 120 of FIG. 1), a memory 620 (e.g., memory 130 of FIG. 1), and a camera. (630) (e.g., camera module 180 in FIG. 1, camera 350 in FIG. 3), communication circuit 640 (e.g., communication module 190 in FIG. 1), sensor circuit 650 (e.g. It may include a sensor module 176 of FIG. 1) and a display 660 (eg, display device 160 of FIG. 1). Even if some of the components shown in FIG. 6 are omitted or replaced, there will be no problem in implementing the various embodiments disclosed in this document.

다양한 실시예에 따른 프로세서(610)는, 예를 들면, 소프트웨어를 실행하여 프로세서(610)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 다양한 실시예에 따르면, 프로세서(610)는 전자 장치(101)의 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있다.The processor 610 according to various embodiments may, for example, execute software to control at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 610. and can perform various data processing or calculations. According to various embodiments, the processor 610 may perform operations or data processing related to control and/or communication of each component of the electronic device 101.

다양한 실시예에 따르면, 메모리(620)는 상기에 기재된 프로세서(610)의 동작에 대한 인스트럭션들을 저장할 수 있다According to various embodiments, the memory 620 may store instructions for the operation of the processor 610 described above.

다양한 실시예에 따르면, 카메라(630)는 적어도 하나의 렌즈(510) 및/또는 이미지 센서(520)를 포함할 수 있다. 다양한 실시예에 따르면 카메라는, 듀얼 카메라, 360도 카메라, 2D 영상 촬영 카메라 또는 적외선 기반의 depth 카메라 중 적어도 하나일 수 있다.According to various embodiments, the camera 630 may include at least one lens 510 and/or an image sensor 520. According to various embodiments, the camera may be at least one of a dual camera, a 360-degree camera, a 2D video capture camera, or an infrared-based depth camera.

다양한 실시예에 따르면, 통신 회로(640)는 서버와 통신 채널을 설립하고, 외부 장치와 다양한 데이터를 송수신할 수 있다. 다양한 실시예에 따르면, 통신 회로(640)는 셀룰러 통신 모듈을 포함하여 셀룰러 네트워크(예: 3G, LTE, 5G, Wibro 또는 Wimax)에 연결되도록 구성할 수 있다. 다양한 실시예에 따르면, 통신 회로(640)는 근거리 통신 모듈을 포함하여 근거리 통신(예를 들면, Wi-Fi, Bluetooth, Bluetooth Low Energy(BLE), UWB)을 이용해 서버와 데이터 송수신을 할 수 있으나, 이에 제한되지 않는다.According to various embodiments, the communication circuit 640 can establish a communication channel with a server and transmit and receive various data with an external device. According to various embodiments, the communication circuit 640 may include a cellular communication module and be configured to be connected to a cellular network (eg, 3G, LTE, 5G, Wibro, or Wimax). According to various embodiments, the communication circuit 640 includes a short-range communication module and can transmit and receive data with a server using short-range communication (e.g., Wi-Fi, Bluetooth, Bluetooth Low Energy (BLE), UWB). , but is not limited to this.

다양한 실시예에 따르면, 센서 회로(650)는 복수의 센서를 포함하며, 전자 장치(101)의 작동 상태 또는 외부의 환경 상태를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있는 구성으로써 도 1의 센서 모듈(176)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 다양한 실시예에 따르면, 센서 회로(650)는, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, GPS(global positioning system) 센서 또는 조도 센서를 포함할 수 있다.According to various embodiments, the sensor circuit 650 includes a plurality of sensors, detects the operating state of the electronic device 101 or the external environmental state, and generates an electrical signal or data value corresponding to the detected state. The configuration may include at least some of the configuration and/or functions of the sensor module 176 of FIG. 1. According to various embodiments, the sensor circuit 650 may include, for example, a gesture sensor, a gyro sensor, an air 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, humidity sensor, global positioning system (GPS) sensor, or light sensor.

다양한 실시예에 따르면, 디스플레이(660)는 이미지 또는 영상을 표시하며, 액정 디스플레이(liquid crystal display(LCD)), 발광 다이오드(light-emitting diode(LED)) 디스플레이, 유기 발광 다이오드(organic light-emitting diode(OLED)) 디스플레이, 또는 마이크로 전자기계 시스템(micro electro mechanical systems(MEMS)) 디스플레이, 또는 전자종이(electronic paper) 디스플레이 중 어느 하나로 구현될 수 있으나, 이에 한정되지는 않는다. 디스플레이(660)는 터치 스크린 패널(touch screen panel, 미도시)을 포함하며, 터치 스크린 패널은 디스플레이(660)(510) 전면에 마련된 윈도우(window, 미도시)에 대한 터치 입력 또는 호버링(hovering) 입력을 감지할 수 있다.According to various embodiments, the display 660 displays an image or video and may include a liquid crystal display (LCD), a light-emitting diode (LED) display, or an organic light-emitting diode. diode (OLED)) display, micro electro mechanical systems (MEMS) display, or electronic paper (electronic paper) display, but is not limited thereto. The display 660 includes a touch screen panel (not shown), and the touch screen panel provides touch input or hovering on a window (not shown) provided in front of the displays 660 and 510. Input can be detected.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성할 수 있다. For example, the processor 610 according to various embodiments may generate a plurality of image processing code sets based on image processing-related information included in a plurality of applications.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 어플리케이션으로부터 카메라 동작 요청을 수신하는 경우, 카메라(630)를 통해 이미지 정보를 획득할 수 있다. 획득한 이미지 정보는, 예를 들어, Y 신호로 구성된 영상 일 수 있다. For example, when receiving a camera operation request from an application, the processor 610 according to various embodiments may obtain image information through the camera 630. The acquired image information may be, for example, an image consisting of a Y signal.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 어플리케이션에 대응하는 이미지 처리 코드 세트를 이용하여 획득한 이미지 정보를 처리하여 이미지 처리 데이터를 획득할 수 있다. 프로세서(610)는, 예를 들어, 획득한 이미지 처리 데이터를 어플리케이션에 제공할 수 있다.The processor 610 according to various embodiments may obtain image processing data by, for example, processing image information obtained using an image processing code set corresponding to an application. For example, the processor 610 may provide acquired image processing data to an application.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 복수의 어플리케이션으로부터 카메라 동작 요청을 동시 또는 순차적으로 수신하는 경우, 카메라(630)로부터 획득한 하나의 이미지 정보를 복수의 이미지 처리 코드 세트를 이용하여 처리함으로써 서로 다른 복수의 이미지 처리 데이터를 획득할 수 있다. 프로세서(610)는, 예를 들어, 획득한 복수의 서로 다른 이미지 처리 데이터를 복수의 어플리케이션 각각에 제공할 수 있다.For example, when receiving camera operation requests simultaneously or sequentially from a plurality of applications, the processor 610 according to various embodiments may process one image information obtained from the camera 630 into a plurality of image processing code sets. By processing it, a plurality of different image processing data can be obtained. For example, the processor 610 may provide a plurality of different acquired image processing data to each of a plurality of applications.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 복수의 어플리케이션으로부터 카메라(630) 동작 요청을 수신하는 경우, 카메라(630) 동작 요청이 중복되는 지 여부를 판단할 수 있다. 요청이 중복되는 지 여부는, 예를 들어, 복수의 어플리케이션에 대응하는 이미지 처리 코드가 동일한 지 여부로 판단할 수도 있고, 요청에 포함된 어플리케이션 특징 정보에 기초하여 판단할 수도 있다.For example, when receiving a camera 630 operation request from a plurality of applications, the processor 610 according to various embodiments may determine whether the camera 630 operation request is overlapping. Whether a request is overlapping may be determined, for example, by whether image processing codes corresponding to a plurality of applications are the same, or may be determined based on application characteristic information included in the request.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 복수의 어플리케이션으로부터 중복되는 카메라 동작 요청을 수신하는 경우, 한번의 이미지 처리로 획득한 이미지 처리 데이터를 복수의 어플리케이션 각각에 제공할 수 있다.For example, when receiving overlapping camera operation requests from a plurality of applications, the processor 610 according to various embodiments may provide image processing data obtained through one image processing to each of the plurality of applications.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 복수의 센서를 통해 전자 장치(101)의 주변 환경을 감지할 수 있다. 예를 들어, 프로세서(610)는 조도 센서를 이용하여 전자 장치(101) 주변의 조도를 측정할 수 있고, GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 측정할 수 있고, 자이로 센서를 이용하여 전자 장치(101)의 각속도를 측정할 수 있다. 다양한 실시예에 따른 프로세서(610)는, 감지한 주변 환경 데이터에 기초하여 카메라(630) 실행 여부를 결정할 수 있다.The processor 610 according to various embodiments may, for example, detect the surrounding environment of the electronic device 101 through a plurality of sensors. For example, the processor 610 may measure the illuminance around the electronic device 101 using an illuminance sensor, measure the current location of the electronic device 101 using a GPS sensor, and use a gyro sensor. The angular velocity of the electronic device 101 can be measured using this method. The processor 610 according to various embodiments may determine whether to run the camera 630 based on the sensed surrounding environment data.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 어플리케이션을 통해 동영상 파일 실행 중 동영상 파일에 포함된 타임 스탬프의 마킹된 구간 정보에 기초하여 카메라 리소스의 성능을 조정할 수 있다.For example, the processor 610 according to various embodiments may adjust the performance of camera resources based on the marked section information of the time stamp included in the video file while the video file is being executed through an application.

다양한 실시예에 따른 프로세서(610)는, 예를 들어, 어플리케이션을 통해 내비게이션 기능 실행 중 지도 정보에 포함된 마킹된 구간 정보에 기초하여 카메라(630) 리소스의 성능을 조정할 수 있다.For example, the processor 610 according to various embodiments may adjust the performance of the camera 630 resource based on marked section information included in map information while executing a navigation function through an application.

도 7은 본 개시의 다양한 실시예에 따른 프로세서의 블록도이다.7 is a block diagram of a processor according to various embodiments of the present disclosure.

도 7을 참조하면, 다양한 실시예에 따른 프로세서(610)는, 리소스 제어 판단 모듈(710), 솔루션 처리 모듈(720) 및 데이터 처리 모듈(720)을 포함할 수 있다. 다양한 실시예에 따르면, 리소스 제어 판단 모듈(710)은, 중복 처리 판단 모듈(711), 성능 판단 모듈(712), 환경 판단 모듈(713) 및 확률 판단 모듈(714)을 포함할 수 있다.Referring to FIG. 7 , the processor 610 according to various embodiments may include a resource control determination module 710, a solution processing module 720, and a data processing module 720. According to various embodiments, the resource control determination module 710 may include a duplicate processing determination module 711, a performance determination module 712, an environment determination module 713, and a probability determination module 714.

다양한 실시예에 따르면, 리소스 제어 판단 모듈(710)은 다양한 판단 결과에 기초하여 카메라 리소스를 제어할 수 있다.According to various embodiments, the resource control determination module 710 may control camera resources based on various determination results.

다양한 실시예에 따르면, 중복 처리 판단 모듈(711)은 복수의 어플리케이션으로부터 수신한 카메라 동작 요청이 중복되는지 여부를 판단할 수 있다. 카메라 동작 요청이 중복되는지 여부는, 예를 들어, 카메라 동작 요청을 한 복수의 어플리케이션에 대응하는 복수의 이미지 처리 코드가 동일한 지 여부로 판단할 수도 있고, 복수의 어플리케이션의 API 호출에 포함된 어플리케이션 특징 정보에 기초하여 판단할 수도 있다. 다양한 실시예에 따르면 중복 처리 판단 모듈(711)은, 복수의 어플리케이션의 카메라 동작 요청이 중복된다고 판단하는 경우, 한 번의 이미지 처리만을 수행하여 획득한 이미지 처리 데이터를 복수의 어플리케이션 각각에 제공할 수 있다.According to various embodiments, the duplicate processing determination module 711 may determine whether camera operation requests received from multiple applications overlap. Whether or not camera operation requests overlap can be determined, for example, by whether multiple image processing codes corresponding to multiple applications that have requested camera operation are the same, or application characteristics included in the API calls of multiple applications. You can also make decisions based on information. According to various embodiments, when the duplicate processing determination module 711 determines that camera operation requests from multiple applications overlap, the image processing data obtained by performing image processing only once may be provided to each of the multiple applications. .

다양한 실시예에 따르면 성능 판단 모듈(712)은 기 저장된 복수의 이미지 처리 방법에 필요한 성능 정보에 기초하여 카메라 리소스의 성능을 조정할 수 있다. 예를 들어, 성능 판단 모듈(712)은 복수의 이미지 처리 코드 세트에 기초하여 복수의 이미지 처리 방식에 필요한 성능 정보에 기초하여 카메라 리소스의 성능을 조정할 수 있다. 예를 들어, 전자 장치(101)가 사용자 얼굴 인식과 손바닥 얼굴 인식을 수행할 수 있다고 가정하자. 예를 들어, 사용자 얼굴 인식과 관련된 이미지 처리는 10fps 이상의 초당 프레임 수를 갖는 영상이 필요하고, 사용자 손바닥 인식과 관련된 이미지 처리는 15fps 이상의 초당 프레임 수를 갖는 영상이 필요한 경우, 성능 판단 모듈(712)은 카메라(630)를 통해 15fps의 초당 프레임 수를 갖는 영상을 획득하도록 카메라의 성능을 조정할 수 있다.According to various embodiments, the performance determination module 712 may adjust the performance of camera resources based on performance information required for a plurality of pre-stored image processing methods. For example, the performance determination module 712 may adjust the performance of camera resources based on performance information required for a plurality of image processing methods based on a plurality of image processing code sets. For example, assume that the electronic device 101 can perform user face recognition and palm face recognition. For example, if image processing related to user face recognition requires an image with a frame rate of 10 fps or more, and image processing related to user palm recognition requires an image with a frame rate of 15 fps or more, the performance judgment module 712 The performance of the camera can be adjusted to obtain an image with a frame rate of 15 fps through the camera 630.

다양한 실시예에 따른 환경 판단 모듈(713)은, 센서 회로(650)를 통해 센싱된 정보에 기초하여 카메라 리소스를 제어할 수 있다. 예를 들어, 환경 판단 모듈(713)은 센서 회로(650)를 통해 전자 장치(101) 주변의 환경(예: 조도, 위치, 각속도)을 감지하고, 감지된 주변의 환경 정보에 기초하여 카메라 리소스를 제어할 수 있다. 예를 들어, 환경 판단 모듈(713)은 조도 센서를 이용하여 전자 장치(101) 주변의 조도를 측정할 수 있고, 측정한 조도가 기 설정된 기준 값 이하인 경우, 환경 판단 모듈(713)은 카메라를 사용하기 적합하지 않은 상황으로 판단하여 카메라를 활성화하지 않을 수 있다. The environment determination module 713 according to various embodiments may control camera resources based on information sensed through the sensor circuit 650. For example, the environment determination module 713 detects the environment (e.g., illuminance, position, angular velocity) around the electronic device 101 through the sensor circuit 650, and uses camera resources based on the detected surrounding environment information. can be controlled. For example, the environment determination module 713 may measure the illuminance around the electronic device 101 using an illuminance sensor, and if the measured illuminance is below a preset reference value, the environment determination module 713 may use the camera. The camera may not be activated if it is judged to be unsuitable for use.

다양한 실시예에 따르면, 환경 판단 모듈(713)은, 예를 들어, GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 측정할 수 있고, 측정한 현재 위치에 기초하여 카메라를 사용하기 적합한 장소인지 판단할 수 있다. 예를 들어, 측정한 전자 장치(101)의 현재 위치가 카메라 사용이 금지된 장소(예: 박물관, 미술관)인 경우, 환경 판단 모듈(713)은 어플리케이션의 카메라 동작 요청이 있는 경우에도 카메라(630)를 비활성화할 수 있다.According to various embodiments, the environment determination module 713 may measure the current location of the electronic device 101 using, for example, a GPS sensor, and determine a suitable location to use the camera based on the measured current location. You can judge whether it is For example, if the current location of the measured electronic device 101 is a place where the use of cameras is prohibited (e.g., a museum, an art gallery), the environment determination module 713 determines the camera 630 even when there is a request for camera operation from an application. ) can be disabled.

다양한 실시예에 따르면, 환경 판단 모듈(713)은, 예를 들어, 자이로 센서를 이용하여 전자 장치(101)의 각속도를 측정할 수 있고, 측정한 각속도에 기초하여 카메라를 사용하기 적합한 상태인지 판단할 수 있다. 예를 들어, 측정한 각속도가 기 설정된 기준 값 이상인 경우, 환경 판단 모듈(713)은 카메라로부터 제대로 된 이미지를 획득할 수 없는 상태로 판단하여 카메라(630)를 비활성화 할 수 있다. According to various embodiments, the environment determination module 713 may measure the angular velocity of the electronic device 101 using, for example, a gyro sensor, and determine whether the camera is in a suitable state to use based on the measured angular velocity. can do. For example, if the measured angular velocity is greater than a preset reference value, the environment determination module 713 may determine that a proper image cannot be obtained from the camera and deactivate the camera 630.

다양한 실시예에 따른 확률 판단부는, 복수의 사용자의 패턴을 분석한 결과에 기초하여 카메라 리소스의 성능을 제어할 수 있다. 예를 들어, 카메라를 통해 지속적으로 이미지를 획득이 필요한 기능(예: 동영상 파일 실행 중 사용자 감정 분석, 내비게이션 실행 중 사용자 행동 분석)을 실행하는 경우, 확률 판단부는 복수의 사용자의 패턴을 분석한 결과에 기초하여 특정 시간 또는 구간에서는 카메라 리소스의 성능을 조정할 수 있다. The probability determination unit according to various embodiments may control the performance of camera resources based on a result of analyzing patterns of a plurality of users. For example, when executing a function that requires continuous image acquisition through a camera (e.g., analyzing user emotions while running a video file, analyzing user behavior while running navigation), the probability judgment unit analyzes the patterns of multiple users. Based on this, the performance of camera resources can be adjusted at specific times or sections.

예를 들어, 동영상 파일 실행 중 사용자 감정 분석을 위한 카메라 동작 요청을 수신하는 경우, 확률 판단 모듈(714)은 상기 동영상 파일의 타임 스탬프의 마킹된 구간 정보를 확인할 수 있다. 전자 장치(101)는, 예를 들어, 서버로부터 일정 구간이 마킹된 타임 스탬프를 포함한 동영상 파일을 수신할 수 있다. 동영상 파일의 타임 스탬프란, 예를 들어, 특정 시점에 특정 데이터가 존재했다는 사실을 증명하기 위하여 특정 구간을 표시할 수 있는 시각에 관한 정보일 수 있다. 예를 들어, 동영상 파일의 타임 스탬프는 복수의 사용자의 감정을 분석한 결과, 통계적, 확률적으로 감정이 많이 표현된 구간을 마킹한 구간 정보를 포함할 수 있다. 예를 들어, 동영상 파일 실행 중 사용자 감정 분석을 위한 카메라 동작 요청을 수신하는 경우, 확률 판단 모듈(714)은 상기 동영상 파일의 타임 스탬프의 마킹된 구간을 실행하는 동안은 카메라의 성능을 최고 성능으로 조정하여 이미지 정보를 획득할 수 있고, 마킹된 구간이 아닌 구간을 실행하는 동안은 카메라 성능을 최소 성능으로 조정하여 이미지 정보를 획득할 수 있다.For example, when a camera operation request for user emotion analysis is received while a video file is being executed, the probability determination module 714 may check the marked section information of the time stamp of the video file. For example, the electronic device 101 may receive a video file including a time stamp marking a certain section from a server. For example, the time stamp of a video file may be information about the time that can indicate a specific section to prove that specific data existed at a specific time. For example, the time stamp of a video file may include section information that statistically and probabilistically marks a section in which many emotions are expressed as a result of analyzing the emotions of a plurality of users. For example, when receiving a camera operation request for user emotion analysis while executing a video file, the probability determination module 714 sets the camera performance to the highest performance while executing the marked section of the time stamp of the video file. Image information can be obtained by adjusting the camera performance, and while running a section other than the marked section, image information can be obtained by adjusting the camera performance to the minimum performance.

예를 들어, 내비게이션 실행 중 사용자 행동 분석을 위한 카메라 동작 요청을 수신하는 경우, 확률 판단 모듈(714)은 내비게이션 기능 실행 시 사용되는 지도 정보의 마킹된 구간 정보를 확인할 수 있다. 전자 장치(101)는, 예를 들어, 서버로부터 일정 구간이 마킹된 지도 정보를 수신할 수 있다. 지도의 마킹된 구간 정보란, 예를 들어, 복수의 사용자의 행동을 분석한 결과, 통계적, 확률적으로 이상 행동으로 판단되는 행동(예: 졸음 운전 행동)이 많이 표현된 구간을 마킹한 구간 정보를 의미할 수 있다. 예를 들어, 내비게이션 기능 실행 중 사용자 행동 분석을 위한 카메라 동작 요청을 수신한 경우, 확률 판단 모듈(714)은 지도 정보에 마킹된 특정 구간 정보 및 전자 장치(101)의 현재 위치에 기초하여 카메라(630)의 성능을 조정할 수 있다. 예를 들어, 확률 판단 모듈(714)은, GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 판단한 결과 지도 정보에 마킹된 특정 구간을 지나간다고 판단하는 경우, 카메라(630)의 성능을 최고 성능으로 조정하여 이미지 정보를 획득할 수 있고, 마킹된 특정 구간이 아닌 구간을 지나간다고 판단하는 경우, 카메라(630)의 성능을 이미지 처리를 위한 최저 성능으로 조정하여 이미지 정보를 획득할 수 있다.For example, when receiving a camera operation request for user behavior analysis while executing navigation, the probability determination module 714 may check marked section information of map information used when executing the navigation function. For example, the electronic device 101 may receive map information with a certain section marked from a server. Marked section information on the map refers, for example, to section information that marks sections in which many behaviors (e.g., drowsy driving behavior) that are statistically and probabilistically judged to be abnormal behaviors are expressed as a result of analyzing the behavior of multiple users. It can mean. For example, when a camera operation request for user behavior analysis is received while executing the navigation function, the probability determination module 714 operates the camera ( 630) performance can be adjusted. For example, when the probability determination module 714 determines that the current location of the electronic device 101 is passing through a specific section marked in the map information as a result of determining the current location of the electronic device 101 using the GPS sensor, the probability determination module 714 optimizes the performance of the camera 630. Image information can be obtained by adjusting performance, and if it is determined that a section other than the marked specific section is passed, image information can be obtained by adjusting the performance of the camera 630 to the lowest performance for image processing.

다양한 실시예에 따르면 솔루션 처리 모듈(720)은, 어플리케이션의 카메라 동작 요청 및 리소스 제어 판단 모듈(710)의 판단 결과에 기초하여 카메라(630)를 통해 획득한 이미지를, 대응하는 이미지 처리 코드 세트를 이용하여 이미지 처리를 수행할 수 있다. According to various embodiments, the solution processing module 720 processes the image acquired through the camera 630 based on the application's camera operation request and the decision result of the resource control determination module 710 and a corresponding image processing code set. Image processing can be performed using .

다양한 실시예에 따르면 데이터 처리 모듈(720)은, 솔루션 처리 모듈(720)의 이미지 처리 결과를 메모리(620)에 저장하거나, 서버에 저장할 수 있도록 통신 회로(640)를 통하여 서버에 송신할 수 있다. 다양한 실시예에 따른 데이터 처리 모듈(720)은, 저장된 이미지 처리 결과 또는 저장된 특정 데이터에서 포함된 의미 있는 정보를 추출하여 리소스 제어 판단 모듈(710) 또는 솔루션 처리 모듈(720)에 제공할 수 있다.According to various embodiments, the data processing module 720 may store the image processing results of the solution processing module 720 in the memory 620 or transmit them to the server through the communication circuit 640 so that they can be stored on the server. . The data processing module 720 according to various embodiments may extract meaningful information included in stored image processing results or stored specific data and provide it to the resource control determination module 710 or the solution processing module 720.

도 8은 본 개시의 다양한 실시예에 따른 복수의 어플리케이션으로 이미지 처리 데이터를 제공하는 방법을 나타낸 동작흐름도이다.FIG. 8 is an operation flowchart illustrating a method of providing image processing data to a plurality of applications according to various embodiments of the present disclosure.

도 8을 참조하면, 동작 810에서, 다양한 실시예에 따른 프로세서(610)는 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성할 수 있다. 복수의 어플리케이션은, 예를 들어, 전자 장치에 저장된 어플리케이션 중 카메라(630)를 이용하는 어플리케이션을 의미할 수 있다. Referring to FIG. 8 , in operation 810, the processor 610 according to various embodiments may generate a plurality of image processing code sets based on image processing-related information included in a plurality of applications. The plurality of applications may refer, for example, to applications that use the camera 630 among applications stored in an electronic device.

동작 820에서, 프로세서(610)는, 예를 들어, 복수의 어플리케이션 중 제1 어플리케이션으로부터 카메라 동작 요청을 수신할 수 있다. 카메라 동작 요청은, 예를 들어, API 호출을 통해 수행될 수 있다.In operation 820, the processor 610 may receive, for example, a camera operation request from a first application among a plurality of applications. Camera operation requests may be performed, for example, through API calls.

동작 830에서, 프로세서(610)는, 예를 들어, 제1 어플리케이션의 카메라(630) 동작 요청에 대한 응답으로, 카메라(630)를 통해 이미지 정보를 획득할 수 있다.In operation 830, the processor 610 may obtain image information through the camera 630, for example, in response to a request for operation of the camera 630 by the first application.

동작 840에서, 프로세서(610)는, 예를 들어, 복수의 이미지 처리 코드 세트 중 상기 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공할 수 있다.In operation 840, the processor 610 processes the acquired image information using, for example, a first image processing code set corresponding to the first application among a plurality of image processing code sets and provides the acquired image information to the first application. can do.

동작 850에서, 프로세서(610)는, 예를 들어, 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청을 수신할 수 있다.In operation 850, the processor 610 may, for example, receive a camera operation request from a second application among a plurality of applications.

동작 860에서, 프로세서(610)는, 제2 어플리케이션의 카메라(630) 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공할 수 있다. 프로세서(610)는, 예를 들어, 제1 및 제2 어플리케이션으로부터 각각 카메라 동작 요청을 수신하더라도, 한번의 카메라(630) 동작을 통해 획득한 이미지 정보를 이용할 수 있다. 프로세서(610)는, 예를 들어, 획득한 이미지 정보를 제1 및 제2 이미지 처리 코드를 이용해 획득한 각각의 이미지 처리 데이터를 제1 및 제2 어플리케이션 각각에 제공할 수 있다. In operation 860, in response to a request for operation of the camera 630 of the second application, the processor 610 uses a second image processing code set corresponding to the second application among the plurality of image processing code sets to obtain the image processing code. Image information may be processed and provided to the second application. For example, the processor 610 may use image information obtained through a single operation of the camera 630 even if it receives camera operation requests from the first and second applications, respectively. For example, the processor 610 may provide each image processing data obtained using the acquired image information using the first and second image processing codes to each of the first and second applications.

도 9는 본 개시의 다양한 실시예에 따른 복수의 어플리케이션으로 이미지 처리 데이터를 제공하는 방법을 나타낸 동작흐름도이다.FIG. 9 is an operation flowchart illustrating a method of providing image processing data to a plurality of applications according to various embodiments of the present disclosure.

도 9를 참조하면, 다양한 실시예에 따른 프로세서(610)는, 동작 911에서, 복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성할 수 있다. 복수의 어플리케이션은, 예를 들어, 전자 장치(101)에 저장된 어플리케이션 중 카메라(630)를 이용하는 어플리케이션을 의미할 수 있다.Referring to FIG. 9 , the processor 610 according to various embodiments may generate a plurality of image processing code sets based on image processing-related information included in a plurality of applications in operation 911. For example, the plurality of applications may refer to applications that use the camera 630 among applications stored in the electronic device 101.

동작 913에서, 프로세서(610)는, 예를 들어, 복수의 어플리케이션 중 제1 어플리케이션으로부터 카메라 동작 요청을 수신할 수 있다. 카메라 동작 요청은, 예를 들어, API 호출을 통해 수행될 수 있다.In operation 913, the processor 610 may receive, for example, a camera operation request from a first application among a plurality of applications. Camera operation requests may be performed, for example, through API calls.

동작 915에서, 프로세서(610)는, 예를 들어, 복수의 어플리케이션 중 제2 어플리케이션으로부터 카메라 동작 요청을 수신할 수 있다. 카메라 동작 요청은, 예를 들어, API 호출을 통해 수행될 수 있다.In operation 915, the processor 610 may receive, for example, a camera operation request from a second application among a plurality of applications. Camera operation requests may be performed, for example, through API calls.

동작 917에서, 프로세서(610)는, 예를 들어, 제1 및 제2 어플리케이션으로부터 수신한 카메라 동작 요청이 서로 중복되는지 여부를 판단할 수 있다. 프로세서(610)는, 예를 들어, 제1 및 제2 어플리케이션이 동일한 내용의 이미지 처리를 요청하는지 여부를 판단할 수 있다. 프로세서(610)는, 예를 들어, API 호출에 포함된 어플리케이션의 특징 정보를 비교하여 중복 여부를 판단할 수도 있고, 제1 및 제2 어플리케이션에 대응하는 제1 및 제2 이미지 처리 코드 세트의 내용을 비교하여 중복 여부를 판단할 수도 있다. 예를 들어, 프로세서(610)는 제1 어플리케이션으로부터 사용자 얼굴 인식을 위한 카메라 동작 요청을 수신하고, 제2 어플리케이션으로부터도 사용자 얼굴 인식을 위한 카메라 동작 요청을 수신하는 경우, 각각의 카메라 동작 요청이 중복된다고 판단할 수 있다. 예를 들어, 프로세서(610)는 제1 어플리케이션으로부터 사용자 얼굴 인식을 위한 카메라 동작 요청을 수신하고, 제2 어플리케이션으로부터 사용자 감정 분석을 위한 카메라 동작 요청을 수신하는 경우, 각각의 카메라 동작 요청이 중복되지 않는 다고 판단할 수 있다.In operation 917, the processor 610 may determine, for example, whether camera operation requests received from the first and second applications overlap with each other. For example, the processor 610 may determine whether the first and second applications request image processing of the same content. For example, the processor 610 may compare characteristic information of applications included in an API call to determine whether there is overlap, and the contents of the first and second image processing code sets corresponding to the first and second applications. You can also compare to determine whether there is overlap. For example, when the processor 610 receives a camera operation request for user face recognition from a first application and also receives a camera operation request for user face recognition from a second application, each camera operation request is duplicated. You can judge that it is. For example, when the processor 610 receives a camera operation request for user face recognition from a first application and a camera operation request for user emotion analysis from a second application, each camera operation request does not overlap. It can be concluded that it is not.

카메라(630) 동작 요청이 중복된다고 판단하는 경우, 동작 919로 분기하여, 프로세서(610)는 카메라(630)를 통해 이미지를 획득할 수 있다. 동작 921로 분기하여, 프로세서(610)는, 예를 들어, 중복되는 이미지 처리 코드 세트를 이용하여 획득한 이미지 정보를 처리하여 제1 및 제2 어플리케이션에 제공할 수 있다. 카메라 동작 요청이 중복되는 경우, 한 번의 카메라(630) 동작을 통해 획득한 이미지 정보를, 한 번의 이미지 처리를 통해 이미지 처리 데이터를 획득하고, 상기 이미지 처리 데이터를 제1 및 제2 어플리케이션에 동일하게 제공할 수 있다.If it is determined that the camera 630 operation request is duplicated, the process branches to operation 919 and the processor 610 can acquire an image through the camera 630. Branching to operation 921, the processor 610 may process the acquired image information using, for example, an overlapping image processing code set and provide the obtained image information to the first and second applications. When camera operation requests overlap, the image information obtained through one operation of the camera 630 is obtained through one image processing, and the image processing data is equally distributed to the first and second applications. can be provided.

카메라 동작 요청이 중복되지 않는 다고 판단하는 경우, 동작 923으로 분기하여, 프로세서(610)는 카메라(630)를 통해 이미지를 획득할 수 있다. 동작 925에서, 프로세서(610)는, 예를 들어, 제1 이미지 처리 코드 세트를 이용하여 획득한 이미지 정보를 처리하여 제1 어플리케이션에 제공할 수 있다. 동작 927에서, 프로세서(610)는, 예를 들어, 제2 이미지 처리 코드 세트를 이용하여 획득한 이미지 정보를 처리하여 제2 어플리케이션에 제공할 수 있다.If it is determined that the camera operation requests do not overlap, the process branches to operation 923 and the processor 610 can acquire an image through the camera 630. In operation 925, the processor 610 may process the acquired image information using, for example, a first image processing code set and provide it to the first application. In operation 927, the processor 610 may process the acquired image information using, for example, a second image processing code set and provide it to the second application.

도 10은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.10 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.

도 10을 참조하면, 다양한 실시예에 따른 프로세서(610)는, 동작 1010에서, 어플리케이션으로부터 카메라 동작 요청을 수신할 수 있다. Referring to FIG. 10, the processor 610 according to various embodiments may receive a camera operation request from an application in operation 1010.

동작 1020에서, 프로세서(610)는 예를 들어, 센서 회로(650)에 포함된 복수의 센서를 통해 전자 장치(101) 주변의 환경을 감지할 수 있다. 예를 들어, 프로세서(610)는 조도 센서를 이용하여 전자 장치(101) 주변의 조도를 측정할 수 있고, GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 측정할 수 있고, 자이로 센서를 이용하여 전자 장치(101)의 각속도를 측정할 수 있다. In operation 1020, the processor 610 may detect the environment around the electronic device 101 through, for example, a plurality of sensors included in the sensor circuit 650. For example, the processor 610 may measure the illuminance around the electronic device 101 using an illuminance sensor, measure the current location of the electronic device 101 using a GPS sensor, and use a gyro sensor. The angular velocity of the electronic device 101 can be measured using this method.

동작 1030에서, 프로세서(610)는, 예를 들어, 감지한 주변 환경 데이터에 기초하여 카메라(630) 실행 여부를 결정할 수 있다. 예를 들어, 프로세서(610)는 조도 센서를 이용하여 전자 장치(101) 주변의 조도를 측정할 수 있고, 측정한 조도가 기 설정된 기준 값 이하인 경우, 환경 판단 모듈은 카메라를 사용하기 적합하지 않은 상황으로 판단하여 카메라(630)를 활성화하지 않을 수 있다. 예를 들어, 프로세서(610)는, GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 측정할 수 있고, 측정한 현재 위치에 기초하여 카메라(630)를 사용하기 적합한 장소인지 판단할 수 있다. 예를 들어, 측정한 전자 장치(101)의 현재 위치가 카메라 사용이 금지된 장소(예: 박물관, 미술관)인 경우, 환경 판단 모듈은 어플리케이션의 카메라 동작 요청이 있는 경우에도 카메라(630)를 비활성화할 수 있다. 예를 들어, 프로세서(610)는 자이로 센서를 이용하여 전자 장치(101)의 각속도를 측정할 수 있고, 측정한 각속도에 기초하여 카메라를 사용하기 적합한 상태인지 판단할 수 있다. 예를 들어, 측정한 각속도가 기 설정된 기준 값 이상인 경우, 프로세서(610)는 카메라(630)로부터 제대로 된 이미지를 획득할 수 없는 상태로 판단하여 카메라(630)를 비활성화 할 수 있다. In operation 1030, the processor 610 may determine whether to run the camera 630 based on, for example, sensed surrounding environment data. For example, the processor 610 may measure the illuminance around the electronic device 101 using an illuminance sensor, and if the measured illuminance is below a preset reference value, the environment determination module determines that the camera is not suitable for use. Depending on the situation, the camera 630 may not be activated. For example, the processor 610 can measure the current location of the electronic device 101 using a GPS sensor, and determine whether it is a suitable place to use the camera 630 based on the measured current location. . For example, if the current location of the measured electronic device 101 is a place where the use of cameras is prohibited (e.g., a museum, an art gallery), the environment determination module disables the camera 630 even when there is a request for camera operation from an application. can do. For example, the processor 610 can measure the angular velocity of the electronic device 101 using a gyro sensor and determine whether the camera is in a suitable state to use based on the measured angular velocity. For example, if the measured angular velocity is greater than a preset reference value, the processor 610 may determine that a proper image cannot be obtained from the camera 630 and deactivate the camera 630.

도 11은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.11 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.

도 11을 참조하면, 동작 1110에서 다양한 실시예에 따른 프로세서(610)는 통신 회로(640)를 통해 서버로부터 동영상 파일을 다운로드 받을 수 있다. 동영상 파일은, 예를 들어, 일정 구간이 마킹된 타임 스탬프를 포함한 동영상 파일일 수 있다. 예를 들어, 상기 타임 스탬프의 마킹된 구간은, 서버에서 복수의 사용자의 패턴을 분석하여, 통계적, 확률적으로 사용자의 감정이 많이 표현되는 구간을 의미할 수 있다.Referring to FIG. 11 , in operation 1110, the processor 610 according to various embodiments may download a video file from a server through the communication circuit 640. For example, a video file may be a video file that includes a time stamp marking a certain section. For example, the marked section of the time stamp may mean a section in which the user's emotions are expressed statistically and probabilistically by analyzing the patterns of a plurality of users in the server.

동작 1120에서, 프로세서(610)는, 예를 들어, 특정 어플리케이션에서 동영상 파일 실행 중 사용자 감정 분석을 위한 카메라(630) 동작 요청을 수신할 수 있다. 카메라 동작 요청은, 예를 들어, API 호출을 통해 수행될 수 있다.In operation 1120, the processor 610 may receive, for example, a request to operate the camera 630 for user emotion analysis while a video file is being executed in a specific application. Camera operation requests may be performed, for example, through API calls.

동작 1130에서, 프로세서(610)는, 예를 들어, 동영상 파일의 타임 스탬프의 마킹된 구간 정보에 기초하여 카메라(630)의 성능을 조정하면서 카메라(630)를 통해 이미지를 획득할 수 있다. 예를 들어, 프로세서(610)는 상기 동영상 파일의 타임 스탬프의 마킹된 구간을 실행하는 동안은 카메라(630)의 성능을 최고 성능으로 조정하여 이미지 정보를 획득할 수 있고, 마킹된 구간이 아닌 구간을 실행하는 동안은 카메라(630) 성능을 이미지 처리를 위한 최소 성능으로 조정하여 이미지 정보를 획득할 수 있다.In operation 1130, the processor 610 may acquire an image through the camera 630 while adjusting the performance of the camera 630 based on the marked section information of the time stamp of the video file. For example, the processor 610 may obtain image information by adjusting the performance of the camera 630 to the highest performance while executing the marked section of the time stamp of the video file, and may obtain image information in sections other than the marked section. While executing, image information can be obtained by adjusting the performance of the camera 630 to the minimum performance for image processing.

동작 1140에서, 프로세서(610)는, 예를 들어, 상기 특정 어플리케이션에 대응하는 이미지 처리 코드 세트를 이용하여 획득한 이미지를 처리하여 사용자 감정 분석 데이터를 획득할 수 있다. In operation 1140, the processor 610 may obtain user emotion analysis data by processing the acquired image using, for example, an image processing code set corresponding to the specific application.

동작 1150에서, 프로세서(610)는, 예를 들어, 획득한 사용자 감정 분석 데이터에 기초하여 동영상 파일의 타임 스탬프의 마킹 정보를 업데이트 할 수 있다.In operation 1150, the processor 610 may update marking information of the time stamp of the video file based on, for example, acquired user emotion analysis data.

동작 1160에서, 프로세서(610)는, 예를 들어, 통신 회로(640)를 통해 서버로 업데이트된 동영상 파일을 업로드 할 수 있다. 다양한 실시예에 따른 서버는, 업로드된 동영상 파일에 기초하여, 기 저장된 동영상 파일의 타임 스탬프 정보를 업데이트할 수 있다.In operation 1160, the processor 610 may upload the updated video file to the server through, for example, the communication circuit 640. A server according to various embodiments may update time stamp information of a previously stored video file based on the uploaded video file.

도 12는 본 개시의 다양한 실시예에 따른 사용자 감정 분석 데이터를 획득할 때의 전자 장치의 동작 방법을 도시한 도면이다.FIG. 12 is a diagram illustrating a method of operating an electronic device when acquiring user emotion analysis data according to various embodiments of the present disclosure.

도 12를 참조하면, 다양한 실시예에 따른 동영상 파일을 실행하면서 사용자 감정을 분석할 수 있다. 블록 1210에서, 동영상 파일은, 예를 들어, 실행 시간에 따른 타임 스탬프를 포함할 수 있다. 전자 장치(101)는 예를 들어, 동영상 파일 실행 중 카메라(630)를 통해 사용자 얼굴이 포함된 이미지를 획득하고, 획득한 이미지에 기초하여 사용자 감정을 분석할 수 있다. Referring to FIG. 12, user emotions can be analyzed while running a video file according to various embodiments. At block 1210, the video file may include a timestamp based on execution time, for example. For example, while executing a video file, the electronic device 101 may acquire an image including the user's face through the camera 630 and analyze the user's emotions based on the acquired image.

블록 1220은, 상기 동영상 파일을 실행하면서 감지된 복수의 사용자 각각의 감정이 표현된 구간을, 마킹한 타임 스탬프 정보를 나타낼 수 있다. 복수의 사용자의 타임 스탬프 정보들은 서버(예: cloud)에 전송되어 저장될 수 있다.Block 1220 may represent time stamp information marking a section in which the emotions of each of the plurality of users detected while executing the video file are expressed. Time stamp information of multiple users may be transmitted and stored on a server (e.g. cloud).

블록 1330을 참조하면, 다양한 실시예에 따른 서버는, 상기 동영상 파일과 관련된 복수의 사용자의 감정이 표현된 시점이 마킹된 타임 스탬프 정보들을 통계적으로 분석할 수 있다. 구간 1231은 동영상 파일에서 통계적, 확률적으로 사용자의 감정이 많이 표현되는 구간을 의미할 수 있고, 구간 1233은 통계적, 확률적으로 사용자의 감정이 표현되지 않는 구간을 의미할 수 있다. 다양한 실시예에 따르면 전자 장치(101)는, 통계적으로 분석한 타임 스탬프 정보를 포함하는 동영상 파일을 서버로부터 수신할 수 있다.Referring to block 1330, servers according to various embodiments may statistically analyze timestamp information marking the point in time when emotions of a plurality of users related to the video file were expressed. Section 1231 may refer to a section in a video file in which the user's emotions are expressed statistically and probabilistically, and section 1233 may refer to a section in which the user's emotions are not expressed statistically and probabilistically. According to various embodiments, the electronic device 101 may receive a video file including statistically analyzed time stamp information from a server.

블록 1440을 참조하면, 다양한 실시예에 따른 전자 장치(101)는, 서버로부터 수신한 동영상 파일의 타임 스탬프의 마킹된 구간 정보에 기초하여 카메라 리소스의 성능을 조정할 수 있다. 예를 들어, 전자 장치(101)는 타임 스탬프의 구간 1231과 대응하는 구간 1241에서는 사용자의 감정이 통계적, 확률적으로 많이 표현되는 구간으로 판단하여, 카메라 리소스의 사용 전력을 높일 수 있고, 타임 스탬프의 구간 1233과 대응하는 구간 1243에서는 사용자의 감정이 통계적, 확률적으로 거의 표현되지 않는 구간으로 판단하여 카메라 리소스의 사용 전력을 최소화할 수 있다.Referring to block 1440, the electronic device 101 according to various embodiments may adjust the performance of camera resources based on the marked section information of the time stamp of the video file received from the server. For example, the electronic device 101 may determine that the section 1241 corresponding to the section 1231 of the time stamp is a section in which the user's emotions are expressed statistically and probabilistically, thereby increasing the power usage of the camera resource and using the time stamp. The section 1243 corresponding to section 1233 in is determined to be a section in which the user's emotions are rarely expressed statistically or probabilistically, so the power usage of camera resources can be minimized.

도 13은 본 개시의 다양한 실시예에 따른 전자 장치의 동작흐름도이다.13 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.

도 13을 참조하면, 동작 1310에서, 다양한 실시예에 따른 프로세서(610)는, 통신 회로(640)를 통해 서버로부터 내비게이션 기능 실행을 위한 지도 정보를 수신할 수 있다. 지도 정보는, 예를 들어, 특정 구간이 마킹된 지도에 관한 정보일 수 있다. 예를 들어, 지도에 마킹된 특정 구간은 서버에서 복수의 사용자 패턴을 분석하여 통계적, 확률적으로 사용자의 특정 행동이 많이 감지된 구간을 의미할 수 있다.Referring to FIG. 13 , in operation 1310, the processor 610 according to various embodiments may receive map information for executing the navigation function from the server through the communication circuit 640. Map information may be, for example, information about a map on which a specific section is marked. For example, a specific section marked on the map may mean a section in which a large number of specific user actions are statistically and probabilistically detected by analyzing multiple user patterns on the server.

동작 1320에서, 프로세서(610)는, 예를 들어, 내비게이션 어플리케이션 실행 중 사용자 행동 분석을 위한 카메라 동작 요청을 수신할 수 있다.In operation 1320, the processor 610 may receive a camera operation request for analyzing user behavior while executing a navigation application, for example.

동작 1330에서, 프로세서(610)는, 예를 들어, 지도 정보에 마킹된 특정 구간 정보 및 전자 장치(101)의 현재 위치에 기초하여 카메라(630) 성능을 조정하면서 카메라(630)를 통해 이미지를 획득할 수 있다. 예를 들어, 프로세서(610)는 GPS 센서를 이용하여 전자 장치(101)의 현재 위치를 판단한 결과 지도 정보에 마킹된 특정 구간을 지나간다고 판단하는 경우, 카메라(630)의 성능을 최고 성능으로 조정하여 이미지 정보를 획득할 수 있고, 마킹된 특정 구간이 아닌 구간을 지나간다고 판단하는 경우, 카메라(630)의 성능을 이미지 처리를 위한 최저 성능으로 조정하여 이미지 정보를 획득할 수 있다.In operation 1330, the processor 610 captures an image through the camera 630 while adjusting the performance of the camera 630 based on, for example, specific section information marked in the map information and the current location of the electronic device 101. It can be obtained. For example, when the processor 610 determines the current location of the electronic device 101 using a GPS sensor and determines that it passes a specific section marked in the map information, it adjusts the performance of the camera 630 to the highest performance. Thus, image information can be obtained, and if it is determined that a section other than the marked specific section is passing through, the performance of the camera 630 can be adjusted to the lowest performance for image processing to obtain image information.

동작 1340에서, 프로세서(610)는, 예를 들어, 내비게이션 어플리케이션에 대응하는 이미지 처리 코드 세트를 이용하여 획득한 이미지를 처리하여, 사용자 행동 분석 데이터를 획득할 수 있다.In operation 1340, the processor 610 may obtain user behavior analysis data by processing the acquired image using, for example, an image processing code set corresponding to a navigation application.

동작 1350에서, 프로세서(610)는, 예를 들어, 획득한 사용자 감정 분석 데이터에 기초하여 지도 정보의 마킹 정보를 업데이트할 수 있다.In operation 1350, the processor 610 may update marking information of map information based on, for example, acquired user emotion analysis data.

동작 1360에서, 프로세서(610)는, 예를 들어, 업데이트된 지도 정보를 통신 회로(640)를 통해 서버로 업로드할 수 있다. 다양한 실시예에 따른 서버는, 업로드된 지도 정보에 기초하여, 기 저장된 지도 정보를 업데이트할 수 있다.At operation 1360, processor 610 may upload, for example, updated map information to a server via communication circuitry 640. The server according to various embodiments may update pre-stored map information based on uploaded map information.

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

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the relevant context clearly indicates otherwise. 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 phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to those components in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” Where mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through 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 block, component, or circuit, for example. A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one 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 are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. Device-readable storage media may be provided in the form of non-transitory storage media. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is stored semi-permanently in the storage medium. There is no distinction between temporary storage cases.

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

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

Claims (20)

전자 장치에 있어서,
통신 회로;
카메라;
프로세서; 및
상기 프로세서와 전기적으로 연결되는 메모리를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성하고,
상기 복수의 어플리케이션 중 제1 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 카메라를 통해 이미지 정보를 획득하고,
상기 복수의 이미지 처리 코드 세트 중 상기 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공하고,
상기 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공하는 인스트럭션들을 저장하고,
상기 인스트럭션들은, 상기 프로세서가,
서버로부터 일정 구간이 마킹된 타임 스탬프를 포함한 동영상 파일을 수신하고,
상기 제1 어플리케이션에서 상기 동영상 파일 실행 중 상기 제1 어플리케이션으로부터 사용자 감정 분석을 위한 카메라 동작 요청을 수신하는 경우, 상기 동영상 파일의 타임 스탬프에 마킹된 구간 정보에 기초하여 상기 카메라의 성능을 조정하며,
상기 제1 이미지 처리 코드 세트를 이용해 상기 이미지 정보를 처리하여 획득한 사용자 감정 분석 데이터에 기초하여 상기 동영상 파일의 타임 스탬프의 상기 마킹된 구간 정보를 업데이트하고,
상기 업데이트된 동영상 파일을 상기 서버에 전송하도록 동작하는, 전자 장치.
In electronic devices,
communication circuit;
camera;
processor; and
Includes a memory electrically connected to the processor,
The memory, when executed, the processor,
Generate a plurality of image processing code sets based on image processing-related information included in a plurality of applications,
In response to a camera operation request from a first application among the plurality of applications, image information is obtained through the camera,
Processing the obtained image information using a first image processing code set corresponding to the first application among the plurality of image processing code sets and providing the acquired image information to the first application,
In response to a camera operation request from a second application among the plurality of applications, the acquired image information is processed using a second image processing code set corresponding to the second application among the plurality of image processing code sets to 2 Save the instructions provided to the application,
The instructions allow the processor to:
Receive a video file including a time stamp with a certain section marked from the server,
When a camera operation request for user emotion analysis is received from the first application while the video file is being executed in the first application, the performance of the camera is adjusted based on section information marked in the time stamp of the video file,
Update the marked section information of the time stamp of the video file based on user emotion analysis data obtained by processing the image information using the first image processing code set,
An electronic device operative to transmit the updated video file to the server.
제1항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제2 이미지 처리 코드 세트가 상기 제1 이미지 처리 코드 세트와 중복되는 경우, 상기 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로 상기 제1 이미지 처리 코드 세트를 이용해 처리한 이미지 정보를 상기 제2 어플리케이션에도 제공하도록 동작하는, 전자 장치.
According to paragraph 1,
The instructions allow the processor to:
If the second image processing code set overlaps with the first image processing code set, the image information processed using the first image processing code set is sent to the second application in response to the camera operation request of the second application. An electronic device that also operates to provide.
제1항에 있어서,
상기 카메라로부터 획득한 이미지 정보는, 상기 카메라에 포함된 이미지 센서에서 출력되는 Y 신호에 기초하여 구성된 이미지 정보인, 전자 장치.
According to paragraph 1,
The image information obtained from the camera is image information configured based on the Y signal output from the image sensor included in the camera.
삭제delete 제1항에 있어서,
상기 복수의 이미지 처리 코드 세트는,
이미지 정보를 이용하여 사용자 얼굴 인식, 사용자 손바닥 인식, 사용자 행동 분석, 이미지 캡쳐, 오브젝트 인식, 사용자 감정 분석 또는 컬러 처리 중 적어도 하나를 수행하도록 하는 코드 세트인, 전자 장치.
According to paragraph 1,
The plurality of image processing code sets are,
An electronic device, which is a set of code that uses image information to perform at least one of user face recognition, user palm recognition, user behavior analysis, image capture, object recognition, user emotion analysis, or color processing.
삭제delete 제1항에 있어서,
복수의 센서를 더 포함하고,
상기 인스트럭션들은, 상기 프로세서가,
상기 복수의 센서를 통해 상기 전자 장치 주변의 조도, 상기 전자 장치의 위치 또는 각속도 중 적어도 하나를 측정하고,
상기 측정한 결과에 기초하여 상기 카메라의 사용 여부를 결정하는, 전자 장치.
According to paragraph 1,
Further comprising a plurality of sensors,
The instructions are such that the processor,
Measure at least one of illuminance around the electronic device, a position, or an angular velocity of the electronic device through the plurality of sensors,
An electronic device that determines whether to use the camera based on the measured results.
삭제delete 삭제delete 삭제delete 전자 장치의 동작 방법에 있어서,
복수의 어플리케이션에 포함된 이미지 처리 관련 정보들에 기초하여 복수의 이미지 처리 코드 세트를 생성하는 동작;
통신 회로를 통해 서버로부터 일정 구간이 마킹된 타임 스탬프를 포함한 동영상 파일을 수신하는 동작;
상기 제1 어플리케이션에서 상기 동영상 파일 실행 중 상기 제1 어플리케이션으로부터 사용자 감정 분석을 위한 카메라 동작 요청을 수신하는 경우, 상기 동영상 파일의 타임 스탬프에 마킹된 구간 정보에 기초하여 상기 카메라의 성능을 조정하는 동작;
상기 복수의 어플리케이션 중 제1 어플리케이션의 카메라 동작 요청에 대한 응답으로, 카메라로부터 이미지 정보를 획득하는 동작;
상기 복수의 이미지 처리 코드 세트 중 상기 제1 어플리케이션에 대응하는 제1 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제1 어플리케이션에 제공하는 동작; 및
상기 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로, 상기 복수의 이미지 처리 코드 세트 중 상기 제2 어플리케이션에 대응하는 제2 이미지 처리 코드 세트를 이용해 상기 획득한 이미지 정보를 처리하여 상기 제2 어플리케이션에 제공하는 동작;
상기 제1 이미지 처리 코드 세트를 이용해 상기 이미지 정보를 처리하여 획득한 사용자 감정 분석 데이터에 기초하여 상기 동영상 파일의 타임 스탬프의 상기 마킹된 구간 정보를 업데이트하는 동작; 및
상기 통신 회로를 통해 상기 업데이트된 동영상 파일을 상기 서버에 전송하는 동작을 포함하는, 동작 방법.
In a method of operating an electronic device,
An operation of generating a plurality of image processing code sets based on image processing-related information included in a plurality of applications;
An operation of receiving a video file including a time stamp with a certain section marked from a server through a communication circuit;
When receiving a camera operation request for user emotion analysis from the first application while the video file is being executed in the first application, adjusting the performance of the camera based on section information marked in the time stamp of the video file ;
Obtaining image information from a camera in response to a camera operation request from a first application among the plurality of applications;
Processing the obtained image information using a first image processing code set corresponding to the first application among the plurality of image processing code sets and providing the obtained image information to the first application; and
In response to a camera operation request from a second application among the plurality of applications, the acquired image information is processed using a second image processing code set corresponding to the second application among the plurality of image processing code sets to 2 Actions provided to the application;
updating the marked section information of the time stamp of the video file based on user emotion analysis data obtained by processing the image information using the first image processing code set; and
An operating method comprising transmitting the updated video file to the server through the communication circuit.
제11항에 있어서,
상기 제2 이미지 처리 코드 세트가 상기 제1 이미지 처리 코드 세트와 중복되는 경우, 상기 제2 어플리케이션에 제공하는 동작은, 상기 복수의 어플리케이션 중 제2 어플리케이션의 카메라 동작 요청에 대한 응답으로 상기 제1 이미지 처리 코드 세트를 이용해 처리한 이미지 정보를 상기 제2 어플리케이션에도 제공하는 동작인, 동작 방법.
According to clause 11,
If the second image processing code set overlaps with the first image processing code set, the operation provided to the second application may be performed by processing the first image in response to a camera operation request from a second application among the plurality of applications. An operation method, which is an operation of providing image information processed using a processing code set to the second application.
제11항에 있어서,
상기 카메라로부터 획득한 이미지 정보는, 상기 카메라에 포함된 이미지 센서에서 출력되는 Y 신호에 기초하여 구성된 이미지 정보인, 동작 방법.
According to clause 11,
An operating method wherein the image information obtained from the camera is image information constructed based on the Y signal output from the image sensor included in the camera.
삭제delete 제11항에 있어서,
상기 복수의 이미지 처리 코드 세트는,
이미지 정보를 이용하여 사용자 얼굴 인식, 사용자 손바닥 인식 사용자 행동 분석, 이미지 캡쳐, 오브젝트 인식, 사용자 감정 분석 또는 컬러 처리 중 적어도 하나를 수행하도록 하는 코드 세트인, 동작 방법.
According to clause 11,
The plurality of image processing code sets are,
An operating method, which is a set of code that performs at least one of user face recognition, user palm recognition, user behavior analysis, image capture, object recognition, user emotion analysis, or color processing using image information.
삭제delete 제11항에 있어서,
상기 카메라로부터 이미지 정보를 획득하는 동작 이전에, 복수의 센서를 통해 상기 전자 장치 주변의 조도, 상기 전자 장치의 위치 또는 각속도 중 적어도 하나를 측정하는 동작; 및
상기 측정한 결과에 기초하여 상기 카메라의 사용 여부를 결정하는 동작을 더 포함하는, 동작 방법.
According to clause 11,
Before acquiring image information from the camera, measuring at least one of illuminance around the electronic device, a position, or an angular velocity of the electronic device through a plurality of sensors; and
An operation method further comprising determining whether to use the camera based on the measurement result.
삭제delete 삭제delete 삭제delete
KR1020190011920A 2019-01-30 2019-01-30 Electronic device and method for providing image acquired through camera to a plurality of applications KR102662050B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020190011920A KR102662050B1 (en) 2019-01-30 Electronic device and method for providing image acquired through camera to a plurality of applications
PCT/KR2019/011927 WO2020159032A1 (en) 2019-01-30 2019-09-16 Electronic device for providing images obtained by camera to plurality of applications, and method for operating same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190011920A KR102662050B1 (en) 2019-01-30 Electronic device and method for providing image acquired through camera to a plurality of applications

Publications (2)

Publication Number Publication Date
KR20200094436A KR20200094436A (en) 2020-08-07
KR102662050B1 true KR102662050B1 (en) 2024-05-02

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100231754A1 (en) * 2009-03-11 2010-09-16 Wang Shaolan Virtual camera for sharing a physical camera
US20160316128A1 (en) * 2014-01-03 2016-10-27 Flir Systems, Inc. Camera system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100231754A1 (en) * 2009-03-11 2010-09-16 Wang Shaolan Virtual camera for sharing a physical camera
US20160316128A1 (en) * 2014-01-03 2016-10-27 Flir Systems, Inc. Camera system

Similar Documents

Publication Publication Date Title
KR102593824B1 (en) Method for controlling a camera and electronic device thereof
KR102319803B1 (en) Electronic device, operating method thereof and recording medium
US20210042132A1 (en) Electronic device and screen sharing method using same
KR102379313B1 (en) Electronic device for displaying application andoperating method thereof
KR102599383B1 (en) Electronic device for displaying an executable application on a split screen and method for the same
KR102536266B1 (en) Method for memory leak detection and electronic device thereof
KR20170136920A (en) Method for Outputting Screen and the Electronic Device supporting the same
CN108427533B (en) Electronic device and method for determining environment of electronic device
US11531835B2 (en) Electronic device for controlling predefined function based on response time of external electronic device on user input, and method thereof
WO2020048392A1 (en) Application virus detection method, apparatus, computer device, and storage medium
KR20190045765A (en) Electronic device and method for controlling application program
US11182071B2 (en) Apparatus and method for providing function associated with keyboard layout
US20180330154A1 (en) Electronic device for determining position of user, and method of controlling said device
KR102379898B1 (en) Electronic device for providing a graphic indicator related to a focus and method of operating the same
KR20190107901A (en) Electronic device for executing various functions based on a signal recevied from an electric pen
KR102653252B1 (en) Electronic device for providing visualized artificial intelligence service based on information of external object and method for the same
KR20190021106A (en) Electronic device and method for providing contents related camera
KR20210085696A (en) Method for determining movement of electronic device and electronic device using same
KR102524517B1 (en) Electronic apparatus and operating method thereof
KR102585645B1 (en) Electronic device and method for recognizing character
KR20180038892A (en) Image processing method and electronic device supporting the same
US20220207028A1 (en) Electronic device and method for providing information on electronic device
KR102662050B1 (en) Electronic device and method for providing image acquired through camera to a plurality of applications
KR20190045764A (en) Electronic device dispaying an image and operation method of thereof
KR102648539B1 (en) Electronic device and operating method thereof