WO2022154281A1 - 카메라를 포함하는 전자 장치 및 이의 동작 방법 - Google Patents

카메라를 포함하는 전자 장치 및 이의 동작 방법 Download PDF

Info

Publication number
WO2022154281A1
WO2022154281A1 PCT/KR2021/019189 KR2021019189W WO2022154281A1 WO 2022154281 A1 WO2022154281 A1 WO 2022154281A1 KR 2021019189 W KR2021019189 W KR 2021019189W WO 2022154281 A1 WO2022154281 A1 WO 2022154281A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
command
application
additional function
electronic device
Prior art date
Application number
PCT/KR2021/019189
Other languages
English (en)
French (fr)
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
Priority claimed from KR1020210040885A external-priority patent/KR20220102090A/ko
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2022154281A1 publication Critical patent/WO2022154281A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • Various embodiments relate to an electronic device including a camera and an operating method thereof.
  • the electronic device may provide various functions using a specified operating system (eg, Android OS).
  • a specified operating system eg, Android OS
  • the electronic device may provide various functions using a camera.
  • Android operating system AndroidTM OS
  • device vendors are being added and improved day by day.
  • a 3rd party application may not be able to use the additional function provided by the platform provider without a separate additional implementation.
  • the Android operating system does not have a command collection structure for simultaneously controlling the camera by a plurality of applications, 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.
  • updates may be restricted because the camera pipeline/framework is a basic system component of the electronic device.
  • Various embodiments add a module that can control the camera separately in addition to the basic module that drives the camera on the AndroidTM 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.
  • An electronic device 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.
  • 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.
  • the processor 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 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.
  • various effects directly or indirectly identified through this document may be provided.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure.
  • FIG. 2 is a block diagram illustrating a program according to various embodiments.
  • FIG. 3 is a schematic block diagram of an electronic device according to various embodiments of the present disclosure.
  • FIG. 4 is a block diagram illustrating an additional function module executed in an electronic device according to various embodiments of the present disclosure.
  • FIG. 5 is a flowchart for explaining a method of operating an electronic device according to various embodiments of the present disclosure.
  • FIG. 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
  • FIG. 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
  • FIG. 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
  • FIG. 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, 10B, 10C, 10D, 10E, and 10F are diagrams for explaining a user interface provided by an electronic device according to various embodiments of the present disclosure.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments.
  • 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 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199
  • the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • 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 .
  • at least one of these components eg, the connection terminal 178
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • 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 .
  • software eg, a program 140
  • 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 .
  • 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 .
  • 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) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123
  • 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.
  • 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.
  • the auxiliary processor 123 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.
  • 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 .
  • 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 .
  • 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).
  • 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.
  • 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.
  • 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.
  • 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
  • the electronic device 102 may output a sound.
  • 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.
  • 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.
  • 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 ).
  • 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.
  • 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 ).
  • 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).
  • 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.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • 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.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • 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.
  • 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 wireless communication module 192 eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • 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).
  • a first network 198 eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • 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).
  • a telecommunication network
  • 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 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • 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)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • 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 ).
  • 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.
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • 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.
  • 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.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • 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.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • 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 .
  • 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 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 .
  • 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 .
  • an application manager 201 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
  • 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 a 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 use the corresponding information to determine or provide related information necessary for the operation of the electronic device 101 . . According to an embodiment, the power manager 209 may interwork with a basic input/output system (BIOS) (not shown) of the electronic device 101 .
  • BIOS basic input/output system
  • 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.
  • 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.
  • the middleware 244 may dynamically delete some existing components or add new components.
  • 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 .
  • 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).
  • 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.
  • 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.
  • the notification relay application may receive notification information from the external electronic device and provide it to the user of the electronic device 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.
  • FIG. 3 is a schematic block diagram of an electronic device according to various embodiments of the present disclosure.
  • the electronic device 301 may include a processor 320 , a memory 330 , a camera 340 , and a display 360 .
  • 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 .
  • the processor 320 may control the overall operation of the electronic device 301 .
  • the processor 320 may be implemented in the same or similar manner to the processor 120 of FIG. 1 .
  • the processor 320 may execute an application using the camera 340 (eg, the camera module 180 of FIG. 1 ).
  • the application may be stored in the memory 330 (eg, the memory 130 of FIG. 1 ).
  • an application using the camera 340 may include a third-party application.
  • 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 ).
  • 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 ).
  • 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 .
  • 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 It can be transmitted to (340).
  • 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.
  • the additional function may include a function supported by the platform itself of the electronic device 301 .
  • the additional function may include a function not supported by the corresponding application.
  • 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 ).
  • 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.
  • 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.
  • 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
  • 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.
  • FIG. 4 is a block diagram illustrating an additional function module executed in an electronic device according to various embodiments of the present disclosure.
  • the processor 320 may execute an application 410 using the camera 340 (eg, the camera 340 of FIG. 3 ).
  • 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 .
  • the Java layer may relate to the application 146 of FIG. 2
  • the native layer may relate to the middleware 144 of FIG. 2
  • the Linux kernel layer may relate to the operating system 142 of FIG. 2 . .
  • 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.
  • the processor 320 may execute the application 410 and transmit information on the application 410 to the camera service 430 .
  • the application 410 may be a third-party application.
  • 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 ).
  • FIG. 4 illustrates two additional function clients 420 and 427 , the technical spirit of the present disclosure may not be limited thereto.
  • the electronic device 301 may include a plurality of additional function clients.
  • 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 .
  • 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.
  • 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 .
  • 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.
  • the additional function service 425 may check whether the camera 340 can be controlled through the 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.
  • the processor 320 may execute the camera service 430 and the camera hardware abstraction layer (HAL) 460 in the native layer.
  • HAL camera hardware abstraction layer
  • 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 .
  • 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 .
  • 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 .
  • the additional function module 450 may receive information and/or commands about the camera 340 being driven.
  • the additional function module 450 may obtain a first command corresponding to a user input from the additional function service 425 .
  • 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 .
  • 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 .
  • the additional function module 450 may transmit the second command to the camera HAL 460 .
  • 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 .
  • 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 .
  • 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 .
  • 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 .
  • the camera driver 470 may control the camera 340 based on a command received from the camera HAL 460 .
  • the application 410 may receive an additional function provided by the platform of the electronic device 320 through the additional function module 450 .
  • the operations of the electronic device 301 described below may be performed by the processor 320 and/or the additional function module 450 .
  • FIG. 5 is a flowchart for explaining a method of operating an electronic device according to various embodiments of the present disclosure.
  • the processor 320 may execute an application using the camera 340 (eg, the application 410 of FIG. 4 ).
  • 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.
  • 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.
  • the processor 320 performs the first additional function client (eg, the first additional function client 420 in FIG. 4 ). ) to run the first application.
  • the processor 320 may execute an additional function module (eg, the additional function module 450 of FIG. 4 ).
  • the processor 320 may check the user input for the first application through the additional function module 450 .
  • the processor 320 may obtain a first command for performing an additional function corresponding to a user input through the additional function module 450 .
  • 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 .
  • 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 .
  • 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 .
  • the second command may have a vendor key form of a capture request command of the camera 340 used in the Android OS.
  • 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 .
  • the processor 320 performs the additional function module 450 .
  • 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 .
  • the processor 320 may perform a function corresponding to the first command.
  • the function corresponding to the first command may include an additional function provided by the platform of the electronic device 320 .
  • FIG. 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
  • 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.
  • the second command may include a value for executing a specific video mode of the camera 340 (eg, the camera 340 of FIG. 3 ).
  • 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.
  • the processor eg, the processor 320 of FIG. 3
  • the application eg, the application 410 using the camera of FIG. 4
  • the second command may include a value for controlling the video segmentation mode of the camera 340 .
  • 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.
  • the processor 320 may perform a function in which the second command indicates the background of the execution screen of the application 410 .
  • the second command may include values for selecting the color RGB of the camera 340 .
  • the second command may include any one of values (eg, 0 to 255) representing RGB colors.
  • 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.
  • the second command may include values for adjusting the segmentation blur of the camera 340 .
  • 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.
  • the second command may include at least one of the above values.
  • 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.
  • the second command may include a value for performing various additional functions related to the camera 340 .
  • FIG. 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
  • 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.
  • 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.
  • 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 .
  • the additional function module 450 may replace the designated command with the second command and transmit it to the camera 340 .
  • 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.
  • 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 .
  • the additional function module 450 may replace the designated command with the second command 730 and transmit it to the camera 340 .
  • 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.
  • 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.
  • 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.
  • FIG. 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
  • the processor 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 ).
  • the first application may be an application capable of providing a first additional function related to the camera 340 and/or the application 410 .
  • the processor 320 may execute the second application through the additional function module 450 while the first application is being executed.
  • the second application may be an application capable of providing a second additional function related to the camera 340 and/or the application 410 .
  • the second additional function may include a different function from the first additional function.
  • 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.
  • the processor 320 may transmit a command for the second application to the camera 340 through the additional function module 450 .
  • 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 .
  • 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.
  • 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.
  • 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 .
  • 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 .
  • FIG. 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
  • the processor 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 ).
  • the processor 320 may display an execution screen including an image captured by the camera 340 on the display 360 .
  • the processor 320 may determine whether the application 410 satisfies a specified condition for executing the first application capable of providing an additional function.
  • 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 ).
  • the processor 320 performs the application 410 .
  • An object for the first application may be displayed on the execution screen of the .
  • the processor 320 may display an object for the first application on an execution screen including an image captured by the camera 340 .
  • 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.
  • 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.
  • 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 .
  • the processor 320 may adjust the zoom function of the camera 340 or perform an anti-shake function.
  • FIGS. 10A to 10F are diagrams for explaining a user interface provided by an electronic device according to various embodiments of the present disclosure.
  • the electronic device 1001 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 ).
  • 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 ).
  • the electronic device 1001 may identify a user input (eg, a touch input to the first object 1020 ) 1025 for the first object 1020 .
  • the electronic device 1001 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 .
  • 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 .
  • 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 .
  • 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 .
  • 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.
  • the intensity of the blur effect may be adjusted by a user or may be automatically adjusted by the electronic device 1001 .
  • 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.
  • the specific color may be selected by a user or may be automatically selected by the electronic device 1001 .
  • 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 may be displayed.
  • a specific image may be selected by a user or may be automatically selected by the electronic device 1001 .
  • 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 .
  • the setting screen 1070 may include a description of additional functions that may be provided through the objects 1020 and/or 1030 .
  • 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.
  • the setting screen 1070 may include icons indicating applications that may provide additional functions (eg, APP1 or APP2).
  • 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 ).
  • 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 .
  • 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 .
  • the electronic device 1001 may perform a predetermined additional function (eg, a blur effect function).
  • a predetermined additional function eg, a blur effect function
  • 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.
  • 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.
  • 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.
  • the processor may be configured to execute the additional function module in a framework layer of the camera.
  • the processor may be configured to generate the second command by combining the first command and a specified command of the camera.
  • 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
  • the processor when the second application related to the camera is executed while the first application is running, 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.
  • 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.
  • 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.
  • 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.
  • the additional function may include a function not supported by the application.
  • 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.
  • 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.
  • the method of operating the electronic device may further include executing the additional function module in a framework layer of the camera.
  • the generating of the second command may include generating the second command by combining the first command and a specified command of the camera.
  • 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.
  • 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.
  • a method of operating an electronic device includes an operation of determining 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 the specified condition When this is satisfied, the operation of executing the first application may be further included.
  • the screen is displayed on the execution screen.
  • the method may further include displaying an object related to the first application.
  • the method of operating an electronic device includes an operation of acquiring 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.
  • the additional function may include a function not supported by the application.
  • the processor 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.
  • Each of the aforementioned 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.
  • 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.
  • the functions of the components prior to being combined may be identically performed.

Landscapes

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

Abstract

다양한 실시 예에 따른 전자 장치는, 카메라, 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다. 그 외에도 다양한 실시 예들이 가능하다.

Description

카메라를 포함하는 전자 장치 및 이의 동작 방법
다양한 실시 예들은, 카메라를 포함하는 전자 장치 및 이의 동작 방법에 관한 것이다.
최근 디지털 기술의 발달과 함께 이동통신 단말기, PDA(personal digital assistant), 전자수첩, 스마트 폰, 태블릿 PC(personal computer), 웨어러블 디바이스(wearable device) 등과 같은 다양한 유형의 전자 장치가 널리 사용되고 있다. 이러한, 전자 장치들은, 다양한 기능들을 제공할 수 있어 사용자에게 널리 이용되고 있다.
전자 장치는, 지정된 운영체제(예컨대, 안드로이드 운영체제(Android OS))를 이용하여 다양한 기능들을 제공할 수 있다. 예컨대, 전자 장치는, 카메라를 이용하여 다양한 기능들을 제공할 수 있다.
안드로이드 운영체제(Android™ OS) 또는 장치 벤더(device vendor)에 의해 제공되는 기능은 나날이 추가 및 개선되고 있다. 그러나, 써드파티(3rd party) 어플리케이션은, 별도의 추가 구현이 없으면, 플랫폼 제공자가 제공하는 추가 기능을 이용하지 못할 수 있다. 또한, 안드로이드 운영체제는, 복수의 어플리케이션들이 동시에 카메라를 제어하기 위한 명령 취합 구조가 존재하지 않아, 안드로이드 운영체제를 이용하는 전자 장치는, 하나의 추가 구현을 복수의 써드파티 어플리케이션들 각각에 적용하지 못할 수 있다.
안드로이드 운영체제는 하나의 카메라에 하나의 클라이언트만 액세스할 수 있다. 예를 들면, 하나의 카메라에 대하여 복수의 클라이언트들의 독립적인 기능 수행이 보장되지 않을 수 있다. 이는, 연속적으로 프레임을 처리해야 하는 카메라의 기능적 특성에 기인하는 제한 사항일 수 있다.
현재 카메라를 이용 중인 클라이언트(또는 어플리케이션) 이외의 다른 클라이언트(또는 어플리케이션)는, 사용자 입력에 따라 카메라의 동작 및 기능을 수행하기 위해서는, 해당 클라이언트 자체를 수정해야만 했다. 또는, 안드로이드 운영체제의 카메라 파이프라인/프레임워크에 카메라의 동작 및 기능을 추가할 경우, 카메라 파이프라인/프레임워크는 전자 장치의 기본 시스템 구성 요소이기 때문에, 업데이트에 제약이 발생될 가능성도 있다.
다양한 실시 예들은, 안드로이드 플랫폼(Android™ platform) 상에서 카메라를 구동하는 기본적인 모듈 이외에 별도로 카메라를 제어할 수 있는 모듈을 추가하여, 어느 어플리케이션이 카메라를 이용할 때에도 추가된 모듈이 제공하는 경로를 통하여 카메라를 제어할 수 있는 전자 장치와 이의 동작 방법을 제공할 수 있다.
다양한 실시 예에 따른 전자 장치는, 카메라, 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.
다양한 실시 예에 따른 전자 장치의 동작 방법은, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.
다양한 실시 예에 따른 비일시적 저장 매체에 있어서, 상기 프로그램은, 프로세서에 의한 실행 시, 상기 프로세서가, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 수행하도록 실행 가능한 인스트럭션을 저장할 수 있다.
다양한 실시 예들에 따른 전자 장치는, 안드로이드 플랫폼 상에서 카메라를 구동하는 기본적인 모듈 이외에 별도로 카메라를 제어할 수 있는 모듈을 추가하여, 어느 어플리케이션이 카메라를 이용할 때에도 추가된 모듈이 제공하는 경로를 통하여 카메라를 제어할 수 있습니다. 이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.
도 1은, 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은, 다양한 실시 예에 따른 전자 장치의 개략적인 블록도이다.
도 4는, 다양한 실시 예들에 따른 전자 장치에서 실행되는 추가 기능 모듈을 설명하기 위한 블록도이다.
도 5는, 다양한 실시 예에 따른 전자 장치의 동작 방법을 설명하기 위한 플로우 차트이다.
도 6은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 종류를 설명하기 위한 도면이다.
도 7은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 형태를 설명하기 위한 도면이다.
도 8은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 복수의 어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 9는, 다양한 실시 예에 따른 카메라를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 10a, 도 10b, 도10c, 도 10d, 도 10e 및 도 10f는, 다양한 실시 예들에 따른 전자 장치가 제공하는 사용자 인터페이스를 설명하기 위한 도면들이다.
도 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))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(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) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(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)를 확인 또는 인증할 수 있다.
무선 통신 모듈(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 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 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 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
도 2는, 다양한 실시 예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일실시예에 따르면, 프로그램(140)은 전자 장치(101)(예: 도 1의 전자 장치(101))의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.
운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.
미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다.
어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.
데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다.
시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(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)의 사용자에게 제공할 수 있다.
장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.
도 3은, 다양한 실시 예에 따른 전자 장치의 개략적인 블록도이다.
도 3을 참조하면, 전자 장치(301)는, 프로세서(320), 메모리(330), 카메라(340), 및 디스플레이(360)를 포함할 수 있다. 예컨대, 전자 장치(301)는, 도 1의 전자 장치(101, 102, 및 104)와 동일 내지 유사하게 구현될 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 전자 장치(301)의 전반적인 동작을 제어할 수 있다. 예컨대, 프로세서(320)는, 도 1의 프로세서(120)와 동일 내지 유사하게 구현될 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)(예컨대, 도 1의 카메라 모듈(180))를 이용하는 어플리케이션을 실행시킬 수 있다. 예컨대, 어플리케이션은 메모리(330)(예컨대, 도 1의 메모리(130))에 저장될 수 있다. 예컨대, 카메라(340)를 이용하는 어플리케이션은 써드파티 어플리케이션을 포함할 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)(예컨대, 도 1의 카메라 모듈(180))를 이용하는 어플리케이션에 대한 추가 기능을 제공할 수 있는 적어도 하나의 어플리케이션을 실행시킬 수 있다. 예컨대, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서(또는 해당 어플리케이션이 카메라(340)를 이용 중인 상태에서), 추가 기능 모듈을 통해 적어도 하나의 어플리케이션이 제공하는 추가 기능을 수행할 수 있다. 추가 기능을 제공하는 적어도 하나의 어플리케이션은 메모리(330)(예컨대, 도 1의 메모리(130))에 저장될 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 어플리케이션이 카메라(340)를 이용하는 상태에서, 카메라(340) 및/또는 카메라(340)를 이용하는 어플리케이션과 관련된 추가 기능을 관리하는 추가 기능 모듈을 실행시킬 수 있다. 예컨대, 추가 기능 모듈은, 카메라(340)에 대하여 단방향 액세스만을 허용하던 카메라 서비스 모듈에 추가될 수 있다. 추가 기능 모듈은, 플랫폼 레이어(platform layer)에서 카메라(340)에 대한 추가 기능을 수행하기 위한 명령을 수신하고, 수신된 명령을 기존의 카메라(340)의 지정된 명령과 조합한 명령 또는 데이터를 카메라(340)로 전송할 수 있다. 예컨대, 추가 기능 모듈은, 카메라의 프레임워크 레이어(예: 도 4의 카메라 서비스(430))에서 실행될 수 있다. 프로세서(320)는, 추가 기능 모듈을 통해, 카메라(340)를 이용하는 어플리케이션 또는 카메라(340)에 대한 추가 기능을 제공할 수 있다. 예컨대, 추가 기능은, 전자 장치(301)의 플랫폼 자체적으로 지원하는 기능을 포함할 있다. 또한, 추가 기능은, 해당 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다. 예컨대, 추가 기능은, 디스플레이(360)(예컨대, 도 1의 디스플레이 모듈(160))에 표시된 어플리케이션의 실행 화면의 색상, 화면 효과, 배경 효과, 및 배경 이미지 중 적어도 하나를 변경하는 기능을 포함할 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행에 기반하여, 추가 기능 모듈을 실행할 수 있다. 예컨대, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 추가 기능을 제공하는 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인할 수 있다. 지정된 조건이 만족되면, 프로세서(320)는, 추가 기능 모듈을 실행하고, 제1어플리케이션을 실행할 수 있다. 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션의 실행 중인 상태(또는 해당 어플리케이션이 카메라(340)를 점유 중인 상태)에서, 추가 기능 모듈을 통해, 카메라(340)와 관련된 제1어플리케이션의 제1명령을 획득할 수 있다. 예컨대, 제1명령은, 제1어플리케이션을 통해 제공되는 추가 기능들 중 사용자 입력에 대응하는 추가 기능을 제공하기 위한 명령일 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령 및 카메라(340)의 지정된 명령에 기초하여 제2명령을 생성할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령과 카메라(340)의 지정된 명령을 조합하여 제2명령을 생성할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈을 통해, 카메라(340)에 대한 캡쳐 요청(capture request)의 키-값(key-value)(예: 벤더키(vendorkey)) 형태로 제2명령을 생성할 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 추가 기능 모듈을 통해, 제1명령에 대응하는 추가 기능을 수행하도록 제2명령을 카메라(340)로 전송할 수 있다. 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서, 제1명령에 대응하는 추가 기능을 제공할 수 있다.
도 4는, 다양한 실시 예들에 따른 전자 장치에서 실행되는 추가 기능 모듈을 설명하기 위한 블록도이다.
도 4를 참조하면, 프로세서(320)(예컨대, 도 3의 프로세서(320))는, 카메라(340)(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(410)을 실행할 수 있다. 예컨대, 전자 장치(301)는, 전자 장치(301)에 설치된 운영체제(예컨대, 안드로이드 OS)에서 지원하는 자바 레이어, 네이티브 레이어, 및 리눅스 커널 레이어를 통해 어플리케이션(410)의 동작을 수행할 수 있다. 예컨대, 자바 레이어는 도 2의 어플리케이션(146)에 관련될 수 있고, 네이티브 레이어는 도 2의 미들웨어(144)에 관련될 수 있고, 리눅스 커널 레이어는 도 2의 운영체제(142)에 관련될 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 자바 레이어에서, 카메라(340)를 이용하는 어플리케이션(410), 제1추가 기능 클라이언트(420), 제2추가 기능 클라이언트(427), 및 추가 기능 서비스(425)를 실행시킬 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 어플리케이션(410)을 실행하고 어플리케이션(410)에 대한 정보를 카메라 서비스(430)로 전송할 수 있다. 예컨대, 어플리케이션(410)은, 써드파티 어플리케이션일 수 있다.
다양한 실시 예에 따라, 제1추가 기능 클라이언트(420)은, 플랫폼(또는 전자 장치(301))이 지원하는 카메라(340)를 제어할 수 있는 제1어플리케이션을 동작시키기 위한 모듈일 수 있다. 제2추가 기능 클라이언트(427)는, 플랫폼(또는 전자 장치(301))이 지원하는 카메라(340)를 제어할 수 있는 제2어플리케이션을 동작시키기 위한 모듈일 수 있다. 비록, 도 4에서는, 2개의 추가 기능 클라이언트들(420 및 427)을 도시하고 있으나, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 전자 장치(301)는, 복수의 추가 기능 클라이언트들을 포함할 수 있다.
다양한 실시 예에 따라, 추가 기능 서비스(425)는, 카메라(340)의 동작과 관련된 부가 정보를 추가 기능 모듈(450)로 전송하는 모듈일 수 있다. 예컨대, 카메라(340)의 동작과 관련된 부가 정보는, 플랫폼이 지원하는 기능 또는 어플리케이션(410)에 대한 부가 정보를 포함할 수 있다.
다양한 실시 예에 따라, 추가 기능 서비스(425)는, 제1추가 기능 클라이언트(420)에 의해 실행된 제1어플리케이션에 대한 정보를 획득할 수 있다. 또한, 추가 기능 서비스(425)는, 제1추가 기능 클라이언트(420)에 의해 실행된 제2어플리케이션에 대한 정보를 획득할 수 있다. 추가 기능 서비스(425)는, 제1어플리케이션에 대한 정보 및 제2어플리케이션에 대한 정보를 추가 기능 모듈(450)로 전송할 수 있다.
다양한 실시 예에 따라, 추가 기능 서비스(425)는, 추가 기능 클라이언트(420 또는 427))로부터 해당 어플리케이션의 요청(예컨대, 사용자 입력)을 수신하고, 추가 기능을 통해 카메라(340)의 제어를 수행할 수 있는지 여부를 확인할 수 있다. 예컨대, 추가 기능 서비스(425)는, 추가 기능을 통해 카메라(340)를 제어할 수 있는지 여부를 확인할 수 있다. 예컨대, 추가 기능을 통해 카메라(340)를 제어할 수 있는지 여부를 확인하는 방법은, 공개키 기반의 인증 방식 또는 사용자와 명시적인 상호작용(예컨대, 팝업 창 표시 또는 메시지 표시)을 통해 제어 권한을 부여받는 방식이 이용될 수 있다. 추가 기능 서비스(425)는, 추가 기능을 통해 카메라(340)의 제어를 수행할 수 있다고 확인되면, 추가 기능 모듈(450)로 해당 어플리케이션의 요청(또는 요청에 대한 정보)을 번들 형태로 전달할 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 네이티브 레이어에서, 카메라 서비스(430) 및 카메라 HAL(hardware abstraction layer)(460)를 실행시킬 수 있다.
다양한 실시 예에 따라, 카메라 서비스(430)는, 카메라(340)를 구동시키기 위한 어플리케이션(410)과 카메라(340) 사이의 정보를 송수신하는 모듈일 수 있다. 예컨대, 카메라 서비스(430)는, 카메라 클라이언트(440) 및/또는 추가 기능 모듈(450)을 포함할 수 있다. 카메라 클라이언트(440)는, 카메라(340)를 이용하기 위한 명령과 사용자 입력에 대한 응답을 카메라 HAL(460)로 전송할 수 있다. 카메라 클라이언트(440)는, 카메라(340)에 대한 정보 또는 명령을 추가 기능 모듈(450)로부터 수신할 수 있다. 또한, 카메라 클라이언트(440)는, 카메라(340)에 대한 정보 또는 명령을 추가 기능 모듈(450)로 전송할 수도 있다. 추가 기능 모듈(450)은, 카메라(340)를 이용하는 어플리케이션(410)에 대한 정보를 수신할 수 있다. 예를 들면, 추가 기능 모듈(450)은, 구동 중인 카메라(340)에 대한 정보 및/또는 명령을 수신할 수 있다.
다양한 실시 예에 따라, 추가 기능 모듈(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)로 전송할 수 있다.
다양한 실시 예에 따라, 카메라 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)를 제어하기 위해 구현된 소프트웨어 솔루션에 대한 모듈일 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 리눅스 커널 레이어에서, 카메라 드라이버(470)를 실행시킬 수 있다. 카메라 드라이버(470)는, 카메라 HAL(460)와 카메라(340)에 대한 정보 및/또는 명령을 송수신할 수 있다. 예컨대, 카메라 드라이버(470)는 카메라 HAL(460)로부터 수신된 명령에 기초하여 카메라(340)를 제어할 수 있다.
상술한 바와 같이, 어플리케이션(410)은, 추가 기능 모듈(450)을 통해 전자 장치(320)의 플랫폼에서 제공하는 추가 기능을 제공받을 수 있다.
한편, 이하에서 설명하는 전자 장치(301)의 동작들 중 적어도 일부는 프로세서(320) 및/또는 추가 기능 모듈(450)에 의해 수행될 수 있다.
도 5는, 다양한 실시 예에 따른 전자 장치의 동작 방법을 설명하기 위한 플로우 차트이다.
도 5를 참조하면, 다양한 실시 예에 따라, 동작 501에서, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))을 실행할 수 있다.
다양한 실시 예에 따라, 동작 503에서, 프로세서(320)는, 어플리케이션(410)이 추가 기능을 제공하는 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)이 제1어플리케이션에서 제공하는 추가 기능을 적용할 수 있으면 지정된 조건이 만족된 것으로 판단할 수 있다. 반면, 프로세서(320)는, 어플리케이션(410)이 제1어플리케이션에서 제공하는 추가 기능을 적용할 수 없으면 지정된 조건이 만족되지 않은 것으로 판단할 수 있다.
다양한 실시 예에 따라, 지정된 조건이 만족되지 않은 것으로 확인되면(동작 503의 아니오), 동작 504에서, 프로세서(320)는, 제1어플리케이션을 실행하지 않지 않을 수 있다. 이때, 프로세서(320)는 제1어플리케이션이 제공하는 추가 기능 없이, 어플리케이션(410)을 실행할 수 있다.
다양한 실시 예에 따라, 지정된 조건이 만족된 것으로 확인되면(동작 503의 예), 동작 505에서, 프로세서(320)는, 제1추가 기능 클라이언트(예컨대, 도 4의 제1추가 기능 클라이언트(420))를 통해 제1어플리케이션을 실행할 수 있다. 이때, 프로세서(320)는, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))을 실행할 수 있다.
다양한 실시 예에 따라, 동작 507에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해 제1어플리케이션에 대한 사용자 입력을 확인할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈(450)을 통해 사용자 입력에 대응하는 추가 기능을 수행하기 위한 제1명령을 획득할 수 있다.
다양한 실시 예에 따라, 동작 509에서, 프로세서(320)는, 사용자 입력에 대응하는 제1명령이 카메라(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)로 전달할 수 있다.
다양한 실시 예에 따라, 제1명령이 카메라(340)의 지정된 명령과 조합이 필요하지 않은 것으로 확인되면(동작 509의 아니오), 동작 513에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해 제1명령을 카메라(340)로 전송할 수 있다. 프로세서(320)는, 추가 기능 모듈(450)을 통해, 각 프레임마다 카메라(340)로 전송되는 지정된 명령과 동기화하여 제1명령을 카메라(340)로 전달할 수 있다.
다양한 실시 예에 따라, 동작 515에서, 프로세서(320)는, 제1명령에 대응하는 기능을 수행할 수 있다. 예컨대, 제1명령에 대응하는 기능은, 전자 장치(320)의 플랫폼에서 제공하는 추가 기능을 포함할 수 있다.
도 6은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 종류를 설명하기 위한 도면이다.
도 6을 참조하면, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))은, 안드로이드 OS에서 사용되는 카메라(340)의 지정된 명령(예컨대, 캡쳐요청 명령)의벤더키 형태로 제2명령을 생성할 수 있다. 제2명령은, 사용자 입력에 대응하는 제1명령에 대응하는 기능을 나타내는 값(value)을 포함할 수 있다.
다양한 실시 예에 따라, 제2명령은, 카메라(340)(예컨대, 도 3의 카메라(340))의 특정 비디오 모드를 실행하는 값을 포함할 수 있다. 예컨대, 제2명령은, 손떨림방지 모드(예: OIS(optical image stabilization), 또는 VDIS(video digital image stabilization))를 실행하는 값, 보케(bokeh) 모드를 실행하는 값, 세그멘테이션 모드를 실행하는 값, 또는 뷰티 모드를 실행하는 값 중 적어도 하나를 포함할 수 있다. 예컨대, 프로세서(예컨대, 도 3의 프로세서(320))는, 어플리케이션(예컨대, 도 4의 카메라를 이용하는 어플리케이션(410))이 카메라(320)를 이용할 때, 제2명령이 나타내는 비디오 모드로 동작시킬 수 있다.
다양한 실시 예에 따라, 제2명령은, 카메라(340)의 비디오 세그멘테이션 모드를 제어하는 값을 포함할 수 있다. 예컨대, 제2명령은, 비디오 세그멘테이션 모드를 수행함에 있어, 촬영 이미지의 배경을 특정 컬러로 변경하는 기능을 수행하는 값, 촬영 이미지의 배경에 블러 효과를 적용하는 기능을 수행하는 값, 또는 촬영 이미지의 배경을 특정 이미지로 설정하는 기능을 수행하는 값을 포함할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)의 실행 화면의 배경을 제2명령이 나타내는 기능을 수행시킬 수 있다.
다양한 실시 예에 따라, 제2명령은, 카메라(340)의 컬러 RGB를 선택하는 값들을 포함할 수 있다. 예컨대, 제2명령은, RGB 색상들을 나타내는 값들(예컨대, 0부터 255) 중 어느 하나의 값을 포함할 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)의 실행 화면의 배경을 제2명령에 포함된 값이 나타내는 색으로 변경할 수 있다.
다양한 실시 예에 따라, 제2명령은, 카메라(340)의 세그멘테이션 블러를 조절하는 값들을 포함할 수 있다. 예컨대, 제2명령은, 촬영 이미지의 배경에 적용된 블러 강도를 조절하는 값들(예컨대, 0부터 255) 중 어느 하나의 값을 포함할 수 있다.
다양한 실시 예에 따라, 제2명령은, 상기의 값들 중 적어도 하나의 값을 포함할 수 있다. 한편, 도 6에서는, 제2명령에 의해 제공되는 추가 기능에 대하여 설명하였으나, 이는 예시적인 것일 뿐, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 제2명령은, 카메라(340)에 관련된 다양한 추가 기능을 수행하기 위한 값을 포함할 수 있다.
도 7은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 전송하는 제2명령의 형태를 설명하기 위한 도면이다.
도 7을 참조하면, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))은, 안드로이드 OS에서 사용되는 카메라(예컨대, 도 3의 카메라(340))의 지정된 명령(예컨대, 캡쳐요청 명령)의 벤더키 형태로 제2명령을 생성할 수 있다. 제2명령은, 사용자 입력에 대응하는 제1명령에 대응하는 기능을 나타내는 값(value)을 포함할 수 있다.
다양한 실시 예에 따라, 도 7의 (a)를 참조하면, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)에게 전송되는 지정된 명령(예컨대, 캡쳐요청 명령)(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 추가시킬 수 있다. 예를 들면, 추가 기능 모듈(450)은, 지정된 명령(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 추가한 제2명령을 카메라(340)로 전송할 수 있다. 이때, 추가 기능 모듈(450)은, 지정된 명령을 제2명령으로 대체하여 카메라(340)로 전송할 수 있다.
다양한 실시 예에 따라, 도 7의 (a)를 참조하면, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)에게 전송되는 지정된 명령(예컨대, 캡쳐요청 명령)(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 병합시킬 수 있다. 예를 들면, 추가 기능 모듈(450)은, 지정된 명령(710)에 제1명령에 대응하는 기능을 나타내는 값(720)을 병합한 제2명령(730)을 생성하고, 제2명령(730)을 카메라(340)로 전송할 수 있다. 이때, 추가 기능 모듈(450)은, 지정된 명령을 제2명령(730)으로 대체하여 카메라(340)로 전송할 수 있다.
다양한 실시 예에 따라, 추가 기능 모듈(450)은, 지정된 명령과 별도로 제1명령에 대응하는 기능을 나타내는 값(720)을 카메라로 전송할 수도 있다. 예컨대, 추가 기능 모듈(450)은, 각 프레임마다 카메라(340)로 전송되는 지정된 명령의 전송 주기에 동기화하지 않고, 제1명령에 대응하는 기능을 나타내는 값(720)을 카메라(340)로 전송할 수도 있다.
상술한 바와 같이, 추가 기능 모듈(450)은, 3가지 방법들 중 적어도 하나의 방법으로 제1명령에 대응하는 기능을 나타내는 값을 카메라(340)로 전송할 수 있다.
도 8은, 다양한 실시 예에 따른 전자 장치가 추가 기능 모듈을 통해 복수의 어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 8을 참조하면, 다양한 실시 예에 따라, 프로세서(예컨대, 도 3의 프로세서(320))는, 카메라(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))의 실행에 기반하여, 추가 기능 모듈(예컨대, 도 4의 추가 기능 모듈(450))을 통해 제1어플리케이션을 실행할 수 있다. 예컨대, 제1어플리케이션은 카메라(340) 및/또는 어플리케이션(410)에 관련된 제1추가 기능을 제공할 수 있는 어플리케이션일 수 있다.
다양한 실시 예에 따라, 동작 801에서, 프로세서(320)는, 제1어플리케이션이 실행 중인 상태에서, 추가 기능 모듈(450)을 통해 제2어플리케이션을 실행할 수 있다. 예컨대, 제2어플리케이션은 카메라(340) 및/또는 어플리케이션(410)에 관련된 제2추가 기능을 제공할 수 있는 어플리케이션일 수 있다. 예컨대, 제2추가 기능은, 제1추가 기능과 상이한 기능을 포함할 수 있다.
다양한 실시 예에 따라, 동작 803에서, 프로세서(320)는, 추가 기능 모듈을 통해, 제2어플리케이션에 대한 명령을 획득할 수 있다. 예컨대, 프로세서(320)는, 제2어플리케이션에 대한 사용자 입력에 대응하는 제3명령을 획득할 수 있다.
다양한 실시 예에 따라, 동작 805에서, 프로세서(320)는, 추가 기능 모듈(450)을 통해, 제2어플리케이션에 대한 명령을 카메라(340)로 전송할 수 있다. 예컨대, 프로세서(320)는, 추가 기능 모듈(450)을 통해, 제3명령에 카메라(340)의 지정된 명령을 조합하여 생성된 제4명령을 획득할 수 있다. 또한, 프로세서(320)는, 제3명령에 대응하는 제2추가 기능이 수행되도록 제4명령을 카메라(340)로 전송할 수 있다.
다양한 실시 예에 따라, 프로세서(320)는, 카메라(340)를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션이 제공하는 제1추가 기능 및/또는 제2어플리케이션이 제공하는 제2추가 기능을 수행할 수 있다.
비록, 도 8에서는, 프로세서(320)가, 어플리케이션(410)이 카메라(340)를 이용하는 상태에서, 추가 기능 모듈(450)을 통해 2개의 어플리케이션들이 제공하는 카메라(340)와 관련된 추가 기능들을 제공하는 것만 설명하고 있으나, 본 개시의 기술적 사상은 이에 한정되지 않을 수 있다. 예컨대, 프로세서(320)는, 어플리케이션(410)이 카메라(340)를 이용하는 상태에서, 추가 기능 모듈을 통해 복수의 어플리케이션들이 제공하는 복수의 추가 기능들을 제공할 수도 있다.
도 9는, 다양한 실시 예에 따른 카메라를 이용하는 어플리케이션이 실행 중인 상태에서, 추가 기능 모듈을 통해 제1어플리케이션들의 명령을 카메라로 전송하는 동작을 설명하기 위한 플로우 차트이다.
도 9를 참조하면, 다양한 실시 예에 따라, 동작 901에서, 프로세서(예컨대, 도 3의 프로세서(320))는, 카메라(예컨대, 도 3의 카메라(340))를 이용하는 어플리케이션(예컨대, 도 4의 어플리케이션(410))을 실행하고, 어플리케이션(410)의 실행 화면을 디스플레이(예컨대, 도 3의 디스플레이(360))에 표시할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지를 포함하는 실행 화면을 디스플레이(360)에 표시할 수 있다.
다양한 실시 예에 따라, 동작 903에서, 프로세서(320)는, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하는지 여부를 확인할 수 있다.
다양한 실시 예에 따라, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하지 않으면(동작 903의 아니오), 동작 909에서, 프로세서(320)는, 제1어플리케이션을 실행하지 않고, 디스플레이(예컨대, 도 3의 디스플레이(360))에 제1어플리케이션에 대한 객체를 표시하지 않을 수 있다.
다양한 실시 예에 따라, 어플리케이션(410)이 추가 기능을 제공할 수 있는 제1어플리케이션을 실행하기 위한 지정된 조건 만족하면(동작 903의 예), 동작 905에서, 프로세서(320)는, 어플리케이션(410)의 실행 화면 상에 제1어플리케이션에 대한 객체를 표시할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지를 포함하는 실행 화면 상에 제1어플리케이션에 대한 객체를 표시할 수 있다. 예컨대, 객체는, 제1어플리케이션이 제공하는 추가 기능들을 나타내는 컨텐트를 포함할 수 있다. 프로세서(320)는, 객체에 대한 사용자 입력이 수신되는지 여부를 확인할 수 있다.
다양한 실시 예에 따라, 동작 907에서, 프로세서(320)는, 객체에 대한 사용자 입력에 확인되면, 객체에 대한 사용자 입력에 기초하여 제1어플리케이션이 제공하는 복수의 추가 기능들 중 어느 하나의 기능을 수행할 수 있다. 예컨대, 어플리케이션(410)이 영상 통화 어플리케이션이면, 프로세서(320)는, 카메라(340)를 통해 촬영된 이미지의 색상을 조절하거나 촬영된 이미지에 효과(예컨대, 세그멘테이션, 블러, 또는 보케(bokeh))를 적용시키는 기능을 수행할 수 있다. 또한, 프로세서(320)는, 카메라(340)의 줌 기능을 조절하거나 손떨림방지 기능을 수행할 수도 있다.
도 10a 내지 도 10f는, 다양한 실시 예들에 따른 전자 장치가 제공하는 사용자 인터페이스를 설명하기 위한 도면들이다.
도 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)을 확인할 수 있다.
도 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)로 전송할 수 있다.
도 10c를 참조하면, 전자 장치(1001)는, 제1추가 기능(1034)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)에 블러 효과를 적용한 제1화면(1040)을 표시할 수 있다. 예컨대, 블러 효과의 강도는 사용자에 의해 조절되거나, 전자 장치(1001)에 의해 자동으로 조절될 수 있다.
도 10d를 참조하면, 전자 장치(1001)는, 제2추가 기능(1035)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)을 특정색(예컨대, 배경색)으로 변경한 제2화면(1050)을 표시할 수 있다. 예컨대, 특정색은 사용자에 의해 선택되거나, 전자 장치(1001)에 의해 자동으로 선택될 수 있다.
도 10e를 참조하면, 전자 장치(1001)는, 제3추가 기능(1036)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)을 특정 이미지(예컨대, 배경 이미지)로 변경한 제3화면(1060)을 표시할 수 있다. 예컨대, 특정 이미지는 사용자에 의해 선택되거나, 전자 장치(1001)에 의해 자동으로 선택될 수 있다.
도 10f를 참조하면, 전자 장치(1001)는, 제4추가 기능(1037)에 대한 사용자 입력에 응답하여, 카메라(340)를 통해 촬영된 이미지에 제공되는 추가 기능에 대한 설정 화면(1070)을 표시할 수 있다. 예컨대, 설정 화면(1070)은, 객체(1020 및/또는 1030)를 통해 제공할 수 있는 추가 기능들에 대한 설명을 포함할 수 있다. 예컨대, 전자 장치(1001)는, 설정 화면(1070)에 대한 사용자 입력에 의해 추가 기능을 사용여부를 결정할 수 있다. 예컨대, 전자 장치(1001)는, 설정 객체(1075)에 대한 사용자 입력이 확인되면, 추가 기능을 사용하는 상태로 설정하거나 사용하지 않는 상태로 설정할 수 있다. 예컨대, 설정 화면(1070)은, 추가 기능을 제공할 수 있는 어플리케이션들(예: APP1, APP2)을 나타내는 아이콘들을 포함할 수 있다. 다양한 실시 예에 따라, 전자 장치(1001)는, 사용자 입력 또는 프로세서(예컨대, 도 3의 프로세서(320))에 의해 자동으로 추가 기능을 제공할 수 있는 어플리케이션을 추가(또는 삭제)할 수도 있다. 예를 들면, 전자 장치(1001)는, 설정 화면(1070)에 포함된 지정된 이미지(또는 아이콘)에 대한 사용자 입력에 기반하여, 어플리케이션을 추가(또는 삭제)할 수도 있다.
다양한 실시 예에 따라, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력에 응답하여 도 10c 내지 도 10e에서 설명된 추가 기능들 중 미리 지정된 추가 기능을 수행할 수도 있다. 예컨대, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력이 확인되면, 미리 지정된 추가 기능(예컨대, 블러 효과 기능)을 수행할 수 있다. 예를 들면, 전자 장치(1001)는, 제1객체(1020)에 대한 사용자 입력이 확인되면, 카메라(340)를 통해 촬영된 이미지의 배경(예컨대, 이미지에서 인물을 제외한 부분)에 블러 효과를 적용한 제1화면(1040)을 표시할 수도 있다.
다양한 실시 예에 따른 전자 장치(예컨대, 도 3의 전자 장치(301))는, 카메라(340), 디스플레이(360), 및 프로세서(320)를 포함하고, 상기 프로세서는, 상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) (예: 벤더키(vendorkey))형태로 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하고, 상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인하고, 상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하고, 상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 프로세서는, 상기 객체에 대한 상기 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하고, 상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하도록 설정될 수 있다.
다양한 실시 예에 따라, 상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다.
다양한 실시 예에 따라, 상기 추가 기능은, 상기 실행 화면의 색상, 배경 효과, 및 배경 이미지 중 적어도 하나를 변경하는 기능을 포함할 수 있다.
다양한 실시 예에 따른 전자 장치의 동작 방법은, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.
다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하는 동작을 더 포함할 수 있다.
다양한 실시 예에 따라, 상기 제2명령을 생성하는 동작은, 상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하는 동작을 포함할 수 있다.
다양한 실시 예에 따라, 상기 제2명령을 전송하는 동작은, 상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하는 동작을 포함할 수 있다.
다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하는 동작을 더 포함할 수 있다.
다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인하는 동작 및 상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하는 동작을 더 포함할 수 있다.
다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하는 동작 및 상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하는 동작을 더 포함할 수 있다.
다양한 실시 예에 따라, 전자 장치의 동작 방법은, 상기 객체에 대한 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하는 동작 및 상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하는 동작을 더 포함할 수 있다.
다양한 실시 예에 따라, 상기 추가 기능은, 상기 어플리케이션에 의해 지원되지 않는 기능을 포함할 수 있다.
다양한 실시 예에 따른 비일시적 저장 매체에 있어서, 상기 프로그램은, 프로세서에 의한 실행 시, 상기 프로세서가, 상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작, 상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작, 및 상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 수행하도록 실행 가능한 인스트럭션을 저장할 수 있다.
상기 전자 장치의 전술한 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성 요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시 예에서, 전자 장치는 전술한 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 다양한 실시 예에 따른 전자 장치의 구성 요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성 요소들의 기능을 동일하게 수행할 수 있다.
그리고 본 문서에 개시된 실시 예는 개시된, 기술 내용의 설명 및 이해를 위해 제시된 것이며, 본 개시의 범위를 한정하는 것은 아니다. 따라서, 본 개시의 범위는, 본 개시의 기술적 사상에 근거한 모든 변경 또는 다양한 다른 실시 예를 포함하는 것으로 해석되어야 한다.

Claims (15)

  1. 전자 장치에 있어서,
    카메라;
    디스플레이; 및
    프로세서를 포함하고, 상기 프로세서는,
    상기 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하고,
    상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하고,
    상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
  2. 제1항에 있어서, 상기 프로세서는,
    상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하도록 설정된 전자 장치.
  3. 제1항에 있어서, 상기 프로세서는,
    상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하도록 설정된 전자 장치.
  4. 제3항에 있어서, 상기 프로세서는,
    상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
  5. 제1항에 있어서, 상기 프로세서는,
    상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하고,
    상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하고,
    상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하도록 설정된 전자 장치.
  6. 제1항에 있어서, 상기 프로세서는,
    상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는 지 확인하고,
    상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하도록 설정된 전자 장치.
  7. 제1항에 있어서, 상기 프로세서는,
    상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하고,
    상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하도록 설정된 전자 장치.
  8. 제7항에 있어서, 상기 프로세서는,
    상기 객체에 대한 상기 사용자 입력이 확인되면, 상기 추가 기능 모듈을 통해 상기 사용자 입력에 대응하는 기능과 관련된 상기 제1명령을 획득하고,
    상기 추가 기능 모듈을 통해, 상기 제2명령을 상기 카메라로 전송하도록 설정된 전자 장치.
  9. 전자 장치의 동작 방법에 있어서,
    상기 전자 장치에 포함된 카메라를 이용하는 어플리케이션의 실행 중인 상태에서, 상기 카메라와 관련된 추가 기능을 관리하는 추가 기능 모듈을 통해 상기 카메라와 관련된 제1어플리케이션의 제1명령을 획득하는 동작;
    상기 추가 기능 모듈을 통해, 상기 제1명령 및 상기 카메라의 지정된 명령에 기초하여 제2명령을 생성하는 동작; 및
    상기 추가 기능 모듈을 통해, 상기 제1명령에 대응하는 기능을 수행하도록 상기 제2명령을 상기 카메라로 전송하는 동작을 포함하는 전자 장치의 동작 방법.
  10. 제9항에 있어서,
    상기 카메라의 프레임워크 레이어에서 상기 추가 기능 모듈을 실행하는 동작을 더 포함하는 전자 장치의 동작 방법.
  11. 제9항에 있어서, 상기 제2명령을 생성하는 동작은,
    상기 제1명령과 상기 카메라의 지정된 명령을 조합하여 상기 제2명령을 생성하는 동작을 포함하는 전자 장치의 동작 방법.
  12. 제11항에 있어서, 상기 제2명령을 전송하는 동작은,
    상기 카메라에 대한 캡쳐 요청(capture request)의 키 값(key-value) 형태로 상기 제2명령을 상기 카메라로 전송하는 동작을 포함하는 전자 장치의 동작 방법.
  13. 제9항에 있어서,
    상기 제1어플리케이션이 실행 중인 상태에서 상기 카메라와 관련된 제2어플리케이션이 실행되면, 상기 추가 기능 모듈을 통해, 상기 제2어플리케이션의 제3명령을 획득하는 동작;
    상기 추가 기능 모듈을 통해, 상기 제3명령 및 상기 카메라의 상기 지정된 명령에 기초하여 제4명령을 생성하는 동작; 및
    상기 추가 기능 모듈을 통해, 상기 제3명령에 대응하는 기능을 수행하도록 상기 제4명령을 상기 카메라로 전송하는 동작을 더 포함하는 전자 장치의 동작 방법.
  14. 제9항에 있어서,
    상기 카메라와 관련된 상기 어플리케이션의 실행에 응답하여, 상기 어플리케이션이 상기 제1어플리케이션을 실행하기 위한 지정된 조건을 만족하는지 여부를 확인하는 동작; 및
    상기 지정된 조건이 만족되면, 상기 제1어플리케이션을 실행하는 동작을 더 포함하는 전자 장치의 동작 방법.
  15. 제13항에 있어서,
    상기 디스플레이에 상기 어플리케이션의 실행 화면을 표시하는 동작; 및
    상기 카메라와 관련된 상기 추가 기능을 제공하기 위한 상기 제1어플리케이션을 실행되면, 상기 실행 화면 상에 상기 제1어플리케이션과 관련된 객체를 표시하는 동작을 더 포함하는 전자 장치의 동작 방법.
PCT/KR2021/019189 2021-01-12 2021-12-16 카메라를 포함하는 전자 장치 및 이의 동작 방법 WO2022154281A1 (ko)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20210003834 2021-01-12
KR10-2021-0003834 2021-01-12
KR10-2021-0040885 2021-03-30
KR1020210040885A KR20220102090A (ko) 2021-01-12 2021-03-30 카메라를 포함하는 전자 장치 및 이의 동작 방법

Publications (1)

Publication Number Publication Date
WO2022154281A1 true WO2022154281A1 (ko) 2022-07-21

Family

ID=82447455

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/019189 WO2022154281A1 (ko) 2021-01-12 2021-12-16 카메라를 포함하는 전자 장치 및 이의 동작 방법

Country Status (1)

Country Link
WO (1) WO2022154281A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170138800A (ko) * 2016-06-08 2017-12-18 주식회사 시어스랩 멀티 스티커를 이용한 영상 생성 방법 및 장치
KR101826144B1 (ko) * 2016-06-17 2018-02-06 주식회사 리코시스 기능 제한이 가능한 이동단말 및 이의 기능 제한 시스템
KR20180023326A (ko) * 2016-08-25 2018-03-07 삼성전자주식회사 전자 장치 및 이미지 센서로부터 획득된 이미지를 어플리케이션으로 전달하기 위한 방법
KR20180111224A (ko) * 2017-03-31 2018-10-11 엘지전자 주식회사 단말기 및 그 제어 방법
US10613870B2 (en) * 2017-09-21 2020-04-07 Qualcomm Incorporated Fully extensible camera processing pipeline interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170138800A (ko) * 2016-06-08 2017-12-18 주식회사 시어스랩 멀티 스티커를 이용한 영상 생성 방법 및 장치
KR101826144B1 (ko) * 2016-06-17 2018-02-06 주식회사 리코시스 기능 제한이 가능한 이동단말 및 이의 기능 제한 시스템
KR20180023326A (ko) * 2016-08-25 2018-03-07 삼성전자주식회사 전자 장치 및 이미지 센서로부터 획득된 이미지를 어플리케이션으로 전달하기 위한 방법
KR20180111224A (ko) * 2017-03-31 2018-10-11 엘지전자 주식회사 단말기 및 그 제어 방법
US10613870B2 (en) * 2017-09-21 2020-04-07 Qualcomm Incorporated Fully extensible camera processing pipeline interface

Similar Documents

Publication Publication Date Title
WO2021075786A1 (en) Electronic device and method of processing pop-up window using multi-window thereof
WO2022030893A1 (ko) 오디오 공유를 지원하는 전자 장치
WO2022108192A1 (ko) 전자 장치 및 전자 장치의 멀티윈도우 제어방법
WO2023058860A1 (ko) 멀티 서명된 apk 파일을 처리하는 전자 장치 및 그 동작 방법
WO2022154281A1 (ko) 카메라를 포함하는 전자 장치 및 이의 동작 방법
WO2022031055A1 (ko) 전자 장치 및 그의 진동 출력 제어 방법
WO2022154264A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2022196939A1 (ko) 대체 컨텐츠를 제공하는 전자 장치 및 그의 동작 방법
WO2022065845A1 (ko) 입력 데이터 처리 방법 및 이를 지원하는 전자 장치
WO2022030890A1 (ko) 다중 윈도우 이미지 캡쳐 방법 및 이를 위한 전자 장치
WO2021025424A1 (en) Electronic device controlling luminance and method for controlling luminance thereof
WO2020204401A1 (ko) 전자 장치 및 전자 장치에서의 스트리밍 어플리케이션 처리 방법
WO2020159032A1 (ko) 복수의 어플리케이션에 카메라에서 획득한 이미지를 제공하는 전자 장치 및 그의 동작 방법
WO2024071861A1 (ko) 업데이트 방법 및 이를 위한 전자 장치
WO2024072117A1 (ko) 전자 장치 및 어플리케이션 간의 통신 방법
WO2022177061A1 (ko) 비정상적인 앱을 백그라운드에서 미리 로딩하는 전자 장치 및 그의 동작 방법
WO2022025505A1 (ko) 데이터 이동 서비스를 제공하는 전자 장치 및 그 방법
WO2022196889A1 (ko) 멀티 프로세서를 포함하는 전자 장치 및 그 운용 방법
WO2023214675A1 (ko) 터치 입력을 처리하기 위한 전자 장치 및 방법
WO2022010092A1 (ko) 컨텐츠 공유를 지원하는 전자 장치
WO2022025403A1 (ko) 파일을 공유하는 전자 장치 및 그 파일 공유 방법
WO2022191378A1 (ko) 서비스를 제공하는 전자 장치 및 이의 동작 방법
WO2023013945A1 (ko) 무선 통신으로 인한 노이즈를 제어하는 전자 장치 및 그의 동작 방법
WO2023146173A1 (ko) 화면을 제공하는 방법 및 이를 지원하는 전자 장치
WO2024039233A1 (ko) 전자 장치 및 전자 장치에서 프라이버시 강화 모드를 실행하는 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21919905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21919905

Country of ref document: EP

Kind code of ref document: A1