METHOD FOR OBTAINING IMAGE RELATED TO VIRTUAL REALITY CONTENT AND ELECTRONIC DEVICE SUPPORTING THE SAME

According to an embodiment, there may be provided an electronic device comprising a communication module comprising communication circuitry; a camera module comprising at least one camera; a display module comprising a display; and at least one processor operatively connected to the communication module, the camera module, and the display module, wherein one or more of the at least one processor is configured to: execute a camera application, establish a communication connection with a first external electronic device corresponding to first identification information through the communication module based on obtaining first identification information while the camera application is executed, display a first space on the execution screen of the camera application through the display module based on data received from the first external electronic device based on the communication connection, transmit a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application, display the composition-changed first space on the execution screen of the camera application through the display module based on receiving data generated based on the request, from the first external electronic device, and obtain an image of the composition-changed first space based on an input.

BACKGROUND

Field

The disclosure relates to a method for obtaining an image related to virtual reality content and an electronic device supporting the same.

Description of Related Art

Metaverse-related content is being actively provided. For example, virtual space-based metaverse-related content that performs a designated activity in a virtual space through an avatar may be provided. For example, there may be provided augmented reality-based metaverse-related content that allows additional information to be viewed as superposed on the actual environment or allows other objects to be viewed as superposed on the actual environment. As the metaverse-related content is advanced, a large number of users may access the metaverse service.

Multiple users may access a metaverse server by means of their respective devices. Each device may access the metaverse server based on cellular data communication or IEEE 802.11 communication corresponding thereto. Cellular data communications corresponding to the respective devices may be operated by the same network operator or different network operators. When operated by different network operators, the cellular data communications may have different communication environments. Or, the environment related to connection of each cellular data communication to the metaverse server, e.g., whether the network slice for the application corresponding to the metaverse service is supported or whether edge computing for the metaverse server is supported may differ. Accordingly, when various devices access a metaverse server, the devices may have different capabilities of transmission/reception with the metaverse server.

SUMMARY

According to an example embodiment of the disclosure, an electronic device may comprise: a communication module comprising communication circuitry, a camera module comprising a camera, a display, and at least one processor operatively connected to the communication module, the camera module, and the display module. One or more of the at least one processor may be configured to execute a camera application. One or more of the at least one processor may be configured to establish a communication connection with a first external electronic device corresponding to first identification information through the communication module based on obtaining first identification information while the camera application is executed. One or more of the at least one processor may be configured control the display to display a first space on the execution screen of the camera application based on data received from the first external electronic device based on the communication connection. One or more of the at least one processor may be configured to control the communication module to transmit a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application. One or more of the at least one processor may be configured to control the display to display the composition-changed first space on the execution screen of the camera based on receiving data generated based on the request, from the first external electronic device. One or more of the at least one processor may be configured to obtain an image of the composition-changed first space based on an input.

According to an example embodiment of the disclosure, a method for obtaining an image related to virtual reality content by an electronic device may comprise executing a camera application. The method may comprise establishing a communication connection with a first external electronic device corresponding to first identification information through a communication module comprising communication circuitry of the electronic device based on obtaining first identification information while the camera application is executed. The method may comprise displaying a first space on the execution screen of the camera application through a display of the electronic device, based on data received from the first external electronic device. The method may comprise transmitting a request for changing a composition of the first space to the first external electronic device based on identifying first event associated with the camera application. The method may comprise displaying the composition-changed first space on the execution screen of the camera application through the display based on receiving data generated based on the request, from the first external electronic device. The method may comprise obtaining an image of the composition-changed first space based on an input.

According to an example embodiment of the disclosure, in a non-transitory computer-readable storage medium storing instructions, the instructions may, when executed by at least one circuit of an electronic device, cause the electronic device to perform at least one operation. The at least one operation may include executing a camera application. The at least one operation may include establishing a communication connection with a first external electronic device corresponding to first identification information through a communication module of the electronic device based on obtaining first identification information while the camera application is executed. The at least one operation may include displaying a first space on the execution screen of the camera application through a display of the electronic device, based on data received from the first external electronic device. The at least one operation may include transmitting a request for changing a composition of the first space to the first external electronic device based on identifying first event associated with the camera application. The at least one operation may include displaying the composition-changed first space on the execution screen of the camera application through the display based on receiving data generated based on the request, from the first external electronic device. The at least one operation may include obtaining an image of the composition-changed first space based on an input.

Embodiments of the disclosure are not limited to the foregoing objectives, and other objectives would readily be appreciated by a skilled artisan from the following detailed description taken in conjunction with the accompanying drawings.

DETAILED DESCRIPTION

FIG.1is a block diagram illustrating an example electronic device101in a network environment100according to various embodiments.

The wireless communication module192may support various requirements specified in the electronic device101, an external electronic device (e.g., the electronic device104), or a network system (e.g., the second network199). According to an embodiment, the wireless communication module192may support a peak data rate (e.g., 20 Gbps or more) for implementing eMBB, loss coverage (e.g., 164 dB or less) for implementing mMTC, or U-plane latency (e.g., 0.5 ms or less for each of downlink (DL) and uplink (UL), or a round trip of 1 ms or less) for implementing URLLC.

According to an embodiment, the external electronic device104or the server108may be included in the second network199. The electronic device101may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology or IoT-related technology.

FIG.2is a block diagram illustrating an example configuration of an electronic device101(e.g., the electronic device101ofFIG.1) according to various embodiments.

Referring toFIG.2, in an embodiment, the electronic device101may include a communication module (e.g., including communication circuitry)190, a camera module (e.g., including a camera)180, a display module (e.g., including a display)160, and at least one processor (e.g., including processing circuitry)120operatively connected with the communication module190, the camera module180, and the display module160.

In an embodiment, the communication module190may be included in the communication module190ofFIG.1. In an embodiment, the communication module190may include various communication circuitry and communicate with an external electronic device (e.g., the server108ofFIG.1) through a second network (e.g., the second network199ofFIG.1). In an embodiment, the electronic device101(e.g., the communication module190) may transmit data to an external electronic device and/or may receive data from the external electronic device. In an embodiment, the external electronic device may be implemented as a server that stores and/or processes virtual reality content. The electronic device101may communicate with at least one external electronic device through the second network199.

In an embodiment, the camera module180may be included in the camera module180ofFIG.1. In an embodiment, the camera module180may include at least one camera, including, for example, a front camera disposed toward the user's face from the electronic device101and a rear camera disposed in a direction in which the user faces the subject.

In an embodiment, the display module160may include the display module160ofFIG.1. In an embodiment, the display module160may include a display and display an image obtained by the camera module180. For example, the display module160may display an image obtained by the front camera. In an embodiment, the display module160may display virtual reality content obtained (or received) from the external electronic device through the second network199. The display module220may display a dynamic image (e.g., a preview image or a video) and/or a still image obtained from the camera module180and/or the external electronic device.

According to an embodiment, the processor120may be included in the processor120ofFIG.1. In an embodiment, the processor120may include various processing circuitry (as used herein, including the claims, the term “processor” may include various processing circuitry, including at least one processor, wherein one or more processors of at least one processor may be configured to perform the various functions described herein) and control an overall operation for obtaining an image including virtual reality content. In an embodiment, the processor120may include one or more processors for obtaining an image including virtual reality content. The one or more processors may be operatively connected to the communication module190, the camera module180, and the display module160. An embodiment performed by the processor120to obtain an image including virtual reality content is described below with reference toFIGS.3to13.

AlthoughFIG.2illustrates that the electronic device101includes the communication module190, the camera module180, the display module160, and/or the processor120, the disclosure is not limited thereto. For example, the electronic device101may further include at least one component shown inFIG.2. For example, the electronic device101may further include a sensor module (e.g., the sensor module176ofFIG.1) for detecting a movement of the electronic device101.

FIG.3is a flowchart illustrating an example operation of obtaining an image related to virtual reality content by an electronic device (e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.3, in operation301, in an embodiment, the electronic device101(e.g., the processor120ofFIG.2) may execute a camera application.

In an embodiment, the electronic device101may execute a camera application based on identifying an input, e.g., a user input. An event that triggers the electronic device101to execute the camera application is not limited to the example described above. The electronic device101may display an image obtained by the camera module (e.g., the camera module180ofFIG.1) through the display module (e.g., the display module160ofFIG.1) by executing the camera application. For example, the electronic device101may display an image obtained by the front camera or the rear camera on the execution screen of the camera application. In an embodiment, the image obtained by the camera module180may include a preview image. In an embodiment, the electronic device101may display an object for establishing communication connection with an external electronic device on the execution screen of the camera application. The electronic device101may display an window (e.g., an account selection window) associated with account selection for selecting any one account from among one or more accounts on the execution screen of the camera application, based on a user input to the object. In an embodiment, the window associated with account selection may include an object for at least one account corresponding to at least one external electronic device (e.g., the server108ofFIG.1). In an embodiment, the object for the account may include an identification information (e.g., an ID, a nickname, or a name of an external electronic device) for the at least one account. In an embodiment, the user input to the object may include an event of touching the display module160, but is not limited thereto. In an embodiment, one or more accounts may be associated with one or more external electronic devices. In an embodiment, each of the one or more accounts may be associated with at least one external electronic device, respectively. In an embodiment, one or more accounts may be associated with the same external electronic device. For example, the electronic device101may establish communication connection with the external electronic device corresponding to the selected account, based on the user input associated with selection of any one account from among one or more accounts. In an embodiment, the electronic device101may identify a selected external electronic device from among one or more external electronic devices, based on the user input to the window associated with account selection. The electronic device101may establish communication connection with the selected external electronic device by executing the camera application without installing one or more applications for accessing each of the one or more external electronic devices.

In operation303, in an embodiment, the electronic device101may establish communication connection with a first external electronic device corresponding to a first identification information.

In an embodiment, the electronic device101may display a window associated with input of identification information (e.g., identification information input window) through the display module160, based on a user input to any one of the one or more objects displayed on the window associated with account selection, while the camera application is executed. In an embodiment, the electronic device101may identify the user identification information (e.g., identification information corresponding to a user of the electronic device101), based on a user input to the window associated with input of the identification information. In an embodiment, the user input to the window associated with input of identification information may include an event of inputting a user ID and a password, or an event of inputting a subscription code, but is not limited thereto. In an embodiment, the subscription code may include a combination of at least one of text or numbers. In an embodiment, the electronic device101may establish communication connection with the external electronic device corresponding to the identification information from among at least one external electronic device, based on identifying the identification information corresponding to the user of the electronic device101. In an embodiment, the electronic device101may identify whether the user of the electronic device101has the right to use the function of accessing the external electronic device corresponding to the identification information, based on the identification information. In an embodiment, the electronic device101may transmit a request for allowing the external electronic device corresponding to the selected account to verify the user's right to use to the external electronic device corresponding to the identification information. In an embodiment, the request may include encrypted information corresponding to the identification information. The external electronic device corresponding to the identification information may verify the identification information based on the request transmitted by the electronic device101. The external electronic device may transmit a response to the request to the electronic device101based on identifying that the user identifier is valid. The electronic device101may establish communication connection with the external electronic device corresponding to the identification information by receiving the response to the request from the external electronic device.

In an embodiment, the subscription code may include an identifier based on image recognition such as a quick response code (QR), but is not limited thereto. In an embodiment, when the electronic device101establishes communication connection with the external electronic device based on the QR code, the electronic device101may establish communication with the external electronic device corresponding to the QR code without displaying the window associated with account selection based on the QR code obtained by the camera module180while displaying the preview image through the display module160in operation301. For example, the QR code may include address information corresponding to the external electronic device. In an embodiment, the address information may include a uniform resource identifier (URI) or an Internet protocol (IP) address. The electronic device101may establish communication connection with the external electronic device corresponding to the QR code by accessing the address of the external electronic device based on the address information corresponding to the external electronic device.

In operation305, in an embodiment, the electronic device101may display a first space on the execution screen of the camera application.

In an embodiment, the electronic device101may receive data including virtual reality content from the external electronic device based on the communication connection. In an embodiment, the first space may include at least a portion of a virtual reality space including one or more virtual reality contents. The external electronic device may generate an avatar corresponding to the electronic device101in the virtual reality space based on communication establishment with the electronic device101. In an embodiment, the avatar corresponding to the electronic device101may have a field of view (FOV) of a predetermined range. In an embodiment, the screen in the FOV of the avatar may include a screen looking at the virtual reality space from the inside of the avatar or a screen looking at the virtual reality space including the avatar from the outside of the avatar. The first space may include a screen within the FOV of the avatar. The electronic device101may transmit data obtained by the sensor module176to the external electronic device to control the direction and/or angle of the screen within the FOV of the avatar based on the movement detected by the sensor module (e.g., the sensor module176ofFIG.1). The electronic device101may obtain (or receive) data including at least one virtual reality content in the FOV of the avatar from the external electronic device. The electronic device101may display the first space on the execution screen of the camera application, through the display module, based on the data received from the external electronic device. In an embodiment, the first space may include at least portion of a virtual space recently visited by the avatar corresponding to the account of the user while the communication connection with the external electronic device is established based on the identification information of the user. In an embodiment, the first space may include a virtual space predetermined by the external electronic device when communication connection with the external electronic device is first established.

In operation307, in an embodiment, the electronic device101may transmit a request for changing the composition of the first space to the first external electronic device.

In an embodiment, the electronic device101may transmit a request for changing the composition of the first space to the first external electronic device based on identifying a first event associated with the camera application. The electronic device101may change the settings of the camera application based on a user input, while the execution screen of the camera application is displayed through the display module. In an embodiment, the user input may include, but is not limited to, a touch, a swipe, a pinch, or a spread event on the display module160. In an embodiment, an event associated with the camera application may include at least one of an event that causes the electronic device101to change the settings of the camera application to a rear camera mode, an event that causes the electronic device101to change the settings of the camera application to a selfie mode, a zoom-in event, or a zoom-out event. In an embodiment, the event associated with the camera application may include an event associated with movement of the electronic device101. The electronic device101may transmit a request for changing the composition of the first space to the external electronic device based on the communication connection, based on identifying the first event associated with the camera application. In an embodiment, the composition of the first space may include at least one of the direction, angle, or magnification of the screen within the FOV of the avatar.

In operation309, in an embodiment, the electronic device101may display a composition-changed first space.

In an embodiment, the electronic device101may display the composition-changed first space through the display module160, based on reception of the data generated based on the request from the external electronic device. In an embodiment, the electronic device101may display, through the display module160, the composition-changed first space in response to the changed settings of the camera application.

In operation311, in an embodiment, the electronic device101may obtain (or receive) an image of the composition-changed first space.

In an embodiment, the electronic device101may obtain an image of the composition-changed first space, based on a user input. In an embodiment, the user input may include a touch event for an object with image photograph (e.g., image photograph object), but is not limited thereto. In the still image mode, the electronic device101may obtain a still image of the composition-changed first space, based on a user input. In an embodiment, the electronic device101may store the still image of the first space. The electronic device101may store address information about the external electronic device in metadata of the still image of the first space. For example, the electronic device101may store metadata including address information about the external electronic device within an image attribute of the obtained still image, and a method of storing the metadata is not limited to the above-described example. In an embodiment, the address information may include, but is not limited to, a URI or an IP address. The electronic device101may store address information about the first space in metadata of the still image of the first space. In an embodiment, the address information about the first space may include a URI or IP address of the first space. In an embodiment, the format of the metadata may be an exchangeable image file format (EXIF), but is not limited thereto. The electronic device101may obtain a video of the first space by recording the first space based on one or more sequential user inputs in the video mode. In an embodiment, the electronic device101may store the video of the first space. The electronic device101may store address information about the external electronic device in metadata of the video of the first space. The electronic device101may store address information about the first space in metadata of the video of the first space. In an embodiment, after establishing communication connection with the external electronic device managing the first space, the electronic device101may directly access the first space, based on address information about the first space stored in metadata of the still image or the video. For example, the electronic device101may obtain data associated with the first space from the external electronic device, based on address information about the first space, and may display the first space through the display module160. In an embodiment, the electronic device101may directly access the first space, based on the address information about the first space stored in the metadata of the still image or the video, without establishing communication connection with the external electronic device managing the first space.

FIG.4is a flowchart illustrating an example operation of establishing communication connection with an external electronic device based on identification information by an electronic device according to various embodiments.

Referring toFIG.4, in operation401, in an embodiment, the electronic device101(e.g., the processor120ofFIG.1orFIG.2) may display a first window associated with account selection.

In an embodiment, the electronic device101may display a window associated with account selection (e.g., account selection window) for selecting any one account from among one or more accounts on the execution screen of the camera application, based on a user input to the object displayed through the display module160. In an embodiment, the object may include an object for establishing communication connection with an external electronic device. In an embodiment, the window associated with account selection may include at least one object for at least one account associated with establishment of communication connection with at least one external electronic device (e.g., the server108ofFIG.1). In an embodiment, the user input to the at least one object may include an event of touching the display module160, but is not limited thereto. In an embodiment, each of the one or more accounts may respectively correspond to one of one or more external electronic devices. For example, the electronic device101may establish communication connection with the external electronic device corresponding to the selected account, based on identifying a user input associated with selection of any one account from among one or more accounts. In an embodiment, the electronic device101may identify the selected external electronic device from among one or more external electronic devices, based on the user input to the window associated with account selection. The electronic device101may establish communication connection with the selected external electronic device by executing the camera application without installing one or more applications for accessing each of the one or more external electronic devices.

In operation403, in an embodiment, the electronic device101may display a second window associated with input of identification information.

In an embodiment, the electronic device101may display a window associated with input of the identification information through the display module160, based on a user input to any one of the at least one object displayed on the window associated with account selection. In an embodiment, the electronic device101may identify the identification information for connecting with an external electronic device, based on a user input to the window associated with input of identification information.

In operation405, in an embodiment, the electronic device101may establish communication connection with the first external electronic device corresponding to the first identification information.

In an embodiment, the electronic device101may establish a communication connection with the first external electronic device corresponding to the first identification information based on obtaining the first identification information based on the user input to the second window. The electronic device101may identify the identification information associated with establishment of communication connection with an external electronic device, based on a user input to the window associated with input of identification information. In an embodiment, the user input to the window associated with input of identification information may include an event of inputting a user ID and a password, or an event of inputting a subscription code, but is not limited thereto. In an embodiment, the subscription code may include a combination of at least one of text or numbers. In an embodiment, the electronic device101may establish communication connection with the external electronic device corresponding to identification information, based on obtaining the identification information. In an embodiment, the electronic device101may identify whether the user has the right to use the function of accessing the external electronic device corresponding to the identification information, based on the identification information. In an embodiment, the electronic device101may transmit a request for allowing the external electronic device corresponding to the selected account to verify the user's right to use to the external electronic device. In an embodiment, the request may include encrypted information corresponding to the identification information. The external electronic device may verify the identification information based on the request transmitted by the electronic device101. The external electronic device may transmit a response to the request to the electronic device101based on identifying that the identification information is valid. The electronic device101may complete establishment of the communication connection with the external electronic device by receiving the response to the request from the external electronic device.

In an embodiment, the subscription code may include an identifier based on image recognition such as a QR code, but is not limited thereto. In an embodiment, when the electronic device101establishes communication connection with the external electronic device based on the QR code, the electronic device101may establish communication connection with the external electronic device based on the QR code obtained by the camera module180even without displaying the window associated with account selection. For example, the QR code may include address information about the external electronic device. The electronic device101may establish communication connection with the external electronic device by accessing the address of the external electronic device corresponding to the QR code based on the address information corresponding to the external electronic device.

FIGS.5A,5B,5C,5D,5E, and5Fare diagrams illustrating an example of establishing communication with an external electronic device (e.g., the server108ofFIG.1) by an electronic device101(e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.5A, the electronic device101may display an execution screen520of a camera application through the display module160. The electronic device101may display one or more objects530on the execution screen520. In an embodiment, the electronic device101may control a camera module (e.g., the camera module180ofFIG.2) or transmit a request to an external electronic device, based on a user input to any one of the objects530. In an embodiment, the user input540may include a touch event on the display module160, but is not limited thereto. In an embodiment, the electronic device101may control the camera module180to obtain a preview image for capturing a still image, based on a user input to the photo mode object531. The electronic device101may transmit a request for obtaining a preview image for capturing a still image to the external electronic device, based on the user input540to the object533for establishing communication with the external electronic device. The electronic device101may control the camera module180to obtain a still image based on a user input to the photograph object537in the photo mode. The electronic device101may change the operation mode of the camera application from photo mode to video mode based on a user input to the object535associated with the video mode. In the video mode, the electronic device101may control the camera module180to start or end recording of the video, based on a user input to the photograph object537. The electronic device101may control the display module160to display an account selection window based on a user input to the object533for establishing communication with the external electronic device. In an embodiment, when the external electronic device establishing communication according to the user input to the object533is not predetermined, the electronic device101may display an account selection window. In an embodiment, the account selection window may be referred to as a “universal menu”, but is not limited thereto. In an embodiment, the electronic device101may control the display module160to display a universal menu, based on a user input to the object533. The electronic device101may control the camera module180to obtain a preview image based on the front camera510or the rear camera (not shown), based on a user input to the switch camera object539. For example, the electronic device101may control the camera module180to obtain the preview image based on the front camera510, based on obtaining a user input to the switch camera object539while obtaining the preview image based on the rear camera. While obtaining the preview image based on the front camera510, the electronic device101may control the camera module180to obtain the preview image based on the rear camera, based on obtaining a user input to the switch camera object539.

Referring toFIG.5B, the electronic device101may control the display module160to display an account selection window550for selecting any one account from among one or more accounts, based on a user input to the object533for establishing communication with the external electronic device. In an embodiment, the account selection window550may include an object551for at least one account corresponding to at least one external electronic device. In an embodiment, the user input to the object may include an event of touching the display module160, but is not limited thereto. In an embodiment, each of the one or more accounts may respectively correspond to one of one or more external electronic devices. For example, the electronic device101may display an identifier input window for establishing communication with the first external electronic device (not shown) through the display module160, based on a user input to the first account object551_1. The electronic device101may display an identifier input window for establishing communication with the second external electronic device (not shown) through the display module160, based on a user input to the second account object551_2. The electronic device101may display an identifier input window for establishing communication with the third external electronic device (not shown) through the display module160, based on a user input to the third account object551_3. In an embodiment, the account selection window550may further include a still image object553aand a video object553b. The electronic device101may change the settings of the camera module180into the still image mode for obtaining the still image of the first space including at least one virtual reality content, based on a user input to the still image object553a. The electronic device101may change the settings of the camera module180into the video mode for obtaining a video of the first space including at least one virtual reality content, based on a user input to the video object553b.

Referring toFIG.5C, the electronic device101may display an identifier input window560through the display module160, based on a user input to any one of the one or more objects551displayed on the account selection window550. In an embodiment, the electronic device101may obtain a user identifier, based on a user input to the identifier input window560. In an embodiment, the user identifier may include an ID and a password. The electronic device101may establish communication with the external electronic device based on a user input to the ID input window561, the password input window563, and the login object565. In an embodiment, the electronic device101may transmit a request for allowing the external electronic device corresponding to the selected account to verify the user's right to use to the external electronic device. In an embodiment, the request may include encrypted information about the user identifier. The external electronic device may verify the user identifier based on the request transmitted by the electronic device101. The external electronic device may transmit a response to the request to the electronic device101based on identifying that the user identifier is valid. The electronic device101may establish communication with the external electronic device by receiving the response to the request from the external electronic device.

In an embodiment, the electronic device101may display the identifier input window560before displaying the account selection window550. The electronic device101may obtain a user identifier, based on a user input to the identifier input window560. The electronic device101may identify whether the user has the right to use the function of accessing the external electronic device, based on the user identifier. The electronic device101may display the account selection window550based on identifying that the user has the right to use the function of accessing the external electronic device.

Referring toFIG.5D, the electronic device101may display an identifier input window560through the display module160, based on a user input to any one of the one or more objects551displayed on the account selection window550. In an embodiment, the electronic device101may obtain a user identifier, based on a user input to the identifier input window560. In an embodiment, the user identifier may include a subscription code. In an embodiment, the subscription code may include a combination of at least one of text and numbers. The electronic device101may establish communication with the external electronic device based on a user input to the subscription code input window570. In an embodiment, the electronic device101may transmit a request for allowing the external electronic device corresponding to the selected account to verify the user's right to use to the external electronic device. In an embodiment, the request may include encrypted information about the subscription code. The external electronic device may verify the subscription code based on the request transmitted by the electronic device101. The external electronic device may transmit a response to the request to the electronic device101based on identifying that the subscription code is valid. The electronic device101may establish communication with the external electronic device by receiving the response to the request from the external electronic device.

In an embodiment, the electronic device101may display the identifier input window560before displaying the account selection window550. The electronic device101may obtain a subscription code, based on a user input to the identifier input window560. The electronic device101may identify whether the user has the right to use the function of accessing the external electronic device, based on the subscription code. The electronic device101may display the account selection window550based on identifying that the user has the right to use the function of accessing the external electronic device.

Referring toFIG.5E, the electronic device101may establish communication with the external electronic device, based on the subscription code obtained by the camera module180. In an embodiment, the subscription code may include an identifier based on image recognition such as a QR code580, but is not limited thereto. In an embodiment, when the electronic device101establishes communication with the external electronic device based on the QR code580, the electronic device101may establish communication with the external electronic device even without displaying the account selection window. For example, the QR code580may include address information about the external electronic device. The electronic device101may establish communication with the external electronic device by accessing the address of the external electronic device based on the address information corresponding to the external electronic device.

Referring toFIG.5F, the electronic device101may control the display module160to display information related to an account corresponding to an external electronic device pre-connected to the electronic device101among one or more external electronic devices, based on a user input (e.g., the user input540ofFIG.5A) to the object533for establishing communication with the external electronic device. In an embodiment, the account-related information may include at least one of an ID, a nickname, an email address, or a profile. In an embodiment, the electronic device101may control the display module160to display the switch account object555, based on a user input to the object533. The electronic device101may control the display module160to display an account selection window (e.g., the account selection window550ofFIG.5B), based on a user input to the switch account object555. The electronic device101may switch to another external electronic device based on a user input to an object (e.g., the object551for the account inFIG.5B) for at least one account included in the account selection window.

In an embodiment, referring toFIG.5F, the electronic device101may control the display module160to display information related to an account corresponding to an external electronic device having a history of last connection among one or more external electronic devices, based on a user input to the object533for establishing communication with the external electronic device. In an embodiment, the electronic device101may control the display module160to display the switch account object555, based on a user input to the object533. The electronic device101may control the display module160to display an account selection window, based on a user input to the switch account object555. The electronic device101may switch to another external electronic device based on a user input to an object for at least one account included in the account selection window.

In an embodiment, referring toFIG.5F, the electronic device101may display information related to the account corresponding to the subscription code, based on identifying (or scanning) the subscription code such as the QR code580. In an embodiment, the electronic device101may control the display module160to display the switch account object555together with the account corresponding to the subscription code. The electronic device101may control the display module160to display an account selection window, based on a user input to the switch account object555. The electronic device101may switch to another external electronic device based on a user input to an object for at least one account included in the account selection window.

FIG.6is a flowchart illustrating an example operation of storing account information based on identification information by an electronic device according to various embodiments.

In an embodiment, the electronic device101may previously store account information corresponding to each of the one or more external electronic devices, based on a user input.

Referring toFIG.6, in operation601, in an embodiment, the electronic device101(e.g., the processor120ofFIG.2) may display a third window associated with account setting.

In an embodiment, the electronic device101may display an object associated with account setting on the execution screen (e.g., the execution screen520ofFIG.5) of the camera application through the display module (e.g., the display module160ofFIG.1orFIG.2). The electronic device101may display the window associated with account setting (e.g., account setting window) based on a user input to the object associated with account setting. In an embodiment, the user input may include a touch event on the display module160, but is not limited thereto. In an embodiment, the window associated with account setting may include an object associated with add account. In an embodiment, the electronic device101may add, change, and/or delete one or more accounts respectively corresponding to the one or more external electronic devices, based on a user input to the window associated with account setting. In an embodiment, the electronic device101may store account information respectively corresponding to the one or more accounts based on the user input to the window associated with account setting. The electronic device101may establish communication connection with the external electronic device corresponding to the account information by executing the camera application even without installing one or more applications for accessing each of the one or more external electronic devices.

In operation603, in an embodiment, the electronic device101may display a fourth window associated with input of identification information.

In an embodiment, the electronic device101may display the window associated with input of identification information, through the display module, based on a user input to the window associated with account setting. In an embodiment, the electronic device101may obtain, or identify, address information corresponding to the external electronic device, based on a user input. For example, the electronic device101may identify the external electronic device corresponding to the account information based on obtaining address information corresponding to the external electronic device by scanning the subscription code through the camera module. In an embodiment, the electronic device101may store account information corresponding to the identified external electronic device, based on at least some of user inputs to the ID input window, the password input window, and/or the login object. In an embodiment, the electronic device101may request validation from the external electronic device to verify the validity of the added account information. For example, the electronic device101may request validation from the external electronic device based on the address information about the external electronic device obtained based on the subscription code. For example, the request transmitted by the electronic device101may include encrypted account information. After verifying the validity of the account information, the external electronic device may transmit a response to the request to the electronic device101. In an embodiment, when the account information is valid, the electronic device101may obtain a response for identifying that the registration of the account information is completed from the external electronic device. When the account information is invalid, the electronic device101may obtain a response for identifying that registration of the account information fails from the external electronic device.

In operation605, in an embodiment, the electronic device101may display account information corresponding to second identification information.

In an embodiment, the electronic device101may display the added account information on the window associated with account setting, based on user input to the window associated with account setting. In an embodiment, the window associated with account setting may include an object associated with add account. The electronic device101may add one or more accounts respectively corresponding to the one or more external electronic devices by performing operations601and603, based on a user input to the object associated with add account.

FIGS.7A,7B,7C,7D,7E, and7Fare diagrams illustrating an example of storing account information based on a user identifier by an electronic device101(e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.7A, in an embodiment, the electronic device101may display an account setting object710on the execution screen520of the camera application through a display module (e.g., the display module160ofFIG.2). The electronic device101may display the account setting window based on a user input to the account setting object710. In an embodiment, the user input may include a touch event on the display module160, but is not limited thereto.

Referring toFIG.7B, in an embodiment, the electronic device101may display an account setting window720through the display module160, based on a user input. In an embodiment, the account setting window720may include an add account object721. The electronic device101may display an identifier input window through the display module160based on a user input to the account setting window720. The electronic device101may display, through the display module160, at least one object731and733for selecting an identifier input scheme, based on a user input to the add account object721included in the account setting window720. In an embodiment, the electronic device101may add, change, or delete one or more accounts respectively corresponding to the one or more external electronic devices, based on the account setting window720. In an embodiment, the electronic device101may pre-store account information respectively corresponding to the one or more accounts based on the account setting window720, thereby establishing communication with the external electronic device by executing the camera application even without installing one or more applications for accessing each of the one or more external electronic devices. In an embodiment, the account information may include, but is not limited to, at least one of an ID, a phone number, an email address, or a password.

Referring toFIG.7C, in an embodiment, the electronic device101may display at least one object for selecting an identifier input scheme through the display module160, based on a user input to an add account object (e.g., the add account object721ofFIG.7B). In an embodiment, the object may include an object731for a subscription code scan and/or an object733for an identifier input. The electronic device101may receive account information in various ways based on displaying one or more objects for selecting an identifier input scheme. In an embodiment, the user input may include a touch event on the display module160, and the user input is not limited to the above-described example.

Referring toFIG.7D, in an embodiment, the electronic device101may display an area740for scanning a subscription code through the display module160, based on a user input to an object (e.g., the object731ofFIG.7C) for scanning the subscription code. In an embodiment, the electronic device101may obtain a preview image including the subscription code through the camera module (e.g., the camera module180ofFIG.2). For example, the subscription code may include a combination of text and/or numbers, or may include an image such as a QR code (e.g., the QR code580ofFIG.5E). The subscription code is not limited to the above-described example. The electronic device101may display a preview image obtained by the camera module180through the display module160. In an embodiment, the electronic device101may obtain address information about the external electronic device, based on scanning the subscription code. For example, the electronic device101may identify the external electronic device corresponding to the subscription code by obtaining address information about the external electronic device based on obtaining the subscription code. Based on identifying that the subscription code is positioned in the area740, the electronic device101may store account information for establishing communication with the external electronic device.

Referring toFIG.7E, in an embodiment, the electronic device101may display an identifier input window750through the display module160, based on a user input to an object (e.g., the object733ofFIG.7C) for the identifier input.

In an embodiment, the electronic device101may store account information corresponding to the identified external electronic device, based on a user input to the ID input window751, the password input window753, and the login object755. In an embodiment, the electronic device101may request validation from the external electronic device to verify the validity of the added account information. For example, the electronic device101may request validation from the external electronic device based on the address information about the external electronic device obtained based on the subscription code. The request transmitted by the electronic device101may include encrypted account information. After verifying the validity of the account information, the external electronic device may transmit a response to the request to the electronic device101. In an embodiment, when the account information is valid, the electronic device101may obtain a response for identifying that the registration of the account information is completed from the external electronic device. When the account information is invalid, the electronic device101may obtain a response for identifying that registration of the account information fails from the external electronic device.

Referring toFIG.7F, in an embodiment, the electronic device101may display the added account information761on the account setting window760, based on obtaining the user identifier. In an embodiment, the electronic device101may display the added account information761on the account setting window760, based on storing the account information corresponding to the identified external electronic device. In an embodiment, the account setting window760may include a change account object763and an add account object721. The electronic device101may change the added account information based on a user input to the change account object763. The electronic device101may add one or more accounts respectively corresponding to the one or more external electronic devices, based on a user input to the add account object721.

FIG.8is a flowchart illustrating an example operation of displaying changed virtual reality content based on a change in the settings of a camera application by an electronic device according to various embodiments.

Referring toFIG.8, in operation801, in an embodiment, the electronic device101(e.g., the processor120ofFIG.2) may identify a first event associated with the camera application.

In an embodiment, the electronic device101may identify the first event associated with the camera application. In an embodiment, an event associated with the camera application may include a user input for setting operating mode of the camera application into a rear camera mode. The event associated with the camera application may include a user input for setting operating mode of the camera application into a selfie mode. The event associated with the camera application may include a zoom-in event, or a zoom-out event. In an embodiment, the event associated with the camera application may include an event associated with movement of the electronic device101. The electronic device101may identify an event associated with a change in the posture of the electronic device101using a sensor module (e.g., the sensor module176ofFIG.1).

In operation803, in an embodiment, the electronic device101may transmit a request for changing the composition of the first space to a first external electronic device. In an embodiment, the electronic device101may transmit a request for changing the composition of the first space to the first external electronic device, based on identifying of the first event associated with the camera module180. In an embodiment, the composition of the first space may include at least one of the direction, angle, and/or magnification of the screen within the FOV of the avatar. In an embodiment, the electronic device101may transmit a request for causing the external electronic device to zoom-in the virtual space content to the external electronic device with which the communication connection is established, based on identifying the event associated with a change in the settings of the camera application to zoom in the subject outside the electronic device101. The electronic device101may transmit a request for causing the external electronic device to zoom out the virtual space content to the external electronic device with which the communication connection is established, based on identifying the event associated with the change in the settings of the camera application to zoom out the subject outside the electronic device101. In an embodiment, the electronic device101may transmit a request for moving the avatar in the first space to the external electronic device, based on a user input. In an embodiment, the user input may include a touch event on the display module160, an event for detecting a movement of the user of the electronic device101, or an event associated with a change in the posture of the electronic device101, but is not limited thereto.

In operation805, in an embodiment, the electronic device101may display a composition-changed first space.

In an embodiment, the electronic device101may display the composition-changed first space through the display module160, based on reception of the data generated based on the request for changing the composition of the first space from the external electronic device. In an embodiment, the electronic device101may display, through the display module160, the composition-changed first space corresponding to the changed settings of the camera application.

In an embodiment, the electronic device101may display the composition-changed first space through the display module160, based on receiving the data generated by the external electronic device based on the request for moving the avatar in the first space.

FIG.9is a diagram illustrating an example of changing the settings of a camera module (e.g., the camera module180ofFIG.2) based on detecting a movement by an electronic device101(e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.9, in an embodiment, the electronic device101may detect a movement of the electronic device101, based on data obtained by a sensor module (e.g., the sensor module176ofFIG.1). In an embodiment, the electronic device101(e.g., the sensor module176) may obtain the movement in the vertical direction, based on detecting the movement of the electronic device101in the y-axis direction. The electronic device101may obtain the movement in the horizontal direction based on detecting the movement in the x-axis direction. The electronic device101may obtain the rotational movement based on detecting the movement in the z-axis direction. In an embodiment, the electronic device101may obtain at least one of changes in the position, direction, and angle of the electronic device101based on detecting the movement in the x-axis, y-axis, and/or z-axis directions. The electronic device101may transmit data obtained by the sensor module176to the external electronic device connected with the electronic device101through a second network (e.g., the second network199ofFIG.1). For example, the electronic device may transmit data obtained by the sensor module176to the external electronic device based on a representational state transfer (REST) API. The electronic device101may change at least one of the position, direction, and/or angle of the virtual reality screen according to the movement of the electronic device101by transmitting data obtained by the sensor module176to the external electronic device.

FIGS.10A,10B, and10Care diagrams illustrating an example of displaying changed virtual reality content based on a change in the settings of a camera module (e.g., the camera module180ofFIG.2) by an electronic device101(e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.10A, after establishing communication with an external electronic device, the electronic device101may display a first space1010on an execution screen520of a camera application, based on data obtained from the external electronic device.

In an embodiment, the first space1010may include one or more virtual reality contents. The VR content shown inFIG.10Ais an example, and is not limited to that shown inFIG.10A.

In an embodiment, the electronic device101may transmit a request for obtaining a still image or a video of the first space1010to the external electronic device, based on a user input to the photograph object537. In an embodiment, the user input to the photograph object537may include an event of touching at least a partial area of the display module160corresponding to the photograph object537, but is not limited thereto. In an embodiment, the electronic device101may receive the obtained still image or video from the external electronic device through the communication module190.

In an embodiment, the electronic device101may change the settings of the camera module180based on a user input to at least a partial area of the display module160. For example, the electronic device101may change the settings of the camera module180to zoom out from the subject, based on obtaining a pinch event for at least a partial area of the display module160. Based on detecting a zoom-in event, the electronic device101may transmit a request for changing the composition of the first space1010to the external electronic device. In an embodiment, the electronic device101may change the settings of the camera module180to zoom in the subject, based on obtaining a spread event on at least a partial area of the display module160. The user input and the settings of the camera module180corresponding to the user input are an example, and are not limited to the above-described example.

In an embodiment, the electronic device101may change the settings of the camera module180based on detecting the movement of the electronic device101. In an embodiment, the settings of the camera module180may include the direction and/or the angle of the preview image obtained by the front camera510or the rear camera. The electronic device101may change the settings of the camera module180based on detecting at least one of horizontal and vertical movement and/or rotation of the electronic device101.

Referring toFIG.10B, in an embodiment, the electronic device101may display a zoomed-in first space1020, on the execution screen520of the camera application, based on detecting the event of zooming in the subject. Based on detecting a zoom-in event, the electronic device101may transmit a request for changing the composition of the first space1010to the external electronic device. In an embodiment, the electronic device101may display the zoomed-in first space1020through the display module160, based on reception of the data generated based on the request from the external electronic device. In an embodiment, the electronic device101may transmit a request for obtaining a still image or a video of the zoomed-in first space1020to the external electronic device, based on a user input to the photograph object537. In an embodiment, the user input to the photograph object537may include an event of touching at least a partial area of the display module160corresponding to the photograph object537, but is not limited thereto. In an embodiment, the electronic device101may receive a still image or a video of the zoomed-in first space1020from the external electronic device through the communication module190.

Referring toFIG.10C, in an embodiment, the electronic device101may display the composition-changed first space1030on the execution screen520of the camera application based on detecting a change in at least one of the direction and angle of the camera module180. The electronic device101may transmit a request for changing the composition of the first space1010to the external electronic device, based on detecting a change in at least one of the direction and the angle of the camera module180. In an embodiment, the electronic device101may display the composition-changed first space1030through the display module160, based on reception of the data generated based on the request from the external electronic device. In an embodiment, the electronic device101may transmit a request for obtaining a still image or a video of the composition-changed first space1030to the external electronic device, based on a user input to the photograph object537. In an embodiment, the user input to the photograph object537may include an event of touching at least a partial area of the display module160corresponding to the photograph object537, but is not limited thereto.

FIG.11is a flowchart illustrating an example operation of displaying an object obtained by a camera module and changed virtual reality content based on a change in the settings of the camera application by an electronic device according to various embodiments.

Referring toFIG.11, in operation1101, in an embodiment, the electronic device101(e.g., the processor120ofFIG.2) may change the operating mode of the camera application into the selfie mode.

In an embodiment, the electronic device101may change the operating mode of the camera application into the selfie mode based on a user input. In the selfie mode, the electronic device101may obtain an image including the background of virtual reality content, based on the front camera (e.g., the front camera510ofFIG.5). In an embodiment, the obtained image may include an object obtained by the front camera510.

In operation1103, in an embodiment, the electronic device101may transmit a request for changing the composition of the first space to a first external electronic device.

In an embodiment, the electronic device101may transmit a request for changing the composition of the first space in the opposite direction to the external electronic device, based on changing the operating mode of the camera application into the selfie mode. For example, the electronic device101may transmit a request for changing the direction of the FOV of the avatar to the opposite direction to the external electronic device.

In operation1105, in an embodiment, the electronic device101may display a composition-changed first space.

In an embodiment, the electronic device101may receive data generated based on the request for changing the composition of the first space from the external electronic device. The electronic device101may display the first space having a composition changed in the opposite direction through the display module (e.g., the display module160ofFIG.1orFIG.2), based on the data received from the external electronic device. In an embodiment, the electronic device101may display, through the display module160, the composition-changed first space corresponding to the changed settings of the camera application.

In operation1107, in an embodiment, the electronic device101may display a first object obtained by the camera module180on an upper layer from the layer of the composition-changed first space.

In an embodiment, the electronic device101may recognize an object from an image obtained by the camera module180, based on a pre-trained image recognition model. The image recognition model may learn a learning dataset including one or more images including a preset object. The image recognition model may be verified based on a verification dataset including one or more images labeled with a correct answer value for the object. The pre-trained image recognition model may output an object included in the input image based on receiving the image. For example, the image recognition model pre-trained to recognize a person or an animal may output a person or an animal included in the image. In an embodiment, the image recognition model may obtain only an area corresponding to the recognized person or animal by removing pixel values of the area other than the recognized person or animal. In an embodiment, the electronic device101may input the image obtained by the front camera510to the pre-trained image recognition model. The electronic device101may obtain only the area corresponding to the person and/or the animal included in the image obtained by the front camera510, based on the output of the image recognition model. The electronic device101may display the obtained object on an upper layer than the layer of the composition-changed first space.

In an embodiment, the electronic device101may display the composite image obtained by performing operations1105and1107through the display module160. In an embodiment, in the selfie mode, the electronic device101may display a mixed reality (MR) image by synthesizing an image obtained by the camera module180and an image including virtual reality content.

FIGS.12A,12B, and12Care diagrams illustrating an example of displaying an object obtained by a camera module (e.g., the camera module180ofFIG.2) and changed virtual reality content based on a change in the settings of the camera module180by an electronic device (e.g., the electronic device101ofFIG.2) according to various embodiments.

Referring toFIG.12A, in an embodiment, the electronic device101may transmit a request for changing (1210) the composition of the first space1010to the external electronic device, based on changing the settings of the camera module180into the selfie mode. For example, the electronic device101may transmit a request for changing the direction of the FOV of the avatar corresponding to the electronic device101in the virtual reality space to the opposite direction to the external electronic device. In an embodiment, the composition-changed first space1220may include a screen of a virtual reality space opposite to the first space1010before the composition is changed. In an embodiment, the electronic device101may change the settings of the camera module180into the selfie mode based on a user input. The user input may include a touch event on an object for activating the front camera (e.g., the front camera510ofFIG.5) among one or more objects displayed on the execution screen of the camera application, but is not limited thereto.

Referring toFIG.12B, in an embodiment, the electronic device101may obtain a composite image1250of an image obtained by the camera module180and an image of a virtual reality space by displaying an object1231obtained by the front camera510on the upper layer than the layer of the composition-changed first space1220. In an embodiment, the electronic device101may recognize the object1231from the image obtained by the camera module180, based on a pre-trained image recognition model. The image recognition model which overlaps that ofFIG.11is skipped from description. In an embodiment, the electronic device101may input the image1230obtained by the front camera510to the image recognition model. The electronic device101may obtain only an area corresponding to the object1231included in the image1230obtained by the front camera510, based on the output of the image recognition model. The electronic device101may display the obtained object1231on an upper layer than the layer of the composition-changed first space. In an embodiment, the electronic device101may synthesize (1240) the obtained object1231and the image1220having a composition in the direction opposite to that of the first space.

Referring toFIG.12C, in an embodiment, the electronic device101may display the obtained composite image1250through the display module160. In an embodiment, in the selfie mode, the electronic device101may display a mixed reality image by synthesizing the image1230obtained by the camera module180and the image1220including virtual reality content.

FIG.13is a flowchart illustrating an example operation of obtaining a video associated with virtual reality content by an electronic device according to various embodiments.

Referring toFIG.13, in operation1301, in an embodiment, the electronic device101(e.g., the processor120ofFIG.2) may change an operating mode of the camera application into a recording mode.

In an embodiment, the electronic device101may change the operating mode of the camera application into the recording mode, based on a user input to the object associated with video acquisition (e.g., the video object553bofFIG.5B) included in the window associated with account selection (e.g., the account selection window550ofFIG.5B).

In operation1303, in an embodiment, the electronic device101may start recording the first space displayed on the execution screen of the camera application.

In an embodiment, after establishing communication connection with the external electronic device, the electronic device101may display the first space including virtual reality content through the display module160, based on data obtained from the external electronic device. The electronic device101may start recording the first space displayed through the display module160, based on the user input to the photograph object (e.g., the photograph object537ofFIG.5). In an embodiment, the user input may include a touch event on at least a partial area of the display module160corresponding to the photograph object537, but is not limited thereto.

In operation1305, in an embodiment, the electronic device101may transmit a request for changing the composition of the first space to the first external electronic device.

In an embodiment, the electronic device101may transmit a request for changing the composition of the first space to the external electronic device to which the communication connection is established based on identifying the first event associated with the camera application while recording the first space. In an embodiment, the electronic device101may transmit a request for changing the composition of the first space1010in the opposite direction to the external electronic device, based on identifying an event for changing the operating mode of the camera application into the selfie mode while recording the first space.

In operation1307, in an embodiment, the electronic device101may display the composition-changed first space through the display module160.

In an embodiment, the electronic device101may display the composition-changed first space through the display module160, based on reception of the data generated based on the request from the external electronic device. The electronic device101may display the composition-changed first space based on changing the settings of the camera application while recording the first space.

In operation1309, in an embodiment, the electronic device101may end recording and may obtain a video for the first space.

In an embodiment, the electronic device101may end recording of the first space based on a user input and may obtain a video of the first space. In an embodiment, the electronic device101may end recording of the first space based on a user input to the photograph object537. The electronic device101may obtain a video from a time when recording of the first space starts to a time when recording of the first space ends. In an embodiment, the electronic device101may store the obtained video. The electronic device101may store address information about the first space in metadata of the obtained video. The electronic device101may obtain the data regarding the first space by establishing communication connection with the external electronic device even without one or more sequential user inputs based on the address information about the first space stored in the metadata of the video.

An electronic device according to an example embodiment may comprise a communication module comprising communication circuitry, a camera module comprising a camera, a display module comprising a display, and at least one processor operatively connected to the communication module, the camera module, and the display module. one or more of the at least one processor may be configured to execute a camera application. One or more of at least one processor may be configured to establish a communication connection with a first external electronic device corresponding to first identification information through the communication module based on obtaining first identification information while the camera application is executed. One or more of the at least one processor may be configured to display, through the display module, a first space on the execution screen of the camera application based on data received from the first external electronic device based on the communication connection. One or more of the at least one processor may be configured to transmit a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application. One or more of the at least one processor may be configured to display the composition-changed first space on the execution screen of the camera application through the display module based on receiving data generated based on the request, from the first external electronic device. One or more of the at least one processor may be configured to obtain an image of the composition-changed first space based on an input.

In an example embodiment, one or more of the at least one processor may be configured to display a first window associated with an account selection through the display module based on an input. One or more of the at least one processor may be configured to display a second window associated with input of identification information through the display module based on an input to the first window. One or more of the at least one processor may be configured to establish the communication connection with the first external electronic device corresponding to the first identification information based on obtaining the first identification information based on an input to the second window.

In an example embodiment, the first window may include at least one object corresponding to at least one account for establishing communication connection with at least one external electronic device.

In an example embodiment, one or more of the at least one processor may be configured to display a third window associated with an account setting through the display module based on an input. One or more of the at least one processor may be configured to display a fourth window associated with input of identification information through the display module based on an input to the third window. One or more of the at least one processor may be configured to display account information corresponding to second identification information on a fifth window based on obtaining the second identification information.

In an example embodiment, one or more of the at least one processor may be configured to, as at least part of transmitting the request for changing the composition of the first space to the first external electronic device based on identifying the first event associated with the camera application, transmit, to the first external electronic device, the request for changing the composition of the first space based on identifying a zoom-in event or a zoom-out event associated with the camera application.

In an example embodiment, one or more of the at least one processor may be configured to, as at least part of transmitting the request for changing the composition of the first space to the first external electronic device based on identifying the first event associated with the camera application, transmit, to the first external electronic device, the request for changing composition of the first space based on identifying an event associated with a change in a posture of the electronic device.

In an example embodiment, on or more of the at least one processor may be configured to change an operating mode of the camera application into a selfie mode based on an input. One or more of the at least one processor may be configured to transmit the request for changing the composition of the first space to the first external electronic device based on changing the operating mode of the camera application into the selfie mode. One or more of the at least one processor may be configured to display the composition-changed first space through the display module based on receiving data generated based on the request, from the first external electronic device. One or more of the at least one processor may be configured to display a first object obtained by a camera module of the electronic device on an upper layer from a layer of the composition-changed first space.

In an example embodiment, one or more of the at least one processor may be configured to input an image obtained by the camera module to a first object recognition model.

One or more of the at least one processor may be configured to obtain the first object as an output of the first object recognition model.

In an example embodiment, one or more of the at least one processor may be configured to change an operating mode of the camera application to a recording mode based on an input. One or more of the at least one processor may be configured to start recording the first space displayed on the execution screen of the camera application through the display module based on an input. One or more of the at least one processor may be configured to transmit a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application while recording the first space. One or more of the at least one processor may be configured to display the composition-changed first space on the execution screen of the camera application through the display module based on receiving data generated based on the request, from the first external electronic device. One or more of the at least one processor may be configured to end the recording based on an input and obtain a video for the first space.

In an example embodiment, the identification information may include at least one of an ID, a password, or a subscription code.

A method for obtaining an image related to virtual reality content by an electronic device according to an example embodiment may comprise executing a camera application. The method may comprise establishing a communication connection with a first external electronic device corresponding to first identification information through communication circuitry of a communication module of the electronic device based on obtaining first identification information while the camera application is executed. The method may comprise displaying, through a display of a display module of the electronic device, a first space on the execution screen of the camera application based on data received from the first external electronic device. The method may comprise transmitting a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application. The method may comprise displaying the composition-changed first space on the execution screen of the camera application through a display of the display module based on receiving data generated based on the request, from the first external electronic device. The method may comprise obtaining an image of the composition-changed first space based on an input.

In an example embodiment, the method may further comprise displaying a first window associated with an account selection through the display module based on an input. The method may comprise displaying a second window associated with input of identification information through the display module based on an input to the first window. The method may comprise establishing the communication connection with the first external electronic device corresponding to the first identification information based on obtaining the first identification information based on an input to the second window.

In an example embodiment, the first window may include at least one object corresponding to at least one account for establishing communication connection with at least one external electronic device.

In an example embodiment, the method may further comprise displaying a third window associated with an account setting through the display module based on an input. The method may further comprise displaying a fourth window associated with input of identification information through the display module based on an input to the third window. The method may further comprise displaying added account information corresponding to second identification information on a fifth window based on obtaining the second identification information.

In an example embodiment, in the method, transmitting the request for changing the composition of the first space to the first external electronic device based on identifying the first event associated with the camera application may comprise transmitting, to the first external electronic device, the request for changing the composition of the first space based on identifying a zoom-in event or a zoom-out event associated with the camera application.

In an example embodiment, in the method, transmitting the request for changing the composition of the first space to the first external electronic device based on identifying the first event associated with the camera application may comprise transmitting, to the first external electronic device, the request for changing the composition of the first space based on identifying an event associated with a change in a posture of the electronic device.

In an example embodiment, the method may further comprise changing an operating mode of the camera application into a selfie mode based on an input. The method may further comprise transmitting the request for changing the composition of the first space to the first external electronic device based on changing the operating mode of the camera application into the selfie mode. The method may further comprise displaying the composition-changed first space through the display module based on receiving data generated based on the request, from the first external electronic device. The method may further comprise displaying a first object obtained by a camera module of the electronic device on an upper layer from a layer of the composition-changed first space.

In an example embodiment, the method may further comprise inputting an image obtained by the camera module to a first object recognition model. The method may further comprise obtaining the first object as an output of the first object recognition model.

In an example embodiment, the method may further comprise changing an operating mode of the camera application to a recording mode based on an input. The method may further comprise starting recording the first space displayed on the execution screen of the camera application through the display module based on an input. The method may further comprise transmitting a request for changing a composition of the first space to the first external electronic device based on identifying a first event associated with the camera application while recording the first space. The method may further comprise displaying the composition-changed first space on the execution screen of the camera application through the display module based on receiving data generated based on the request, from the first external electronic device. The method may further comprise ending the recording based on an input and obtaining a video for the first space.

In an example embodiment, the identification information may include at least one of an ID, a password, or a subscription code.

Further, the structure of the data used in embodiments of the disclosure may be recorded in a computer-readable recording medium via various means. The computer-readable recording medium includes a storage medium, such as a magnetic storage medium (e.g., a ROM, a floppy disc, or a hard disc) or an optical reading medium (e.g., a CD-ROM or a DVD).

Example embodiments of the disclosure have been described above. The above-described embodiments are merely examples, and it will be appreciated by those of ordinary skill in the art various changes may be made thereto without departing from the scope of the present disclosure. Therefore, the disclosed embodiments should be considered from an illustrative, rather than a limiting, point of view. The scope of the disclosure includes the claims. All differences within the equivalent range should be construed as being included in the present disclosure. It will also be understood that any of the embodiment(s) described herein may be used in conjunction with any other embodiment(s) described herein.