Electronic device for displaying corresponding substitute according to change of position of external object
By integrating cameras, displays and sensors in electronic devices, dynamically adjusting the stand-in and background in the virtual space, the problem of untimely update of external objects in the prior art is solved, and the interactivity and user experience of the virtual space is improved.
Patent Information
- Application Number
- CN202411019176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-08
- Filing Date
- 2019-08-07
- Publication Date
- 2024-12-10
AI Technical Summary
The prior art is difficult to effectively update the stand-in and background in the virtual space in real time according to the location changes of external objects, resulting in poor user experience.
An electronic device is designed, including a camera, display, sensor and processor, which dynamically adjusts the viewpoint, background attributes and dimensions of the stand-alone by identifying the position changes of external objects, and applies an animation scheme to respond to user gestures and device rotation angles.
The stand-in and background updates are realized synchronized with the changes in the position of external objects, improving the user experience and enhancing the interactiveness and dynamicity of the virtual space.
Smart Images

Figure CN119105645A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with an international filing date of August 7, 2019, Chinese application number 201980052410.1, and invention name “Electronic device for displaying an avatar corresponding to an external object according to changes in the position of the external object”. Technical Field
[0002] The present disclosure relates to an electronic device for displaying an avatar corresponding to an external object according to a change in a position of the external object. Background Art
[0003] With the development of various technologies, electronic devices that provide user experience in a virtual space have been provided. For example, electronic devices that enable interaction between a user and a virtual space in a virtual space have been developed. Summary of the invention
[0004] An aspect of the present disclosure provides an electronic device for determining a viewpoint related to an avatar in a virtual space.
[0005] Another aspect of the present disclosure provides an electronic device for determining a property of a background of an avatar in a virtual space.
[0006] Another aspect of the present disclosure provides an electronic device for determining a viewing area of an avatar and / or a background.
[0007] Another aspect of the present disclosure provides an electronic device for applying an animation scheme to an avatar.
[0008] Another aspect of the present disclosure provides an electronic device for determining a rotation angle of a virtual camera in a virtual space and a mode of the electronic device.
[0009] Another aspect of the present disclosure provides an electronic device for constructing a database of information related to an avatar.
[0010] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes: a camera; a display; a sensor; a memory; and a processor, wherein the processor is configured to: display an avatar corresponding to an external object included in one or more images acquired using the camera through the display, recognize a change in position of the external object relative to the electronic device through at least one of the camera and the sensor, determine a viewpoint related to the displayed avatar based on the change in position, and display the avatar through the display based on the determined viewpoint.
[0011] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes: a camera; a display; a sensor; a memory; and a processor, wherein the processor is configured to: display an avatar corresponding to an external object included in one or more images acquired using the camera and a background of the avatar through the display, determine at least one characteristic of the avatar based on avatar information stored in the memory, determine at least one characteristic of the background based on background information stored in the memory, and control at least one of the avatar and the background displayed through the display based on at least one configuration value of configuration information stored in the memory.
[0012] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes: a camera; a display; a sensor; and a processor, wherein the processor is configured to: acquire one or more images including an external object through the camera, identify the position of the external object relative to the electronic device through at least one of the camera and the sensor, the position of the external object including the distance between the external object and the electronic device, determine whether the distance between the external object and the electronic device is within a threshold distance range, and if the distance between the external object and the electronic device is within the threshold distance range, display an avatar corresponding to the external object based on the identified position of the external object through the display, wherein the size of the avatar is determined based on the distance between the external object and the electronic device, and if the distance between the external object and the electronic device is less than or equal to the lower limit of the threshold distance range, display a specified avatar image through the display.
[0013] According to another aspect of the present disclosure, a method for operating an electronic device including a camera, a display, and a sensor is provided. The method includes: acquiring one or more images including an external object through a camera; identifying a position of the external object relative to the electronic device through at least one of the camera and the sensor, the position of the external object including the distance between the external object and the electronic device; determining whether the distance between the external object and the electronic device is within a threshold distance range; if the distance between the external object and the electronic device is within the threshold distance range, displaying an avatar corresponding to the external object based on the identified position of the external object through the display, wherein the size of the avatar is determined based on the distance between the external object and the electronic device; and if the distance between the external object and the electronic device is less than or equal to the lower limit of the threshold distance range, displaying a designated avatar image through the display. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings, in which:
[0015] Figure 1 is a block diagram of an electronic device within a network environment according to an embodiment;
[0016] Figure 2 is a block diagram of a camera module according to an embodiment;
[0017] Figure 3 is a block diagram of at least some elements included in an electronic device according to an embodiment;
[0018] Figure 4A is a flow chart of a method of an electronic device according to an embodiment;
[0019] Figure 4B is a flowchart of a method of an electronic device for generating an avatar according to an embodiment;
[0020] Figure 4C is an illustration of an avatar reflecting facial characteristics of a user according to an embodiment;
[0021] Figure 5 is a flowchart of a method of an electronic device for determining a viewpoint related to an avatar according to an embodiment;
[0022] Fig. 6A and Figure 6B is a diagram of avatars of various sizes displayed on a display device of an electronic device according to an embodiment.
[0023] Figure 7 is a flowchart of a method of an electronic device for determining an attribute of a background of an avatar according to an embodiment;
[0024] Fig. 8A is a flow chart of a method for controlling a background blur effect of an electronic device according to an embodiment;
[0025] Figure 8B is an illustration of the relationship between movement of a viewpoint and change of a viewing area according to an embodiment.
[0026] Figure 8C is an illustration of the relationship between movement of a viewpoint and change of a viewing area according to an embodiment.
[0027] Fig.9A is an illustration of a relationship between a background blur effect and a viewpoint according to an embodiment;
[0028] Fig. 9B is an illustration of a relationship between a background blur effect and a viewpoint according to an embodiment;
[0029] Fig. 9C is an illustration of a relationship between a background blur effect and a viewpoint according to an embodiment;
[0030] Fig.10 is a flow chart of a method for determining a display area in a background and an electronic device of an avatar according to an embodiment;
[0031] Fig.11 is a flowchart of a method of an electronic device for applying an animation scheme to each component of an avatar according to an embodiment;
[0032] Fig.12 is an illustration of an avatar of a component having an animation scheme applied thereto according to an embodiment;
[0033] Fig.13 is a flowchart of a method of an electronic device for rotating an avatar and displaying the rotated avatar according to an embodiment;
[0034] Fig.14A is an illustration of a situation in which at least a portion of an avatar is rotated according to an embodiment;
[0035] Fig. 14B is an illustration of a situation in which at least a portion of an avatar is rotated according to an embodiment;
[0036] Fig.15 is a flowchart of a method of an electronic device for determining a rotation of an avatar and a mode of the electronic device based on a rotation of the electronic device according to an embodiment;
[0037] Fig.16 is a flowchart of a method of an electronic device using an avatar database (DB) according to an embodiment;
[0038] Fig.17 is a diagram of an avatar DB according to an embodiment;
[0039] Fig.18A is an illustration of a background image determined from background information according to an embodiment;
[0040] Fig.18B is an illustration of a background image determined from background information according to an embodiment;
[0041] Fig. 18C is an illustration of a background image determined from background information according to an embodiment; and
[0042] Fig.19 is a diagram of a method for describing configuration information according to an embodiment. DETAILED DESCRIPTION
[0043] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments.
[0044] Reference Figure 1, the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 280, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 280) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit.For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 1160 (eg, a display).
[0045] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be specifically used for a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121 , or as part of the main processor 121 .
[0046] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 (not the main processor 121), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 280 or communication module 190) that is functionally related to the auxiliary processor 123.
[0047] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
[0048] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .
[0049] The input device 150 may receive commands or data from outside the electronic device 101 (e.g., a user) to be used by other components of the electronic device 101 (e.g., the processor 120). The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).
[0050] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.
[0051] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.
[0052] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150, or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.
[0053] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0054] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0055] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0056] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0057] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0058] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0059] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0060] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.
[0061] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a PCB). According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as a part of the antenna module 197.
[0062] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0063] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 and the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.
[0064] Figure 2 is a block diagram illustrating a camera module 280 according to various embodiments.
[0065] Reference Figure 2 , the camera module 280 may include a lens assembly 210, a flash 220, an image sensor 230, an image stabilizer 240, a memory 250 (e.g., a buffer memory), or an image signal processor 260. The lens assembly 210 may collect light emitted or reflected from an object whose image is to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 280 may include a plurality of lens assemblies 210. In this case, the camera module 280 may form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 may have the same lens properties (e.g., viewing angle, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties different from those of another lens assembly. The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.
[0066] The flash 220 may emit light, wherein the emitted light is used to enhance light reflected from an object. According to an embodiment, the flash 220 may include one or more light emitting diodes (LEDs) (e.g., red, green, blue (RGB) LEDs, white LEDs, infrared (IR) LEDs, or ultraviolet (UV) LEDs) or xenon lamps. The image sensor 230 may acquire an image corresponding to an object by converting light emitted or reflected from an object and transmitted through the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 may include one image sensor selected from a plurality of image sensors having different properties (e.g., an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor), a plurality of image sensors having the same properties, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 230 may be implemented using, for example, a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
[0067] The image stabilizer 240 may move the image sensor 230 or at least one lens included in the lens assembly 210 in a specific direction, or control an operational property of the image sensor 230 (e.g., adjust the readout timing) in response to the movement of the camera module 280 or the electronic device 201 including the camera module 280. In this way, at least a portion of the negative effects (e.g., image blur) generated due to the movement of the image being captured is allowed to be compensated. According to an embodiment, the image stabilizer 240 may sense such movement of the camera module 280 or the electronic device 101 using a gyro sensor (not shown) or an acceleration sensor (not shown) arranged inside or outside the camera module 280. According to an embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer.
[0068] The memory 250 may at least temporarily store at least a portion of an image acquired via the image sensor 230 for subsequent image processing tasks. For example, if multiple images are captured quickly or image capture is delayed due to shutter lag, the acquired original image (e.g., Bayer pattern image, high-resolution image) may be stored in the memory 250, and its corresponding copy image (e.g., low-resolution image) may be previewed via the display device 160. Then, if a specified condition is met (e.g., by a user's input or a system command), at least a portion of the original image stored in the memory 250 may be acquired and processed by, for example, the image signal processor 260. According to an embodiment, the memory 250 may be configured as at least a portion of the memory 130, or the memory 250 may be configured as a separate memory that operates independently of the memory 130.
[0069] The image signal processor 260 may perform one or more image processing on an image acquired via the image sensor 230 or an image stored in the memory 250. The one or more image processing may include, for example, depth map generation, three-dimensional (3D) modeling, panorama generation, feature point extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor 260 may perform control (e.g., exposure time control or readout timing control) on at least one of the components included in the camera module 280 (e.g., image sensor 230). The image processed by the image signal processor 260 may be stored back to the memory 250 for further processing, or the image may be provided to an external component outside the camera module 280 (e.g., memory 130, display device 160, electronic device 102, electronic device 104, or server 108). According to an embodiment, the image signal processor 260 may be configured as at least a part of the processor 120, or the image signal processor 260 may be configured as a separate processor that operates independently of the processor 120. If the image signal processor 260 is configured as a separate processor from the processor 120, at least one image processed by the image signal processor 260 may be displayed as it is by the processor 120 via the display device 160, or may be displayed after being further processed.
[0070] According to an embodiment, the electronic device 101 may include a plurality of camera modules 280 having different properties or functions. In this case, at least one camera module 280 of the plurality of camera modules 280 may form, for example, a wide-angle camera, and at least another camera module 280 of the plurality of camera modules 280 may form a telephoto camera. Similarly, at least one camera module 280 of the plurality of camera modules 280 may form, for example, a front camera, and at least another camera module 280 of the plurality of camera modules 280 may form a rear camera.
[0071] The electronic device 101 may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. However, the electronic device is not limited to those described above.
[0072] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalent forms or alternative forms for corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include any one or all possible combinations of the items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0073] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0074] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.
[0075] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).
[0076] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.
[0077] Figure 3 is a block diagram of at least some elements included in the electronic device 101 according to an embodiment.
[0078] Reference Figure 3 , the electronic device 101 may include a sensor module 176, a camera module 180, a display device 160, a processor 120, and a memory 130. The user sensing unit 310 and the rendering unit 320 may be software usable by the processor 120 or hardware included in the processor 120. The avatar DB 330 may be stored in the memory 130.
[0079] The user sensing unit 310 may determine sensing information of an external object (e.g., a user of the electronic device 101) based on information input through the camera module 180 and / or the sensor module 176. The sensing information may include at least one of a face, a facial expression, a motion, a gesture, and a position of the external object. For example, the user sensing unit 310 may detect a relative position between the external object and the electronic device 101 (e.g., a position of the external object relative to the electronic device 101) and detect a change in the relative position.
[0080] The rendering unit 320 may render the avatar based on the sensing information. For example, the rendering unit 320 may render the avatar and display the avatar through the display unit 160.
[0081] The avatar DB 330 may store information related to the avatar. For example, the avatar DB 330 may store avatar information, background information, and configuration information. Each piece of information related to the avatar may include a collection of one or more files.
[0082] The avatar information may include information for determining at least one characteristic of the avatar. For example, the avatar information may include at least one of information for determining a model of the avatar (or avatar model) (e.g., a method for defining points and lines connecting the points for displaying the avatar shape in a 3D virtual coordinate system), information for determining a color to be applied to the model of the avatar (e.g., a method for defining the RGB color to be applied to each point of the avatar model), information for determining a normal map (e.g., a method for defining the direction of points for displaying the avatar model, where the direction of a surface composed of points can be determined based on the direction of each point), information for determining a material of the avatar model, information for determining a texture of the avatar (i.e., an image for mapping a two-dimensional (2D) background image to represent a 3D model), and information for determining lighting. The avatar model may be generated based on an external object in one or more images acquired by the camera module 180, preset in the memory 130, or downloaded from the server 108. In addition, the avatar information may include an animation effect defined for each avatar, and the animation effect may be based on at least one of a distance between the electronic device 101 and the external object, an angle of the electronic device 101 relative to the external object, and a gesture of the external object. Animation effects can be specified based on user input.
[0083] The background information may include information for determining at least one characteristic of the background. In other words, the background information may include information for defining the background of the avatar in the 3D virtual coordinate system. For example, the background information may include at least one of (multiple) 2D background images, (multiple) 3D background images, and information about a method of mapping the 2D background image to a 3D graphic (e.g., a cube, a sphere, or other polyhedron).
[0084] The configuration information may include at least one configuration value for controlling at least one of the avatar and the background. For example, the configuration information may include at least one of information for defining the avatar's actions (e.g., leftward movement, rightward movement, forward movement, backward movement, and rotation of the avatar), information about the avatar's ambient light, information about a method of displaying a background image (e.g., a 2D background image or a 3D background image), information about an initial position of a virtual camera in a virtual space, and information about the sensitivity of sensing information of the avatar's motion.
[0085] The term "avatar" may refer to an object in a virtual space that corresponds to an external object included in one or more images acquired by a camera (e.g., camera module 180). The avatar may move in response to the movement of the external object detected by camera module 180 and / or sensor module 176.
[0086] The term "virtual space" may refer to a virtual space implemented by an electronic device, for example, the electronic device 101. The virtual space may correspond to a 3D virtual coordinate system.
[0087] The term "virtual camera" may refer to an object used to capture (or acquire) images including an avatar and / or background in a virtual space. The image of the virtual space captured by the virtual camera may be displayed by the display device 160 of the electronic device 101. For example, the virtual camera may correspond to at least one of a position in the virtual space (or a viewpoint or coordinates (x, y, z) and direction (α, β, γ) in the virtual space), a viewing angle (or an angle of the field of view), or a visible distance (i.e., a range between a front plane and a rear plane). The virtual camera may render an object within the viewing angle and the visible distance in a 2D form and / or a 3D form at the position (x, y, z) and direction (α, β, γ) in the virtual space, and display the object through the display device 160 or store the object in a 2D image form and / or a 3D image form.
[0088] The phrase "background of the avatar" may indicate an object other than the avatar in an image of the virtual space captured by the virtual camera. The background of the avatar may be simply referred to as the background. For example, there may be a cube surrounding the avatar in the virtual space, and images and / or textures may be mapped to each of the inner surfaces of the cube. If the virtual camera captures the avatar inside the cube, the background may be a portion of the cube in the captured image. For example, there may be a sphere surrounding the avatar in the virtual space, and multiple stitched images and / or textures may be mapped to the inner surface of the sphere. If the virtual camera captures the avatar inside the sphere, the background may be a portion of the sphere in the captured image. For example, there may be a cylinder surrounding the avatar in the virtual space, and multiple stitched images and / or textures may be mapped to the inner surface of the cylinder. If the virtual camera captures the avatar inside the cylinder, the background may be a portion of the cylinder in the captured image. The aforementioned cube, sphere, and cylinder are merely examples, and the background may be an object other than the avatar in the image captured by the virtual camera, regardless of the shape of the virtual space.
[0089] According to an embodiment, an electronic device according to various embodiments (e.g., electronic device 101) may include a camera (e.g., camera module 180), a display (e.g., display device 160), a sensor (e.g., sensor module 176), a memory (e.g., memory 130), and a processor (e.g., processor 120), and the processor may be configured to display, through the display, an avatar corresponding to an external object included in one or more images acquired using the camera, recognize a change in a position of the external object relative to the electronic device through at least one of the camera and the sensor, determine a viewpoint related to the displayed avatar based on the change in position, and display, through the display, the avatar displayed based on the determined viewpoint.
[0090] The processor may be configured to determine an attribute of the background of the avatar based on a positional relationship therebetween, and provide the background and the avatar together through a display according to the attribute.
[0091] The attributes of the background may include a blurring effect of the background, and the processor may be configured to reduce the blurring effect of the background if the distance between the external object and the electronic device increases, and increase the blurring effect of the background if the distance between the external object and the electronic device decreases.
[0092] The processor may be configured to extract feature information related to a face of a user of the electronic device identified in one or more images, and generate an avatar reflecting characteristics of the user's face based on the feature information and an avatar generation model.
[0093] The processor may be configured to reduce the size of the avatar and the avatar's background displayed through the display if the distance between the external object and the electronic device increases, and increase the size of the avatar and the avatar's background displayed through the display if the distance between the external object and the electronic device decreases.
[0094] The processor can be configured to: determine whether the distance between the external object and the electronic device is within a threshold distance range, if the distance between the external object and the electronic device is within the threshold distance range, determine the viewpoint as a position in the virtual space corresponding to the distance between the external object and the electronic device, if the distance between the external object and the electronic device is greater than or equal to an upper limit of the threshold distance range, determine the viewpoint as a position in the virtual space corresponding to the upper limit, and if the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, determine the viewpoint as a position in the virtual space corresponding to the lower limit.
[0095] If the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, the processor may be configured to display an area of the avatar corresponding to an area of the external object not captured by the camera on the display as a default avatar image.
[0096] The processor may be configured to determine a view in the background of the avatar based on the position and provide the view in the background with the avatar via the display.
[0097] The processor may be configured to determine an angle at which the electronic device moves relative to the external object and a direction of the angle, and to move the viewing area in the background by the angle in a direction opposite to the direction.
[0098] The processor may be configured to determine a view in the avatar based on the position and provide the view in the avatar via the display.
[0099] The processor may be configured to determine an angle at which the electronic device is moved relative to the external object and a direction of the angle, and to move the viewing area in the avatar by the angle in the direction.
[0100] The processor may be configured to identify a plurality of components of the avatar, apply different animation schemes to at least two of the plurality of components, and display, through the display, the avatar having the at least two components to which the different animation schemes are applied.
[0101] Different animation schemes may include a motion-based animation scheme applied to a first component among multiple components, and the processor may be configured to identify a gesture corresponding to a gesture of an external object among multiple gestures configured in the electronic device according to the motion-based animation scheme, and display the first component moving according to the identified gesture through a display.
[0102] Different animation schemes may include a tracking-based animation scheme applied to a second component among multiple components, and the processor may be configured to track changes in feature points extracted from an area of an external object corresponding to the second component according to the tracking-based animation scheme, and display the second component that adaptively moves according to the changes in the feature points through a display.
[0103] The different animation schemes may include a preloaded animation scheme applied to a third component among the plurality of components, and the processor may be configured to display, through the display, the third component displayed according to the preloaded animation scheme independently of the gesture of the external object.
[0104] The processor can be configured to determine the rotation angle of the electronic device in a first mode of the electronic device, and determine whether the rotation angle in the first mode is within a first threshold rotation range; if the rotation angle in the first mode is within the first threshold rotation range, then rotate at least a portion of the action or position of the avatar in the reverse direction to the rotation angle in the first mode; if the rotation angle in the first mode is greater than or equal to an upper limit of the first threshold rotation range, then rotate at least a portion of the action or position of the avatar in the reverse direction to the upper limit in the first mode; and if the rotation angle in the first mode is less than or equal to a lower limit of the first threshold rotation range, then rotate at least a portion of the action or position of the avatar in the reverse direction to the lower limit in the first mode, and the first mode can be one of a portrait mode and a landscape mode.
[0105] The processor can be configured to: determine the rotation angle of the electronic device in a first mode of the electronic device, determine whether the rotation angle in the first mode is within a second threshold rotation range, if the rotation angle in the first mode is within the second threshold rotation range, change at least a part of the action or position of the avatar based on the rotation angle in the first mode, if the rotation angle in the first mode is outside the second threshold rotation range, change the mode of the electronic device from the first mode to the second mode and change at least a part of the action or position of the avatar based on the rotation angle in the first mode, and the first mode can be one of the portrait mode and the landscape mode, and the second mode can be the other of the portrait mode and the landscape mode.
[0106] According to an embodiment, an electronic device according to various embodiments (e.g., electronic device 101) may include a camera (e.g., camera module 180), a display (e.g., display device 160), a sensor (e.g., sensor module 176), a memory (e.g., memory 130) and a processor (e.g., processor 120), and the processor may be configured to display an avatar corresponding to an external object included in one or more images acquired using the camera and a background of the avatar through the display, determine at least one characteristic of the avatar based on avatar information stored in the memory, determine at least one characteristic of the background based on background information stored in the memory, and control at least one of the avatar and the background displayed through the display based on at least one configuration value of configuration information stored in the memory.
[0107] The electronic device may further include an input device, and the processor may be configured to determine at least one of at least one characteristic of the avatar, at least one characteristic of the background, and at least one configuration value based on input received through the input device.
[0108] The configuration information may include an upper limit and a lower limit of a threshold distance range, and the processor may be configured to: if the distance between the external object and the electronic device is within the threshold distance range, determine the viewpoint associated with the avatar in the virtual space as a position in the virtual space corresponding to the distance between the external object and the electronic device; if the distance between the external object and the electronic device is greater than or equal to the upper limit, determine the viewpoint as a position in the virtual space corresponding to the upper limit; and if the distance between the external object and the electronic device is less than or equal to the lower limit, determine the viewpoint as a position in the virtual space corresponding to the lower limit.
[0109] The configuration information may include an upper limit and a lower limit of a first threshold rotation range, and the processor may be configured to: if the rotation angle of the electronic device in a first mode of the electronic device is within the first threshold rotation range, change at least a part of the action or position of the avatar by the rotation angle in the first mode; if the rotation angle in the first mode is greater than or equal to the upper limit, change at least a part of the action or position of the avatar by the upper limit in the first mode; and if the rotation angle in the first mode is less than or equal to the lower limit, reversely change at least a part of the action or position of the avatar by the lower limit in the first mode. The first mode may be one of the portrait mode and the landscape mode, and the second mode may be the other of the portrait mode and the landscape mode.
[0110] Figure 4A is a flow chart of a method of an electronic device according to an embodiment. The method according to the following figures can be Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0111] Reference Figure 4A In step 401, the processor 120 may display an avatar corresponding to an external object included in one or more images acquired using the camera module 180 on the display device 160. For example, the processor 120 may capture one or more images including an external object through the camera module 180, recognize the external object included in the one or more images, generate an avatar corresponding to the recognized external object in a virtual space, and display the generated avatar on the display device 160.
[0112] In step 403, the processor 120 may identify a change in the position of the external object relative to the electronic device 101 through at least one of the camera module 180 and the sensor module 176. In other words, the processor 120 may identify a change in the position of the external object relative to the electronic device 101 through the camera module 180, identify a change in the position of the external object relative to the electronic device 101 through the sensor module 176, or identify a change in the position of the external object relative to the electronic device 101 through both the camera module 180 and the sensor module 176. To this end, the processor 120 may determine the position of the external object relative to the electronic device 101 through at least one of the camera module 180 and the sensor module 176. The position of the external object relative to the electronic device 101 may include a relative position. In other words, the position of the external object relative to the electronic device 101 may be understood as the position of the electronic device 101 relative to the external object or the position of the external object relative to the electronic device 101. For example, if the external object corresponds to the origin (0, 0, 0) of the 3D coordinate system, the relative position of the electronic device 101 relative to the external object may be defined as the position of the electronic device 101 in the 3D coordinate system. Here, r represents the distance between the external object and the electronic device 101, θ represents the azimuth angle of the electronic device 101, and represents the altitude angle of the electronic device 101, wherein the azimuth angle θ and the altitude angle At least one of may be an angle of the electronic device 101 relative to the external object. In other words, the position of the external object relative to the electronic device 101 (i.e., the relative position) may be defined as the distance between the external object and the electronic device 101 and the angle of the electronic device 101 relative to the external object. For example, the position of the electronic device 101 relative to the external object may be expressed as (x, y, z). Here, Similarly, if the electronic device 101 corresponds to the origin (0, 0, 0) of the 3D coordinate system, the position of the external object relative to the electronic device 101 may be defined as the position of the external object in the 3D coordinate system Hereinafter, although it is assumed that the external object is located at the origin (0, 0, 0) of the 3D coordinate system for convenience of description, the position of the external object relative to the electronic device 101 is relative, and thus various embodiments are not limited regarding the position of the reference point.
[0113] In step 405, processor 120 may determine a viewpoint related to the displayed avatar based on the change in position. The viewpoint (or viewpoints) related to the avatar may be the position of the virtual camera relative to the avatar in the virtual space (or the position of the avatar relative to the virtual camera in the virtual space). For example, if the avatar corresponds to the origin (0, 0, 0) of the 3D virtual coordinate system, the position of the virtual camera relative to the avatar in the virtual space may be defined as the position of the virtual camera in the 3D virtual coordinate system. Here, r' represents the distance between the avatar and the virtual camera, θ' represents the azimuth angle of the virtual camera, and Represents the altitude angle of the virtual camera, where the azimuth angle θ' and the altitude angle At least one of may be an angle of the virtual camera relative to the avatar. In other words, the viewpoint may be defined as the distance between the avatar and the virtual camera and the angle of the virtual camera relative to the avatar. For example, the relative position of the electronic device 101 relative to the external object may be represented as (x', y', z'). Here, Similarly, the position of the avatar relative to the virtual camera can also be defined (ie, when the position of the virtual camera is the origin (0, 0, 0)), but for ease of description, it is assumed that the avatar is located at the origin (0, 0, 0) of the 3D virtual coordinate system.
[0114] The distance between the avatar and the viewpoint may be proportional to the distance between the external object and the electronic device 101 (e.g., the ratio thereof may be defined differently), and the angle of the viewpoint relative to the avatar may be proportional to the angle of the electronic device 101 relative to the external object (the ratio thereof may be defined differently). Therefore, the processor 120 may define a viewpoint related to the avatar and a change in the viewpoint based on a change in the position of the external object relative to the electronic device 101.
[0115] In step 407, processor 120 may display the avatar represented based on the determined viewpoint on display device 160. Processor 120 may display one or more images acquired (or captured) by a virtual camera corresponding to the viewpoint on display device 160, and the one or more images may include the avatar and / or the background of the avatar.
[0116] Figure 4B is a flow chart of a method of an electronic device according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0117] Reference Figure 4B , steps 409 and 411 can be combined with Figure 4A The step 401 is associated with.
[0118] In step 409, the processor 120 may extract feature information related to the user face recognized in the one or more images. The user may be a user of the electronic device 101, and may correspond to an external object in the one or more images acquired by the camera module 180. For example, the processor 120 may recognize the user face in the one or more images through at least one of the camera module 180 and the sensor module 176, and extract feature information related to the user face and / or feature points of the user face.
[0119] In step 411, the processor 120 may generate an avatar that reflects the facial characteristics of the user based on the feature information and the avatar generation model. The avatar generation model may be information that forms a basis for generating an avatar (e.g., basic information). For example, the avatar generation model may include at least one of the shape of the avatar and a method of defining a line connecting points used to represent the avatar shape and / or the direction of the points. The avatar generation model may be referred to as a deformation target and may be pre-stored in the memory 130 (i.e., the avatar generation model may be predefined), or may be generated by the processor 120 based on the feature information. The processor 120 may generate an avatar that reflects the facial characteristics of the user (e.g., including at least one of the arrangement, size, shape and color of eyes, nose and mouth, skin color and skin texture) based on the feature information and the avatar generation model.
[0120] Figure 4C is an illustration of an avatar reflecting facial characteristics of a user according to an embodiment.
[0121] Reference Figure 4C , the processor 120 may display the avatar 420 on the display unit 160 of the electronic device 101. The avatar 420 may include an area 430 corresponding to an area of an external object (e.g., the face of a user of the electronic device 101) from which feature information is extracted in order to generate the avatar 420. The processor 120 may track feature points related to the user's face and adaptively change the facial expression, position, and / or action of the avatar in the area 430 in response to changes in the feature points.
[0122] Although Figure 4C The avatar is shown to have a human shape, but this is only an example, and the shape of the avatar may be displayed differently. For example, the processor 120 may adaptively change the facial expression, position, and / or action of the avatar in the form of a character in area 430 according to changes in feature points through feature information related to the user's face and an avatar model in the form of a character (e.g., the form of an animal character).
[0123] The avatar 420 may be divided into a plurality of elements, and different animation schemes may be applied to the corresponding elements. For example, a tracking-based animation scheme based on feature points such as the avatar face in the region 430 may be applied to some elements of the avatar 420, and at least one of a motion-based animation scheme and a preloaded animation scheme may be applied to other elements. Fig.11 and Fig.12 Describe in more detail.
[0124] Figure 5 is a flow chart of a method for an electronic device to determine a viewpoint related to an avatar according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0125] Reference Figure 5 , steps 501, 503, 505, 507 and 509 can be Figure 4A The step 405 is associated with.
[0126] In step 501, the processor 120 may determine whether the distance (r) between the external object and the electronic device 101 is greater than the lower limit (a) of the threshold distance range and less than the upper limit (b) of the threshold distance range. In other words, the processor 120 may determine whether the distance between the external object and the electronic device 101 is within the threshold distance range. If the distance between the external object and the electronic device 101 is within the threshold distance range, the processor 120 may execute step 503. Otherwise, if the distance between the external object and the electronic device 101 is outside the threshold distance range, the processor 120 may execute step 505.
[0127] The processor 120 may determine the distance between the external object and the electronic device 101. For example, the processor 120 may identify a portion of the external object (e.g., the face of the external object) in the camera preview displayed by the display device 160, and determine the distance between the external object and the electronic device 101 based on the ratio of the area of the portion of the external object to the area of the camera preview. For example, if the ratio of the area of the portion of the external object to the area of the camera preview is relatively large, the distance between the external object and the electronic device 101 may be determined to be relatively short, and if the ratio of the area of the portion of the external object to the area of the camera preview is relatively small, the distance between the external object and the electronic device 101 may be determined to be relatively long. For example, the processor 120 may determine the distance between the external object and the electronic device 101 using a measured distance from a mounted wearable sensor to the external object, or may determine the distance using a distance measured using a time-of-flight (ToF) type 3D camera.
[0128] In step 503, the processor 120 may determine that the viewpoint is a position in the virtual space corresponding to the distance between the external object and the electronic device. In other words, the processor 120 may arrange the virtual camera at a position in the virtual space corresponding to the distance between the external object and the electronic device. Therefore, if the distance between the external object and the electronic device increases within a threshold distance range, the distance between the avatar and the virtual camera increases in the virtual space (i.e., the viewing angle (or angle of field of view) of the virtual camera decreases), so that the size of the avatar and / or background displayed on the display device 160 of the electronic device 101 may increase. Otherwise, if the distance between the external object and the electronic device decreases within a threshold distance range, the distance between the avatar and the virtual camera decreases in the virtual space (i.e., the viewing angle (or angle of field of view) of the virtual camera increases), so that the size of the avatar and / or background displayed on the display device 160 of the electronic device 101 may decrease.
[0129] For example, the percentage corresponding to the lower limit (a) of the threshold distance range may be 40%, and the percentage corresponding to the upper limit (b) may be 110%. If the percentage in the camera preview displayed by the display device 160 of the electronic device 101 is greater than 40% and less than 110% (i.e., if the distance between the external object and the electronic device 101 is within the threshold distance range), the processor 120 may determine the viewpoint to be a position in the virtual space corresponding to the percentage in the camera preview displayed by the display device 160 of the electronic device 101, or may move the avatar and / or background to a position in the virtual space corresponding to the percentage in the camera preview.
[0130] In step 505, the processor 120 may determine whether the distance between the external object and the electronic device is greater than or equal to the upper limit (b) of the threshold distance range. If the distance between the external object and the electronic device is greater than or equal to the upper limit (b) of the threshold distance range, the processor 120 may execute step 507. However, if the distance between the external object and the electronic device is less than the upper limit (b) of the threshold distance range, the processor 120 may execute step 509.
[0131] In step 507, the processor 120 may determine the viewpoint as a position in the virtual space corresponding to the upper limit (b) of the threshold distance range. In other words, the processor 120 may arrange the virtual camera at a position in the virtual space corresponding to the upper limit (b) of the threshold distance range. Therefore, under the condition that the distance between the external object and the electronic device is greater than or equal to the upper limit (b) of the threshold distance range, even if the distance between the external object and the electronic device increases, the distance between the avatar and the virtual camera is maintained at a distance corresponding to the upper limit of the threshold distance range (i.e., the viewing angle of the virtual camera is maintained), so that the size of the avatar and / or background displayed by the display device 160 of the electronic device 101 can be maintained.
[0132] For example, the percentage corresponding to the lower limit (a) of the threshold distance range may be 40%, and the percentage corresponding to the upper limit (b) may be 110%. If the percentage in the camera preview displayed by the display device 160 of the electronic device 101 is greater than or equal to 110% (i.e., if the distance between the external object and the electronic device 101 is less than or equal to the upper limit of the threshold distance range), the processor 120 may determine the viewpoint to be a position in the virtual space corresponding to the percentage 110%, regardless of the percentage in the camera preview displayed by the display device 160 of the electronic device 101, or may move the avatar and / or background to a position in the virtual space corresponding to 110%.
[0133] In step 509, the processor 120 may determine the viewpoint as a position in the virtual space corresponding to the lower limit (a) of the threshold distance range. In other words, the processor 120 may arrange the virtual camera at a position in the virtual space corresponding to the lower limit (a) of the threshold distance range. Therefore, under the condition that the distance between the external object and the electronic device is less than or equal to the lower limit (a) of the threshold distance range, even if the distance between the external object and the electronic device decreases, the distance between the avatar and the virtual camera in the virtual space is maintained at a distance corresponding to the lower limit of the threshold distance range (i.e., the viewing angle of the virtual camera is maintained), so that the size of the avatar and / or background displayed by the display device 160 of the electronic device 101 can be maintained.
[0134] For example, the percentage corresponding to the lower limit (a) of the threshold distance range may be 40%, and the percentage corresponding to the upper limit (b) may be 110%. If the percentage in the camera preview displayed by the display device 160 of the electronic device 101 is less than or equal to 40% (i.e., if the distance between the external object and the electronic device 101 is less than or equal to the lower limit of the threshold distance range), the processor 120 may determine the viewpoint to be a position in the virtual space corresponding to the percentage of 40%, regardless of the percentage in the camera preview displayed by the display device 160 of the electronic device 101, or may move the avatar and / or background to a position in the virtual space corresponding to 40%.
[0135] If the distance between the external object and the electronic device 101 is less than the lower limit of the threshold distance range, a portion of the external object may not be displayed in the camera preview of the display device 160. In other words, a portion of the area of the external object may not be captured by the camera module 180. In this case, the processor 120 may represent the area of the avatar corresponding to the area of the external object not captured by the camera module 180 as a default avatar image. The processor 120 may change the area of the avatar corresponding to the area of the external object captured by the camera module 180 in the display device 160 in response to the movement of the area of the external object. Otherwise, the processor 120 may not change the area of the avatar corresponding to another area of the external object not captured by the camera module 180 in the display device 160, but may remain the same as the default avatar image despite the movement of the external object. The default avatar image is an image that is the basis of the avatar image, and may be an initial avatar image configured regardless of the movement of the external object.
[0136] If the distance between the external object and the electronic device 101 is outside the threshold distance range, the processor 120 may determine the viewpoint as a position in the virtual space corresponding to a distance within the threshold distance range, render an avatar having a size corresponding to the distance within the threshold distance range, and display the avatar on the display device 160.
[0137] Fig. 6A and Figure 6B is a diagram of avatars of various sizes displayed on a display device of an electronic device according to an embodiment.
[0138] Reference Fig. 6A , the processor 120 may display the avatar 610 on the display device 160 at a size corresponding to the lower limit (a) of the threshold distance range. In other words, the processor 120 may determine the viewpoint to be a position in the virtual space corresponding to the lower limit (a) of the threshold distance range. In this case, under the condition that the distance between the external object and the electronic device 101 is the lower limit of the threshold distance range, even if the external object and the electronic device 101 are close to each other, the processor 120 may maintain the viewpoint at the position in the virtual space corresponding to the lower limit of the threshold distance range, and Fig. 6A The avatar 610 is displayed in a size displayed on the display device 160.
[0139] Reference Figure 6B, the processor 120 may display the avatar 610 on the display device 160 at a size corresponding to the upper limit (b) of the threshold distance range. In other words, the processor 120 may determine the viewpoint as a position in the virtual space corresponding to the upper limit (b) of the threshold distance range. In this case, under the condition that the distance between the external object and the electronic device 101 is greater than or equal to the upper limit of the threshold distance range, even if the external object and the electronic device 101 are far away from each other, the processor 120 may maintain the viewpoint at the position in the virtual space corresponding to the upper limit of the threshold distance range, and Figure 6B The avatar 610 is displayed in a size displayed on the display device 160.
[0140] The processor 120 may display a value smaller than 100 on the display device 160. Fig. 6A The avatar shown in or greater than Figure 6B For example, if the distance between the external object and the electronic device 101 is within the threshold distance range, the processor 120 may display a distance less than 100 m on the display device 160. Fig. 6A The avatar shown in or greater than Figure 6B A stand-in for the avatar shown in .
[0141] Figure 7 is a flow chart of a method of an electronic device for determining an attribute of a background of an avatar according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0142] Reference Figure 7 , step 701 and step 703 can be combined with Figure 4A The step 407 is associated with.
[0143] In step 701, the processor 120 may determine the attributes of the background of the avatar based on the position of the external object relative to the electronic device 101. For example, the processor 120 may determine different background attributes according to the distance between the external object and the electronic device 101. The background attributes may include at least one of blur effect and brightness.
[0144] In step 703, the processor 120 may provide a background and an avatar according to the determined attributes through the display device 160. For example, the processor 120 may apply different blur effects according to the distance between the external object and the electronic device 101, and may display the background and the avatar reflecting the corresponding blur effects on the display device 160. For example, the processor 120 may apply different brightness according to the distance between the external object and the electronic device 101, and may display the background and the avatar with corresponding brightness on the display device 160.
[0145] In the following, Fig. 8A , Figure 8B and Figure 8C An example of operation of the electronic device 101 for controlling a background blur effect based on a position of an external object relative to the electronic device 101 is described in more detail below.
[0146] Fig. 8A is a flow chart of a method for controlling a background blur effect of an electronic device according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0147] Reference Fig. 8A , steps 801, 803, 805, 807 and 809 can be combined with Figure 7 The step 701 is associated with.
[0148] In step 801, the processor 120 may determine whether the distance between the external object and the electronic device 101 increases. For example, the processor 120 may determine whether the distance between the external object and the electronic device 101 increases based on at least one of the size of the external object in the camera preview displayed on the display device 160, the measurement by the wearable sensor installed in the external device, and the measurement using a ToF type 3D camera. If the distance between the external object and the electronic device 101 increases, the processor 120 may perform steps 803 and 805. Otherwise, if the distance between the external object and the electronic device 101 does not increase (i.e., the distance decreases), the processor 120 may perform steps 807 and 809.
[0149] In step 803, the processor 120 may reduce the background blur effect. In step 805, the processor 120 may reduce the size of the avatar and the background displayed on the display device 160 (i.e., the viewing angle of the virtual camera may be reduced). If the distance between the external object and the electronic device 101 increases, the distance between the avatar and the viewpoint also increases, and thus, the size of the avatar and the background displayed on the display device 160 may be reduced. Since the size of the avatar is reduced, the processor 120 may reduce the background blur effect so as to display the background more clearly. Although Fig. 8A It is shown that step 803 is performed before step 805, but this is only an example, and step 805 may be performed before step 803. Alternatively, step 803 and step 805 may be performed at the same time. For example, only one of step 803 and step 805 may be performed. In other words, the remaining one of step 803 and step 805 may be omitted.
[0150] In step 807, the processor 120 may increase the background blur effect. In step 809, the processor 120 may increase the size of the avatar and the background displayed on the display device 160 (i.e., the viewing angle of the virtual camera may be increased). If the distance between the external object and the electronic device 101 decreases, the distance between the avatar and the viewpoint also decreases, and thus, the size of the avatar and the background displayed on the display device 160 may increase. Since the size of the avatar increases, the processor 120 may increase the background blur effect to further emphasize the avatar. Although Fig. 8A It is shown that step 807 is performed before step 809, but this is only an example, and step 809 may be performed before step 807. Alternatively, step 807 and step 809 may be performed at the same time. For example, only one of step 807 and step 809 may be performed. In other words, the remaining one of step 807 and step 809 may be omitted.
[0151] In step 801, under the condition that the distance between the external object and the electronic device 101 is within the threshold distance range, the processor 120 determines whether the distance between the external object and the electronic device 101 increases. Otherwise, even if the distance between the external object and the electronic device 101 increases, the processor 120 may not reduce the background blur effect in step 803 (i.e., may remain the same), and may not reduce the size of the avatar or the background in step 805 (i.e., may remain the same). In addition, even if the distance between the external object and the electronic device 101 decreases, the processor 120 may not increase the background blur effect in step 807 (i.e., may remain the same), and may not increase the size of the avatar and the background in step 809 (i.e., may remain the same).
[0152] The processor 120 may control the illumination of the background based on the distance between the external object and the electronic device 101. For example, if the distance between the external object and the electronic device 101 increases, the processor 120 may increase the brightness of the background to make the background more clearly visible. Otherwise, if the distance between the external object and the electronic device 101 decreases, the processor 120 may decrease the brightness of the background to further highlight the avatar.
[0153] Figure 8B is an illustration of the relationship between movement of a viewpoint and change of a viewing area according to an embodiment. Figure 8C is an illustration of the relationship between movement of a viewpoint and change of a viewing area according to an embodiment.
[0154] Reference Figure 8BAs the viewpoint 840 is closer to the avatar 810 (i.e., as the distance between the external object and the electronic device 101 decreases), the viewing angle of the virtual camera corresponding to the viewpoint 840 may increase, and the area captured by the virtual camera in the virtual space (hereinafter referred to as the capture area 830) may be relatively reduced. Therefore, as the viewpoint 840 is closer to the avatar 810, the sizes of the avatar 810 and the background 820 displayed on the display device 160 of the electronic device 101 may become relatively larger.
[0155] Reference Figure 8C As the viewpoint 840 moves away from the avatar 810 (i.e., as the distance between the external object and the electronic device 101 increases), the viewing angle of the virtual camera may decrease and the capture area 830 may increase relatively. Therefore, as the viewpoint 840 moves away from the avatar 810, the sizes of the avatar 810 and the background 820 displayed on the display device 160 of the electronic device 101 may become relatively smaller.
[0156] Fig.9A is an illustration of a relationship between a background blur effect and a viewpoint according to an embodiment, Fig. 9B is an illustration of the relationship between background blur effect and viewpoint according to an embodiment. Fig. 9C is a diagram illustrating the relationship between background blur effect and viewpoint according to an embodiment. Fig.9A , Fig. 9B and Fig. 9C In the virtual space, the distance between the avatar and the viewpoint may be proportional to the distance between the external object and the electronic device 101.
[0157] Reference Fig.9A , Fig. 9B and Fig. 9C , the distance between the external object and the electronic device 101 is Fig.9A The shortest case is Fig. 9B In the case of Fig.9A The distance is long and Fig. 9C Therefore, the size of the avatar 910 and the background 920 displayed on the display device 160 (i.e., the viewing angle of the virtual camera) is Fig.9A The maximum value is Fig. 9B In the case of less than Fig.9A size, and in Fig. 9C The smallest case.
[0158] exist Fig.9A In the case of , the blur effect of the background 920 may be the largest, where the size of the avatar 910 is the largest. Therefore, the processor 120 may increase the blur effect of the background 920 to further emphasize the relatively large avatar 910. Otherwise, in Fig. 9CIn the case of , the blurring effect of the background 920 can be minimized, wherein the size of the avatar 910 is minimized. Therefore, the processor 120 can reduce the blurring effect of the background 920 so as to more clearly display the relatively large background 920 on the display device 160.
[0159] Fig. 9B The background blur effect can be less than Fig.9A and greater than Fig. 9C In other words, the background blur effect can be continuously changed according to the distance between the external object and the electronic device 101. For example, Fig. 9B The background blur effect can be achieved with Fig.9A or Fig. 9C In other words, the background blur effect may be discontinuously changed according to the distance between the external object and the electronic device 101. For example, if the distance between the external object and the electronic device 101 is greater than a threshold (or less than a threshold), the background blur effect may be changed, and the number of thresholds may be one or more.
[0160] Although Fig.9A , Fig. 9B and Fig. 9C The background blur effect is shown by way of example, but Fig.9A , Fig. 9B and Fig. 9C The embodiments of can be applied to other background attributes. For example, Fig.9A , Fig. 9B and Fig. 9C The embodiments can also be applied to the brightness of the background.
[0161] Fig.10 is a flow chart of a method of an electronic device for determining a view in a background and an avatar according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0162] Reference Fig.10 , steps 1001, 1003, 1005 and 1007 can be Figure 4A The step 407 is associated with.
[0163] In step 1001, the processor 120 may determine the fields of view in the background and the avatar based on the position of the external object relative to the electronic device 101. The fields of view in the background may be an area captured by the virtual camera and displayed on the display device 160 among all areas of the background arranged in the virtual space. The fields of view in the avatar may be an area in the 3D model of the avatar in the virtual space that is captured by the virtual camera and displayed on the display device 160. The fields of view may include at least one of the fields of view in the background and the fields of view in the avatar. The processor 210 may determine the viewpoint based on the position of the external object relative to the electronic device 101, and determine the fields of view in the background and the avatar based on the viewpoint.
[0164] In step 1003, processor 120 may display the view on display device 160. Processor 120 may determine the distance between the avatar and the virtual camera in the virtual space and the angle of the virtual camera relative to the avatar, and may display the background and the area of the avatar captured by the virtual camera at the determined angle and distance.
[0165] In step 1005, the processor 120 may determine whether the angle of the electronic device 101 relative to the external object has changed. For example, the angle of the electronic device 101 relative to the external object may move based on the movement of at least one of the electronic device 101 and the external object. The processor 120 may detect the movement of at least one of the external object and the electronic device 101, and may determine whether the angle of the electronic device 101 has changed relative to the external object. If the angle of the electronic device 101 has changed relative to the external object, the processor 120 may perform step 1007. If the angle of the electronic device 101 has not changed relative to the external object, in step 1003, the processor 120 may determine whether the angle of the electronic device 101 has changed relative to the external object.
[0166] In step 1007, the processor 120 may move the field of view based on the changed angle of the electronic device 101 relative to the external object. The processor 120 may determine the changed angle of the electronic device 101 relative to the external object and the direction of the angle. The direction of the angle may indicate whether the angle is increasing in a positive direction or decreasing in a negative direction. The processor 120 may determine the changed angle of the virtual camera relative to the avatar and the direction of the angle in the virtual space based on the changed angle of the electronic device 101 relative to the external object and the direction of the angle. For example, the changed angle of the virtual camera relative to the avatar may be the same as or proportional to the angle of movement of the electronic device relative to the external object. The direction of the changed angle of the virtual camera relative to the avatar may be the same as the direction of the changed angle of the electronic device relative to the external object.
[0167] The processor 120 can determine the angle of change of the electronic device 101 relative to the external object and the direction of the angle, and move the field of view of the background in the direction opposite to the corresponding direction by the corresponding angle in the background. Since the virtual camera in the virtual space captures an area moved from the reference area in the background by the corresponding angle in the direction opposite to the corresponding direction according to the movement of the electronic device 101, the processor 120 can move the field of view to the captured background area.
[0168] The processor 120 can determine the angle of change of the electronic device 101 relative to the external object and the direction of the angle, and move the field of view of the avatar in the corresponding direction by the corresponding angle in the avatar. Since the virtual camera in the virtual space captures the area moved from the reference area in the 3D model of the avatar in the corresponding direction by the corresponding angle according to the movement of the electronic device 101, the processor 120 can move the field of view to the captured avatar area.
[0169] Fig.11 is a flow chart of a method for an electronic device to apply an animation scheme to each component of an avatar according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0170] Reference Fig.11 , steps 1101, 1103 and 1105 can be Figure 4A The step 401 is associated with.
[0171] In step 1101, the processor 120 may identify a plurality of components of the avatar. The 3D model of the avatar in the virtual space may be divided into a plurality of regions, and each of the plurality of components of the avatar may correspond to each of the regions resulting from the division.
[0172] In step 1103, the processor 120 may apply different animation schemes to at least two of the plurality of components. If different animation schemes are applied to all of the plurality of components, the plurality of components may be divided according to the animation schemes. In other words, the animation scheme may be a reference for dividing the components of the avatars. The animation scheme may include at least one of a tracking-based animation scheme, a motion-based animation scheme, and a preloaded animation scheme. The processor 120 may apply an animation scheme corresponding to each component of the avatar.
[0173] In step 1105, the processor 120 may display an avatar having at least two components to which different animation schemes are applied on the display device 160. Each component of the avatar may be animated according to the animation scheme applied to the corresponding component, and the processor 120 may display the components of the avatar moving according to the animation scheme on the display device 160.
[0174] The motion-based animation scheme may be applied to a first component among multiple components of an avatar. For example, multiple gestures of the motion-based animation scheme may be stored or configured in the memory 130 of the electronic device 101. The processor 120 may identify a gesture corresponding to a gesture of an external object among multiple gestures configured in the memory 130 according to the motion-based animation scheme, and display the first component that moves in response to the identified gesture on the display device 160. The gesture corresponding to the gesture of an external object among the multiple gestures stored in the memory 130 may be the same as or different from the gesture of the external object. In addition, if a gesture corresponding to the gesture of an external object among the multiple gestures configured in the memory 130 does not exist, the processor 120 may display the first component so that the first component does not move on the display device 160.
[0175] The tracking-based animation scheme may be applied to a second component among the multiple components of the avatar. The processor 120 may extract feature points in a region of an external object corresponding to the second component according to the tracking-based animation scheme, track changes in the extracted feature points, and display the second component that adaptively moves according to the changes in the feature points on the display device 160. More specifically, the processor 120 may extract feature points in a region of an external object corresponding to the second component according to the tracking-based animation scheme, track changes in the extracted feature points to generate a deformation target, and reflect the movement of the deformation target in the second component to display the second component, so that the second component moves on the display device 160.
[0176] A preloaded animation scheme may be applied to a third component among the multiple components of the avatar. The processor 120 may display a third component displayed independently of a gesture of an external object on the display device 160 according to the preloaded animation scheme. For example, the processor 120 may display a third component that does not move (i.e., a stationary third component) on the display device 160, regardless of the gesture of the external object. For example, the processor 120 may display a third component that periodically repeats a predetermined action (e.g., an idle action) or moves according to a preset pattern on the display device 160, regardless of the gesture of the external object. The processor 120 is substantially in a stopped state, but may display a third component that performs a specific animation (e.g., making a "V" shape with a finger) on the display device 160 in response to detecting a specific event (e.g., an input detected by the sensor module 176 and / or the camera 180).
[0177] The same animation scheme can be applied to all components in the avatar's multiple components. In this case, the avatar may not be divided into multiple components.
[0178] Fig.12is an illustration of an avatar of a component with an animation scheme applied, according to an embodiment.
[0179] Reference Fig.12 , the multiple components of the avatar 1250 may include a first component 1210 , a second component 1220 , and a third component 1230 .
[0180] The motion-based animation scheme may be applied to the first component 1210. For example, the processor 120 may recognize a gesture corresponding to the gesture of the external object 1260 among a plurality of gestures configured in the memory 130 according to the motion-based animation scheme, and display the first component 1210 moved according to the recognized gesture on the display device 160.
[0181] The tracking-based animation scheme may be applied to the second component 1220. For example, the processor 120 may extract feature points from the region 1240 of the external object 1260 corresponding to the second component 1220 according to the tracking-based animation scheme, track changes in the extracted feature points to generate a deformation target, and reflect the movement of the deformation target to the second component 1220 to display the second component 1220, so that the second component 1220 moves on the display device 160.
[0182] The preloaded animation scheme may be applied to the third component 1230. For example, the processor 120 may display the third component 1230 displayed independently of the gesture of the external object according to the preloaded animation scheme on the display device 160. The third component 1230 may be displayed on the display device 160 in a state where the third component 1230 does not move, periodically repeats an idle action, moves according to a preset pattern, or performs a certain animation in response to detecting a certain event.
[0183] The avatar 1250 may be divided into a greater number of components than three components (e.g., the first component 1210, the second component 1220, and the third component 1230), and different animation schemes may be applied to the corresponding components. In other words, the motion-based animation scheme, the tracking-based animation scheme, and the preloaded animation scheme are merely examples of animation schemes, but the animation schemes are not limited thereto, and other animation schemes may also be defined differently.
[0184] Fig.13 is a flow chart of a method of an electronic device for rotating an avatar and displaying the rotated avatar according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0185] Reference Fig.13In step 1301, the processor 120 may determine the rotation angle of the electronic device 101 in the first mode of the electronic device 101. The mode of the electronic device 101 may include at least one of the first mode and the second mode. For example, the first mode may be a portrait mode, and the second mode may be a landscape mode. For example, the first mode may be a landscape mode, and the second mode may be a portrait mode. The portrait mode and the landscape mode may be divided according to the orientation of the electronic device 101 relative to the ground. For example, the processor 120 may determine the orientation of the electronic device 101 relative to the ground through the sensor (e.g., an acceleration sensor, a gyroscope sensor, and a magnetic sensor) of the sensor module 176, and determine the mode of the electronic device 101 based on the orientation of the electronic device 101. The rotation angle of the electronic device 101 may be defined for each mode. For example, the rotation angle of the electronic device 101 in the portrait mode may be an angle at which the electronic device 101 rotates compared to a reference rotation angle in the portrait mode, and the reference rotation angle in the portrait mode may be an angle at which the electronic device 101 rotates when the short side of the electronic device 160 is parallel to the ground and the long side of the electronic device 160 is perpendicular to the ground. In addition, the rotation angle of the electronic device 101 in the landscape mode may be an angle at which the electronic device 101 is rotated compared to a reference rotation angle in the landscape mode, and the reference rotation angle in the landscape mode may be an angle at which the electronic device 101 is rotated when the long side of the electronic device 160 is parallel to the ground and the short side of the electronic device 101 is perpendicular to the ground. The rotation angle may include at least one of a rotation angle in the x direction, a rotation angle in the y direction, and a rotation angle in the z direction in the 3D coordinate system. Similarly, the rotation angle of a virtual camera in a virtual space may be defined. For example, the rotation angle of a virtual camera in a virtual space may be an angle at which the virtual camera is rotated compared to a reference rotation angle of the virtual camera, and the reference rotation angle of the virtual camera may be the same regardless of the mode of the electronic device 101. The reference rotation angle of the virtual camera may be a rotation angle when no rotation transformation is applied in a 3D virtual coordinate system.
[0186] In step 1303, the processor 120 may determine whether the rotation angle in the first mode is within the first threshold rotation range. For example, the processor 120 may determine the rotation angle of the electronic device 101 in the first mode through at least one sensor of the sensor module 176, and determine whether the determined rotation angle in the first mode is within the first threshold rotation range. If the rotation angle in the first mode is within the first threshold rotation range, the processor 120 may execute step 1305. Otherwise, if the rotation angle in the first mode is outside the first threshold rotation range, the processor 120 may execute step 1307.
[0187] In step 1305, the processor 120 may reversely rotate at least a portion of the avatar's action or position to the rotation angle in the first mode. In other words, the processor 120 may display the avatar reversely rotated to the rotation angle in the first mode through the display device 160 by rotating the virtual camera to the rotation angle in the first mode. The processor 120 may rotate the virtual camera in the virtual space to the rotation angle in the first mode, and display an image of the virtual space captured by the rotated virtual camera on the display device 160 (wherein the image of the virtual space may include the avatar and / or the background). In other words, if the rotation angle of the electronic device 101 in the first mode increases within the first threshold rotation range, the processor 120 may increase the rotation angle of the avatar displayed on the display device 160 in the opposite direction.
[0188] In step 1307, the processor 120 may determine whether the rotation angle of the electronic device 101 in the first mode is greater than the upper limit of the first threshold rotation range. If the rotation angle in the first mode is greater than the upper limit of the first threshold rotation range, the processor 120 may execute step 1309. Otherwise, if the rotation angle in the first mode is less than or equal to the lower limit of the first threshold rotation range, the processor 120 may execute step 1311.
[0189] In step 1309, the processor 120 may reversely rotate at least a portion of the action or position of the avatar to the upper limit in the first mode. In other words, the processor 120 may display the avatar reversely rotated to the upper limit in the first mode on the display device 160 by rotating the virtual camera to the upper limit of the first threshold rotation range. The processor 120 may rotate the virtual camera in the virtual space to the upper limit of the first threshold rotation range, and display the image of the virtual space captured by the rotated virtual camera on the display device 160 (the image of the virtual space may include the avatar and / or the background). In other words, under the condition that the rotation angle of the electronic device 101 is greater than the upper limit of the first threshold rotation range in the first mode, even if the rotation angle of the electronic device 101 increases, the processor 101 may maintain the rotation angle of the avatar displayed on the display device 160 to the upper limit of the first threshold rotation range without increasing the rotation angle. Therefore, the distortion of the avatar caused by excessive rotation of the avatar can be reduced and the user experience can be improved.
[0190] In step 1311, the processor 120 may reversely rotate at least a portion of the action or position of the avatar to the lower limit in the first mode. In other words, the processor 120 may display the avatar that is reversely rotated to the lower limit in the first mode on the display device 160 by rotating the virtual camera to the lower limit of the first threshold rotation range. The processor 120 may rotate the virtual camera in the virtual space to the lower limit of the first threshold rotation range, and display the image of the virtual space captured by the rotated virtual camera through the display device 160 (for example, the image of the virtual space may include the avatar and / or the background). In other words, under the condition that the rotation angle of the electronic device 101 is greater than the lower limit of the first threshold rotation range in the first mode, even if the rotation angle of the electronic device 101 is reduced, the processor 101 may maintain the rotation angle of the avatar displayed on the display device 160 to the lower limit of the first threshold rotation range without reducing the rotation angle. Therefore, the distortion of the avatar caused by excessive rotation of the avatar can be reduced and the user experience can be improved.
[0191] Fig.14A is an illustration of a case where at least a portion of an avatar is rotated according to an embodiment, and Fig. 14B is an illustration of a case where at least a portion of an avatar is rotated according to an embodiment.
[0192] Reference Fig.14A , the processor 120 may display the avatar 1410 reversely rotated to the lower limit of the first threshold rotation range on the display device 160. In other words, the processor 120 may rotate the virtual camera to the lower limit of the first threshold rotation range in the virtual space. In this case, under the condition that the rotation angle of the electronic device 101 is less than or equal to the lower limit of the first threshold rotation range, even if the rotation angle of the electronic device 101 is reduced, the processor 120 may maintain the rotation angle of the avatar 1410 without reducing the rotation angle, and thus the distortion of the avatar 1410 due to the excessive rotation of the avatar 1410 may be reduced.
[0193] Reference Fig. 14B , the processor 120 may display the avatar 1410 reversely rotated to the upper limit of the first threshold rotation range on the display device 160. In other words, the processor 120 may rotate the virtual camera to the upper limit of the first threshold rotation range in the virtual space. In this case, under the condition that the rotation angle of the electronic device 101 is less than or equal to the lower limit of the first threshold rotation range, even if the rotation angle of the electronic device 101 is reduced, the processor 120 may maintain the rotation angle of the avatar 1410 without increasing the rotation angle, and the distortion of the avatar 1410 caused by the excessive rotation of the avatar 1410 may be reduced.
[0194] The processor 120 may display an avatar 1410 rotated by a rotation angle within a first threshold rotation range on the display device 160. For example, if the rotation angle of the electronic device 101 is within the first threshold rotation range, the processor 120 may display an avatar 1410 rotating in the opposite direction of the rotation angle of the electronic device 101 on the display device 160.
[0195] Regardless of the rotation angle of the electronic device 101, some components of the avatar 1410 may not rotate. For example, the processor 120 may rotate the head 1430 of the avatar 1410 according to the rotation of the electronic device 101, but may not rotate the body part 1420 of the avatar 1410. The components of the avatar 1410 that rotate according to the rotation of the electronic device 101 may be determined based on the animation scheme applied to the components of the avatar 1410. For example, a preloaded animation scheme may be applied to the body part 1420, and the processor 120 may not rotate the components of the avatar 1410 to which the preloaded animation scheme is applied.
[0196] Fig.15 is a flowchart of a method of an electronic device for determining a rotation of an avatar based on the electronic device and a mode of the electronic device according to an embodiment.
[0197] Reference Fig.15 In step 1501, the processor 120 may determine the rotation angle of the electronic device 101 in the first mode of the electronic device 101. The processor 120 may determine the rotation angle of the electronic device 101 in the first mode through one or more sensors (e.g., an acceleration sensor, a gyroscope sensor, and a magnetic sensor) of the sensor module 176. The mode of the electronic device 101 may include at least one of the first mode and the second mode. For example, the first mode may be a portrait mode, and the second mode may be a landscape mode. For example, the first mode may be a landscape mode, and the second mode may be a portrait mode.
[0198] In step 1503, the processor 120 may determine whether the rotation angle in the first mode is within the second threshold rotation range. If the rotation angle in the first mode is within the second threshold rotation range, the processor 120 may execute step 1505. Otherwise, if the rotation angle in the first mode is outside the second threshold rotation range, the processor 120 may execute step 1507.
[0199] In step 1505, the processor 120 may change at least a portion of the action or position of the avatar based on the rotation angle in the first mode. In other words, the processor 120 may display the rotated avatar based on the rotation angle in the first mode. For example, the processor 120 may determine whether the rotation angle in the first mode is within a first threshold rotation range, such as Fig.13In step 1303 , the steps after step 1303 are executed according to the result, and the rotating avatar is displayed on the display device 160 .
[0200] In step 1507, the processor 120 may change the mode of the electronic device 101 from the first mode to the second mode. In other words, when the rotation angle in the first mode deviates from the second threshold rotation range, the processor 120 may change the mode of the electronic device 101. The upper limit and the lower limit of the second threshold rotation range may be thresholds for changing the mode of the electronic device 101 (or for determining a change in the mode of the electronic device 101).
[0201] In step 1509, the processor 120 may determine the rotation angle of the electronic device in the second mode. The processor 120 may determine that the reference rotation angle has changed according to the change of the mode, and may determine the rotation angle of the electronic device 101 in the second mode based on the changed reference rotation angle. For example, the processor 120 may determine the angle by which the electronic device 101 rotates relative to the reference rotation angle in the second mode through one or more sensors of the sensor module 176. For example, the processor 120 may reflect the change amount of the reference rotation angle between the first mode and the second mode in the rotation angle of the electronic device 101 in the first mode, and determine the rotation angle of the electronic device 101 in the second mode.
[0202] In step 1511, the processor 120 may change at least a portion of the action or position of the avatar based on the rotation angle in the second mode. In other words, the processor 120 may display the rotated avatar based on the rotation angle in the second mode. For example, the processor 120 may determine whether the rotation angle in the second mode is within a first threshold rotation range, such as Fig.13 In step 1303 , operations after step 1303 are performed according to the result, and the rotating avatar is displayed on the display device 160 .
[0203] The first threshold rotational range may be included in the second threshold rotational range.
[0204] The second threshold rotation range may be included in the first threshold rotation range.
[0205] The upper limit and the lower limit of the first threshold rotation range may be respectively smaller than the upper limit and the lower limit of the second threshold rotation range.
[0206] The upper limit and the lower limit of the first threshold rotation range may be respectively greater than the upper limit and the lower limit of the second threshold rotation range.
[0207] The first threshold rotational range may be the same as the second threshold rotational range.
[0208] Fig.16is a flow chart of a method of an electronic device using an avatar DB according to an embodiment. The operation may be performed by Figure 1 electronic device 101, Figure 3 The electronic device 101 or the processor 120 of the electronic device 101 executes.
[0209] Reference Fig.16 In step 1601, the processor 120 may determine at least one characteristic of the avatar based on the avatar information stored in the memory 130. For example, the avatar information may be included in the avatar DB 330 stored in the memory 130. The characteristics of the avatar may include at least one of an avatar model, a color applied to the avatar model, a normal map of the avatar, a material of the avatar model, a texture of the avatar, an illumination of the avatar, and an animation effect defined for each avatar.
[0210] In step 1603, the processor 120 may determine at least one characteristic of the background based on the background information stored in the memory 130. For example, the background information may be included in the avatar DB 330 stored in the memory 130. The characteristics of the background may include at least one of (multiple) 2D background images, (multiple) 3D background images, and a method of mapping a 2D background image to a 3D figure (e.g., a cuboid, a spherical polyhedron, or other polyhedrons).
[0211] In step 1605, the processor 120 may control at least one of the avatar and the background based on a configuration value of at least one piece of configuration information stored in the memory 130. For example, the configuration information may be included in the avatar DB 330 stored in the memory 130. The configuration value of the configuration information may include at least one of the action of the avatar (e.g., leftward movement, rightward movement, forward movement, backward movement, and rotation of the avatar), the ambient light of the avatar, a method of displaying a background image (e.g., a 2D background image or a 3D background image), an initial position of a virtual camera in a virtual space, and a sensitivity of the avatar's motion for sensing information.
[0212] The processor 120 may apply the determined characteristics to the avatar and the background, control the avatar and the background of the corresponding characteristics according to the configuration values, and display the avatar and the background on the display device 160 .
[0213] The processor 120 may determine at least one of the characteristics of the avatar, the characteristics of the background, and the configuration value based on the input received through the input device 150. In other words, the characteristics of the avatar, the characteristics of the background, and the configuration value may be selected based on the input.
[0214] Fig.17 is a diagram of the structure of the avatar DB 330 according to an embodiment.
[0215] Reference Fig.17, the avatar DB 330 may include 3D_avatar_0 1710, overlay_frame_0 1730, and tag 1750. 3D_avatar_0 1710 may correspond to avatar information, overlay_frame_0 1730 may correspond to background information, and tag 1750 may correspond to configuration information.
[0216] 3D_avatar_0 1710 may include a plurality of information elements 1711, 1713, 1715, 1717, 1719, 1721, 1723, 1725, 1727, and 1729. Information elements 1711, 1713, 1715, 1717, 1719, 1721, 1723, 1725, 1727, and 1729 may include at least one of information for determining an avatar model, information for determining a color to be applied to the avatar model, information for determining a normal map of the avatar, information for determining a material of the avatar model, information for determining a texture of the avatar, information for determining an illumination of the avatar, and an animation effect of the avatar.
[0217] Overlay_frame_0 1730 may include a 2D background image 1731 and a 3D background image 1730. The background information may also include information on a method of mapping the 2D background image to the 3D graphics.
[0218] The tag 1750 may include at least one configuration value for controlling at least one of the avatar and the background. The configuration value may include at least one of the avatar's movements (e.g., leftward movement, rightward movement, forward movement, backward movement, and rotation), the avatar's ambient light, a method of displaying a background image (e.g., a 2D background image or a 3D background image), an initial position of a virtual camera in a virtual space, and a sensitivity of the avatar's movement for sensing information. Fig.19 Describes a method of describing configuration values in more detail.
[0219] Fig.18A is an illustration of a background image determined from background information according to an embodiment, Fig.18B is an illustration of a background image determined from background information according to an embodiment, and Fig. 18C is an illustration of a background image determined from background information according to an embodiment.
[0220] Reference Fig.18A, the processor 120 may arrange the 2D plane in the 3D space and display the 2D image on the 2D plane through the display device 160 so as to display the background. In other words, the processor 120 may display the flat background 1820 on the display device 160. The processor 120 may configure the flat background 1820 based on the background information, render the avatar 1810 in the flat background 1820, and provide the flat background 1820 and the avatar 1810 together through the display device 160.
[0221] Reference Fig.18B , the processor 120 may arrange the 2D planes in the form of a cube in the 3D space, and display the 2D image on the corresponding 2D plane through the display device 160, so as to display the background 1830. In other words, the processor 1820 may display the background 1830 in the form of a cube diagram on the display device 160. The processor 120 may configure the background 1830 in the form of a cube diagram based on the background information, render the avatar 1810 in the background 1830, and provide the background 1830 and the avatar 1810 together through the display device 160.
[0222] Reference Fig. 18C , the processor 120 may configure the background 1830 in a cube diagram form based on the 2D background images 1831, 1833, 1835, 1837, 1839, and 1841 arranged on the corresponding faces of the cube. The 2D background images 1831, 1833, 1835, 1837, 1839, and 1841 may be included in the background information. The 2D background images 1831, 1833, 1835, 1837, 1839, and 1841 may be selected based on the input received through the input device 150. The processor 120 may map the 2D background images 1831, 1833, 1835, 1837, 1839, and 1841 on the corresponding faces of the cube according to the background information and configure the background 1830 in a cube diagram form.
[0223] The background of the avatar 1810 (e.g., background 1820 and background 1830) may be changed based on at least one of the position, motion, action state, or facial expression of the avatar (or external object). The processor 120 may determine at least one of the position, motion, action state, and facial expression of the avatar (or external object), and change the background based on the determined element. For example, the processor 120 may change at least some of the 2D background images 1831, 1833, 1835, 1837, 1839, and 1841 based on at least one of the position, motion, action state, and facial expression of the avatar (or external object), configure the background 1830 in a cube diagram form based on the changed 2D background image, and provide the configured background 1830 together with the avatar 1810.
[0224] Fig.19 is a diagram of a method for describing configuration information according to an embodiment.
[0225] Reference Fig.19 , the configuration information (eg, label 1750) may include a description area 1910 in which the configuration value is described. For example, configuration values 1911, 1913, 1915, 1917, and 1919 are described in the description area 1910.
[0226] Configuration value 1911 may be represented as "face_size":[0.14,500.0]. If the ratio of the area of a portion of an external object (e.g., a user's face) to the area of a camera preview displayed by display device 160 is less than 0.14 (i.e., if the display size of the avatar is very small), "face_size":[0.14,500.0] may instruct processor 120 to display the camera preview without displaying the avatar for 500 ms. For example, if the ratio of the area of a portion of an external object (e.g., a user's face) to the area of a camera preview displayed by display device 160 is less than 0.14 (i.e., if the display size of the avatar is very small), "face_size":[0.14,500.0] may instruct processor 120 not to analyze the camera preview (e.g., the analysis of the camera preview may be used to move the avatar) for 500 ms, to stop additional movement of the avatar, or to stop movement of a component of the avatar (e.g., a component corresponding to the user's face). If the ratio becomes greater than 0.14, the processor 120 may display the avatar and the background again through the display device 160, but may not display the camera preview.
[0227] Configuration value 1913 may be represented as "face_roll":[35.0,500.0]. If the rotation angle of the electronic device 101 in a specific mode (e.g., portrait mode or landscape mode) is greater than or equal to 35 degrees, "face_roll":[35.0,500.0] may instruct the processor 120 not to display the avatar and / or background within 500ms. For example, if the rotation angle of the electronic device 101 in a specific mode (e.g., portrait mode or landscape mode) is greater than or equal to 35 degrees, "face_roll":[35.0,500.0] may instruct the processor 120 not to analyze the camera preview (e.g., the analysis of the camera preview may be used to move the avatar) within 500ms, stop additional movement of the avatar, or stop movement of components of the avatar (e.g., components corresponding to the user's face). If the mode of the electronic device 101 changes according to the rotation of the electronic device 101, the processor 120 may gradually display the avatar and / or background within 500ms in the changed mode.
[0228] Configuration value 1915 may be represented as "type":"directional". "type":"directional" may indicate that processor 120 applies direct light to, for example, avatar 1920. In addition to "type":"directional", processor 120 may also apply direct light with intensity 1.4 to a position corresponding to virtual coordinates (85.0, 915.0, 400.0) of avatar 1920 based on other configuration values "position":[85.0,915.0,400.0] and "intensity":1.4 described in description area 1910.
[0229] The configuration value 1917 may be expressed as "type":"ibl_irradiance". "type":"ibl_irradiance" may indicate that the processor 120 configures the irradiance in the background 1930. In addition to "type":"ibl_irradiance", the processor 120 may also apply the irradiance having the intensity 0.7 to the background 1930 based on another configuration value "intensity":0.7 described in the description area 1910. The configuration value 1917 may be applied not only to the background 1930 but also to a user-customized image.
[0230] Configuration value 1919 may be expressed as "type":"ibl_specular". "type":"ibl_specular" may instruct processor 120 to apply reflection (specular reflection) to background 1940. In addition to "type":"ibl_specular", processor 120 may also apply reflection with intensity 0.6 to background 1940 based on another configuration value "intensity":0.6 described in description area 1910. Configuration value 1919 may be applied not only to background 1940 but also to a user's customized image.
[0231] The configuration information may include an upper limit and a lower limit of the threshold distance range. For example, the upper limit and the lower limit of the threshold distance range may be described in the description area 1910.
[0232] The configuration information may include an upper limit and a lower limit in the first threshold rotation range. For example, the upper limit and the lower limit of the first threshold rotation range may be described in the description area 1910.
[0233] The configuration information may include the upper limit and the lower limit of the second threshold rotation range. For example, the upper limit and the lower limit of the second threshold rotation range may be described in the description area 1910.
[0234] According to an embodiment, a method of operating an electronic device (e.g., electronic device 101) includes: an operation of displaying an avatar corresponding to an external object included in one or more images acquired using a camera of the electronic device; an operation of identifying a change in a position of the external object relative to the electronic device; an operation of determining a viewpoint related to the displayed avatar based on the change in position; and an operation of displaying the avatar displayed based on the determined viewpoint.
[0235] The operation of displaying the avatar displayed based on the determined viewpoint may include: an operation of determining an attribute of the background of the avatar based on a positional relationship therebetween; and an operation of providing the background and the avatar together according to the attribute.
[0236] The attributes of the background may include a blurring effect of the background, and the operation of determining the attributes of the background of the avatar may include: if the distance between the external object and the electronic device increases, the operation of reducing the blurring effect of the background; and if the distance between the external object and the electronic device decreases, the operation of increasing the blurring effect of the background.
[0237] The operation of displaying an avatar based on a determined viewpoint may include: the operation of extracting feature information related to the face of a user of the electronic device identified in one or more images; and the operation of generating an avatar reflecting the characteristics of the user's face based on the feature information and an avatar generation model.
[0238] The operation of displaying the avatar based on the determined viewpoint may include: if the distance between the external object and the electronic device increases, the operation of reducing the size of the avatar and the background of the avatar displayed through the display; and if the distance between the external object and the electronic device decreases, the operation of increasing the size of the avatar and the background of the avatar displayed through the display.
[0239] The operation of determining a viewpoint related to a displayed avatar may include: an operation of determining whether the distance between an external object and an electronic device is within a threshold distance range; if the distance between the external object and the electronic device is within the threshold distance range, an operation of determining the viewpoint to be a position in the virtual space corresponding to the distance between the external object and the electronic device; if the distance between the external object and the electronic device is greater than or equal to an upper limit of the threshold distance range, an operation of determining the viewpoint to be a position in the virtual space corresponding to the upper limit; and if the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, an operation of determining the viewpoint to be a position in the virtual space corresponding to the lower limit.
[0240] The operation of determining the viewpoint as a position in the virtual space corresponding to the lower limit may include: if the distance between the external object and the electronic device is less than or equal to the lower limit of the threshold distance range, displaying an area of the avatar corresponding to the area of the external object not captured by the camera on the display as a default avatar image.
[0241] The operation of displaying the avatar displayed based on the determined viewpoint may include: an operation of determining a view in a background of the avatar based on a position; and an operation of providing the view in the background together with the avatar.
[0242] The operation of determining the view in the background of the avatar may include: determining the angle at which the electronic device moves relative to the external object and the direction of the angle; and moving the view in the background by the angle in a direction opposite to the direction.
[0243] The operation of displaying the avatar displayed based on the determined viewpoint may include: an operation of determining a view in the avatar based on the position; and an operation of providing the view in the avatar.
[0244] The operation of determining the viewing area in the avatar may include: an operation of determining an angle at which the electronic device moves relative to the external object and a direction of the angle; and an operation of moving the viewing area in the avatar by the angle in the direction.
[0245] The operation of displaying an avatar corresponding to an external object included in one or more images acquired using a camera of an electronic device may include: an operation of identifying multiple components of the avatar; an operation of applying different animation schemes to at least two of the multiple components; and an operation of displaying the avatar having the at least two components to which different animation schemes are applied.
[0246] Different animation schemes may include a motion-based animation scheme applied to a first component among multiple components, and the operation of displaying an avatar may include: an operation of identifying a gesture corresponding to a gesture of an external object among multiple gestures configured in the electronic device according to the motion-based animation scheme; and an operation of displaying the first component moving according to the identified gesture.
[0247] Different animation schemes may include a tracking-based animation scheme applied to a second component among multiple components, and the operation of displaying an avatar may include: an operation of tracking changes of feature points extracted from an area of an external object corresponding to the second component according to the tracking-based animation scheme; and an operation of displaying the second component that moves adaptively according to the changes of the feature points.
[0248] The different animation schemes may include a preloaded animation scheme applied to a third component among the plurality of components, and the operation of displaying the avatar may include an operation of displaying the third component displayed independently of the gesture of the external object through the display according to the preloaded animation scheme.
[0249] According to an embodiment, a method for operating an electronic device includes: an operation to determine the rotation angle of the electronic device in a first mode of the electronic device; an operation to determine whether the rotation angle in the first mode is within a first threshold rotation range; an operation to reversely rotate at least a portion of the action or position of an avatar to the rotation angle in the first mode if the rotation angle in the first mode is within the first threshold rotation range; an operation to reversely rotate at least a portion of the action or position of the avatar to the upper limit in the first mode if the rotation angle in the first mode is greater than or equal to the upper limit of the first threshold rotation range; and if the rotation angle in the first mode is less than or equal to the lower limit of the first threshold rotation range, reversely rotate at least a portion of the action or position of the avatar to the lower limit in the first mode, and the first mode can be one of a portrait mode and a landscape mode.
[0250] According to an embodiment, a method for operating an electronic device includes: an operation of determining a rotation angle of the electronic device in a first mode of the electronic device; an operation of determining whether the rotation angle in the first mode is within a second threshold rotation angle; an operation of changing at least a part of an action or position of an avatar based on the rotation angle in the first mode if the rotation angle in the first mode is within the second threshold rotation range; and an operation of changing a mode of the electronic device from the first mode to a second mode and changing at least a part of an action or position of the avatar based on the rotation angle in the second mode if the rotation angle in the first mode is outside the second threshold rotation range, and the first mode can be one of a portrait mode and a landscape mode, and the second mode can be the other of the portrait mode and the landscape mode.
[0251] According to an embodiment, a method for operating an electronic device includes: an operation of determining at least one characteristic of an avatar based on avatar information stored in a memory of the electronic device; an operation of determining at least one characteristic of a background based on background information stored in the memory; an operation of controlling at least one of an avatar and a background displayed through a display based on at least one configuration value of configuration information stored in the memory; and an operation of displaying at least one of the controlled avatar and background, and the avatar can correspond to an external object included in one or more images acquired using a camera of the electronic device.
[0252] The method of operating an electronic device may further include determining at least one of at least one characteristic of the avatar, at least one characteristic of the background, and at least one configuration value based on an input received through the input device.
[0253] The configuration information may include an upper limit and a lower limit of a threshold distance range, and the method of operating an electronic device may further include: if the distance between the external object and the electronic device is within the threshold distance range, determining that the viewpoint associated with the avatar in the virtual space is an operation of a position in the virtual space corresponding to the distance between the external object and the electronic device; if the distance between the external object and the electronic device is greater than or equal to the upper limit, determining that the viewpoint is an operation of a position in the virtual space corresponding to the upper limit; and if the distance between the external object and the electronic device is less than or equal to the lower limit, determining that the viewpoint is an operation of a position in the virtual space corresponding to the lower limit.
[0254] The configuration information may include an upper limit and a lower limit of a first threshold rotation range, and the method of operating the electronic device may include: if the rotation angle of the electronic device in a first mode of the electronic device is within the first threshold rotation range, then changing at least a part of the action or position of the stand-in by the rotation angle in the first mode; if the rotation angle in the first mode is greater than or equal to the upper limit, then changing at least a part of the action or position of the stand-in by the upper limit in the first mode; and if the rotation angle in the first mode is less than or equal to the lower limit, then reversely changing at least a part of the action or position of the stand-in by the lower limit in the first mode, and the first mode may be one of a portrait mode and a landscape mode.
[0255] The methods recited in the accompanying claims and / or the disclosure according to various embodiments may be implemented by hardware, software, or a combination of hardware and software.
[0256] When the method is implemented by software, a non-transitory computer-readable storage medium for storing one or more programs (software modules) may be provided. One or more programs stored in the non-transitory computer-readable storage medium may be configured to be run by one or more processors within the electronic device. At least one program may include instructions for causing the electronic device to perform the method according to the various embodiments of the present disclosure as defined by the appended claims and / or disclosed herein.
[0257] The program (software module or software) can be stored in a non-volatile memory, including random access memory (RAM) and flash memory, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), magnetic disk storage, compact disk (CD-ROM), digital versatile disk (DVD) or other types of optical storage devices or cassettes. Optionally, any combination of some or all of the storage devices can form a memory storing the program. In addition, multiple such memories can be included in the electronic device.
[0258] In addition, the program can be stored in an attachable storage device accessible through a communication network, such as the Internet, an intranet, a LAN, a WAN, a storage area network (SAN), and combinations thereof. Such a storage device can access the electronic device via an external port. In addition, a separate storage device on a communication network can access the portable electronic device.
[0259] In the above-mentioned embodiments of the present disclosure, the components included in the present disclosure are represented in the singular or plural, depending on the embodiment. However, for ease of description, the singular form or plural form is selected to be suitable for the presented situation, and the various embodiments of the present disclosure are not limited to a single element or multiple elements thereof. In addition, multiple elements expressed in the specification can be configured as a single element, or a single element in the specification can be configured as multiple elements.
[0260] Although the present disclosure has been shown and described with reference to certain embodiments of the present disclosure, it will be appreciated by those skilled in the art that various changes may be made in form and detail without departing from the scope of the present disclosure. Therefore, the scope of the present disclosure should not be limited to the embodiments, but is defined by the appended claims and their equivalents.
Claims
1. An electronic device, include: camera; monitor; sensor; as well as processor, Wherein, the processor is configured to: Acquire one or more images including external objects through a camera, identifying a position of an external object relative to the electronic device by at least one of a camera and a sensor, the position of the external object including a distance between the external object and the electronic device, determining whether the distance between the external object and the electronic device is within a threshold distance range, If the distance between the external object and the electronic device is within a threshold distance range, displaying an avatar corresponding to the external object based on the position of the recognized external object through the display, wherein a size of the avatar is determined based on the distance between the external object and the electronic device, and If the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, a designated avatar image is displayed through the display.
2. The electronic device according to claim 1, in, The processor is further configured to: If the distance between the external object and the electronic device is within a threshold distance range, determining to change the size of the avatar as the distance changes, If the distance between the external object and the electronic device is greater than or equal to an upper limit of the threshold distance range, determining that the size of the avatar has a specified first size, If the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, determining that the size of the avatar has a specified second size, and Based on the determined size of the avatar, the avatar corresponding to the external object is displayed through the display.
3. The electronic device according to claim 1, in, The processor is further configured to identify a distance between the external object and the electronic device based on a ratio of an area of a portion of the external object to an area of the preview image displayed by the display, and The preview image is related to the one or more images.
4. The electronic device according to claim 1, in, The sensor comprises a wearable sensor mounted to an external object, and The processor is further configured to identify a distance between an external object and the electronic device based on data received from the wearable sensor.
5. The electronic device according to claim 1, in, The processor is further configured to: determining a property of the avatar's background based on the position of the external object relative to the electronic device, and providing the background and the avatar together through the display according to the attributes, The attributes of the background include the blur effect of the background and the size of the background.
6. The electronic device according to claim 5, in, The processor is further configured to determine a size of the background based on a distance between the external object and the electronic device.
7. The electronic device according to claim 1, in, The processor is further configured to determine a view in the avatar based on the position, and provide the view in the avatar via a display.
8. The electronic device according to claim 7, in, The processor is further configured to determine an angle at which the electronic device is moved relative to the external object and a direction of the angle, and to move the field of view in the avatar by the angle in the direction.
9. The electronic device according to claim 1, in, The processor is further configured to identify a plurality of components of the avatar, apply different animation schemes to at least two of the plurality of components, and display, through a display, the avatar having the at least two components to which the different animation schemes are applied.
10. The electronic device according to claim 9, in, The different animation schemes include at least one of a motion-based animation scheme, a tracking-based animation scheme, or a preloaded animation scheme.
11. A method for operating an electronic device comprising a camera, a display and a sensor, the operating method include: acquiring, by a camera, one or more images including an external object; identifying, by at least one of a camera and a sensor, a position of an external object relative to the electronic device, the position of the external object including a distance between the external object and the electronic device; determining whether a distance between the external object and the electronic device is within a threshold distance range; If the distance between the external object and the electronic device is within a threshold distance range, displaying an avatar corresponding to the external object based on the identified position of the external object through the display, wherein a size of the avatar is determined based on the distance between the external object and the electronic device; as well as If the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, a designated avatar image is displayed through the display.
12. The operating method according to claim 11, further comprising: include: If the distance between the external object and the electronic device is within a threshold distance range, determining to change the size of the avatar as the distance changes; If the distance between the external object and the electronic device is greater than or equal to an upper limit of the threshold distance range, determining that the size of the avatar has a specified first size; If the distance between the external object and the electronic device is less than or equal to a lower limit of the threshold distance range, determining that the size of the avatar has a specified second size; as well as Based on the determined size of the avatar, the avatar corresponding to the external object is displayed through the display.
13. The operating method according to claim 11, further comprising: include: identifying a distance between the external object and the electronic device based on a ratio of an area of a portion of the external object to an area of a preview image displayed by the display, The preview image is related to the one or more images.
14. The operating method according to claim 11, further comprising: include: identifying the distance between the external object and the electronic device based on the data received from the wearable sensor, Wherein, the wearable sensor is mounted to an external object.
15. The operating method according to claim 11, further comprising: include: determining a property of the avatar's background based on a position of the external object relative to the electronic device; as well as providing the background and the avatar together through the display according to the attributes, The attributes of the background include the blur effect of the background and the size of the background.
16. The operating method according to claim 15, further comprising: include: The size of the background is determined based on the distance between the external object and the electronic device.
17. The operating method according to claim 11, further comprising: include: determining a viewport in the avatar based on the position; as well as The view in the avatar is provided via a display.
18. The operating method according to claim 17, further comprising: include: determining an angle at which the electronic device is moved relative to an external object and a direction of the angle; as well as Move the view in the avatar by that angle in that direction.
19. The operating method according to claim 11, further comprising: include: Identify multiple components of an avatar; applying different animation schemes to at least two components of the plurality of components, and An avatar having at least two components to which different animation schemes are applied is displayed via a display.
20. The operating method according to claim 19, in, The different animation schemes include at least one of a motion-based animation scheme, a tracking-based animation scheme, or a preloaded animation scheme.
