KR20220102090A - Electronic device including a camera and method of operating the same - Google Patents

Electronic device including a camera and method of operating the same Download PDF

Info

Publication number
KR20220102090A
KR20220102090A KR1020210040885A KR20210040885A KR20220102090A KR 20220102090 A KR20220102090 A KR 20220102090A KR 1020210040885 A KR1020210040885 A KR 1020210040885A KR 20210040885 A KR20210040885 A KR 20210040885A KR 20220102090 A KR20220102090 A KR 20220102090A
Authority
KR
South Korea
Prior art keywords
camera
command
application
additional function
electronic device
Prior art date
Application number
KR1020210040885A
Other languages
Korean (ko)
Inventor
조상흠
박광규
강창훈
김보성
손주영
임현옥
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2021/019189 priority Critical patent/WO2022154281A1/en
Publication of KR20220102090A publication Critical patent/KR20220102090A/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/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • H04N5/23206
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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
    • H04N5/2257
    • H04N5/23216

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

An electronic device according to various embodiments includes a camera, a display, and a processor. The processor obtains a first command of a first application related to the camera through an additional function module which manages additional functions related to the camera while an application using the camera is running, generates a second command based on the first command and the specified command of the camera through the additional function module, and transmits the second command to the camera to perform a function corresponding to the first command through the additional function module. In addition, various embodiments are possible.

Description

카메라를 포함하는 전자 장치 및 이의 동작 방법 {ELECTRONIC DEVICE INCLUDING A CAMERA AND METHOD OF OPERATING THE SAME}Electronic device including camera and operating method thereof

다양한 실시 예들은, 카메라를 포함하는 전자 장치 및 이의 동작 방법에 관한 것이다.Various embodiments relate to an electronic device including a camera and an operating method thereof.

최근 디지털 기술의 발달과 함께 이동통신 단말기, PDA(personal digital assistant), 전자수첩, 스마트 폰, 태블릿 PC(personal computer), 웨어러블 디바이스(wearable device) 등과 같은 다양한 유형의 전자 장치가 널리 사용되고 있다. 이러한, 전자 장치들은, 다양한 기능들을 제공할 수 있어 사용자에게 널리 이용되고 있다. With the recent development of digital technology, various types of electronic devices such as a mobile communication terminal, a personal digital assistant (PDA), an electronic notebook, a smart phone, a tablet PC (personal computer), and a wearable device are widely used. These electronic devices are widely used by users because they can provide various functions.

전자 장치는, 지정된 운영체제(예컨대, 안드로이드 운영체제(Android OS))를 이용하여 다양한 기능들을 제공할 수 있다. 예컨대, 전자 장치는, 카메라를 이용하여 다양한 기능들을 제공할 수 있다.The electronic device may provide various functions using a specified operating system (eg, Android OS). For example, the electronic device may provide various functions using a camera.

안드로이드 운영체제(Android™ OS) 또는 장치 벤더(device vendor)에 의해 제공되는 기능은 나날이 추가 및 개선되고 있다. 그러나, 써드파티(3rd party) 어플리케이션은, 별도의 추가 구현이 없으면, 플랫폼 제공자가 제공하는 추가 기능을 이용하지 못할 수 있다. 또한, 안드로이드 운영체제는, 복수의 어플리케이션들이 동시에 카메라를 제어하기 위한 명령 취합 구조가 존재하지 않아, 안드로이드 운영체제를 이용하는 전자 장치는, 하나의 추가 구현을 복수의 써드파티 어플리케이션들 각각에 적용하지 못할 수 있다.Functions provided by the Android operating system (Android™ OS) or device vendors are being added and improved day by day. However, a 3rd party application may not be able to use the additional function provided by the platform provider without a separate additional implementation. Also, since the Android operating system does not have a command aggregation structure for a plurality of applications to simultaneously control the camera, an electronic device using the Android operating system may not be able to apply one additional implementation to each of the plurality of third-party applications. .

안드로이드 운영체제는 하나의 카메라에 하나의 클라이언트만 액세스할 수 있다. 예를 들면, 하나의 카메라에 대하여 복수의 클라이언트들의 독립적인 기능 수행이 보장되지 않을 수 있다. 이는, 연속적으로 프레임을 처리해야 하는 카메라의 기능적 특성에 기인하는 제한 사항일 수 있다. The Android operating system can only access one client per camera. For example, independent function performance of a plurality of clients for one camera may not be guaranteed. This may be a limitation due to the functional characteristics of the camera that must continuously process frames.

현재 카메라를 이용 중인 클라이언트(또는 어플리케이션) 이외의 다른 클라이언트(또는 어플리케이션)는, 사용자 입력에 따라 카메라의 동작 및 기능을 수행하기 위해서는, 해당 클라이언트 자체를 수정해야만 했다. 또는, 안드로이드 운영체제의 카메라 파이프라인/프레임워크에 카메라의 동작 및 기능을 추가할 경우, 카메라 파이프라인/프레임워크는 전자 장치의 기본 시스템 구성 요소이기 때문에, 업데이트에 제약이 발생될 가능성도 있다.A client (or application) other than the client (or application) currently using the camera had to modify the corresponding client itself in order to perform the operation and function of the camera according to a user input. Alternatively, when camera operations and functions are added to the camera pipeline/framework of the Android operating system, updates may be restricted because the camera pipeline/framework is a basic system component of the electronic device.

다양한 실시 예들은, 안드로이드 플랫폼(Android™ platform) 상에서 카메라를 구동하는 기본적인 모듈 이외에 별도로 카메라를 제어할 수 있는 모듈을 추가하여, 어느 어플리케이션이 카메라를 이용할 때에도 추가된 모듈이 제공하는 경로를 통하여 카메라를 제어할 수 있는 전자 장치와 이의 동작 방법을 제공할 수 있다.Various embodiments add a module that can control the camera separately in addition to the basic module that drives the camera on the Android™ platform, so that even when any application uses the camera, the camera is controlled through the path provided by the added module. A controllable electronic device and an operating method thereof may be provided.

다양한 실시 예에 따른 전자 장치는, 카메라, 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera, a display, and a processor, wherein the processor uses an additional function module that manages an additional function related to the camera while an application using the camera is running. obtains a first command of a first application related to, through the additional function module, generates a second command based on the first command and a specified command of the camera, and through the additional function module, the first command It may be set to transmit the second command to the camera to perform a function corresponding to the command.

다양한 실시 예에 따른 전자 장치의 동작 방법은, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.In a method of operating an electronic device according to various embodiments of the present disclosure, in a state in which an application using a camera included in the electronic device is being executed, the first application related to the camera is executed through an additional function module for managing the additional function related to the camera. obtaining a first command, generating a second command based on the first command and a specified command of the camera through the additional function module, and responding to the first command through the additional function module and transmitting the second command to the camera to perform the function.

다양한 실시 예에 따른 비일시적 저장 매체에 있어서, 상기 프로그램은, 프로세서에 의한 실행 시, 상기 프로세서가, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 수행하도록 실행 가능한 인스트럭션을 저장할 수 있다.In a non-transitory storage medium according to various embodiments of the present disclosure, when the program is executed by a processor, the processor manages an additional function related to the camera while an application using a camera included in the electronic device is running obtaining a first command of the first application related to the camera through an additional function module, generating a second command based on the first command and a specified command of the camera through the additional function module; and an instruction executable to transmit the second command to the camera to perform a function corresponding to the first command through the additional function module.

다양한 실시 예들에 따른 전자 장치는, 안드로이드 플랫폼 상에서 카메라를 구동하는 기본적인 모듈 이외에 별도로 카메라를 제어할 수 있는 모듈을 추가하여, 어느 어플리케이션이 카메라를 이용할 때에도 추가된 모듈이 제공하는 경로를 통하여 카메라를 제어할 수 있습니다. 이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.The electronic device according to various embodiments of the present disclosure controls the camera through a path provided by the added module even when any application uses the camera by adding a module capable of separately controlling the camera in addition to the basic module for driving the camera on the Android platform. You can. In addition, various effects directly or indirectly identified through this document may be provided.

도 1은, 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은, 다양한 실시 예에 따른 전자 장치의 개략적인 블록도이다.
도 4는, 다양한 실시 예들에 따른 전자 장치에서 실행되는 추가 기능 모듈을 설명하기 위한 블록도이다.
도 5는, 다양한 실시 예에 따른 전자 장치의 동작 방법을 설명하기 위한 플로우 차트이다.
도 6은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 종류를 설명하기 위한 도면이다.
도 7은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 형태를 설명하기 위한 도면이다.
도 8은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 복수의 어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 9는, 다양한 실시 예에 따른 카메라를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 10a 내지 도 10f는, 다양한 실시 예들에 따른 전자 장치가 제공하는 사용자 인터페이스를 설명하기 위한 도면들이다.
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.
3 is a schematic block diagram of an electronic device according to various embodiments of the present disclosure;
4 is a block diagram illustrating an additional function module executed in an electronic device according to various embodiments of the present disclosure.
5 is a flowchart for describing a method of operating an electronic device according to various embodiments of the present disclosure.
6 is a diagram for describing a type of a second command transmitted by an electronic device through an additional function module according to various embodiments of the present disclosure;
7 is a diagram for explaining a form of a second command transmitted by an electronic device through an additional function module according to various embodiments of the present disclosure;
8 is a flowchart illustrating an operation in which an electronic device transmits commands of a plurality of applications to a camera through an additional function module according to various embodiments of the present disclosure;
9 is a flowchart illustrating an operation of transmitting commands of first applications to a camera through an additional function module while an application using a camera is running, according to various embodiments of the present disclosure;
10A to 10F are diagrams for explaining a user interface provided by 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), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments. Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 . In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be

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

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The secondary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190 ). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(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 . The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a 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 an application 146 .

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

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

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

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

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

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

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

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

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

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

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

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

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various techniques for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements defined in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: Downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). 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 from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal 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, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

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

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, the command 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 external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. The server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는, 다양한 실시 예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일실시예에 따르면, 프로그램(140)은 전자 장치(101)(예: 도 1의 전자 장치(101))의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.2 is a block diagram 200 illustrating a program 140 according to various embodiments. According to an embodiment, the program 140 is an operating system 142 , middleware 144 , or the operating system 142 for controlling one or more resources of the electronic device 101 (eg, the electronic device 101 of FIG. 1 ). It may include applications 146 executable on the system 142 . 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, for example, preloaded into the electronic device 101 at the time of manufacture, or an external electronic device (eg, the electronic device 102 or 104 ), or a server (eg, the electronic device 102 or 104 ) when used by a user. 108))) or may be updated.

운영 체제(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, a process, memory, or power) of the electronic device 101 . The operating system 142 may additionally or alternatively include other hardware devices of the electronic device 101 , for example, the input module 150 , the sound output module 155 , the display module 160 , and the 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 may 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 . ), a connectivity manager 215 , a notification manager 217 , a location manager 219 , a graphics manager 221 , a security manager 223 , a call manager 225 , or a voice recognition manager 227 . can

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

데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. The database manager 211 may create, retrieve, or change a database to be used by the application 146 , for example. The package manager 213 may manage installation or update of an application distributed in the form of a package file, for example. The connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device. The notification manager 217 may provide, for example, a function for notifying the user of the occurrence of a specified event (eg, an incoming call, a message, or an alarm). The location manager 219 may manage location information of the electronic device 101 , for example. The graphic manager 221 may manage, for example, one or more graphic effects to be provided to a 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 . The voice recognition manager 227, for example, transmits the user's voice data to the server 108, and based at least in part on the voice data, a command corresponding to a function to be performed in the electronic device 101; Alternatively, the converted text data may be received from the server 108 based at least in part on the voice data. According to an embodiment, the middleware 244 may dynamically delete some existing components or add new components. According to an embodiment, at least a portion of the middleware 144 may be included as a part of the operating system 142 or implemented as software separate 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)의 사용자에게 제공할 수 있다. Application 146 includes, for example, home 251 , dialer 253 , SMS/MMS 255 , instant message (IM) 257 , browser 259 , camera 261 , alarm 263 . , contacts 265, voice recognition 267, email 269, calendar 271, media player 273, album 275, watch 277, health 279 (such as exercise or blood sugar) measuring biometric information), or environmental information 281 (eg, measuring atmospheric pressure, humidity, or temperature information). According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting 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 transmit specified information (eg, call, message, or alarm) to an external electronic device, or a device management application configured to manage the external electronic device. have. The notification relay application, for example, transmits notification information corresponding to a specified event (eg, mail reception) generated in another application (eg, the email application 269 ) of the electronic device 101 to the external electronic device. can Additionally or alternatively, the notification relay application may receive notification information from the external electronic device and provide it to the user of the electronic device 101 .

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

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

도 3을 참조하면, 전자 장치(301)는, 프로세서(320), 메모리(330), 카메라(340), 및 디스플레이(360)를 포함할 수 있다. 예컨대, 전자 장치(301)는, 도 1의 전자 장치(101, 102, 및 104)와 동일 내지 유사하게 구현될 수 있다.Referring to FIG. 3 , the electronic device 301 may include a processor 320 , a memory 330 , a camera 340 , and a display 360 . For example, the electronic device 301 may be implemented in the same way as or similarly to the electronic devices 101 , 102 , and 104 of FIG. 1 .

다양한 실시 예에 따라, 프로세서(320)는, 전자 장치(301)의 전반적인 동작을 제어할 수 있다. 예컨대, 프로세서(320)는, 도 1의 프로세서(120)와 동일 내지 유사하게 구현될 수 있다. According to various embodiments, the processor 320 may control the overall operation of the electronic device 301 . For example, the processor 320 may be implemented in the same or similar manner to the processor 120 of FIG. 1 .

다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)(예컨대, 도 1의 카메라 모듈(180))를 이용하는 어플리케이션을 실행시킬 수 있다. 예컨대, 어플리케이션은 메모리(330)(예컨대, 도 1의 메모리(130))에 저장될 수 있다. 예컨대, 카메라(340)를 이용하는 어플리케이션은 써드파티 어플리케이션을 포함할 수 있다. According to various embodiments, the processor 320 may execute an application using the camera 340 (eg, the camera module 180 of FIG. 1 ). For example, the application may be stored in the memory 330 (eg, the memory 130 of FIG. 1 ). For example, an application using the camera 340 may include a third-party application.

다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)(예컨대, 도 1의 카메라 모듈(180))를 이용하는 어플리케이션에 대한 추가 기능을 제공할 수 있는 적어도 하나의 어플리케이션을 실행시킬 수 있다. 예컨대, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서(또는 해당 어플리케이션이 카메라(340)를 이용 중인 상태에서), 추가 기능 모듈을 통해 적어도 하나의 어플리케이션이 제공하는 추가 기능을 수행할 수 있다. 추가 기능을 제공하는 적어도 하나의 어플리케이션은 메모리(330)(예컨대, 도 1의 메모리(130))에 저장될 수 있다. According to various embodiments, the processor 320 may execute at least one application capable of providing an additional function to an application using the camera 340 (eg, the camera module 180 of FIG. 1 ). For example, the processor 320 may perform an additional function provided by at least one application through an additional function module while an application using the camera 340 is running (or in a state in which the application is using the camera 340 ). can be performed. At least one application providing an additional function may be stored in the memory 330 (eg, the memory 130 of FIG. 1 ).

다양한 실시 예에 따라, 프로세서(320)는, 어플리케이션이 카메라(340)를 이용하는 상태에서, 카메라(340) 및/또는 카메라(340)를 이용하는 어플리케이션과 관련된 추가 기능을 관리하는 추가 기능 모듈을 실행시킬 수 있다. 예컨대, 추가 기능 모듈은, 카메라(340)에 대하여 단방향 액세스만을 허용하던 카메라 서비스 모듈에 추가될 수 있다. 추가 기능 모듈은, 플랫폼 레이어(platform layer)에서 카메라(340)에 대한 추가 기능을 수행하기 위한 명령을 수신하고, 수신된 명령을 기존의 카메라(340)의 지정된 명령과 조합한 명령 또는 데이터를 카메라(340)로 전송할 수 있다. 예컨대, 추가 기능 모듈은, 카메라의 프레임워크 레이어(예: 도 4의 카메라 서비스(430))에서 실행될 수 있다. 프로세서(320)는, 추가 기능 모듈을 통해, 카메라(340)를 이용하는 어플리케이션 또는 카메라(340)에 대한 추가 기능을 제공할 수 있다. 예컨대, 추가 기능은, 전자 장치(301)의 플랫폼 자체적으로 지원하는 기능을 포함할 있다. 또한, 추가 기능은, 해당 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다. 예컨대, 추가 기능은, 디스플레이(360)(예컨대, 도 1의 디스플레이 모듈(160))에 표시된 어플리케이션의 실행 화면의 색상, 화면 효과, 배경 효과, 및 배경 이미지 중 적어도 하나를 변경하는 기능을 포함할 수 있다. According to various embodiments, the processor 320 may execute the additional function module for managing the additional function related to the camera 340 and/or the application using the camera 340 while the application uses the camera 340 . can For example, the additional function module may be added to the camera service module that allowed only one-way access to the camera 340 . The additional function module receives a command for performing an additional function for the camera 340 in a platform layer, and combines the received command with a specified command of the existing camera 340 and converts the command or data to the camera may be transmitted to 340 . For example, the additional function module may be executed in the framework layer of the camera (eg, the camera service 430 of FIG. 4 ). The processor 320 may provide an application using the camera 340 or an additional function for the camera 340 through the additional function module. For example, the additional function may include a function supported by the platform itself of the electronic device 301 . In addition, the additional function may include a function not supported by the corresponding application. For example, the additional function may include a function of changing at least one of a color, a screen effect, a background effect, and a background image of an execution screen of an application displayed on the display 360 (eg, the display module 160 of FIG. 1 ). can

다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행에 기반하여, 추가 기능 모듈을 실행할 수 있다. 예컨대, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 추가 기능을 제공하는 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인할 수 있다. 지정된 조건이 만족되면, 프로세서(320)는, 추가 기능 모듈을 실행하고, 제1어플리케이션을 실행할 수 있다. 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행 중인 상태(또는 해당 어플리케이션이 카메라(340)를 점유 중인 상태)에서, 추가 기능 모듈을 통해, 카메라(340)와 관련된 제1어플리케이션의 제1명령을 획득할 수 있다. 예컨대, 제1명령은, 제1어플리케이션을 통해 제공되는 추가 기능들 중 사용자 입력에 대응하는 추가 기능을 제공하기 위한 명령일 수 있다. According to various embodiments, the processor 320 may execute an additional function module based on the execution of an application using the camera 340 . For example, in response to the execution of the application using the camera 340 , the processor 320 may check whether the application satisfies a specified condition for executing the first application providing the additional function. When the specified condition is satisfied, the processor 320 may execute the additional function module and execute the first application. In the running state of the application using the camera 340 (or in the state in which the application occupies the camera 340), the processor 320, through the additional function module, generates the first application related to the camera 340 You can get 1 order. For example, the first command may be a command for providing an additional function corresponding to a user input among additional functions provided through the first application.

다양한 실시 예에 따라, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령 및 카메라(340)의 지정된 명령에 기초하여 제2명령을 생성할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령과 카메라(340)의 지정된 명령을 조합하여 제2명령을 생성할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈을 통해, 카메라(340)에 대한 캡쳐 요청(capture request)의 키-값(key-value)(예: 벤더키(vendorkey)) 형태로 제2명령을 생성할 수 있다.According to various embodiments, the processor 320 may generate the second command based on the first command and the command specified by the camera 340 through the additional function module. For example, the processor 320 may generate the second command by combining the first command and the specified command of the camera 340 through the additional function module. For example, the processor 320, through the additional function module, a key-value of a capture request to the camera 340 (eg, vendor key (vendorkey)) in the form of a second command can create

다양한 실시 예에 따라, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령에 대응하는 추가 기능을 수행하도록 제2명령을 카메라(340)로 전송할 수 있다. 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서, 제1명령에 대응하는 추가 기능을 제공할 수 있다.According to various embodiments, the processor 320 may transmit a second command to the camera 340 to perform an additional function corresponding to the first command through the additional function module. The processor 320 may provide an additional function corresponding to the first command while an application using the camera 340 is running.

도 4는, 다양한 실시 예들에 따른 전자 장치에서 실행되는 추가 기능 모듈을 설명하기 위한 블록도이다.4 is a block diagram illustrating an additional function module executed in an electronic device according to various embodiments of the present disclosure.

도 4를 참조하면, 프로세서(320)(예컨대, 도 3의 프로세서(320))는, 카메라(340)(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(410)을 실행할 수 있다. 예컨대, 전자 장치(301)는, 전자 장치(301)에 설치된 운영체제(예컨대, 안드로이드 OS)에서 지원하는 자바 레이어, 네이티브 레이어, 및 리눅스 커널 레이어를 통해 어플리케이션(410)의 동작을 수행할 수 있다. 예컨대, 자바 레이어는 도 2의 어플리케이션(146)에 관련될 수 있고, 네이티브 레이어는 도 2의 미들웨어(144)에 관련될 수 있고, 리눅스 커널 레이어는 도 2의 운영체제(142)에 관련될 수 있다.Referring to FIG. 4 , the processor 320 (eg, the processor 320 of FIG. 3 ) may execute an application 410 using the camera 340 (eg, the camera 340 of FIG. 3 ). For example, the electronic device 301 may perform the operation of the application 410 through a Java layer, a native layer, and a Linux kernel layer supported by an operating system (eg, Android OS) installed in the electronic device 301 . For example, the Java layer may relate to the application 146 of FIG. 2 , the native layer may relate to the middleware 144 of FIG. 2 , and the Linux kernel layer may relate to the operating system 142 of FIG. 2 . .

다양한 실시 예에 따라, 프로세서(320)는, 자바 레이어에서, 카메라(340)를 이용하는 어플리케이션(410), 제1추가 기능 클라이언트(420), 제2추가 기능 클라이언트(427), 및 추가 기능 서비스(425)를 실행시킬 수 있다. According to various embodiments, the processor 320, in the Java layer, the application 410 using the camera 340, the first additional function client 420, the second additional function client 427, and the additional function service ( 425) can be executed.

다양한 실시 예에 따라, 프로세서(320)는, 어플리케이션(410)을 실행하고 어플리케이션(410)에 대한 정보를 카메라 서비스(430)로 전송할 수 있다. 예컨대, 어플리케이션(410)은, 써드파티 어플리케이션일 수 있다. According to various embodiments, the processor 320 may execute the application 410 and transmit information on the application 410 to the camera service 430 . For example, the application 410 may be a third-party application.

다양한 실시 예에 따라, 제1추가 기능 클라이언트(420)은, 플랫폼(또는 전자 장치(301))이 지원하는 카메라(340)를 제어할 수 있는 제1어플리케이션을 동작시키기 위한 모듈일 수 있다. 제2추가 기능 클라이언트(427)는, 플랫폼(또는 전자 장치(301))이 지원하는 카메라(340)를 제어할 수 있는 제2어플리케이션을 동작시키기 위한 모듈일 수 있다. 비록, 도 4에서는, 2개의 추가 기능 클라이언트들(420 및 427)을 도시하고 있으나, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 전자 장치(301)는, 복수의 추가 기능 클라이언트들을 포함할 수 있다.According to various embodiments, the first additional function client 420 may be a module for operating a first application capable of controlling the camera 340 supported by the platform (or the electronic device 301 ). The second additional function client 427 may be a module for operating a second application capable of controlling the camera 340 supported by the platform (or the electronic device 301 ). Although FIG. 4 illustrates two additional function clients 420 and 427 , the technical spirit of the present disclosure may not be limited thereto. For example, the electronic device 301 may include a plurality of additional function clients.

다양한 실시 예에 따라, 추가 기능 서비스(425)는, 카메라(340)의 동작과 관련된 부가 정보를 추가 기능 모듈(450)로 전송하는 모듈일 수 있다. 예컨대, 카메라(340)의 동작과 관련된 부가 정보는, 플랫폼이 지원하는 기능 또는 어플리케이션(410)에 대한 부가 정보를 포함할 수 있다. According to various embodiments, the additional function service 425 may be a module that transmits additional information related to the operation of the camera 340 to the additional function module 450 . For example, the additional information related to the operation of the camera 340 may include additional information about a function or application 410 supported by the platform.

다양한 실시 예에 따라, 추가 기능 서비스(425)는, 제1추가 기능 클라이언트(420)에 의해 실행된 제1어플리케이션에 대한 정보를 획득할 수 있다. 또한, 추가 기능 서비스(425)는, 제1추가 기능 클라이언트(420)에 의해 실행된 제2어플리케이션에 대한 정보를 획득할 수 있다. 추가 기능 서비스(425)는, 제1어플리케이션에 대한 정보 및 제2어플리케이션에 대한 정보를 추가 기능 모듈(450)로 전송할 수 있다.According to various embodiments, the additional function service 425 may acquire information on the first application executed by the first additional function client 420 . Also, the additional function service 425 may acquire information on the second application executed by the first additional function client 420 . The additional function service 425 may transmit information on the first application and information on the second application to the additional function module 450 .

다양한 실시 예에 따라, 추가 기능 서비스(425)는, 추가 기능 클라이언트(420 또는 427))로부터 해당 어플리케이션의 요청(예컨대, 사용자 입력)을 수신하고, 추가 기능을 통해 카메라(340)의 제어를 수행할 수 있는지 여부를 확인할 수 있다. 예컨대, 추가 기능 서비스(425)는, 추가 기능을 통해 카메라(340)를 제어할 수 있는지 여부를 확인할 수 있다. 예컨대, 추가 기능을 통해 카메라(340)를 제어할 수 있는지 여부를 확인하는 방법은, 공개키 기반의 인증 방식 또는 사용자와 명시적인 상호작용(예컨대, 팝업 창 표시 또는 메시지 표시)을 통해 제어 권한을 부여받는 방식이 이용될 수 있다. 추가 기능 서비스(425)는, 추가 기능을 통해 카메라(340)의 제어를 수행할 수 있다고 확인되면, 추가 기능 모듈(450)로 해당 어플리케이션의 요청(또는 요청에 대한 정보)을 번들 형태로 전달할 수 있다. According to various embodiments, the additional function service 425 receives a request (eg, a user input) of the corresponding application from the additional function client 420 or 427), and controls the camera 340 through the additional function. You can check whether it can be done. For example, the additional function service 425 may check whether the camera 340 can be controlled through the additional function. For example, as a method of checking whether the camera 340 can be controlled through an additional function, the control right is obtained through a public key-based authentication method or explicit interaction with the user (eg, displaying a pop-up window or displaying a message). A given method may be used. If it is confirmed that the additional function service 425 can control the camera 340 through the additional function, the request of the corresponding application (or information about the request) can be delivered to the additional function module 450 in a bundle form. have.

다양한 실시 예에 따라, 프로세서(320)는, 네이티브 레이어에서, 카메라 서비스(430) 및 카메라 HAL(hardware abstraction layer)(460)를 실행시킬 수 있다. According to various embodiments, the processor 320 may execute the camera service 430 and the camera hardware abstraction layer (HAL) 460 in the native layer.

다양한 실시 예에 따라, 카메라 서비스(430)는, 카메라(340)를 구동시키기 위한 어플리케이션(410)과 카메라(340) 사이의 정보를 송수신하는 모듈일 수 있다. 예컨대, 카메라 서비스(430)는, 카메라 클라이언트(440) 및/또는 추가 기능 모듈(450)을 포함할 수 있다. 카메라 클라이언트(440)는, 카메라(340)를 이용하기 위한 명령과 사용자 입력에 대한 응답을 카메라 HAL(460)로 전송할 수 있다. 카메라 클라이언트(440)는, 카메라(340)에 대한 정보 또는 명령을 추가 기능 모듈(450)로부터 수신할 수 있다. 또한, 카메라 클라이언트(440)는, 카메라(340)에 대한 정보 또는 명령을 추가 기능 모듈(450)로 전송할 수도 있다. 추가 기능 모듈(450)은, 카메라(340)를 이용하는 어플리케이션(410)에 대한 정보를 수신할 수 있다. 예를 들면, 추가 기능 모듈(450)은, 구동 중인 카메라(340)에 대한 정보 및/또는 명령을 수신할 수 있다.According to various embodiments, the camera service 430 may be a module that transmits and receives information between the application 410 for driving the camera 340 and the camera 340 . For example, the camera service 430 may include a camera client 440 and/or an additional function module 450 . The camera client 440 may transmit a command for using the camera 340 and a response to a user input to the camera HAL 460 . The camera client 440 may receive information or a command on the camera 340 from the additional function module 450 . Also, the camera client 440 may transmit information or a command on the camera 340 to the additional function module 450 . The additional function module 450 may receive information about the application 410 using the camera 340 . For example, the additional function module 450 may receive information and/or commands about the camera 340 being driven.

다양한 실시 예에 따라, 추가 기능 모듈(450)은, 추가 기능 서비스(425)로부터 사용자 입력에 대응하는 제1명령을 획득할 수 있다. 예를 들면, 제1명령은, 제1추가 기능 클라이언트(420) 및/또는 제2추가 기능 클라이언트(427)에 의해 생성된 명령일 수 있다. 추가 기능 모듈(450)은, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요한지 여부를 판단할 수 있다. 추가 기능 모듈(450)은, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요한 경우, 제1명령과 카메라(340)의 지정된 명령을 조합하여 제2명령을 생성할 수 있다. 예컨대, 추가 기능 모듈(450)은, 카메라 클라이언트(440)가 카메라 HAL(460)로 전송하는 명령을 제2명령으로 대체하고, 제2명령을 카메라 클라이언트(440)를 통해 카메라 HAL(460)로 전송할 수 있다. 추가 기능 모듈(450)은, 제2명령을 카메라 HAL(460)로 전송할 수 있다. 또는, 추가 기능 모듈(450)은, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요하지 않으면, 카메라 클라이언트(440)를 통해 제1명령을 카메라 HAL(460)로 전송할 수 있다. According to various embodiments, the additional function module 450 may obtain a first command corresponding to a user input from the additional function service 425 . For example, the first command may be a command generated by the first additional function client 420 and/or the second additional function client 427 . The additional function module 450 may determine whether the first command needs to be combined with a specified command of the camera 340 . The additional function module 450 may generate a second command by combining the first command and the specified command of the camera 340 when the first command is required to be combined with the specified command of the camera 340 . For example, the additional function module 450 replaces a command transmitted by the camera client 440 to the camera HAL 460 with a second command, and converts the second command to the camera HAL 460 through the camera client 440 . can be transmitted The additional function module 450 may transmit the second command to the camera HAL 460 . Alternatively, the additional function module 450 may transmit the first command to the camera HAL 460 through the camera client 440 when the first command does not need to be combined with the specified command of the camera 340 .

다양한 실시 예에 따라, 카메라 HAL(460)은, 카메라 클라이언트(440)로부터 수신된 카메라에 대한 정보 및/또는 명령을 카메라 드라이버(470)로 전송하는 모듈일 수 있다. 예컨대, 카메라 HAL(460)은, 추가 기능 모듈(450)에 의해 전송된 제1명령 및/또는 제2명령을 카메라 드라이버(470)로 전송할 수 있다. 카메라 HAL(460)은, UniHAL(461) 및 implementation(462)(예: HAL implementation)을 포함할 수 있다. UniHAL(461)은 카메라 HAL(460)에서, 프로세서(320)(또는 프로세서 칩셋)에 의존성을 지니는 부분을 제외한 공통 소프트웨어 솔루션에 대한 모듈일 수 있다. Implementation(462)은, 카메라 HAL(460)에서, 카메라(340)를 제어하기 위해 구현된 소프트웨어 솔루션에 대한 모듈일 수 있다. According to various embodiments, the camera HAL 460 may be a module that transmits camera information and/or commands received from the camera client 440 to the camera driver 470 . For example, the camera HAL 460 may transmit the first command and/or the second command transmitted by the additional function module 450 to the camera driver 470 . The camera HAL 460 may include a UniHAL 461 and an implementation 462 (eg, a HAL implementation). The UniHAL 461 may be a module for a common software solution except for a part that depends on the processor 320 (or processor chipset) in the camera HAL 460 . Implementation 462 may be a module for a software solution implemented to control camera 340 in camera HAL 460 .

다양한 실시 예에 따라, 프로세서(320)는, 리눅스 커널 레이어에서, 카메라 드라이버(470)를 실행시킬 수 있다. 카메라 드라이버(470)는, 카메라 HAL(460)와 카메라(340)에 대한 정보 및/또는 명령을 송수신할 수 있다. 예컨대, 카메라 드라이버(470)는 카메라 HAL(460)로부터 수신된 명령에 기초하여 카메라(340)를 제어할 수 있다. According to various embodiments, the processor 320 may execute the camera driver 470 in the Linux kernel layer. The camera driver 470 may transmit/receive information and/or commands about the camera HAL 460 and the camera 340 . For example, the camera driver 470 may control the camera 340 based on a command received from the camera HAL 460 .

상술한 바와 같이, 어플리케이션(410)은, 추가 기능 모듈(450)을 통해 전자 장치(320)의 플랫폼에서 제공하는 추가 기능을 제공받을 수 있다.As described above, the application 410 may receive an additional function provided by the platform of the electronic device 320 through the additional function module 450 .

한편, 이하에서 설명하는 전자 장치(301)의 동작들 중 적어도 일부는 프로세서(320) 및/또는 추가 기능 모듈(450)에 의해 수행될 수 있다. Meanwhile, at least some of the operations of the electronic device 301 described below may be performed by the processor 320 and/or the additional function module 450 .

도 5는, 다양한 실시 예에 따른 전자 장치의 동작 방법을 설명하기 위한 플로우 차트이다.5 is a flowchart for explaining a method of operating an electronic device according to various embodiments of the present disclosure.

도 5를 참조하면, 다양한 실시 예에 따라, 동작 501에서, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))을 실행할 수 있다. Referring to FIG. 5 , according to various embodiments, in operation 501 , the processor 320 may execute an application using the camera 340 (eg, the application 410 of FIG. 4 ).

다양한 실시 예에 따라, 동작 503에서, 프로세서(320)는, 어플리케이션(410)이 추가 기능을 제공하는 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)이 제1어플리케이션에서 제공하는 추가 기능을 적용할 수 있으면 지정된 조건이 만족된 것으로 판단할 수 있다. 반면, 프로세서(320)는, 어플리케이션(410)이 제1어플리케이션에서 제공하는 추가 기능을 적용할 수 없으면 지정된 조건이 만족되지 않은 것으로 판단할 수 있다.According to various embodiments, in operation 503 , the processor 320 may determine whether the application 410 satisfies a specified condition for executing the first application that provides the additional function. For example, if the application 410 can apply an additional function provided by the first application, the processor 320 may determine that the specified condition is satisfied. On the other hand, if the application 410 cannot apply the additional function provided by the first application, the processor 320 may determine that the specified condition is not satisfied.

다양한 실시 예에 따라, 지정된 조건이 만족되지 않은 것으로 확인되면(동작 503의 아니오), 동작 504에서, 프로세서(320)는, 제1어플리케이션을 실행하지 않지 않을 수 있다. 이때, 프로세서(320)는 제1어플리케이션이 제공하는 추가 기능 없이, 어플리케이션(410)을 실행할 수 있다.According to various embodiments, if it is determined that the specified condition is not satisfied (No in operation 503 ), in operation 504 , the processor 320 may not execute the first application. In this case, the processor 320 may execute the application 410 without an additional function provided by the first application.

다양한 실시 예에 따라, 지정된 조건이 만족된 것으로 확인되면(동작 503의 예), 동작 505에서, 프로세서(320)는, 제1추가 기능 클라이언트(예컨대, 도 4의 제1추가 기능 클라이언트(420))를 통해 제1어플리케이션을 실행할 수 있다. 이때, 프로세서(320)는, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))을 실행할 수 있다.According to various embodiments, if it is confirmed that the specified condition is satisfied (eg in operation 503 ), in operation 505 , the processor 320 performs the first additional function client (eg, the first additional function client 420 in FIG. 4 ). ) to run the first application. In this case, the processor 320 may execute an additional function module (eg, the additional function module 450 of FIG. 4 ).

다양한 실시 예에 따라, 동작 507에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해 제1어플리케이션에 대한 사용자 입력을 확인할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈(450)을 통해 사용자 입력에 대응하는 추가 기능을 수행하기 위한 제1명령을 획득할 수 있다.According to various embodiments, in operation 507 , the processor 320 may check the user input for the first application through the additional function module 450 . For example, the processor 320 may obtain a first command for performing an additional function corresponding to a user input through the additional function module 450 .

다양한 실시 예에 따라, 동작 509에서, 프로세서(320)는, 사용자 입력에 대응하는 제1명령이 카메라(340)의 지정된 명령과 조합이 필요한지 여부를 확인할 수 있다.According to various embodiments, in operation 509 , the processor 320 may determine whether the first command corresponding to the user input needs to be combined with the specified command of the camera 340 .

다양한 실시 예에 따라, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요한 것으로 확인되면(동작 509의 예), 동작 511에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해 제1명령과 카메라(340)의 지정된 명령을 조합하여 제2명령을 생성할 수 있다. 프로세서(320)는, 추가 기능 모듈(450)을 통해 제2명령을 카메라(340)로 전송할 수 있다. 예컨대, 제2명령은, 카메라(340)의 지정된 명령에 제1명령의 내용(예컨대, 값)을 추가한 데이터일 수 있다. 예컨대, 제2명령은, 안드로이드 OS에서 사용되는 카메라(340)의 캡쳐요청 명령의 벤더키 형태를 가질 수 있다. 또한, 프로세서(320)는, 추가 기능 모듈(450)을 통해, 각 프레임마다 카메라(340)로 전송되는 지정된 명령과 동기화하여 제2명령을 카메라(340)로 전달할 수 있다.According to various embodiments, if it is determined that the first command requires a combination of the specified command of the camera 340 (example of operation 509), in operation 511, the processor 320 may The second command may be generated by combining the first command and the specified command of the camera 340 . The processor 320 may transmit the second command to the camera 340 through the additional function module 450 . For example, the second command may be data obtained by adding the content (eg, value) of the first command to a designated command of the camera 340 . For example, the second command may have a vendor key form of a capture request command of the camera 340 used in the Android OS. Also, the processor 320 may transmit the second command to the camera 340 in synchronization with a designated command transmitted to the camera 340 for each frame through the additional function module 450 .

다양한 실시 예에 따라, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요하지 않은 것으로 확인되면(동작 509의 아니오), 동작 513에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해 제1명령을 카메라(340)로 전송할 수 있다. 프로세서(320)는, 추가 기능 모듈(450)을 통해, 각 프레임마다 카메라(340)로 전송되는 지정된 명령과 동기화하여 제1명령을 카메라(340)로 전달할 수 있다.According to various embodiments, if it is determined that the combination of the first command with the specified command of the camera 340 is not required (NO in operation 509 ), in operation 513 , the processor 320 performs the additional function module 450 . Through this, the first command may be transmitted to the camera 340 . The processor 320 may transmit the first command to the camera 340 in synchronization with a designated command transmitted to the camera 340 for each frame through the additional function module 450 .

다양한 실시 예에 따라, 동작 515에서, 프로세서(320)는, 제1명령에 대응하는 기능을 수행할 수 있다. 예컨대, 제1명령에 대응하는 기능은, 전자 장치(320)의 플랫폼에서 제공하는 추가 기능을 포함할 수 있다.According to various embodiments, in operation 515 , the processor 320 may perform a function corresponding to the first command. For example, the function corresponding to the first command may include an additional function provided by the platform of the electronic device 320 .

도 6은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 종류를 설명하기 위한 도면이다.6 is a diagram for describing a type of a second command transmitted by an electronic device through an additional function module according to various embodiments of the present disclosure;

도 6을 참조하면, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))은, 안드로이드 OS에서 사용되는 카메라(340)의 지정된 명령(예컨대, 캡쳐요청 명령)의벤더키 형태로 제2명령을 생성할 수 있다. 제2명령은, 사용자 입력에 대응하는 제1명령에 대응하는 기능을 나타내는 값(value)을 포함할 수 있다.Referring to FIG. 6 , the additional function module (eg, the additional function module 450 of FIG. 4 ) is a second command in the form of a vendor key of a specified command (eg, capture request command) of the camera 340 used in the Android OS. You can create commands. The second command may include a value indicating a function corresponding to the first command corresponding to the user input.

다양한 실시 예에 따라, 제2명령은, 카메라(340)(예컨대, 도 3의 카메라(340))의 특정 비디오 모드를 실행하는 값을 포함할 수 있다. 예컨대, 제2명령은, 손떨림방지 모드(예: OIS(optical image stabilization), 또는 VDIS(video digital image stabilization))를 실행하는 값, 보케(bokeh) 모드를 실행하는 값, 세그멘테이션 모드를 실행하는 값, 또는 뷰티 모드를 실행하는 값 중 적어도 하나를 포함할 수 있다. 예컨대, 프로세서(예컨대, 도 3의 프로세서(320))는, 어플리케이션(예컨대, 도 4의 카메라를 이용하는 어플리케이션(410))이 카메라(320)를 이용할 때, 제2명령이 나타내는 비디오 모드로 동작시킬 수 있다.According to various embodiments, the second command may include a value for executing a specific video mode of the camera 340 (eg, the camera 340 of FIG. 3 ). For example, the second command includes a value for executing an anti-shake mode (eg, optical image stabilization (OIS) or video digital image stabilization (VDIS)), a value for executing a bokeh mode, and a value for executing a segmentation mode , or a value for executing the beauty mode may include at least one of the values. For example, the processor (eg, the processor 320 of FIG. 3 ) may cause the application (eg, the application 410 using the camera of FIG. 4 ) to operate in the video mode indicated by the second command when the camera 320 is used. can

다양한 실시 예에 따라, 제2명령은, 카메라(340)의 비디오 세그멘테이션 모드를 제어하는 값을 포함할 수 있다. 예컨대, 제2명령은, 비디오 세그멘테이션 모드를 수행함에 있어, 촬영 이미지의 배경을 특정 컬러로 변경하는 기능을 수행하는 값, 촬영 이미지의 배경에 블러 효과를 적용하는 기능을 수행하는 값, 또는 촬영 이미지의 배경을 특정 이미지로 설정하는 기능을 수행하는 값을 포함할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)의 실행 화면의 배경을 제2명령이 나타내는 기능을 수행시킬 수 있다.According to various embodiments, the second command may include a value for controlling the video segmentation mode of the camera 340 . For example, the second command may include a value performing a function of changing the background of the captured image to a specific color when performing the video segmentation mode, a value performing a function of applying a blur effect to the background of the captured image, or a captured image It may include a value that performs a function of setting the background of a specific image. For example, the processor 320 may perform a function in which the second command indicates the background of the execution screen of the application 410 .

다양한 실시 예에 따라, 제2명령은, 카메라(340)의 컬러 RGB를 선택하는 값들을 포함할 수 있다. 예컨대, 제2명령은, RGB 색상들을 나타내는 값들(예컨대, 0부터 255) 중 어느 하나의 값을 포함할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)의 실행 화면의 배경을 제2명령에 포함된 값이 나타내는 색으로 변경할 수 있다. According to various embodiments, the second command may include values for selecting the color RGB of the camera 340 . For example, the second command may include any one of values (eg, 0 to 255) representing RGB colors. For example, the processor 320 may change the background of the execution screen of the application 410 to a color indicated by a value included in the second command.

다양한 실시 예에 따라, 제2명령은, 카메라(340)의 세그멘테이션 블러를 조절하는 값들을 포함할 수 있다. 예컨대, 제2명령은, 촬영 이미지의 배경에 적용된 블러 강도를 조절하는 값들(예컨대, 0부터 255) 중 어느 하나의 값을 포함할 수 있다. According to various embodiments, the second command may include values for adjusting the segmentation blur of the camera 340 . For example, the second command may include any one of values (eg, 0 to 255) for adjusting the blur intensity applied to the background of the photographed image.

다양한 실시 예에 따라, 제2명령은, 상기의 값들 중 적어도 하나의 값을 포함할 수 있다. 한편, 도 6에서는, 제2명령에 의해 제공되는 추가 기능에 대하여 설명하였으나, 이는 예시적인 것일 뿐, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 제2명령은, 카메라(340)에 관련된 다양한 추가 기능을 수행하기 위한 값을 포함할 수 있다.According to various embodiments, the second command may include at least one of the above values. Meanwhile, in FIG. 6 , an additional function provided by the second command has been described, but this is only an example, and the technical spirit of the present disclosure may not be limited thereto. For example, the second command may include a value for performing various additional functions related to the camera 340 .

도 7은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 형태를 설명하기 위한 도면이다. 7 is a diagram for explaining a form of a second command transmitted by an electronic device through an additional function module according to various embodiments of the present disclosure;

도 7을 참조하면, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))은, 안드로이드 OS에서 사용되는 카메라(예컨대, 도 3의 카메라(340))의 지정된 명령(예컨대, 캡쳐요청 명령)의 벤더키 형태로 제2명령을 생성할 수 있다. 제2명령은, 사용자 입력에 대응하는 제1명령에 대응하는 기능을 나타내는 값(value)을 포함할 수 있다. Referring to FIG. 7 , the additional function module (eg, the additional function module 450 of FIG. 4 ) is a specified command (eg, a capture request command) of a camera (eg, the camera 340 of FIG. 3 ) used in the Android OS. ) in the form of a vendor key can generate the second command. The second command may include a value indicating a function corresponding to the first command corresponding to the user input.

다양한 실시 예에 따라, 도 7의 (a)를 참조하면, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)에게 전송되는 지정된 명령(예컨대, 캡쳐요청 명령)(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 추가시킬 수 있다. 예를 들면, 추가 기능 모듈(450)은, 지정된 명령(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 추가한 제2명령을 카메라(340)로 전송할 수 있다. 이때, 추가 기능 모듈(450)은, 지정된 명령을 제2명령으로 대체하여 카메라(340)로 전송할 수 있다.According to various embodiments of the present disclosure, referring to FIG. 7A , the additional function module 450 provides a first command to a designated command (eg, a capture request command) 710 transmitted to the camera 340 for each frame. A value 720 indicating a function corresponding to may be added. For example, the additional function module 450 may transmit a second command obtained by adding a value 720 indicating a function corresponding to the first command to the specified command 710 to the camera 340 . In this case, the additional function module 450 may replace the designated command with the second command and transmit it to the camera 340 .

다양한 실시 예에 따라, 도 7의 (a)를 참조하면, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)에게 전송되는 지정된 명령(예컨대, 캡쳐요청 명령)(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 병합시킬 수 있다. 예를 들면, 추가 기능 모듈(450)은, 지정된 명령(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 병합한 제2명령(730)을 생성하고, 제2명령(730)을 카메라(340)로 전송할 수 있다. 이때, 추가 기능 모듈(450)은, 지정된 명령을 제2명령(730)으로 대체하여 카메라(340)로 전송할 수 있다.According to various embodiments of the present disclosure, referring to FIG. 7A , the additional function module 450 provides a first command to a designated command (eg, a capture request command) 710 transmitted to the camera 340 for each frame. A value 720 indicating a function corresponding to may be merged. For example, the additional function module 450 generates a second command 730 in which a value 720 indicating a function corresponding to the first command is merged with the designated command 710 , and the second command 730 . may be transmitted to the camera 340 . In this case, the additional function module 450 may replace the designated command with the second command 730 and transmit it to the camera 340 .

다양한 실시 예에 따라, 추가 기능 모듈(450)은, 지정된 명령과 별도로 제1명령에 대응하는 기능을 나타내는 값(720)을 카메라로 전송할 수도 있다. 예컨대, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)로 전송되는 지정된 명령의 전송 주기에 동기화하지 않고, 제1명령에 대응하는 기능을 나타내는 값(720)을 카메라(340)로 전송할 수도 있다.According to various embodiments, the additional function module 450 may transmit a value 720 indicating a function corresponding to the first command to the camera separately from the specified command. For example, the additional function module 450 transmits a value 720 indicating a function corresponding to the first command to the camera 340 without synchronization with the transmission period of a specified command transmitted to the camera 340 for each frame. may be

상술한 바와 같이, 추가 기능 모듈(450)은, 3가지 방법들 중 적어도 하나의 방법으로 제1명령에 대응하는 기능을 나타내는 값을 카메라(340)로 전송할 수 있다. As described above, the additional function module 450 may transmit a value indicating a function corresponding to the first command to the camera 340 by at least one of three methods.

도 8은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 복수의 어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.8 is a flowchart illustrating an operation in which an electronic device transmits commands of a plurality of applications to a camera through an additional function module according to various embodiments of the present disclosure;

도 8을 참조하면, 다양한 실시 예에 따라, 프로세서(예컨대, 도 3의 프로세서(320))는, 카메라(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))의 실행에 기반하여, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))을 통해 제1어플리케이션을 실행할 수 있다. 예컨대, 제1어플리케이션은 카메라(340) 및/또는 어플리케이션(410)에 관련된 제1추가 기능을 제공할 수 있는 어플리케이션일 수 있다.Referring to FIG. 8 , according to various embodiments, the processor (eg, the processor 320 of FIG. 3 ) may include an application (eg, the application 410 of FIG. 4 ) using a camera (eg, the camera 340 of FIG. 3 ). )), the first application may be executed through the additional function module (eg, the additional function module 450 of FIG. 4 ). For example, the first application may be an application capable of providing a first additional function related to the camera 340 and/or the application 410 .

다양한 실시 예에 따라, 동작 801에서, 프로세서(320)는, 제1어플리케이션이 실행 중인 상태에서, 추가 기능 모듈(450)을 통해 제2어플리케이션을 실행할 수 있다. 예컨대, 제2어플리케이션은 카메라(340) 및/또는 어플리케이션(410)에 관련된 제2추가 기능을 제공할 수 있는 어플리케이션일 수 있다. 예컨대, 제2추가 기능은, 제1추가 기능과 상이한 기능을 포함할 수 있다.According to various embodiments, in operation 801 , the processor 320 may execute the second application through the additional function module 450 while the first application is being executed. For example, the second application may be an application capable of providing a second additional function related to the camera 340 and/or the application 410 . For example, the second additional function may include a different function from the first additional function.

다양한 실시 예에 따라, 동작 803에서, 프로세서(320)는, 추가 기능 모듈을 통해, 제2어플리케이션에 대한 명령을 획득할 수 있다. 예컨대, 프로세서(320)는, 제2어플리케이션에 대한 사용자 입력에 대응하는 제3명령을 획득할 수 있다.According to various embodiments, in operation 803 , the processor 320 may acquire a command for the second application through the additional function module. For example, the processor 320 may obtain a third command corresponding to a user input for the second application.

다양한 실시 예에 따라, 동작 805에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해, 제2어플리케이션에 대한 명령을 카메라(340)로 전송할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈(450)을 통해, 제3명령에 카메라(340)의 지정된 명령을 조합하여 생성된 제4명령을 획득할 수 있다. 또한, 프로세서(320)는, 제3명령에 대응하는 제2추가 기능이 수행되도록 제4명령을 카메라(340)로 전송할 수 있다. According to various embodiments, in operation 805 , the processor 320 may transmit a command for the second application to the camera 340 through the additional function module 450 . For example, the processor 320 may obtain the fourth command generated by combining the third command with the specified command of the camera 340 through the additional function module 450 . Also, the processor 320 may transmit a fourth command to the camera 340 so that a second additional function corresponding to the third command is performed.

다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션이 제공하는 제1추가 기능 및/또는 제2어플리케이션이 제공하는 제2추가 기능을 수행할 수 있다. According to various embodiments of the present disclosure, in a state in which an application using the camera 340 is running, the processor 320 may perform a first additional function provided by the first application and/or a second application provided by the second application through the additional function module. 2 Additional functions can be performed.

비록, 도 8에서는, 프로세서(320)가, 어플리케이션(410)이 카메라(340)를 이용하는 상태에서, 추가 기능 모듈(450)을 통해 2개의 어플리케이션들이 제공하는 카메라(340)와 관련된 추가 기능들을 제공하는 것만 설명하고 있으나, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)이 카메라(340)를 이용하는 상태에서, 추가 기능 모듈을 통해 복수의 어플리케이션들이 제공하는 복수의 추가 기능들을 제공할 수도 있다.Although, in FIG. 8 , the processor 320 provides additional functions related to the camera 340 provided by the two applications through the additional function module 450 while the application 410 uses the camera 340 . Although only described, the technical spirit of the present disclosure may not be limited thereto. For example, the processor 320 may provide a plurality of additional functions provided by the plurality of applications through the additional function module while the application 410 uses the camera 340 .

도 9는, 다양한 실시 예에 따른 카메라를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.9 is a flowchart illustrating an operation of transmitting commands of first applications to a camera through an additional function module while an application using a camera is running, according to various embodiments of the present disclosure;

도 9를 참조하면, 다양한 실시 예에 따라, 동작 901에서, 프로세서(예컨대, 도 3의 프로세서(320))는, 카메라(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))을 실행하고, 어플리케이션(410)의 실행 화면을 디스플레이(예컨대, 도 3의 디스플레이(360))에 표시할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지를 포함하는 실행 화면을 디스플레이(360)에 표시할 수 있다.Referring to FIG. 9 , according to various embodiments, in operation 901 , the processor (eg, the processor 320 of FIG. 3 ) performs an application (eg, FIG. 4 ) using a camera (eg, the camera 340 of FIG. 3 ). of the application 410 ), and an execution screen of the application 410 may be displayed on a display (eg, the display 360 of FIG. 3 ). For example, if the application 410 is a video call application, the processor 320 may display an execution screen including an image captured by the camera 340 on the display 360 .

다양한 실시 예에 따라, 동작 903에서, 프로세서(320)는, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하는지 여부를 확인할 수 있다. According to various embodiments of the present disclosure, in operation 903 , the processor 320 may determine whether the application 410 satisfies a specified condition for executing the first application capable of providing an additional function.

다양한 실시 예에 따라, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하지 않으면(동작 903의 아니오), 동작 909에서, 프로세서(320)는, 제1어플리케이션을 실행하지 않고, 디스플레이(예컨대, 도 3의 디스플레이(360))에 제1어플리케이션에 대한 객체를 표시하지 않을 수 있다.According to various embodiments, if the application 410 does not satisfy the specified condition for executing the first application that can provide the additional function (NO in operation 903 ), in operation 909 , the processor 320 performs the first application is not executed, and the object for the first application may not be displayed on the display (eg, the display 360 of FIG. 3 ).

다양한 실시 예에 따라, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하면(동작 903의 예), 동작 905에서, 프로세서(320)는, 어플리케이션(410)의 실행 화면 상에 제1어플리케이션에 대한 객체를 표시할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지를 포함하는 실행 화면 상에 제1어플리케이션에 대한 객체를 표시할 수 있다. 예컨대, 객체는, 제1어플리케이션이 제공하는 추가 기능들을 나타내는 컨텐트를 포함할 수 있다. 프로세서(320)는, 객체에 대한 사용자 입력이 수신되는지 여부를 확인할 수 있다. According to various embodiments, if the application 410 satisfies a specified condition for executing the first application capable of providing an additional function (eg in operation 903 ), in operation 905 , the processor 320 performs the application 410 . An object for the first application may be displayed on the execution screen of the . For example, if the application 410 is a video call application, the processor 320 may display an object for the first application on an execution screen including an image captured by the camera 340 . For example, the object may include content indicating additional functions provided by the first application. The processor 320 may check whether a user input for an object is received.

다양한 실시 예에 따라, 동작 907에서, 프로세서(320)는, 객체에 대한 사용자 입력에 확인되면, 객체에 대한 사용자 입력에 기초하여 제1어플리케이션이 제공하는 복수의 추가 기능들 중 어느 하나의 기능을 수행할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지의 색상을 조절하거나 촬영된 이미지에 효과(예컨대, 세그멘테이션, 블러, 또는 보케(bokeh))를 적용시키는 기능을 수행할 수 있다. 또한, 프로세서(320)는, 카메라(340)의 줌 기능을 조절하거나 손떨림방지 기능을 수행할 수도 있다.According to various embodiments, in operation 907, if the user input for the object is confirmed, the processor 320 performs any one function among a plurality of additional functions provided by the first application based on the user input for the object. can be done For example, if the application 410 is a video call application, the processor 320 adjusts the color of the image captured through the camera 340 or effects on the captured image (eg, segmentation, blur, or bokeh). can perform the function of applying . In addition, the processor 320 may adjust the zoom function of the camera 340 or perform an anti-shake function.

도 10a 내지 도 10f는, 다양한 실시 예들에 따른 전자 장치가 제공하는 사용자 인터페이스를 설명하기 위한 도면들이다.10A to 10F are diagrams for explaining a user interface provided by an electronic device according to various embodiments of the present disclosure;

도 10a를 참조하면, 전자 장치(1001)(예컨대, 도 3의 전자 장치(301))는, 카메라(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))을 실행하고, 어플리케이션(410)의 실행 화면(1010)을 디스플레이(예컨대, 도 3의 디스플레이(360))에 표시할 수 있다. 예컨대, 전자 장치(1001)는, 카메라(340)를 통해 촬영된 이미지를 포함하는 실행 화면(1010)을 디스플레이(360)에 표시할 수 있다. 프로세서(320)는, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))을 통해, 카메라(340) 및/또는 어플리케이션(410)에 대한 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하고, 어플리케이션(410)의 실행 화면(1010) 상에 제1어플리케이션에 대한 제1객체(1020)를 표시할 수 있다. 예컨대, 제1객체는, 플로팅 버튼을 포함할 수 있다. 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력(예컨대, 제1객체(1020)에 대한 터치 입력)(1025)을 확인할 수 있다.Referring to FIG. 10A , the electronic device 1001 (eg, the electronic device 301 of FIG. 3 ) uses an application (eg, the application 410 of FIG. 4 ) using a camera (eg, the camera 340 of FIG. 3 ). ), and the execution screen 1010 of the application 410 may be displayed on a display (eg, the display 360 of FIG. 3 ). For example, the electronic device 1001 may display an execution screen 1010 including an image captured by the camera 340 on the display 360 . The processor 320 executes a first application capable of providing an additional function for the camera 340 and/or the application 410 through the additional function module (eg, the additional function module 450 of FIG. 4 ). and the first object 1020 for the first application may be displayed on the execution screen 1010 of the application 410 . For example, the first object may include a floating button. The electronic device 1001 may check a user input for the first object 1020 (eg, a touch input for the first object 1020 ) 1025 .

도 10b를 참조하면, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력(예컨대, 제1객체(1020)에 대한 터치 입력)(1025)에 응답하여, 제1어플리케이션이 제공하는 복수의 추가 기능들(1034, 1035, 1036, 및 1037)을 포함하는 제2객체(1030)를 실행 화면(1010) 상에 표시할 수 있다. 예컨대, 전자 장치(1001)는, 추가 기능 모듈(450)을 통해 사용자 입력(1025)에 대한 명령을 획득하고, 획득된 명령을 카메라(340)로 전송하여 제2객체(1030)를 표시할 수 있다. 전자 장치(1001)는, 복수의 추가 기능들(1034, 1035, 1036, 및 1037) 중 어느 하나에 대한 사용자 입력을 확인할 수 있다. 예컨대, 전자 장치(1001)는, 복수의 추가 기능들(1034, 1035, 1036, 및 1037) 중 어느 하나에 대한 사용자 입력에 기초하여 어느 하나의 추가 기능을 수행할 수 있다. 예컨대, 전자 장치(1001)는, 추가 기능 모듈(450)을 통해 사용자 입력에 대한 어느 하나의 추가 기능을 수행하기 위한 명령을 획득하고, 추가 기능이 수행되도록 획득된 명령을 카메라(340)로 전송할 수 있다.Referring to FIG. 10B , in response to a user input (eg, a touch input to the first object 1020 ) 1025 for the first object 1020 , the electronic device 1001 provides The second object 1030 including a plurality of additional functions 1034 , 1035 , 1036 , and 1037 may be displayed on the execution screen 1010 . For example, the electronic device 1001 may acquire a command for the user input 1025 through the additional function module 450 , and transmit the acquired command to the camera 340 to display the second object 1030 . have. The electronic device 1001 may check a user input for any one of the plurality of additional functions 1034 , 1035 , 1036 , and 1037 . For example, the electronic device 1001 may perform any one additional function based on a user input for any one of the plurality of additional functions 1034 , 1035 , 1036 , and 1037 . For example, the electronic device 1001 acquires a command for performing any one additional function in response to a user input through the additional function module 450 , and transmits the acquired command to perform the additional function to the camera 340 . can

도 10c를 참조하면, 전자 장치(1001)는, 제1추가 기능(1034)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)에 블러 효과를 적용한 제1화면(1040)을 표시할 수 있다. 예컨대, 블러 효과의 강도는 사용자에 의해 조절되거나, 전자 장치(1001)에 의해 자동으로 조절될 수 있다.Referring to FIG. 10C , in response to a user input for the first additional function 1034 , the electronic device 1001 displays a background (eg, a portion excluding a person in the image) of an image captured by the camera 340 . The first screen 1040 to which the blur effect is applied may be displayed. For example, the intensity of the blur effect may be adjusted by a user or may be automatically adjusted by the electronic device 1001 .

도 10d를 참조하면, 전자 장치(1001)는, 제2추가 기능(1035)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)을 특정색(예컨대, 배경색)으로 변경한 제2화면(1050)을 표시할 수 있다. 예컨대, 특정색은 사용자에 의해 선택되거나, 전자 장치(1001)에 의해 자동으로 선택될 수 있다.Referring to FIG. 10D , in response to a user input for the second additional function 1035 , the electronic device 1001 selects a background (eg, a portion excluding a person from the image) of an image captured by the camera 340 . The second screen 1050 changed to a specific color (eg, a background color) may be displayed. For example, the specific color may be selected by a user or may be automatically selected by the electronic device 1001 .

도 10e를 참조하면, 전자 장치(1001)는, 제3추가 기능(1036)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)을 특정 이미지(예컨대, 배경 이미지)로 변경한 제3화면(1060)을 표시할 수 있다. 예컨대, 특정 이미지는 사용자에 의해 선택되거나, 전자 장치(1001)에 의해 자동으로 선택될 수 있다.Referring to FIG. 10E , in response to a user input for the third additional function 1036 , the electronic device 1001 selects a background (eg, a portion excluding a person from the image) of an image captured by the camera 340 . The third screen 1060 changed to a specific image (eg, a background image) may be displayed. For example, a specific image may be selected by a user or may be automatically selected by the electronic device 1001 .

도 10f를 참조하면, 전자 장치(1001)는, 제4추가 기능(1037)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지에 제공되는 추가 기능에 대한 설정 화면(1070)을 표시할 수 있다. 예컨대, 설정 화면(1070)은, 객체(1020 및/또는 1030)를 통해 제공할 수 있는 추가 기능들에 대한 설명을 포함할 수 있다. 예컨대, 전자 장치(1001)는, 설정 화면(1070)에 대한 사용자 입력에 의해 추가 기능을 사용여부를 결정할 수 있다. 예컨대, 전자 장치(1001)는, 설정 객체(1075)에 대한 사용자 입력이 확인되면, 추가 기능을 사용하는 상태로 설정하거나 사용하지 않는 상태로 설정할 수 있다. 예컨대, 설정 화면(1070)은, 추가 기능을 제공할 수 있는 어플리케이션들(예: APP1, APP2)을 나타내는 아이콘들을 포함할 수 있다. 다양한 실시 예에 따라, 전자 장치(1001)는, 사용자 입력 또는 프로세서(예컨대, 도 3의 프로세서(320))에 의해 자동으로 추가 기능을 제공할 수 있는 어플리케이션을 추가(또는 삭제)할 수도 있다. 예를 들면, 전자 장치(1001)는, 설정 화면(1070)에 포함된 지정된 이미지(또는 아이콘)에 대한 사용자 입력에 기반하여, 어플리케이션을 추가(또는 삭제)할 수도 있다.Referring to FIG. 10F , the electronic device 1001 displays a setting screen 1070 for an additional function provided to an image captured by the camera 340 in response to a user input for the fourth additional function 1037 . can be displayed For example, the setting screen 1070 may include a description of additional functions that may be provided through the objects 1020 and/or 1030 . For example, the electronic device 1001 may determine whether to use the additional function according to a user input to the setting screen 1070 . For example, when a user input for the setting object 1075 is confirmed, the electronic device 1001 may set the additional function to a state in which it is used or to a state in which it is not used. For example, the setting screen 1070 may include icons indicating applications that may provide additional functions (eg, APP1 or APP2). According to various embodiments, the electronic device 1001 may add (or delete) an application capable of automatically providing an additional function by a user input or a processor (eg, the processor 320 of FIG. 3 ). For example, the electronic device 1001 may add (or delete) an application based on a user input for a specified image (or icon) included in the setting screen 1070 .

다양한 실시 예에 따라, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력에 응답하여 도 10c 내지 도 10e에서 설명된 추가 기능들 중 미리 지정된 추가 기능을 수행할 수도 있다. 예컨대, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력이 확인되면, 미리 지정된 추가 기능(예컨대, 블러 효과 기능)을 수행할 수 있다. 예를 들면, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력이 확인되면, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)에 블러 효과를 적용한 제1화면(1040)을 표시할 수도 있다.According to various embodiments, the electronic device 1001 may perform a predetermined additional function among the additional functions described with reference to FIGS. 10C to 10E in response to a user input for the first object 1020 . For example, when a user input for the first object 1020 is confirmed, the electronic device 1001 may perform a predetermined additional function (eg, a blur effect function). For example, when a user input for the first object 1020 is confirmed, the electronic device 1001 applies a blur effect to a background (eg, a portion excluding a person in the image) of an image captured by the camera 340 . The applied first screen 1040 may also be displayed.

다양한 실시 예에 따른 전자 장치(예컨대, 도 3의 전자 장치(301))는, 카메라(340), 디스플레이(360), 및 프로세서(320)를 포함하고, 상기 프로세서는, 상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.The electronic device (eg, the electronic device 301 of FIG. 3 ) according to various embodiments includes a camera 340 , a display 360 , and a processor 320 , and the processor is configured to execute an application using the camera. In the running state, the first command of the first application related to the camera is acquired through the additional function module for managing the additional function related to the camera, and the first command and the specified function of the camera are obtained through the additional function module It may be configured to generate a second command based on a command and transmit the second command to the camera to perform a function corresponding to the first command through the additional function module.

다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하도록 설정될 수 있다.According to various embodiments, the processor may be configured to execute the additional function module in a framework layer of the camera.

다양한 실시 예에 따라, 상기 프로세서는, 상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor may be configured to generate the second command by combining the first command and a specified command of the camera.

다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) (예: 벤더키(vendorkey))형태로 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.According to various embodiments, the processor is configured to transmit the second command to the camera in the form of a key-value (eg, vendor key) of a capture request for the camera can be

다양한 실시 예에 따라, 상기 프로세서는, 상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하도록 설정될 수 있다.According to various embodiments of the present disclosure, when the second application related to the camera is executed while the first application is being executed, the processor obtains a third command of the second application through the additional function module, and Through the additional function module, generate a fourth command based on the third command and the specified command of the camera, and through the additional function module, execute the fourth command to perform a function corresponding to the third command It may be set to transmit to the camera.

다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인하고, 상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하도록 설정될 수 있다.According to various embodiments, the processor, in response to the execution of the application related to the camera, checks whether the application satisfies a specified condition for executing the first application, and when the specified condition is satisfied, the It may be set to run the first application.

다양한 실시 예에 따라, 상기 프로세서는, 상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하고, 상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하도록 설정될 수 있다.According to various embodiments, the processor displays the execution screen of the application on the display and when the first application for providing the additional function related to the camera is executed, the first application is displayed on the execution screen It can be set to display related objects.

다양한 실시 예에 따라, 상기 프로세서는, 상기 객체에 대한 상기 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.According to various embodiments, when the user input for the object is confirmed, the processor acquires the first command related to a function corresponding to the user input through the additional function module, and through the additional function module , to transmit the second command to the camera.

다양한 실시 예에 따라, 상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다.According to various embodiments, the additional function may include a function not supported by the application.

다양한 실시 예에 따라, 상기 추가 기능은, 상기 실행 화면의 색상, 배경 효과, 및 배경 이미지 중 적어도 하나를 변경하는 기능을 포함할 수 있다.According to various embodiments, the additional function may include a function of changing at least one of a color of the execution screen, a background effect, and a background image.

다양한 실시 예에 따른 전자 장치의 동작 방법은, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.In a method of operating an electronic device according to various embodiments of the present disclosure, in a state in which an application using a camera included in the electronic device is being executed, the first application related to the camera is executed through an additional function module for managing the additional function related to the camera. obtaining a first command, generating a second command based on the first command and a specified command of the camera through the additional function module, and responding to the first command through the additional function module and transmitting the second command to the camera to perform the function.

다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하는 동작을 더 포함할 수 있다.According to various embodiments, the method of operating the electronic device may further include executing the additional function module in a framework layer of the camera.

다양한 실시 예에 따라, 상기 제2명령을 생성하는 동작은, 상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하는 동작을 포함할 수 있다.According to various embodiments, the generating of the second command may include generating the second command by combining the first command and a specified command of the camera.

다양한 실시 예에 따라, 상기 제2명령을 전송하는 동작은, 상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.According to various embodiments, the transmitting of the second command may include transmitting the second command to the camera in the form of a key-value of a capture request to the camera. can

다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, in a method of operating an electronic device, when a second application related to the camera is executed while the first application is running, a third command of the second application is obtained through the additional function module performing, through the additional function module, generating a fourth command based on the third command and the specified command of the camera, and performing a function corresponding to the third command through the additional function module The method may further include transmitting the fourth command to the camera.

다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인하는 동작 및 상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, in a method of operating an electronic device, in response to the execution of the application related to the camera, determining whether the application satisfies a specified condition for executing the first application, and the specified condition When this is satisfied, the operation of executing the first application may be further included.

다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하는 동작 및 상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, in the method of operating an electronic device, when the first application for providing the additional function related to the displaying of the execution screen of the application on the display and the camera is executed, on the execution screen The method may further include displaying an object related to the first application.

다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 객체에 대한 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하는 동작 및 상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, the method of operating an electronic device includes an operation of obtaining the first command related to a function corresponding to the user input through the additional function module, when a user input for the object is confirmed, and the additional function The method may further include transmitting the second command to the camera through a module.

다양한 실시 예에 따라, 상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다.According to various embodiments, the additional function may include a function not supported by the application.

다양한 실시 예에 따른 비일시적 저장 매체에 있어서, 상기 프로그램은, 프로세서에 의한 실행 시, 상기 프로세서가, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 수행하도록 실행 가능한 인스트럭션을 저장할 수 있다.In a non-transitory storage medium according to various embodiments of the present disclosure, when the program is executed by a processor, the processor manages an additional function related to the camera while an application using a camera included in the electronic device is running obtaining a first command of the first application related to the camera through an additional function module, generating a second command based on the first command and a specified command of the camera through the additional function module; and an instruction executable to transmit the second command to the camera to perform a function corresponding to the first command through the additional function module.

상기 전자 장치의 전술한 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성 요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시 예에서, 전자 장치는 전술한 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 다양한 실시 예에 따른 전자 장치의 구성 요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성 요소들의 기능을 동일하게 수행할 수 있다.Each of the above-described components of the electronic device may be composed of one or more components, and the name of the corresponding component may vary depending on the type of the electronic device. In various embodiments, the electronic device may be configured to include at least one of the above-described components, and some components may be omitted or may further include additional other components. In addition, since some of the components of the electronic device according to various embodiments are combined to form a single entity, functions of the corresponding components before being combined may be performed identically.

그리고 본 문서에 개시된 실시 예는 개시된, 기술 내용의 설명 및 이해를 위해 제시된 것이며, 본 개시의 범위를 한정하는 것은 아니다. 따라서, 본 개시의 범위는, 본 개시의 기술적 사상에 근거한 모든 변경 또는 다양한 다른 실시 예를 포함하는 것으로 해석되어야 한다.In addition, the embodiments disclosed in this document are provided for description and understanding of the disclosed, technical content, and do not limit the scope of the present disclosure. Accordingly, the scope of the present disclosure should be construed to include all modifications or various other embodiments based on the technical spirit of the present disclosure.

Claims (20)

전자 장치에 있어서,
카메라;
디스플레이; 및
프로세서를 포함하고, 상기 프로세서는,
상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고,
상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고,
상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
In an electronic device,
camera;
display; and
A processor comprising:
Obtaining a first command of a first application related to the camera through an additional function module for managing an additional function related to the camera in a running state of an application using the camera,
through the additional function module, generate a second command based on the first command and a specified command of the camera;
an electronic device configured to transmit the second command to the camera through the additional function module to perform a function corresponding to the first command.
제1항에 있어서, 상기 프로세서는,
상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하도록 설정된 전자 장치.
The method of claim 1, wherein the processor comprises:
An electronic device configured to execute the additional function module in a framework layer of the camera.
제1항에 있어서, 상기 프로세서는,
상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하도록 설정된 전자 장치.
The method of claim 1, wherein the processor comprises:
The electronic device is configured to generate the second command by combining the first command and a specified command of the camera.
제3항에 있어서, 상기 프로세서는,
상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
The method of claim 3, wherein the processor comprises:
An electronic device configured to transmit the second command to the camera in the form of a key-value of a capture request for the camera.
제1항에 있어서, 상기 프로세서는,
상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하고,
상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하고,
상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하도록 설정된 전자 장치
The method of claim 1, wherein the processor comprises:
When a second application related to the camera is executed while the first application is running, a third command of the second application is obtained through the additional function module,
through the additional function module, generate a fourth command based on the third command and the designated command of the camera;
an electronic device configured to transmit the fourth command to the camera to perform a function corresponding to the third command through the additional function module
제1항에 있어서, 상기 프로세서는,
상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인하고,
상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하도록 설정된 전자 장치.
The method of claim 1, wherein the processor comprises:
In response to the execution of the application related to the camera, check whether the application satisfies a specified condition for executing the first application,
An electronic device configured to execute the first application when the specified condition is satisfied.
제1항에 있어서, 상기 프로세서는,
상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하고,
상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하도록 설정된 전자 장치.
The method of claim 1, wherein the processor comprises:
Display the execution screen of the application on the display,
An electronic device configured to display an object related to the first application on the execution screen when the first application for providing the additional function related to the camera is executed.
제7항에 있어서, 상기 프로세서는,
상기 객체에 대한 상기 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하고,
상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
The method of claim 7, wherein the processor,
When the user input for the object is confirmed, the first command related to the function corresponding to the user input is obtained through the additional function module,
an electronic device configured to transmit the second command to the camera through the additional function module.
제7항에 있어서,
상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함하는 전자 장치.
8. The method of claim 7,
The additional function may include a function not supported by the application.
제7항에 있어서,
상기 추가 기능은, 상기 실행 화면의 색상, 배경 효과, 및 배경 이미지 중 적어도 하나를 변경하는 기능을 포함하는 전자 장치.
8. The method of claim 7,
The additional function includes a function of changing at least one of a color of the execution screen, a background effect, and a background image.
전자 장치의 동작 방법에 있어서,
상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작;
상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작; 및
상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함하는 전자 장치의 동작 방법.
A method of operating an electronic device, comprising:
acquiring a first command of a first application related to the camera through an additional function module for managing an additional function related to the camera while an application using a camera included in the electronic device is running;
generating, through the additional function module, a second command based on the first command and a command specified by the camera; and
and transmitting the second command to the camera to perform a function corresponding to the first command through the additional function module.
제11항에 있어서,
상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하는 동작을 더 포함하는 전자 장치의 동작 방법.
12. The method of claim 11,
The method of operating an electronic device further comprising executing the additional function module in the framework layer of the camera.
제11항에 있어서, 상기 제2명령을 생성하는 동작은,
상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하는 동작을 포함하는 전자 장치의 동작 방법.
The method of claim 11, wherein the generating of the second command comprises:
and generating the second command by combining the first command and a specified command of the camera.
제13항에 있어서, 상기 제2명령을 전송하는 동작은,
상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하는 동작을 포함하는 전자 장치의 동작 방법.
The method of claim 13, wherein the transmitting of the second command comprises:
and transmitting the second command to the camera in the form of a key-value of a capture request for the camera.
제11항에 있어서,
상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하는 동작;
상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하는 동작; 및
상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하는 동작을 더 포함하는 전자 장치의 동작 방법.
12. The method of claim 11,
acquiring a third command of the second application through the additional function module when the second application related to the camera is executed while the first application is running;
generating, through the additional function module, a fourth command based on the third command and the specified command of the camera; and
and transmitting the fourth command to the camera through the additional function module to perform a function corresponding to the third command.
제11항에 있어서,
상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인하는 동작; 및
상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하는 동작을 더 포함하는 전자 장치의 동작 방법.
12. The method of claim 11,
checking whether the application satisfies a specified condition for executing the first application in response to the execution of the application related to the camera; and
and executing the first application when the specified condition is satisfied.
제15항에 있어서,
상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하는 동작; 및
상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하는 동작을 더 포함하는 전자 장치의 동작 방법.
16. The method of claim 15,
displaying an execution screen of the application on the display; and
and displaying an object related to the first application on the execution screen when the first application for providing the additional function related to the camera is executed.
제17항에 있어서,
상기 객체에 대한 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하는 동작; 및
상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하는 동작을 더 포함하는 전자 장치의 동작 방법.
18. The method of claim 17,
acquiring the first command related to a function corresponding to the user input through the additional function module when the user input for the object is confirmed; and
and transmitting the second command to the camera through the additional function module.
제17항에 있어서,
상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함하는 전자 장치의 동작 방법.
18. The method of claim 17,
The additional function includes a function not supported by the application.
비일시적 저장 매체에 있어서, 상기 프로그램은, 프로세서에 의한 실행 시, 상기 프로세서가,
상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작;
상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작; 및
상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 수행하도록 실행 가능한 인스트럭션을 포함하는 저장 매체.
In the non-transitory storage medium, the program, when executed by a processor, the processor
acquiring a first command of a first application related to the camera through an additional function module for managing an additional function related to the camera while an application using a camera included in the electronic device is running;
generating, through the additional function module, a second command based on the first command and a command specified by the camera; and
and an instruction executable to transmit the second command to the camera through the additional function module to perform a function corresponding to the first command.
KR1020210040885A 2021-01-12 2021-03-30 Electronic device including a camera and method of operating the same KR20220102090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2021/019189 WO2022154281A1 (en) 2021-01-12 2021-12-16 Electronic device comprising camera and operation method therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020210003834 2021-01-12
KR20210003834 2021-01-12

Publications (1)

Publication Number Publication Date
KR20220102090A true KR20220102090A (en) 2022-07-19

Family

ID=82607004

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210040885A KR20220102090A (en) 2021-01-12 2021-03-30 Electronic device including a camera and method of operating the same

Country Status (1)

Country Link
KR (1) KR20220102090A (en)

Similar Documents

Publication Publication Date Title
CN107193524B (en) Multi-display device and method of operating the same
KR20220016544A (en) Electronic device for supporting audio sharing
KR20220101856A (en) Electronic device and method for providing user interface
US20230217169A1 (en) Electronic device and multichannel audio output method using same
US20230154500A1 (en) Electronic device, and method of synchronizing video data and audio data by using same
KR20220017124A (en) Method for recoverying backup data and electronic device therefor
WO2022031055A1 (en) Electronic device and method for controlling vibration output thereof
KR20220102090A (en) Electronic device including a camera and method of operating the same
KR20230118391A (en) Electronic apparatus and operating method thereof
KR20220101789A (en) Electronic device and operation method thereof
KR20220064655A (en) Electronic device and method for executing application thereof
KR20220128868A (en) Electronic device for providing alternative cotents and operating method thereof
KR20220014519A (en) Electronic device for synchronizing an output time point of content output by external electronic devices and method for the same
WO2022154281A1 (en) Electronic device comprising camera and operation method therefor
KR20220040038A (en) The method for processing input data and the electronic device supporting the same
KR20220138622A (en) Electronic device and operation method of electronic device performing capture function
EP4325874A1 (en) Electronic device and operation method of electronic device
KR20220135383A (en) Electronic device and method of operation thereof
KR20240045929A (en) Method of update and electronic device therefor
KR20220131023A (en) Electronic device including multi processor and operating method thereof
KR20230131743A (en) Method for displaying screens of an electronic device
KR20230023486A (en) Electronic device providing a combination of a plurality of vivration patterns and method of operation therof
KR20220005171A (en) Electronic device supporting contents sharing
KR20230023350A (en) Method of processing data and electronic device performing the method
KR20230023176A (en) Electronic device for interworking with wearable device and operating method thereof