A 3D display method and apparatus

By acquiring the state information of foldable screen electronic devices to generate models and project images, the problem of mismatch between fixed angles and materials in naked-eye 3D technology on foldable screens has been solved, realizing real 3D display at different angles and in different states, and improving the user experience.

CN116841350BActive Publication Date: 2026-12-04HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210290663.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2026-12-04
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Existing glasses-free 3D technology has limitations on foldable screen electronic devices, including fixed viewing angles and a lack of universality in its materials. It cannot display different 3D effects depending on the folding method and orientation.

Method used

By acquiring the status information of electronic devices, a corresponding model is generated, and the image is projected onto the model. Textures are generated based on the model and displayed. The model is adjusted in real time to adapt to changes in device status and user position, thus achieving 3D display based on the principle of perspective.

Benefits of technology

Users can enjoy a realistic 3D viewing experience from different angles and on different devices, which enhances the user experience and human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116841350B_ABST
    Figure CN116841350B_ABST
Patent Text Reader

Abstract

This application discloses a 3D display method and apparatus. The method is applied to an electronic device, specifically a foldable screen electronic device. The method includes: acquiring first state information of the electronic device, the first state information including first information indicating the size and folding position of the display screen, and folding angle information of the display screen; generating a first model based on the first state information; projecting a first image onto the first model at a first position; generating a first model texture based on the projection of the first image onto the first model at the first position; unfolding the first model texture to generate a first texture; and displaying the first texture. Through this application, when the electronic device plays the first texture, the folding angle of the electronic device matches the first model, and when the user is at the projection position, the user can experience a very realistic 3D viewing experience, improving user experience and human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic devices, and more specifically to a 3D display method and apparatus. Background Technology

[0002] Three-dimensional (3D) displays can provide users with highly realistic images, giving them an immersive experience. Currently, common 3D movies and 3D TVs generally require users to wear glasses, virtual reality (VR) headsets, or other auxiliary devices. Alternatively, glasses-free 3D technology can generate different images for the user's eyes without the need for auxiliary devices, thus creating a 3D viewing effect. However, current glasses-free 3D technology has limitations, including only producing a 3D viewing effect at a fixed angle and being unable to display different 3D effects based on the various folding methods and postures of foldable screen electronic devices. Summary of the Invention

[0003] This application provides a 3D display method and apparatus, which allows electronic devices to adjust the displayed 3D content in real time according to the state of the electronic device, so that users can always have a very realistic 3D viewing experience when watching the content displayed by the electronic device.

[0004] In a first aspect, a 3D display method is provided, which is applied to an electronic device, the electronic device being a foldable screen electronic device. The method includes: acquiring first state information of the electronic device, the first state information including first information indicating the size of the display screen and the folding position of the display screen, and folding angle information of the display screen; generating a first model based on the first state information; projecting a first image onto the first model at a first position; generating a first model texture based on the projection of the first image onto the first model at the first position; unfolding the first model texture to generate a first texture; and displaying the first texture.

[0005] In this embodiment, the electronic device can generate a first model based on the first state information, then project the image onto the first model and unfold it to obtain a first texture that conforms to the perspective principle. Thus, when the electronic device plays the first texture, the state of the electronic device matches the first model, and when the user is in the projection position, the user can generate a very realistic 3D viewing experience, which improves the user experience and human-computer interaction.

[0006] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the first state information is detected to change into second state information, generating a second model based on the second state information; projecting the first image onto the second model at a second position; generating a second model texture based on the projection of the first image onto the second model at the second position; unfolding the second model texture to generate a second texture; and displaying the second texture to replace the first texture.

[0007] In this embodiment of the application, when the state of the electronic device changes, a new image conforming to the principle of perspective can be generated and displayed in real time according to the change in the state of the electronic device, so that the user will not lose the 3D viewing experience due to the change in the state of the electronic device.

[0008] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, the second image being a frame following the first image, and the method further includes: projecting the second image onto the first model at the first position; generating the third model texture based on the projection of the second image onto the first model at the first position; unfolding the third model texture to generate the third texture; and displaying the first texture includes: displaying the first texture and the third texture frame by frame.

[0009] In this embodiment of the application, when the material displayed by the electronic device is video, the electronic device can process each frame of the video to generate and display an image that conforms to the principle of perspective frame by frame, so that the user can have a very realistic 3D viewing experience when watching the video.

[0010] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the first state information changes to second state information. The method further includes: generating a second model based on the second state information; projecting the first image and the second image onto the second model at a second position; generating a second model texture based on the projection of the first image onto the second model at the second position; generating a fourth model texture based on the projection of the second image onto the second model at the second position; unfolding the second model texture to generate a second texture; unfolding the fourth model texture to generate a fourth texture; replacing the first texture with the second texture and displaying the second texture and the fourth texture frame by frame.

[0011] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the first state information changes to second state information. The method further includes: generating a second model based on the second state information; projecting the second image onto the second model at a second position; generating a fourth model texture based on the projection of the second image onto the second model at the second position; unfolding the fourth model texture to generate a fourth texture; and displaying the first texture includes: displaying the first texture and the fourth texture frame by frame.

[0012] In this embodiment of the application, when the material displayed by the electronic device is video, the electronic device can process each frame of the video to generate and display an image that conforms to the principle of perspective frame by frame. When the state of the electronic device changes, it can be adjusted in real time, so that when the user watches the video, even if the state of the electronic device changes, the user can always have a very realistic 3D viewing experience.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: detecting the positional relationship between the user's eye and the electronic device; projecting the first image onto the first model at the first position, including: determining the first position based on the positional relationship between the user's eye and the electronic device; and projecting the first image onto the first model at the first position.

[0014] In this embodiment, when the electronic device projects the first image, the projection position can be determined according to the positional relationship between the user's eyes and the electronic device. That is, the position of the user's eyes is the optimal viewing position. Thus, the user does not need to search for the optimal viewing position when using the electronic device to generate a very realistic 3D viewing experience, which improves the user experience.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when it is detected that the user's eye changes from the first position to the third position, projecting the first image onto the first model at the third position; generating a fifth model texture based on the projection of the first image onto the first model at the third position; unfolding the fifth model texture to generate a fifth texture; and displaying the fifth texture to replace the first texture.

[0016] In this embodiment, when the user's eye position changes, the electronic device can adjust in real time, projecting a first image according to the user's latest eye position to form a new image. The electronic device dynamically changes the optimal viewing angle to match the user's eye position, thus improving the user experience.

[0017] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when it is detected that the user's eye changes from the first position to the third position and the first state information changes to the second state information, generating a second model based on the second state information; projecting the first image onto the second model at the third position; generating a sixth model texture based on the projection of the first image onto the second model at the third position; unfolding the sixth model texture to generate a sixth texture; and displaying the sixth texture to replace the first texture.

[0018] In this embodiment, when the user's eye position and the state of the electronic device change, the electronic device can adjust in real time, projecting the first image onto the new model according to the user's latest eye position, and finally forming a new image. The electronic device dynamically changes the optimal viewing angle to match the user's eye position and the state of the electronic device, thereby improving the user experience.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the user's eye position changes from the first position to a third position. The method further includes: projecting the first image and the second image onto the first model at the third position; generating a fifth model texture based on the projection of the first image onto the first model at the third position, and generating a seventh model texture based on the projection of the four images onto the first model at the third position; unfolding the fifth model texture to generate a fifth texture, and unfolding the seventh model texture to generate a seventh texture; replacing the first texture with the fifth texture and displaying the fifth texture and the seventh texture frame by frame.

[0020] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the user's eye position changes from the first position to a third position. The method further includes: projecting the second image onto the first model at the third position; generating a seventh model texture based on the projection of the four images onto the first model at the third position; unfolding the seventh model texture to generate a seventh texture; and displaying the first texture includes: displaying the first texture and the seventh texture frame by frame.

[0021] In this embodiment of the application, when the material displayed by the electronic device is video, the electronic device can process each frame of the video to generate and display an image that conforms to the principle of perspective frame by frame. When the position of the user's eyes changes, the electronic device can adjust in real time, so that when the user watches the video, even if the position of the eyes changes, the user can always have a very realistic 3D viewing experience.

[0022] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the user's eye position changes from the first position to a third position and the first state information changes to the second state information. The method further includes: generating a second model based on the second state information; projecting the first image and the second image onto the second model at the third position; generating an eighth model texture based on the projection of the first image onto the second model at the third position, and generating a ninth model texture based on the projection of the four images onto the second model at the third position; unfolding the eighth model texture to generate an eighth texture, and unfolding the ninth model texture to generate a ninth texture; replacing the first texture with the eighth texture and displaying the eighth texture and the ninth texture frame by frame.

[0023] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a frame of a video, the video also includes a second image, which is a frame following the first image. When the first texture is displayed, the user's eye position changes from the first position to a third position and the first state information changes to the second state information. The method further includes: generating a second model based on the second state information; projecting the second image onto the second model at the third position; generating a ninth model texture based on the projection of the four images onto the second model at the third position; unfolding the ninth model texture to generate a ninth texture; and displaying the first texture includes: displaying the first texture and the ninth texture frame by frame.

[0024] In this embodiment of the application, when the material displayed by the electronic device is video, the electronic device can process each frame of the video to generate and display an image that conforms to the principle of perspective frame by frame. When the position of the user's eyes and the state of the electronic device change, the electronic device can adjust in real time. Thus, when the user watches the video, even if the position of the user's eyes and the state of the electronic device change, the user can always have a very realistic 3D viewing experience.

[0025] In conjunction with the first aspect, in some implementations of the first aspect, the first image is an image of the 3D model corresponding to a first viewpoint. The method further includes: when the user's eye is detected to change from the first position to a third position, determining a second viewpoint based on the third position; determining a third image based on the second viewpoint and the 3D model; projecting the third image onto the first model at the third position; generating a tenth model texture based on the projection of the third image onto the first model at the third position; unfolding the tenth model texture to generate a tenth texture; and displaying the tenth texture to replace the first texture.

[0026] In this embodiment, the first image is the image corresponding to the first perspective of the 3D model. When the position of the user's eyes changes, the 3D model can be adjusted in real time according to the change of the user's eye position, so that the 3D model can rotate with the change of the user's eye position, thereby allowing the user to view the 3D model from different perspectives, improving the user experience and sense of immersion.

[0027] In conjunction with the first aspect, in some implementations of the first aspect, the first information is the model information of the electronic device.

[0028] In conjunction with the first aspect, in some implementations of the first aspect, the first state information also includes the attitude information of the electronic device.

[0029] In a second aspect, an electronic device is provided, comprising modules / units for performing the methods described in the first aspect or any possible design of the first aspect; these modules / units may be implemented in hardware or by executing corresponding software in hardware.

[0030] Thirdly, a chip is provided that is coupled to a memory in an electronic device for calling a computer program stored in the memory and executing the technical solutions of the first aspect of the present application and any possible design of the first aspect; in the embodiments of the present application, "coupling" means that two components are directly or indirectly combined with each other.

[0031] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the technical solutions described in the first aspect and any possible design of the first aspect.

[0032] Fifthly, a computer program is provided, the computer program including instructions that, when executed on a computer, cause the computer to perform the technical solutions described in the first aspect and any possible design of the first aspect.

[0033] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the technical solutions described in the first aspect and any possible design of the first aspect.

[0034] For the beneficial effects of aspects two through six, please refer to the beneficial effects of aspect one, which will not be repeated here. Attached Figure Description

[0035] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0036] Figure 2This is a software structure block diagram of an electronic device provided in an embodiment of this application.

[0037] Figure 3 This is a schematic diagram of the content displayed on the electronic device provided in the embodiments of this application.

[0038] Figure 4 This is a schematic flowchart of the 3D display method provided in the embodiments of this application.

[0039] Figure 5 This is a schematic diagram of generating the first model provided in an embodiment of this application.

[0040] Figure 6 This is a schematic diagram of projecting a first image onto a first model, provided in an embodiment of this application.

[0041] Figure 7 This is a schematic diagram of unfolding a first model texture to generate a first texture, provided in an embodiment of this application.

[0042] Figure 8 This is another schematic flowchart of a 3D display method provided according to an embodiment of this application.

[0043] Figure 9 This is another schematic flowchart of a 3D display method provided according to an embodiment of this application.

[0044] Figure 10 This is another schematic flowchart of a 3D display method provided according to an embodiment of this application.

[0045] Figure 11 This is a schematic diagram of the 3D model provided in the embodiments of this application from the first and second perspectives.

[0046] Figure 12 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0047] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0048] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0049] The following describes an electronic device and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or music player, such as a mobile phone, tablet computer, wearable electronic device with wireless communication capabilities (such as a smartwatch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, carrying... Portable electronic devices running Harmony OS or other operating systems. These portable electronic devices can also be other portable electronic devices, such as laptops. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but rather a desktop computer, smart TV, smart speaker, etc.

[0050] For example, Figure 1A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0051] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0052] The processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. In other embodiments, the processor 110 may also include a memory for storing instructions and data. For example, the memory in the processor 110 may be a cache memory. This memory can store instructions or data that the processor 110 has just used or is reusing. If the processor 110 needs to reuse the instruction or data, it can directly retrieve it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 101 in processing data or executing instructions.

[0053] In some embodiments, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc. The USB interface 130 is a USB standard-compliant interface, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used for data transfer between the electronic device 101 and peripheral devices. The USB interface 130 can also be used to connect headphones for audio playback.

[0054] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0055] Internal memory 121 can be used to store one or more computer programs, which include instructions. Processor 110 can execute the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system; it may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data created during the use of electronic device 101 (such as photos, contacts, etc.). In addition, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), embedded multi-media card (eMMC), etc. In some embodiments, processor 110 can execute instructions stored in internal memory 121 and / or instructions stored in memory disposed in processor 110 to cause electronic device 101 to perform the methods provided in the embodiments of this application, as well as other applications and data processing. Electronic device 100 can implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0056] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0057] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0058] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or more cameras 193.

[0059] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0060] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0061] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, text understanding, and 3D model reconstruction.

[0062] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.

[0063] In the embodiments of this application, the above Figure 1 The display screen 194 can be bent. Here, "the display screen 194 can be bent" means that the display screen can be bent to any angle at any part and can maintain that angle. For example, the display screen 194 can be folded from the middle left to right. It can also be folded from the middle up to down.

[0064] The display screen 194 of electronic device 100 can be a flexible screen. Currently, flexible screens are attracting much attention due to their unique characteristics and enormous potential. Compared to traditional screens, flexible screens are highly flexible and bendable, providing users with new interaction methods based on their bendability and meeting more of their needs for electronic devices. For electronic devices equipped with foldable displays, the foldable display can switch between a small screen in a folded state and a large screen in an unfolded state at any time.

[0065] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0066] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 around three axes (i.e., the X, Y, and Z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0067] Figure 2 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0068] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0069] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.

[0070] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0071] The window manager is used to manage window programs. The window manager can receive the screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0072] Content providers store and receive data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0073] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0074] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0075] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and so on.

[0076] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0077] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0078] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0079] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0080] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0081] A 2D graphics engine is a graphics engine for 2D drawing.

[0082] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, and sensor drivers.

[0083] Before introducing the embodiments of this application, let's first introduce a few concepts related to the embodiments of this application.

[0084] Perspective technology: Perspective technology utilizes the principle that objects appear larger when closer and smaller when farther away in retinal imaging to simulate 3D space on a 2D plane (retina, image, camera viewfinder, etc.).

[0085] Glasses-free 3D technology refers to the ability to create a 3D visual experience when viewing videos or images without the aid of glasses, VR headsets, or other auxiliary devices. Currently, common glasses-free 3D technologies primarily achieve this through binocular parallax. Common glasses-free 3D technologies include lenticular lens-based glasses-free 3D, parallax-based glasses-free 3D, and directional light source-based glasses-free 3D. These technologies allow the image seen by the left eye to differ from that seen by the right eye, enabling the user's brain to synthesize the two images into a single image with spatial depth and perspective. Lens-based glasses-free 3D, parallax-based glasses-free 3D, and directional light source-based glasses-free 3D technologies all require the addition of lenses, gratings, and other auxiliary devices to the existing display screen. This increases the production cost of electronic devices and may lead to reduced brightness and poor image quality due to the added auxiliary components. For example, taking naked-eye 3D technology based on lenticular lenses as an example, in order to make the image seen by the user's left eye different from the image seen by the right eye, a layer of lenticular lens needs to be added to the display screen. This layer of lenticular lens can project each pixel on the display screen in different directions, so that when the user is at a certain angle to the display screen, the two eyes can see different pixels, that is, different images, so that the user can generate a 3D viewing experience.

[0086] In addition to the three glasses-free 3D technologies mentioned above, another type of glasses-free 3D technology utilizes irregularly shaped screens (such as L-shaped screens) to play materials that conform to the principles of perspective. Using the corners of the screen as dividing lines, the entire display can be divided into at least two sub-screens. These sub-screens can display different views of the material from different angles. When a user is at a certain viewing angle and simultaneously views these different sub-screens, they can see different views of the material at the same time, thus forming a sense of space and depth in the brain, thereby creating a 3D visual experience. For example, ... Figure 3 As shown in (a), the first and second sub-displays can form an L-shaped screen. When the user sees both sub-displays simultaneously, they can see a cuboid with a 3D effect. Figure 3As shown in (b), when the first and second sub-displays are unfolded to 0°, it can be seen that the content displayed on the first and second sub-displays does not have a 3D effect. Therefore, if a user only sees the first or second sub-display, since only one side of the cuboid is visible, no 3D perception will occur. Furthermore, the materials used in this glasses-free 3D technology need to be customized in advance according to factors such as the size and bending angle of the display screen. When the materials are transferred to other display screens, they need to be re-rendered to adapt to the new display.

[0087] In summary, current glasses-free 3D technology suffers from problems such as fixed user viewing angles, lack of universal applicability of playback materials, and fixed angles of sub-displays. Based on this, this application provides a 3D display method applicable to foldable screen electronic devices. This method can render playback materials in real time according to the angle of the foldable screen and the positional relationship between the user and the electronic device, thereby providing users with a good 3D viewing experience from different angles, improving user experience, and enhancing human-computer interaction.

[0088] Figure 4 This illustration shows a schematic flowchart of a 3D display method 400 provided in an embodiment of this application. The method is executed by an electronic device, which is a foldable screen electronic device, such as a foldable phone or a foldable tablet. Figure 4 As shown, the method includes:

[0089] S401, Obtain the first state information of the electronic device.

[0090] For example, the first state information may include first information indicating the display size and folding position of the electronic device, and the folding angle information of the display. Optionally, the first state information may also include the attitude information of the electronic device.

[0091] The electronic device can obtain the folding angle of the display screen and the attitude of the electronic device through one or more sensors, and acquire this first information from system information. The folding position of the display screen can be understood as the location of the crease when the display screen is folded; it can also be understood that the hinge connecting the two housings of the electronic device may be located below the folding position of the display screen. The folding angle of the display screen can be understood as the angle between different sub-display screens. The folding angle of the display screen can also be understood as the angle between the two housings of the electronic device.

[0092] For example, the electronic device can obtain information such as the current state of the electronic device, that the display screen is folded at a 90° angle, the electronic device is in a posture where the display screen is perpendicular to the ground, the display screen size is 6.8 inches, and the folded position of the display screen is located at the center line of the display screen and parallel to the side bezel of the electronic device.

[0093] For example, the electronic device can measure its attitude using a gyroscope sensor 180B.

[0094] For example, an electronic device can use a hinge angle sensor to measure the folding angle of its display screen.

[0095] For example, a pressure sensor is provided at the hinge of the electronic device. The pressure generated when the display screen is folded to different angles is different, and the folding angle of the electronic device display screen can be determined according to the different pressures.

[0096] It should be noted that the embodiments of this application only take the posture of the electronic device measured by the gyroscope sensor 180B and the folding angle of the display screen of the electronic device measured by the hinge angle sensor or pressure sensor as examples, but are not limited to this. The posture of the electronic device and the folding angle of the display screen obtained by other sensors or other methods to implement the 3D display method provided in the embodiments of this application should all fall within the protection scope of this application.

[0097] In this embodiment, the first information can directly indicate the screen size and folding position of the electronic device, or it can indirectly indicate the screen size and folding position of the electronic device. This embodiment is not limited to this.

[0098] One possible implementation is that the first information includes the size information of the electronic device's display screen and the folding position information of the display screen; that is, the first information can directly indicate the size and folding position of the electronic device's display screen. For example, the system information of the electronic device may contain preset information about the size and folding position of the electronic device's display screen, thereby allowing the size and folding position of the electronic device's display screen to be determined based on the aforementioned information.

[0099] One possible implementation is that the first information includes the model information of the electronic device. This model information can correspond to the size and folding position of the display screen, meaning the first information indirectly indicates the size and folding position of the display screen. For example, if the electronic device's model number is "Huawei Mate X2" obtained from system information, then the size of the display screen can be determined to be 8.01 inches, and the folding position of the display screen is located at the center line of the screen and parallel to the side bezel of the electronic device.

[0100] S402, Generate the first model based on the first state information.

[0101] Specifically, the electronic device can generate a first model of the electronic device corresponding to the first state information based on the first state information. This first model can correspond to the actual state of the electronic device. For example, if the folding angle of the electronic device's display screen is 90°, then the folding angle of the display screen in the first model is 90°.

[0102] One possible implementation is that the electronic device can generate a first model based on the first information and the folding angle of the display screen.

[0103] In this possible implementation, the electronic device generates a corresponding model based on the screen size, folding position, and folding angle. The posture of the generated model is predefined; for example, the model is in a vertical posture. The predefined posture can be user-defined or manufacturer-defined as the most common posture of the electronic device when the user uses it.

[0104] One possible implementation is that the electronic device generates a first model based on first information, the folding angle of the display screen, and the posture of the electronic device. In this possible implementation, the electronic device generates a corresponding model based on the size of the display screen, the folding position, the folding angle, and the posture of the electronic device. It is understood that the posture of the generated model is the same as the posture of the electronic device.

[0105] Optionally, the first model may only include the display screen of the electronic device, thereby improving the generation speed of the first model. For example, taking a foldable screen phone as an example... Figure 5 The diagram shown is a schematic representation of the generation of the first model according to an embodiment of this application. Figure 5 As shown in (a), the foldable phone is folded at a certain angle and is in a vertical position. The foldable phone can acquire information about the folding angle and the phone's orientation. Combined with information about the size of the display screen and the folding position of the screen, it can generate... Figure 5 The model shown in (b) is a 3D model. It is understandable that... Figure 5 The dimensions of the model shown in (b) are similar to Figure 5 The foldable phones shown in (a) have the same screen size.

[0106] It should be understood that when the folding angle and / or posture of a foldable phone changes, the model can be updated based on the changed folding angle and / or posture.

[0107] S403, Project the first image onto the first model at the first position.

[0108] For example, at a first position, a first image can be projected onto a first model according to the principle of perspective. Projecting the first image onto the first model at the first position according to the principle of perspective can be understood as projecting the first image onto different sub-displays of the first model at the first position, based on the principle that objects appear larger when closer and smaller when farther away in retinal imaging. The first image can be a frame from a video, a still image, or an image of the 3D model corresponding to the first viewpoint.

[0109] For example, such as Figure 6 Image (a) shows the image of the tetrahedron in the first viewpoint, where the first viewpoint can be a preset viewpoint or the same as the viewpoint corresponding to the first position.

[0110] In this embodiment of the application, the first position can be determined in the following ways.

[0111] One possible implementation is that the first position is a preset position.

[0112] Understandably, by projecting a first image onto a first model at a predetermined first position according to the principles of perspective, the content displayed on each of the different sub-displays of the first model that the user can see at that first position is determined. When the user views from that first position, they can see content displayed on the different sub-displays that conforms to the principles of perspective, thus creating a 3D viewing experience.

[0113] For example, Figure 6 The diagram shown illustrates how a first image is projected onto a first model according to an embodiment of this application. Figure 6 As shown in (a) and (b), the first image is the image of the tetrahedron from the first perspective. According to the principle of perspective, the first image can be projected onto the first model at the first position. Different sub-displays display different content, so that when the user views the display screen at the first position, a 3D viewing experience can be generated.

[0114] It should be understood that in this possible implementation, the position of the projection will not change based on the folding angle information of the electronic device's display screen and / or the attitude change of the electronic device.

[0115] One possible implementation involves determining the first position based on the folding angle information of the electronic device's display screen and / or the electronic device's posture information.

[0116] For example, when the display screen of the electronic device is folded at a 90° angle, the corresponding projection position is the first position. Optionally, when the display screen of the electronic device is folded at an 80° angle, the corresponding projection position can be the second position.

[0117] For example, when the display screen of an electronic device is folded at a 90° angle and in a vertical position, the corresponding projection position is the first position.

[0118] It should be understood that in this possible implementation, the projection position can vary based on the folding angle information of the electronic device's display screen and / or the posture changes of the electronic device.

[0119] One possible implementation involves determining the first position based on the user's eye position; details will be provided below.

[0120] S404, Generate a texture map of the first model based on the projection of the first image onto the first model at the first position.

[0121] For example, after the first image is projected onto the first model in S503, the projection of the first image can be displayed on a sub-display of the first model, and then a texture of the first model is generated based on the projection of the first image. In other words, in S504, the projection of the first image onto the first model is converted into a texture of the first model.

[0122] For example, the projection of a first image onto a first model can be converted into a texture of the first model using texture baking technology.

[0123] It should be noted that the first model in this application is a 3D model, and the generated first model texture is a 3D texture. Each point in the first model texture can be represented using a 3D coordinate system (e.g., x, y, z).

[0124] S405, unfold the first model texture to generate the first texture.

[0125] For example, after obtaining the first model texture, the first model texture can be unfolded to obtain a first texture image. Unfolding the first model texture can be understood as converting a 3D texture into a 2D texture, that is, mapping the points of the first model texture in 3D space (e.g., represented by x, y, z) to 2D space (e.g., represented by u, v) to generate the first texture image. In the embodiments of this application, the first texture image can also be referred to as a first UV image. Unfolding the first model texture can also be referred to as unwrapping the UVs of the first model texture.

[0126] For example, Figure 7 The diagram shown is a schematic of unfolding the first model texture to generate the first texture in an embodiment of this application. Figure 7 In the image (a), the first model texture is generated based on the projection of the first image onto the first model. Figure 7 As can be seen in (a) above, before unfolding, the tetrahedrons in the first model texture have a strong 3D appearance. Unfolding the first model texture yields the following: Figure 7 The first texture shown in (b) is from [the image]. Figure 7 As can be seen in (b), when the two sub-displays of the first model are fully unfolded, the tetrahedron in the figure is distorted to a certain extent, thus losing the 3D visual effect.

[0127] It should be noted that the embodiments of this application do not limit the boundary of the UV unwrapping of the first model texture. For example, the first model texture can be unwrapped with one edge of the first model as the boundary.

[0128] S406, displaying the first texture.

[0129] For example, after an electronic device generates a first texture, it can display that first texture on a screen. Figure 7 As shown in (b), different sub-displays display different content, so the electronic device can display corresponding content on different sub-displays. Since the first model is generated based on the first state information of the electronic device, and the first image is projected onto the first model at the first position, and then the first model texture is unfolded to obtain the first texture, the first texture displayed by the electronic device is an image that conforms to the principle of perspective. When the user views the electronic device at the first position and the state of the electronic device corresponds to the state of the first model, the user can generate a very realistic 3D viewing experience.

[0130] In this embodiment of the application, when a user uses an electronic device, the electronic device can generate a first model based on the first state information, then project the image onto the first model and unfold it to obtain a first texture that conforms to the principle of perspective. Thus, when the electronic device plays the first texture, the folding angle and / or posture of the electronic device are consistent with the first model, and when the user's eyes are at the projection position, the user can generate a very realistic 3D visual experience, which improves the user experience and human-computer interaction.

[0131] Figure 8 Another schematic flowchart of a 3D display method according to an embodiment of this application is shown, such as Figure 8 As shown, after S406, method 400 further includes:

[0132] S407, when the first state information is detected to change into the second state information, the second model is generated based on the second state information.

[0133] For example, when an electronic device detects a change in its state, it can generate a new model based on the change in state.

[0134] For example, the first state information indicates that the folding angle of the electronic device is 90° and it is in a vertical posture. At this time, the model corresponding to the electronic device is the first model. When the folding angle of the electronic device changes from 90° to 100°, the electronic device can generate the second model.

[0135] S408, the first image is projected onto the second model at the second position.

[0136] For example, at a second position, the first image is projected onto the second model according to the principle of perspective.

[0137] It should be understood that the description of projecting the first image onto the second model at the second position according to the principle of perspective is similar to S403, and for the sake of brevity, it will not be repeated here.

[0138] In this application embodiment, the second position can be determined in the following ways.

[0139] One possible implementation is that the second position is a preset position, and optionally, the second position has the same spatial coordinates as the first position.

[0140] Understandably, when the first image is projected onto the first model at a preset second position based on the principle of perspective, i.e., when the first image is projected onto different sub-displays of the first model, the user at that second position can see the content displayed on those different sub-displays. When the user views from that second position, because they can see the content displayed on the different sub-displays that conforms to the principle of perspective, a 3D viewing experience can be generated.

[0141] One possible implementation involves determining the second position based on the folding angle information of the electronic device's display screen and / or the electronic device's posture information.

[0142] Specifically, the projection position corresponding to the first state information of the electronic device is the first position. When the state information of the electronic device changes from the first state information to the second state information, that is, when the electronic device changes from the first state to the second state (for example, when the folding angle of the display changes from 90° to 80°), the projection position changes to the second position corresponding to the second state information.

[0143] One possible implementation is to determine the second position based on the user's eye position; see the following text for details.

[0144] S409, Generate a texture map of the second model based on the projection of the first image onto the second model at the second position.

[0145] For example, after the first image is projected onto the second model in S408, the projection of the first image can be displayed on a sub-display of the second model, and then a texture of the second model can be generated based on the projection of the first image. In other words, in S409, the projection of the first image onto the second model is converted into a texture of the second model.

[0146] S410, unfold the second model texture to generate the second texture.

[0147] For example, after obtaining the second model texture, the second model texture can be unfolded to obtain the second texture.

[0148] S411, Display the second texture to replace the first texture.

[0149] For example, since the state of the electronic device has changed, the first texture generated is no longer applicable to the new state of the electronic device. Therefore, after the electronic device generates a second texture, it can display the second texture on the display screen to replace the first texture.

[0150] For example, taking the first image as the image of a 3D model corresponding to a first viewpoint, the electronic device projects the first image onto the first model to generate a first model texture, unfolds the first model texture to generate a second texture, and then displays the first texture. When the user's eyes are at the first position, the user can see the first form of the 3D model. When the electronic device changes from the first state to the second state, it can project the first image onto the second model corresponding to the second state to generate a second model texture, unfold the second model texture to generate a second texture, and then display the second texture. When the user's eyes are at the first position, the user can see the second form of the 3D model. It is understandable that the first form of the 3D model is different from the second form of the 3D model.

[0151] In this embodiment of the application, when a user changes the folding angle and / or posture of the electronic device's display screen during the use of the electronic device, the electronic device can generate and display a new image that conforms to the principle of perspective in real time according to the change in the folding angle and / or posture of the display screen, so that the user will not lose the 3D viewing experience due to the change in the folding angle and / or posture of the display screen.

[0152] Figure 9 Another schematic flowchart of a 3D display method according to an embodiment of this application is shown, wherein the first image is a frame of a video. The video includes a first image and a second image, the second image being the next frame after the first image, such as... Figure 9 As shown, after S405, method 400 further includes:

[0153] S412, the second image is projected onto the first model at the first position.

[0154] S413, Generate a third model texture based on the projection of the second image onto the first model at the first position.

[0155] S414, unfold the third model texture to generate the third texture.

[0156] S406 displays the first texture, which includes:

[0157] S4061 displays the first and third textures frame by frame.

[0158] Specifically, after the first and third textures are generated, they can be displayed frame by frame according to the order of the first and second images.

[0159] It should be understood that the descriptions of S412-S414 can be found above, and for the sake of brevity, they will not be repeated here.

[0160] In this embodiment of the application, when a user watches a video using an electronic device, the electronic device can process each frame of the video to generate an image that conforms to the principle of perspective and display it frame by frame, so that the user can have a very realistic 3D viewing experience when watching the video.

[0161] Optionally, in some embodiments, the first image is a frame of a video, and the first texture is obtained by unfolding the UV mapping of the first image and the first model texture generated from the first image. When displaying the first texture, if the state information of the electronic device changes from the first state information to the second state information, that is, the electronic device changes from the first state to the second state, the electronic device can project at least one frame of the video onto the second model texture generated from the second state information, and then unfold the model texture to generate the unfolded model texture and display it frame by frame.

[0162] One possible implementation is that the electronic device projects each frame of the video onto a second model generating model texture map corresponding to the second state information, then unfolds the model texture map to generate an unfolded model texture map and displays it frame by frame.

[0163] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If the electronic device changes its state information from the first state information to the second state information while displaying the first texture, that is, the electronic device can display the texture corresponding to the second image (such as the fourth texture shown below) in the second state. Therefore, the electronic device generates a second model based on the second state information, and then can re-project the first image onto the second model at the second position to obtain a second model texture, then unfold the second model texture to generate a second texture, and display the second texture. During the generation of the second texture, the electronic device can also project the second image onto the second model at the second position to obtain a fourth model texture, then unfold the fourth model texture to generate a fourth texture. The electronic device uses the second texture to replace the first texture and displays the second texture and the fourth texture frame by frame.

[0164] One possible implementation is that the electronic device projects each frame of the video after the first image onto the second model generating model texture map corresponding to the second state information, then unfolds the model texture map to generate an unfolded model texture map and displays it frame by frame.

[0165] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If the electronic device changes its state information from the first state information to the second state information while displaying the first texture, that is, the electronic device can display the texture corresponding to the second image (such as the fourth texture shown below) in the second state. Therefore, the electronic device can generate a second model based on the second state information, then project the second image onto the second model at a second position to obtain a fourth model texture, then unfold the fourth model texture to generate a fourth texture, and display the fourth texture after displaying the first texture. In other words, the electronic device displays the first texture in the first state and the fourth texture in the second state.

[0166] In this embodiment of the application, when a user watches a video using an electronic device, the electronic device can process each frame of the video to generate an image that conforms to the principle of perspective and display it frame by frame. When the state of the electronic device changes, it can be adjusted in real time, so that the user can always have a very realistic 3D viewing experience even if the state of the electronic device changes.

[0167] Figure 10 Another schematic flowchart of a 3D display method according to an embodiment of this application is shown, such as Figure 10 As shown, after S402, method 500 further includes:

[0168] S415 detects the positional relationship between the user's eyes and the electronic device.

[0169] In S403, projecting the first image onto the first model at the first position includes:

[0170] S4031, determine the first position based on the positional relationship between the user's eyes and the electronic device.

[0171] For example, an electronic device can detect the positional relationship between the user's eyes and the electronic device, and determine a first position based on the positional relationship between the user's eyes and the electronic device, that is, the position of the user's eyes is the first position.

[0172] In this embodiment of the application, the position of the user's eyes and the position of the electronic device can be determined in the following ways.

[0173] One possible implementation is that the electronic device includes a camera that can capture depth information, allowing the electronic device to determine the positional relationship between the user's eyes and the electronic device.

[0174] For example, an electronic device can capture a user's head in real time using a camera, thereby obtaining an image of the user's head. This head image includes depth information, which allows the distance between each pixel in the head image and the electronic device to be determined. Furthermore, image recognition technology can be used to identify the eyes in the head image, thereby determining the positional relationship between the user's eyes and the electronic device, i.e., determining the initial position.

[0175] One possible implementation is that electronic devices can use multi-camera setups to determine the positional relationship between the user's eyes and the electronic device.

[0176] For example, taking a binocular camera as an example, the user's head image acquired by a binocular camera may not contain depth information. However, since the distance between the two cameras in a binocular camera is fixed, the distance between each pixel in the head image and the electronic device can be calculated based on the user's head image acquired by each of the two cameras and the distance between the two cameras. The electronic device can also identify the eyes in the head image using image recognition technology, thereby determining the positional relationship between the user's eyes and the electronic device, i.e., determining the first position.

[0177] S4032, Project the first image onto the first model at the first position.

[0178] It should be understood that the description of S4032 can be found above, and for the sake of brevity, it will not be repeated here.

[0179] In this embodiment, when the electronic device projects the first image, the projection position can be determined according to the positional relationship between the user's eyes and the electronic device. That is, the position of the user's eyes is the optimal viewing position, so that the user does not need to find the optimal viewing position when using the electronic device to generate a very realistic 3D viewing experience, thus improving the user experience.

[0180] Optionally, in some embodiments, method 500 further includes:

[0181] When the user's eye position changes from the first position to the third position, the first image is projected onto the first model at the third position.

[0182] A fifth model texture is generated based on the projection of the first image onto the first model at the third position;

[0183] Unfold the fifth model texture to generate the fifth texture;

[0184] The fifth texture is displayed to replace the first texture.

[0185] For example, when the electronic device detects a change in the user's eye position from a first position to a third position, the electronic device can project the first image onto the first model to form a fifth model texture based on the new projection position (i.e., the third position), and then expand the fifth model texture to generate and display the fifth texture to replace the first texture.

[0186] In this embodiment, when a user's eye position changes while using the electronic device, the electronic device can adjust the projection position in real time and project a first image according to the user's latest eye position to form a new image. The electronic device dynamically changes the optimal viewing angle to match the user's eye position, thereby improving the user experience.

[0187] Optionally, in some embodiments, method 500 further includes:

[0188] When the user's eye changes from the first position to the third position and the electronic device's state information changes from the first state information to the second state information, a second model is generated based on the second state information, and the first image is projected onto the second model at the third position.

[0189] The sixth model texture is generated based on the projection of the first image onto the second model at the third position;

[0190] Unfold the sixth model texture to generate the sixth texture;

[0191] The sixth texture is displayed to replace the first texture.

[0192] Specifically, when the electronic device detects a change in the user's eye position from the first position to the third position, and the electronic device's state changes from the first state to the second state, the electronic device can project the first image onto the second model to form a sixth model texture based on the new projection position (i.e., the third position), then expand the sixth model texture to generate the sixth texture, and then display the sixth texture to replace the first texture.

[0193] In this embodiment, when both the user's eye position and the state of the electronic device change during the user's use of the electronic device, the electronic device can adjust the projection position and model in real time, projecting the first image onto the new model according to the user's latest eye position, and finally forming a new image. The electronic device dynamically changes the optimal viewing angle to match the user's eye position and the state of the electronic device, thereby improving the user experience.

[0194] Optionally, in some embodiments, the first image is a frame of a video. If the user's eye position changes from the first position to the third position when the first texture is displayed, the electronic device can project at least one frame of the video onto the first model at the third position to generate a model texture. Then, the model texture is expanded to generate an expanded model texture and displayed frame by frame.

[0195] One possible implementation is that the electronic device projects each frame of the video onto the first model at a third location to generate a model texture, then unfolds the model texture generation and displays the unfolded model texture frame by frame.

[0196] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If, while the electronic device is displaying the first texture, the user's eye position changes from the first position to the third position, the electronic device can re-project the first image onto the first model at the third position to obtain a fifth model texture, then unfold the fifth model texture to generate a fifth texture, and display the fifth texture. During the generation of the fifth texture, the electronic device can also project the second image onto the first model at the third position to obtain a seventh model texture, then unfold the seventh model texture to generate a seventh texture. The electronic device replaces the first texture with the fifth texture and displays the fifth and seventh textures frame by frame.

[0197] One possible implementation is that the electronic device projects each frame of the video after the first image onto the first model at a third position to generate a model texture, then unfolds the model texture generation and displays the unfolded model texture frame by frame.

[0198] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If, while the electronic device is displaying the first texture, the user's eye position changes from the first position to the third position, the electronic device can project the second image onto the first model at the third position to obtain a seventh model texture, then unfold the seventh model texture to generate a seventh texture, and display the seventh texture after displaying the fifth texture.

[0199] In this embodiment of the application, when a user watches a video using an electronic device, the electronic device can process each frame of the video to generate and display an image that conforms to the principle of perspective frame by frame. When the position of the user's eyes changes, the electronic device can adjust in real time, so that the user can always have a very realistic 3D viewing experience even when the position of their eyes changes.

[0200] Optionally, in some embodiments, the first image is a frame of a video. When displaying the first texture, if the user's eye position changes from the first position to the third position, and the state of the electronic device changes from the first state information to the second state information, the electronic device can project at least one frame of the video onto the second model at the third position to generate a model texture, and then expand the model texture to generate an expanded model texture and display it frame by frame.

[0201] One possible implementation is that the electronic device projects each frame of the video onto the second model at a third location to generate a model texture, then unfolds the model texture generation and displays the unfolded model texture frame by frame.

[0202] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If, while the electronic device is displaying the first texture, the user's eye position changes from the first position to the third position, the electronic device's state changes from the first state to the second state, meaning the electronic device can display the texture corresponding to the second image (e.g., the ninth texture shown below) in the second state. Therefore, the electronic device can generate a second model based on the second state information and reproject the first image onto the second model at the third position to obtain an eighth model texture, then unfold the eighth model texture to generate the eighth texture, and display the eighth texture. During the generation of the eighth texture, the electronic device can also project the second image onto the second model at the third position to obtain a ninth model texture, then unfold the ninth model texture to generate the ninth texture. The electronic device replaces the first texture with the eighth texture and displays the eighth and ninth textures frame by frame.

[0203] One possible implementation is that the electronic device projects each frame of the video after the first image onto the second model at a third position to generate a model texture, then unfolds the model texture generation and displays the unfolded model texture frame by frame.

[0204] For example, the first image is the first frame of a video, and the second image is the second frame of the video. The electronic device's state information is the first state information. The electronic device projects the first image onto the first model corresponding to the first state information to obtain a first model texture, then unfolds the first model texture to generate a first texture, and displays the first texture. If, while the electronic device is displaying the first texture, the user's eye position changes from the first position to the third position, and the electronic device's state changes from the first state to the second state, then the electronic device can display the texture corresponding to the second image (e.g., the ninth texture shown below) in the second state. Therefore, the electronic device generates a second model based on the second state information and can project the second image onto the second model at the third position to obtain a ninth model texture, then unfolds the ninth model texture to generate a ninth texture, and displays the ninth texture after displaying the first texture.

[0205] In this embodiment of the application, when a user watches a video using an electronic device, the electronic device can process each frame of the video to generate an image that conforms to the principle of perspective and display it frame by frame. When the position of the user's eyes and the state of the electronic device change, the electronic device can adjust the projection position and model in real time. Thus, when the user watches the video, even if the position of the user's eyes and the state of the electronic device change, the user can always have a very realistic 3D viewing experience.

[0206] Optionally, in some embodiments, when the first image is an image of a 3D model corresponding to a first viewpoint, method 500 further includes:

[0207] When the user's eye position changes from the first position to the third position, the second viewpoint is determined based on the third position.

[0208] The third image is determined based on the second perspective and the 3D model;

[0209] Project the third image onto the first model at the third position;

[0210] The tenth model texture is generated based on the projection of the third image onto the first model at the third position.

[0211] Unfold the tenth model texture to generate the tenth texture;

[0212] The tenth texture is displayed to replace the first texture.

[0213] For example, when the electronic device detects a change in the user's eye position from the first position to the third position, since the first image is the image of the 3D model corresponding to the first viewpoint, the viewpoint will also change when the user's eye position changes. Thus, a new viewpoint can be determined based on the third position of the user's eye, and then the image of the 3D model corresponding to that viewpoint can be determined based on the new viewpoint. Thus, the electronic device can project the new image onto the first model to form a tenth model texture based on the new projection position (i.e., the third position), and then expand the tenth model texture to generate and display the tenth texture to replace the first texture.

[0214] For example, such as Figure 11 The image shows a schematic diagram of a 3D model (e.g., a tetrahedron) from both a first-person and a second-person perspective. Figure 11 Image (a) shows the image of the tetrahedron from a first viewpoint, i.e., the first image. The electronic device can project the first image onto the first model at a first position to obtain the first model texture, and then unfold and display the first texture. Figure 11 (b) shows the image of the tetrahedron from the second viewpoint. When the electronic device detects that the user's eye has changed from the first position to the third position, it determines the second viewpoint based on the third position, and then determines the image of the tetrahedron from the second viewpoint, i.e., the third image. The electronic device can project the third image onto the first model at the third position to form a tenth model texture, and then expand the tenth model texture to generate and display the tenth texture to replace the first texture. Thus, when the user views from the third position, they can see... Figure 11 The 3D model shown in (b) is shown in the image.

[0215] In this embodiment, the first image is the image corresponding to the first perspective of the 3D model. When the user's eye position changes during the use of the electronic device, the 3D model can be adjusted in real time according to the change in the user's eye position, so that the 3D model can rotate with the change in the user's eye position, thereby allowing the user to view the 3D model from different perspectives, improving the user experience and sense of immersion.

[0216] The foregoing mainly describes a 3D display method provided by the embodiments of this application from the perspective of an electronic device. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0217] This application embodiment can divide the processor in an electronic device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0218] With the adoption of dividing each function into different modules, corresponding to each function, Figure 12 This illustration shows a schematic diagram of the composition of an electronic device 1200 provided in an embodiment of this application, as shown below. Figure 12 As shown, the second electronic device includes: an acquisition unit 1210, a detection unit 1220, a processing unit 1230, and a display unit 1240.

[0219] The acquisition unit 1210 is used to acquire the first state information and the second electronic device information of the electronic device.

[0220] The detection unit 1220 is used to detect the position of the user's eyes and the status of the electronic device.

[0221] Processing unit 1230 is used to generate a first model based on the first state information.

[0222] The processing unit 1230 is also configured to project the first image onto the first model at the first position.

[0223] The processing unit 1230 is further configured to generate a first model texture based on the projection of the first image onto the first model at the first position.

[0224] The processing unit 1230 is further configured to generate a first model texture based on the projection of the first image onto the first model at the first position.

[0225] The processing unit 1230 is also configured to generate a first texture by unfolding the first model texture.

[0226] Display unit 1240 is used to display the first texture.

[0227] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here. The electronic device provided in this application embodiment is used to execute the above-described 3D display method, and therefore can achieve the same effect as described above.

[0228] This application also provides an electronic device, including a processor, a memory, an application program, and a computer program. The aforementioned devices can be connected via one or more communication buses. The one or more computer programs are stored in the memory and configured to be executed by the one or more processors. The one or more computer programs include instructions that can be used to cause the electronic device to perform various steps of the electronic device in the above embodiments.

[0229] For example, the processor described above can specifically be Figure 1 The processor 110 shown above, the memory mentioned above can specifically be... Figure 1 The internal memory 120 shown and / or the external memory connected to the electronic device.

[0230] This application also provides a chip, which includes a processor and a communication interface. The communication interface is used to receive signals and transmit the signals to the processor. The processor processes the signals so that the 3D display method described in any of the possible implementations above is executed.

[0231] This embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to achieve the 3D display method in the above embodiment.

[0232] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the 3D display method in the above embodiment.

[0233] As used in the above embodiments, depending on the context, the terms "when..." or "after..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrases "when..." or "if (the stated condition or event) is detected" can be interpreted as meaning "if...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0234] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0235] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0236] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0237] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0238] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0239] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0240] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.