Display method and device
By receiving user operations and using perspective projection technology, 3D display and 2D display are combined, which solves the problem of being unable to realize 3D display of some objects and 2D display of some objects in the existing technology, and improves user experience and visual effects.
Patent Information
- Application Number
- CN202210903988.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Existing 3D display technology cannot realize that some objects are displayed in 3D and some objects are displayed in 2D, which limits the user experience.
By receiving user operations, the object currently displayed is determined and converted into a 3D display using perspective projection, while other objects are retained as 2D display and processed using orthogonal projection or virtual cameras to form a composite view.
It is possible to display some objects in the screen in 3D and some objects in 2D according to user needs, which improves the user experience and visual effects.
Smart Images

Figure CN115278202B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers, and in particular to a display method and device. Background Art
[0002] With the continuous development of electronic equipment technology, 3D display has been developed and popularized. 3D display generally achieves a three-dimensional effect by wearing glasses, but the way of wearing glasses limits the 3D application and the viewer's experience. Naked-eye 3D allows the display device to naturally project two images into the left and right eyes respectively, and then integrate them into a three-dimensional image through the brain.
[0003] Whether it is wearable 3D display or naked-eye 3D display, both present 3D effects for the entire screen. In some cases, some objects in a screen need to be displayed in 3D and others in 2D. For example, for a screen with both patterns and text descriptions, viewers need the patterns to be displayed in 3D and the text to be displayed in 2D. Summary of the invention
[0004] The present disclosure provides a display method and device to at least solve the above technical problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a display method is provided, which is applied to an electronic device, and the method includes:
[0006] receiving a first operation;
[0007] Determine at least one object in the current display screen according to the first operation;
[0008] Obtaining a first left-eye view and a first right-eye view by perspective projection of at least one of the determined objects, so that at least one of the objects is switched from 2D display to 3D display;
[0009] Keep the remaining objects in the current screen in the current 2D display.
[0010] In one possible implementation, the remaining objects in the current picture are retained in the current 2D display, including:
[0011] Orthogonal projection is performed on the remaining objects of the current picture to obtain a second left-eye view and a second right-eye view.
[0012] In one embodiment, the method further comprises:
[0013] superimposing the first left-eye view and the second left-eye view to obtain a composite left-eye view;
[0014] The first right-eye view and the second right-eye view are superimposed to obtain a composite right-eye view, and the composite left-eye view and the composite right-eye view constitute a display screen of the electronic device.
[0015] In one possible implementation, orthogonally projecting the remaining objects of the current picture to obtain a second left-eye view and a second right-eye view includes:
[0016] The remaining objects of the current picture are orthogonally projected by the first virtual camera to obtain the second left-eye view, and the remaining objects of the current picture are orthogonally projected by the second virtual camera to obtain the second right-eye view. The first virtual camera and the second virtual camera are arranged side by side and spaced apart, and the first virtual camera and the second virtual camera have the same direction.
[0017] In one possible implementation, obtaining a first left-eye view and a first right-eye view by perspective projection of the determined at least one object includes:
[0018] The at least one determined object is perspective projected by a third virtual camera to obtain the first left-eye view, and the at least one determined object is perspective projected by a fourth virtual camera to obtain the first right-eye view.
[0019] In one possible implementation, determining at least one object of the current display screen according to the first operation includes:
[0020] Determine a first coordinate of the first operation on the current display screen;
[0021] Matching the first coordinates with the coordinates of the object in the current display image;
[0022] At least one of the objects in the current display screen is determined according to the matching result.
[0023] In one possible implementation, determining at least one object of the current display screen according to the first operation includes:
[0024] Determine the minimum enclosing area of each object in the current display image, wherein the minimum enclosing area includes a minimum enclosing frame or a minimum enclosing volume;
[0025] Determining a spatial point or a spatial volume corresponding to the first operation;
[0026] When the minimum enclosing area collides with the spatial point or the spatial body, the object in the minimum enclosing area that collides is at least one of the objects.
[0027] In one possible implementation, before switching the determined at least one object from 2D display to 3D display, the method further includes:
[0028] Determining a position of at least one of the objects in the current picture;
[0029] When at least one of the objects is located on the left or right side of the current picture, the pixels of the object are adjusted.
[0030] In one possible implementation, the first operation includes an operation based on an input device, a gesture operation, and an eye movement operation.
[0031] According to a second aspect of the present disclosure, a data display device is provided, which is applied to an electronic device, and the device includes:
[0032] A receiving module, configured to receive a first operation;
[0033] A determination module, configured to determine at least one object in a currently displayed image according to the first operation;
[0034] The display module is used to obtain a first left-eye view and a first right-eye view by perspective projection of at least one of the determined objects, so as to switch the at least one object from 2D display to 3D display; and to keep the current 2D display of the remaining objects in the current screen.
[0035] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0036] at least one processor; and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0039] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0040] In the display method disclosed in the present invention, at least one object of the current display screen can be determined according to the received first operation; the at least one determined object is subjected to perspective projection to obtain a first left-eye view and a first right-eye view, so that at least one object is switched from 2D display to 3D display; the remaining objects of the current screen retain the current 2D display. In the screen displayed in 2D, the selected object is displayed using perspective projection, so that the selected object presents a 3D display effect. According to user needs, part of the object in the screen is displayed in 3D, and part of the object is displayed in 2D to meet the user's viewing needs and improve the user experience.
[0041] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0043] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0044] Figure 1 A schematic diagram of the implementation process of the display method according to the embodiment of the present disclosure is shown;
[0045] Figure 2 The first operation in the display method of the present disclosure is shown in FIG. Figure 1 ;
[0046] Figure 3 The first operation in the display method of the present disclosure is shown in FIG. Figure 2 ;
[0047] Figure 4 The first operation in the display method of the present disclosure is shown in FIG. Figure 3 ;
[0048] Figure 5 The first operation in the display method of the present disclosure is shown in FIG. Figure 4 ;
[0049] Figure 6 The following is a schematic diagram showing an implementation of determining an object according to a first operation in a display method according to an embodiment of the present disclosure;
[0050] Figure 7 A schematic diagram showing the structure of a display device according to an embodiment of the present disclosure is shown;
[0051] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0052] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0053] See also Figure 1 , an embodiment of the present disclosure provides a display method, applied to an electronic device, the method comprising:
[0054] receiving a first operation;
[0055] Determine at least one object of the current display screen according to the first operation;
[0056] Using perspective projection on the determined at least one object to obtain a first left-eye view and a first right-eye view, so that the at least one object is switched from 2D display to 3D display;
[0057] Keep the remaining objects in the current screen in the current 2D display.
[0058] In the display method disclosed in the present invention, at least one object of the current display screen can be determined according to the received first operation; the at least one determined object is subjected to perspective projection to obtain a first left-eye view and a first right-eye view, so that at least one object is switched from 2D display to 3D display; the remaining objects of the current screen are retained in the current 2D display. In the screen displayed in 2D, the selected object is displayed using perspective projection, so that the selected object presents a 3D display effect. According to user needs, part of the object in the screen is displayed in 3D, and part of the object is displayed in 2D to meet the user's viewing needs and improve the user experience.
[0059] In one possible implementation, the remaining objects of the current screen are retained in the current 2D display, including: orthogonal projection is used for the remaining objects of the current screen to obtain a second left-eye view and a second right-eye view. In the disclosed embodiment, the objects that need to be displayed in 2D form a second left-eye view and a second right-eye view, and the 2D left and right eye views can match the 3D left and right eye views to form an overall picture composed of part 2D and part 3D. The second left-eye view and the second right-eye view obtained by orthogonal projection have the same pixel parallax, forming a 2D view in the brain, and the first left-eye view and the first right-eye view obtained by perspective projection are synthesized in the brain to form a view that is convex above the 2D, showing a 3D effect, and the overall picture is more natural and the visual effect is good.
[0060] In one possible implementation, the display method of the disclosed embodiment further includes: superimposing the first left eye view with the second left eye view to obtain a composite left eye view; superimposing the first right eye view with the second right eye view to obtain a composite right eye view, and the composite left eye view and the composite right eye view constitute a display screen of the electronic device. By superimposing the first left eye view of 3D with the second left eye view of 2D, a composite left eye view formed by two projection methods is obtained, and by superimposing the first right eye view of 3D with the second right eye view of 2D, a composite right eye view formed by two projection methods is obtained. The overall picture is displayed as a composite left eye view and a composite right eye view, and different objects are synthesized into 2D or 3D in the brain, respectively, without deviation when some objects are switched from 2D to 3D.
[0061] In one possible implementation, orthogonally projecting the remaining objects of the current screen to obtain a second left-eye view and a second right-eye view includes: orthogonally projecting the remaining objects of the current screen with a first virtual camera to obtain a second left-eye view, orthogonally projecting the remaining objects of the current screen with a second virtual camera to obtain a second right-eye view, the first virtual camera and the second virtual camera are arranged side by side with intervals, and the first virtual camera and the second virtual camera have the same orientation. In the disclosed embodiment, when orthogonally projecting objects for 2D display, two virtual cameras arranged side by side with intervals are used to perform orthogonal projection on all objects that need to be displayed in 2D, respectively, to form a second left-eye view and a second right-eye view, and the second left-eye view and the second right-eye view have the same pixel parallax, thereby ensuring the 2D display effect and the overall effect with 3D display.
[0062] In one possible implementation, the first left-eye view and the first right-eye view are obtained by perspective projection of at least one determined object, including: perspective projection of at least one determined object using a third virtual camera to obtain a first left-eye view, and perspective projection of at least one determined object using a fourth virtual camera to obtain a first right-eye view. In the disclosed embodiment, when perspective projection is performed on objects to be displayed in 3D, two virtual cameras spaced side by side are used to perform perspective projection on all objects that need to be displayed in 3D, respectively, to form a first left-eye view and a first right-eye view. The first left-eye view and the first right-eye view are synthesized into a 3D display effect in the brain, and can be well superimposed with the second left-eye view and the second right-eye view formed by orthogonal projection of the two virtual cameras, thereby ensuring the display effect of the overall picture.
[0063] In one embodiment, the first operation includes an operation based on an input device, a gesture operation, and an eye movement operation. Figure 2The input device can be a device that can perform cursor operations, such as a mouse. The user operates the mouse to move the cursor to the location of the object to be selected. The object selection can be achieved by clicking, or the operation can be achieved by the time the cursor stays on the object reaching a threshold. The specific setting of the threshold is not limited. In specific implementations, the threshold can be, for example, 2s, 3s, 5s, etc. Alternatively, the user can operate the mouse to drag to select objects within a certain range, see Figure 3 , Figure 3 The dotted box in the figure is the boundary of the range selected by the cursor when dragging the mouse. Figure 4 , the gesture operation can be directly applied to the screen of the electronic device to select the displayed object. The specific method can be to directly click the object with a finger, or to circle a certain range on the screen with a finger. See Figure 5 , Figure 5 The dotted line in the figure represents the trajectory of the finger moving on the screen. Alternatively, the gesture may be mapped to the cursor through a manual device so that the cursor moves with the gesture. The specific implementation of the manual operation may also refer to the description of the mouse operation above. The eye movement operation may be mapped to the cursor through an eye movement device so that the cursor moves with the gesture, thereby realizing the selection of the object. The first operation of realizing the selection of the object through gesture or eye movement and cursor mapping may refer to Figure 2 and Figure 3 .
[0064] In one possible implementation, determining at least one object in the current display screen according to the first operation includes: determining a first coordinate of the first operation in the current display screen; matching the first coordinate with the coordinates of the object in the current display screen; and determining at least one object in the current display screen according to the matching result. In the disclosed embodiment, each object in the current display screen has a spatial coordinate, and the spatial coordinate of the first operation, i.e., the first coordinate, can be determined according to the position of the first operation in the current display screen. By matching the first coordinate with the coordinates of the object, it can be determined that the object corresponding to the first operation needs to be displayed in 3D.
[0065] In one possible implementation, determining at least one object of the current display screen according to the first operation includes: determining the minimum enclosing of each object in the current display screen, the minimum enclosing including a minimum enclosing box or a minimum enclosing volume; determining a spatial point or a spatial body corresponding to the first operation; when the minimum enclosing collides with the spatial point or the spatial body, the object within the minimum enclosing that collides is at least one object. In the disclosed embodiment, the minimum enclosing box of the object is the rectangular box with the smallest area where the projection of the object on the screen is located, and the minimum enclosing volume is the cuboid with the smallest volume where the object is located in space. It can be determined based on the projection coordinates of each object on the screen of the electronic device whether the spatial point corresponding to the first operation collides. For example, when the coordinates of the spatial point corresponding to the first operation are within the minimum enclosing box of the projection of the object on the screen, the spatial point collides with the minimum enclosing. It can also be determined based on the coordinates of each object in space whether the spatial body corresponding to the first operation collides. The spatial body refers to a line, surface or body formed by extending the first operation in a direction perpendicular to the screen. For example, see Figure 6 , the dotted line in the figure represents the line formed by the first operation extending in a direction perpendicular to the screen. When the space body corresponding to the first operation intersects with the minimum enclosing volume of the object in space, the space body collides with the minimum enclosing volume.
[0066] In one possible implementation, before switching the determined at least one object from 2D display to 3D display, the method further includes: determining the position of the at least one object in the current picture; and when the at least one object is located on the left or right side of the current picture, adjusting the pixels of the object. In the embodiment of the present disclosure, when objects located on both sides of the current picture need to be displayed in 3D, the 3D display effect can be improved by adjusting the pixels of the object.
[0067] In one possible implementation, the display method of the embodiment of the present disclosure further includes: receiving a second operation, determining at least one object displayed in 3D in the current display screen according to the second operation; and switching the determined at least one object from 3D display to 3D display. The embodiment of the present disclosure can switch the 3D displayed object back to 2D display according to the second operation. The type of the second operation, the method of determining the object, etc. can all refer to the above embodiments, and will not be repeated here.
[0068] In the disclosed embodiment, each object may be a 3D model, which is displayed in 2D through orthogonal projection and in 3D through perspective projection, and the switching between 2D and 3D is simple and convenient.
[0069] See also Figure 7An embodiment of the present disclosure provides a data display device, which is applied to an electronic device. The device includes a receiving module, a determining module and a display module. The receiving module is used to receive a first operation; the determining module is used to determine at least one object of a current display screen according to the first operation; the display module is used to obtain a first left-eye view and a first right-eye view for the determined at least one object using perspective projection, so that at least one object is switched from 2D display to 3D display; and the remaining objects of the current screen are kept in the current 2D display.
[0070] In the display device of the present disclosure, the determination module can determine at least one object of the current display screen according to the first operation received by the receiving module; the display module uses perspective projection to obtain a first left-eye view and a first right-eye view for the at least one determined object, so that at least one object is switched from 2D display to 3D display; the remaining objects of the current screen retain the current 2D display. In the screen displayed in 2D, the selected object is displayed using perspective projection so that the selected object presents a 3D display effect. According to user needs, part of the object in the screen is displayed in 3D, and part of the object is displayed in 2D to meet the user's viewing needs and improve the user experience.
[0071] In one possible implementation, the display module retains the current 2D display of the remaining objects in the current picture, including: performing orthogonal projection on the remaining objects in the current picture to obtain a second left-eye view and a second right-eye view.
[0072] In one possible implementation, the display module of the display device of the embodiment of the present disclosure is also used to: superimpose the first left eye view with the second left eye view to obtain a composite left eye view; superimpose the first right eye view with the second right eye view to obtain a composite right eye view, and the composite left eye view and the composite right eye view constitute a display screen of the electronic device.
[0073] In one possible implementation, the display module uses orthogonal projection on the remaining objects of the current screen to obtain a second left-eye view and a second right-eye view, including: using a first virtual camera to orthogonally project the remaining objects of the current screen to obtain a second left-eye view, using a second virtual camera to orthogonally project the remaining objects of the current screen to obtain a second right-eye view, the first virtual camera and the second virtual camera are arranged side by side and spaced apart, and the first virtual camera and the second virtual camera have the same orientation.
[0074] In one possible implementation, the display module uses perspective projection to obtain a first left-eye view and a first right-eye view for at least one determined object, including: performing perspective projection on the at least one determined object using a third virtual camera to obtain a first left-eye view, and performing perspective projection on the at least one determined object using a fourth virtual camera to obtain a first right-eye view.
[0075] In one possible implementation, the first operation received by the receiving module includes an operation based on an input device, a gesture operation, and an eye movement operation.
[0076] In one possible implementation, the determination module determines at least one object in the current display screen based on the first operation, including: determining the first coordinates of the first operation in the current display screen; matching the first coordinates with the coordinates of the object in the current display screen; and determining at least one object in the current display screen based on the matching result.
[0077] In one possible implementation, the determination module determines at least one object in the current display screen based on the first operation, including: determining the minimum encirclement of each object in the current display screen, the minimum encirclement including a minimum encirclement box or a minimum encirclement volume; determining a spatial point or a spatial body corresponding to the first operation; when the minimum encirclement collides with the spatial point or the spatial body, the object within the colliding minimum encirclement is at least one object.
[0078] In one possible implementation, before switching the determined at least one object from 2D display to 3D display, the method further includes: determining the position of the at least one object in the current picture; and when the at least one object is located on the left or right side of the current picture, adjusting the pixels of the object. In the embodiment of the present disclosure, when objects located on both sides of the current picture need to be displayed in 3D, the 3D display effect can be improved by adjusting the pixels of the object.
[0079] The display device of the embodiment of the present disclosure can implement the method of the above embodiment. The above description of the display device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the above method embodiment, so it will not be repeated. For the technical details that have not been disclosed in the description of the display device embodiment of the present disclosure, please refer to the description of the above method embodiment of the present disclosure for understanding. In order to save space, it will not be repeated.
[0080] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0081] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0082] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0083] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0084] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as display methods. For example, in some embodiments, the display method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the display method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the display method in any other appropriate manner (e.g., by means of firmware).
[0085] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0086] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0087] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0088] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0089] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0090] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0091] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0092] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0093] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A display method, applied to an electronic device, comprising: receiving a first operation; Determine at least one object in the current display screen according to the first operation; Obtaining a first left-eye view and a first right-eye view by perspective projection of at least one of the determined objects, so that at least one of the objects is switched from 2D display to 3D display; The remaining objects of the current picture are retained in the current 2D display, which includes: orthogonally projecting the remaining objects of the current picture to obtain a second left-eye view and a second right-eye view.
2. The method according to claim 1, further comprising: superimposing the first left-eye view and the second left-eye view to obtain a composite left-eye view; The first right-eye view and the second right-eye view are superimposed to obtain a composite right-eye view, and the composite left-eye view and the composite right-eye view constitute a display screen of the electronic device.
3. The method according to claim 1, wherein: Orthogonally projecting the remaining objects of the current picture to obtain a second left-eye view and a second right-eye view includes: The remaining objects of the current picture are orthogonally projected by the first virtual camera to obtain the second left-eye view, and the remaining objects of the current picture are orthogonally projected by the second virtual camera to obtain the second right-eye view. The first virtual camera and the second virtual camera are arranged side by side and spaced apart, and the first virtual camera and the second virtual camera have the same direction.
4. The method according to claim 1, wherein: The method further comprises: using perspective projection to obtain a first left-eye view and a first right-eye view of the at least one determined object, comprising: The at least one determined object is perspective projected by a third virtual camera to obtain the first left-eye view, and the at least one determined object is perspective projected by a fourth virtual camera to obtain the first right-eye view.
5. The method according to claim 1, wherein: Determining at least one object of the current display screen according to the first operation includes: Determine a first coordinate of the first operation on the currently displayed screen; Matching the first coordinates with the coordinates of the object in the currently displayed image; At least one object of the current display screen is determined according to the matching result.
6. The method according to claim 1, determining at least one object of the current display screen according to the first operation, comprising: Determine the minimum enclosing area of each object in the current display image, wherein the minimum enclosing area includes a minimum enclosing frame or a minimum enclosing volume; Determining a spatial point or a spatial volume corresponding to the first operation; When the minimum enclosing area collides with the spatial point or the spatial body, the object in the minimum enclosing area that collides is at least one of the objects.
7. The method according to claim 1, before switching the determined at least one object from 2D display to 3D display, the method further comprises: Determining a position of at least one of the objects in the current picture; When at least one of the objects is located on the left or right side of the current picture, the pixels of the object are adjusted. 8 . The method according to claim 1 , wherein the first operation comprises an operation based on an input device, a gesture operation, and an eye movement operation.
9. A data display device, applied to an electronic device, comprising: A receiving module, configured to receive a first operation; A determination module, configured to determine at least one object in a currently displayed image according to the first operation; The display module is used to use perspective projection to obtain a first left-eye view and a first right-eye view for at least one of the determined objects, so that at least one of the objects is switched from 2D display to 3D display; and the remaining objects in the current picture are retained in the current 2D display, including: using orthogonal projection to obtain a second left-eye view and a second right-eye view for the remaining objects in the current picture.
Citation Information
Patent Citations
Mobile terminal and image converting method thereof
US20130050117A1
