[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2021169992A1 - Content presentation method and apparatus, terminal device, and computer-readable storage medium - Google Patents

Content presentation method and apparatus, terminal device, and computer-readable storage medium Download PDF

Info

Publication number
WO2021169992A1
WO2021169992A1 PCT/CN2021/077641 CN2021077641W WO2021169992A1 WO 2021169992 A1 WO2021169992 A1 WO 2021169992A1 CN 2021077641 W CN2021077641 W CN 2021077641W WO 2021169992 A1 WO2021169992 A1 WO 2021169992A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
application
terminal device
folding
current application
Prior art date
Application number
PCT/CN2021/077641
Other languages
French (fr)
Chinese (zh)
Inventor
华文
徐杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021169992A1 publication Critical patent/WO2021169992A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1615Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
    • G06F1/1616Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Definitions

  • This application belongs to the field of terminal technology, and in particular relates to a content presentation method, device, terminal device, and computer-readable storage medium.
  • the embodiments of the present application provide a content presentation method, device, terminal device, and computer-readable storage medium, which can simply and quickly start the AR mode, VR mode, or 3D mode of the application for content presentation.
  • an embodiment of the present application provides a content presentation method, which is applied to a terminal device with a folding screen, and the method may include:
  • the target mode of the current application is started, and the content of the current application is presented through the target mode.
  • the target modes are augmented reality AR mode, virtual reality VR mode and 3D At least one of the 3D modes.
  • the content presentation mode may include a normal mode and an AR mode, that is, the current application may be an application including a normal mode and an AR mode.
  • the content presentation mode may include a normal mode and a VR mode, that is, the current application may be an application including a normal mode and a VR mode.
  • the content acquisition mode may include a normal mode, an AR mode, and a 3D mode, that is, the current application may be an application including a normal mode, an AR mode, and a 3D mode, and so on.
  • the current application can be a built-in application directly built into the terminal device, that is, an application developed by the manufacturer of the terminal device and directly built into the terminal device, or it can be a terminal device manufacturer and a third-party manufacturer Co-developed and directly built-in applications in terminal equipment, etc.
  • the current application may also be a third-party application obtained by the terminal device from the outside, that is, the current application may also be developed by a third-party manufacturer, and the terminal device may obtain an application from the third-party manufacturer and install it in the terminal device.
  • the terminal device may detect the folding operation performed by the user on the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope.
  • the terminal device may also detect the folding operation performed by the user on the folding screen through an angle sensor provided at the bending position of the folding screen.
  • the terminal device can also detect the folding operation performed by the user on the folding screen through a physical switch set at the bending part of the folding screen. The embodiment of the present application does not specifically limit the detection method of the folding operation.
  • the terminal device when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device may send data or instructions to the third-party application and receive data or instructions returned by the third-party application through the configured application interface.
  • the terminal device when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can communicate to the third-party application through the configured application interface.
  • the application sends a content presentation mode acquisition instruction, and can receive data about the content presentation mode returned by the third-party application according to the acquisition instruction through the application interface.
  • the terminal device can determine whether the content presentation mode of the third-party application is the normal mode according to the received data. When it is determined that the content presentation mode of the third-party application is the normal mode, the terminal device can send to the third-party application through the application interface the AR mode for starting the third-party application or the VR mode of the third-party application or the third-party application. Start instruction of 3D mode for three-party application.
  • the third-party application After the third-party application receives the startup instruction transmitted by the application interface, it can start the AR mode, VR mode, or 3D mode of the third-party application according to the startup instruction to pass the AR mode, VR mode, or 3D mode of the third-party application For content presentation.
  • the terminal device when the current application is a third-party application that the terminal device obtains from the outside and is installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device may send information such as the folding angle corresponding to the folding operation to the third-party application through the configured application interface, where the folding operation refers to an operation that triggers the third-party application to start AR mode, VR mode, or 3D mode.
  • the folding angle corresponding to the folding operation refers to the angle between the folded first display screen and the second display screen.
  • the terminal device when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can send a message to the third-party application through the configured application interface.
  • the three-party application sends information such as the folding angle corresponding to the folding operation, that is, the included angle between the first display screen and the second display screen can be sent to the third-party application through the configured application interface.
  • the third-party application After the third-party application receives information such as the folding angle transmitted by the application interface, it can first obtain the content presentation mode of the third-party application, and can determine whether the content presentation mode is a normal mode.
  • the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
  • the terminal device when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device can send real-time information such as the first angle corresponding to the folding screen to the third-party application through the configured application interface, where the first angle corresponding to the folding screen currently refers to the folding screen in the current form
  • the included angle between the first display screen and the second display screen, the first angle corresponding to the folding screen may be the angle corresponding to the folding operation that can trigger the third-party application to start AR mode, VR mode, or 3D mode, It may also be an angle corresponding to the folding operation that cannot trigger the third-party application to start AR mode, VR mode, or 3D mode.
  • the terminal device can detect the current first angle and other information corresponding to the folding screen in real time, and can use the configured application interface to display the detected first angle and other information Send to the third-party application in real time.
  • the third-party application receives the first angle transmitted by the application interface, it can first determine whether the first angle is within the first angle interval. If it is determined that the first angle is within the first angle interval, the third-party application can Obtain the content presentation mode of the third-party application. Then the third-party application can continue to determine whether the content presentation mode is the normal mode.
  • the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
  • the folding screen may include a first display screen and a second display screen
  • the presenting the content of the current application in the target mode may include:
  • the first content of the current application is presented in the first display screen in the target mode, and the second content of the current application is presented in the second display screen in the normal mode.
  • the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
  • the folding screen may include a folded first display screen and an unfolded second display screen.
  • the terminal device may present the first content of the current application in the target mode on the first display screen, and The second content of the current application can be presented in the normal mode on the second display screen.
  • the terminal device can present the first content of the current application on the first display screen in AR mode, and can present the second content of the current application on the second display screen in the normal mode; or the terminal device can display on the first display screen.
  • the first content of the current application can be presented in the VR mode on the screen, and the second content of the current application can be presented in the normal mode on the second display screen; or the terminal device can be presented in the 3D mode on the first display screen.
  • a content, and the second content of the current application can be presented on the second display screen in a normal mode.
  • the terminal device may include a rear-mounted first camera device, that is, the terminal device may include a rear-mounted camera.
  • the terminal device may collect a real scene image corresponding to the current environment through the first camera device (that is, a rear camera), so as to present content in the AR mode based on the real scene image.
  • the first camera device may be located in the folded part of the terminal device.
  • the folding screen of the terminal device can form a first display screen and a second display screen after being folded.
  • the first display screen is the folded area of the folding screen
  • the second display screen is the folding screen except the first display screen.
  • the area outside, that is, the second display screen is the unfolded area of the folding screen.
  • the position of the first camera device in the terminal device may correspond to the first display screen, that is, the first camera device may be located on the back side of the terminal device corresponding to the first display screen.
  • the presenting the first content of the current application in the target mode on the first display screen may include:
  • the navigation mark is displayed in the instruction direction at the instruction location, and the first real scene image with the navigation mark is presented on the first display screen.
  • the terminal device when the terminal device determines to start the AR mode of the current application, it can acquire the first real-world image of the user’s current environment through the first camera device, and can compare the acquired first real-world image with the current application.
  • the content of the fusion is merged to merge the content that needs to be presented in the current application into the first real-scene image, and then the merged first real-scene image can be presented on the folding screen of the terminal device.
  • the user when the user uses the normal mode of the map application (ie 2D navigation mode) for navigation, when the user wants to start the AR mode of the map application (ie, the real-world navigation mode) for navigation, the user can Fold the folding screen of the terminal device to any angle within the first angle interval.
  • the normal mode of the map application ie 2D navigation mode
  • the AR mode of the map application ie, the real-world navigation mode
  • the terminal device When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first obtain the first real scene image of the user’s current environment through the first camera device, and then can obtain the first real scene image according to the acquired first real scene
  • the image, the preset map stored in the map application, and the preset navigation route determined by the 2D navigation mode are used to determine the indicated position and direction of the navigation mark in the first real-scene image, where the indicated position may be in the first real-scene image
  • the current real-time location of the user, and the indicated direction may indicate the direction and/or orientation in which the user is walking.
  • the navigation mark can be displayed at the indicated position in the first real scene image in the indicated direction, and the first real scene image with the navigation mark can be presented on the folding screen of the terminal device, so as to better help the user to reach through the real scene navigation Destination location.
  • the indication direction of the navigation mark in the first real scene image can also be adjusted according to the user's moving direction.
  • the presenting the first content of the current application in the target mode on the first display screen may include:
  • the virtual image is fused to the second real scene image, and the second real scene image fused with the virtual image is presented on the first display screen.
  • the user when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to the first angle interval. Any angle within.
  • the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the second real-life image of the user’s current environment through the first camera device, and can obtain the current game location in the game application.
  • the corresponding virtual image (such as the foreground image of the game screen, the game object itself, etc.), and then the virtual image and the second real scene image can be merged to merge the virtual image into the second real scene image (for example, the foreground image of the game screen) Fusion into the second real scene image, or fusion of the game object into the second real scene image), and the second real scene image fused with the virtual image can be presented on the folding screen of the terminal device, so that the user can feel the scene in the real environment The experience of playing in the game.
  • the second real scene image for example, the foreground image of the game screen
  • the terminal device may further include a front-mounted second camera device, and the second camera device is provided in the terminal device and corresponds to the first display screen.
  • the method may also include:
  • the user's interaction gesture is acquired through the second camera device, and the interaction with the current application is performed according to the interaction gesture.
  • the terminal device may also include a front-mounted second camera device.
  • the terminal device can use the second camera device to perform gesture recognition, and can interact with the current application according to the recognized gesture, so as to improve the interactive performance of the application and enhance the user experience.
  • the second camera device can be provided in the folded part of the terminal device, that is, the position of the second camera device in the terminal device can be Corresponding to the first display screen, that is, the second camera device may be located on the front side corresponding to the first display screen in the terminal device.
  • the second camera device may be arranged at a position above the first display screen to improve the convenience of gesture interaction by the user and improve the user experience.
  • acquiring the content presentation mode of the current application may include:
  • the terminal device may store the first angle interval corresponding to the current application, and the first angle interval may be combined to determine whether the user wants to start the target mode of the current application.
  • the first angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device, which is not limited in the embodiment of the present application.
  • the method may include:
  • the target mode is closed, and the content of the current application is presented in the normal mode.
  • the terminal device can also close the AR mode, VR mode or 3D mode of the current application by receiving the user's closing operation to return To the normal mode of the current application.
  • the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to its original form.
  • the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to the expanded form of the large screen.
  • the terminal device can obtain the second folding angle corresponding to the folding screen in real time, and determine that the second folding angle is within the preset second angle interval.
  • the AR mode, VR mode, or 3D mode of the current application can be turned off to present the content of the current application through the normal mode of the current application.
  • the second angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device.
  • the second angle interval may be an angle interval corresponding to the expanded form of the folding screen as a large screen.
  • the application interface of the current application may also be provided with a virtual button that closes the AR mode or closes the VR mode or closes the 3D mode.
  • the user can also click or touch the virtual button to close the AR mode of the current application or close the current application VR mode or close the currently applied 3D mode. That is, during the startup process of AR mode, VR mode or 3D mode, the terminal device can detect the triggering state of the virtual button in real time, and when determining that the virtual button is triggered, close the currently applied AR mode, VR mode or 3D mode.
  • an embodiment of the present application provides a content presentation device, which is applied to a terminal device with a folding screen, and the device may include:
  • a mode obtaining module configured to obtain a content presentation mode of a current application when a folding operation on the folding screen is detected, the current application being an application currently being used in the terminal device;
  • the content presentation module is configured to, if the content presentation mode is the normal mode, start the target mode of the current application, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode, At least one of a virtual reality VR mode and a three-dimensional 3D mode.
  • the folding screen may include a first display screen and a second display screen
  • the content presentation module is further configured to present the first content of the current application in the target mode on the first display screen, and present the current application in the normal mode on the second display screen.
  • the second content of the application is further configured to present the first content of the current application in the target mode on the first display screen, and present the current application in the normal mode on the second display screen.
  • the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
  • the content presentation module may include:
  • the first real scene image acquisition unit is configured to acquire a first real scene image corresponding to the current environment through the first camera device, and determine that a navigation mark is in the first real scene image, a preset map, and a preset navigation route. 1. The indicating position and direction in the real image;
  • the first content presentation unit is configured to display the navigation mark in the instruction direction at the instruction location, and present the first real scene image with the navigation mark on the first display screen.
  • the content presentation module may further include:
  • a second real-scene image acquiring unit configured to acquire a second real-scene image corresponding to the current environment through the first camera device, and to acquire a virtual image corresponding to the current application;
  • the second content presentation unit is configured to fuse the virtual image to the second real scene image, and present the second real scene image fused with the virtual image on the first display screen.
  • the terminal device may further include a front-mounted second camera device, and the second camera device is provided in the terminal device and corresponds to the first display screen.
  • the device may also include:
  • the gesture interaction module is used to obtain the user's interaction gesture through the second camera device, and interact with the current application according to the interaction gesture.
  • the pattern acquisition module may include:
  • the first folding angle acquiring unit is configured to acquire the first folding angle corresponding to the folding screen when a folding operation on the folding screen is detected;
  • the mode obtaining unit is configured to obtain the content presentation mode of the current application if the first folding angle is within a preset first angle interval.
  • the device may further include:
  • the second folding angle obtaining module is configured to obtain the second folding angle corresponding to the folding screen
  • the target mode closing module is configured to close the target mode if the second folding angle is within a preset second angle interval, and present the content of the current application in the normal mode.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program,
  • the content presentation method according to any one of the above-mentioned first aspects is implemented.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any one of the above-mentioned first aspects.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the content presentation method described in any one of the above-mentioned first aspects.
  • the user when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can display content to the terminal The folding screen of the device is folded.
  • the terminal device can obtain the content presentation mode of the current application, and can quickly start the AR mode, VR mode, or 3D mode of the current application based on the content presentation mode of the current application and the user's folding operation on the folding screen to perform content presentation.
  • Simplify the startup operation of AR mode, VR mode or 3D mode improve the startup speed of AR mode, VR mode or 3D mode, thereby increasing the presentation speed of content presentation through AR mode, VR mode or 3D mode, and improve users Experience.
  • Figure 1 is a schematic diagram of AR mode activation in the prior art
  • FIG. 2 is a schematic flowchart of a content presentation method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the folding angle corresponding to the folding screen
  • Figure 4a is a schematic diagram of a scene of content presentation in VR mode
  • Figure 4b is a schematic diagram of a scene of content presentation in 3D mode
  • Figure 5 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an application scenario provided by another embodiment of the present application.
  • FIG. 7 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 8 is an example diagram of an application scenario provided by another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a content presentation device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a mobile phone to which the content presentation method provided by an embodiment of the present application is applicable;
  • FIG. 12 is a schematic diagram of a software architecture to which the content presentation method provided by an embodiment of the present application is applicable.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the content presentation method provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • netbooks netbooks
  • PDA personal digital assistant
  • many applications can use augmented reality AR technology, virtual reality VR technology or three-dimensional 3D technology for content presentation to help users understand content and complete tasks more immersively.
  • many applications can be set with normal mode (ie normal 2D mode), AR mode based on AR technology, VR mode based on VR technology, and 3D mode based on 3D technology for users to choose content presentation mode.
  • normal mode ie normal 2D mode
  • AR mode based on AR technology
  • VR mode based on VR technology
  • 3D mode based on 3D technology
  • the terminal device to which the content presentation method is applied may be a terminal device with a folding screen.
  • the user when the user wants to start the target mode of the application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can display the content of the terminal device.
  • the folding screen is folded.
  • the terminal device can obtain the content presentation mode of the application, and can quickly start the AR mode, VR mode, or 3D mode of the application for content presentation based on the content presentation mode of the application and the user's folding operation on the folding screen.
  • Simplify the startup operation of AR mode, VR mode or 3D mode and improve the startup speed of AR mode, VR mode or 3D mode, thereby improving the presentation speed of content presentation of applications through AR mode, VR mode or 3D mode, and improving user experience .
  • the folding screen of the terminal device to which the content presentation method provided in the embodiment of the present application is applied may adopt an integrated flexible display screen, or may adopt two rigid screens and a flexible screen located between the two rigid screens. Screen composed of display screens.
  • the folding screen can be switched between the small screen in the folded form and the large screen in the expanded form at any time.
  • the folding form can be completely folded, that is, the angle between the first display screen and the second display screen corresponding to the folding screen after being folded is 0 degrees (in fact, it may not reach 0 degrees, which is specified in the terminal device.
  • the angle sensor and other sensors actually report the angle), or it can be partially folded, that is, the angle between the first display and the second display after the folding screen is folded is greater than 0 degrees and less than 180 degrees.
  • Fig. 2 shows a schematic flowchart of a content presentation method provided by an embodiment of the present application.
  • the content presentation method may include:
  • the current application is an application currently being used by the user in the terminal device, that is, the current application is an application running in the foreground in the terminal device.
  • the content presentation mode may include a normal mode, and may include at least one of an AR mode, a VR mode, and a 3D mode.
  • the content presentation mode may include a normal mode and an AR mode, that is, the current application may be an application including a normal mode and an AR mode.
  • the current application can be a map application containing a normal mode (ie 2D navigation mode) and an AR mode (ie a real-world navigation mode), or it can be a map application containing a normal mode (ie a normal 2D game mode) and an AR mode (ie a fusion of real scenes).
  • Game mode) game application ie a normal mode and a VR mode
  • the current application may be an application including a normal mode and a VR mode.
  • the current application may be a house rental application including a normal mode and a VR mode, or may be a commodity display (sale) application including a normal mode and a VR mode.
  • the content acquisition mode may also include a normal mode, an AR mode, and a 3D mode, that is, the current application may be an application including a normal mode, an AR mode, and a 3D mode, and so on.
  • the current application can be a built-in application directly built into the terminal device, that is, an application developed by the manufacturer of the terminal device and directly built into the terminal device, or it can be a terminal device manufacturer and a third-party manufacturer Co-developed and directly built-in applications in terminal equipment, etc.
  • the current application may be a game application developed by the manufacturer of the terminal device and built into the terminal device.
  • the current application may be a map application developed in cooperation with a third-party manufacturer and built into the terminal device by the manufacturer of the terminal device.
  • the current application may also be a third-party application obtained by the terminal device from the outside, that is, the current application may also be developed by a third-party manufacturer, and the terminal device may obtain an application from the third-party manufacturer and install it in the terminal device.
  • the current application may also be a map application downloaded and installed by the terminal device from a third-party manufacturer.
  • a user uses a certain application of the terminal device (that is, the current application described above), when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) Mode) for content presentation, as shown in Figure 1, when the user uses the map application in the terminal device to navigate, when the user wants to start the AR mode of the map application (that is, the real-scene navigation mode) to present the navigation content
  • the user can fold the folding screen of the terminal device, and the terminal device can obtain the content presentation mode of the map application according to the user's folding operation on the folding screen, and can start the AR mode according to the content presentation mode of the map application.
  • the terminal device may detect the folding operation performed by the user on the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope.
  • the terminal device may also detect the folding operation performed by the user on the folding screen through an angle sensor provided at the bending position of the folding screen.
  • the angle sensor can measure the included angle between the two ends of the bending part in the middle of the folding screen in real time (that is, measure the included angle between the first display screen and the second display screen in real time), when the included angle is less than or equal to the preset
  • the terminal device can detect the folding operation performed by the user on the folding screen through the angle sensor.
  • the preset angle can be specifically set according to actual conditions, which is not specifically limited in the embodiment of the present application.
  • the terminal device may also detect the folding operation performed by the user on the folding screen through a physical switch provided at the bending part of the folding screen. For example, when the user performs a folding operation on the folding screen, the physical switch set on the terminal device will be triggered to open, and the terminal device can detect the folding operation performed by the user on the folding screen according to the opening of the physical switch.
  • the terminal device may store the first angle interval corresponding to the current application, and the first angle interval may be combined to determine whether the user wants to start the target mode of the current application.
  • the first angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device, which is not limited in the embodiment of the present application.
  • a unified first angle interval may be set in the terminal device for different applications, or different first angle intervals may be set for different applications, which is not limited in the embodiment of the present application.
  • the terminal device may be provided with a unified first angle interval [50°, 70°] for application A and application B containing the AR mode and application C containing the VR mode.
  • the first angle interval [50°, 70°] may be set in the terminal device for application A and application B containing the AR mode
  • the first angle interval [60°, 80°] may be set for the application C containing the VR mode. ].
  • the first angle interval [50°, 70°] may be set for the application A containing the AR mode
  • the first angle interval [60°, 80°] may be set for the application B containing the AR mode
  • a first angle interval [80°, 90°] is set for the application C including the VR mode.
  • the terminal device when the terminal device detects the folding operation performed by the user on the folding screen, it can obtain the first folding angle corresponding to the folding screen, and can determine whether the user wants to start according to the first folding angle and the first angle interval.
  • the target mode of the current application Specifically, when the first folding angle is within the first angle interval, the terminal device can determine the target mode in which the user wants to start the current application. At this time, the terminal device can obtain the content presentation mode of the current application to determine the content presentation mode of the current application. Content presentation mode to start the target mode.
  • the folding operation can be an operation of folding the folding screen toward the direction facing the first display screen and the second display screen, or the folding screen facing the first display screen and the second display screen.
  • the folding operation of the display screen in opposite directions is not limited in the embodiment of the present application.
  • the following embodiments of the present application will exemplify an example in which the folding operation is an operation in which the folding screen is folded in a direction facing the first display screen and the second display screen.
  • the first folding angle corresponding to the folding screen refers to the difference between the first display screen (that is, the B screen shown in FIG. 3) and the second display screen (that is, the A screen shown in FIG. 3) corresponding to the folding screen.
  • the terminal device may obtain the first folding angle corresponding to the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope.
  • the terminal device may also obtain the first folding angle corresponding to the folding screen through an angle sensor provided at the bending position of the folding screen.
  • the terminal device can obtain the first folding angle corresponding to the folding screen through the angle sensor, that is, through the angle The sensor measures the angle between the first display screen and the second display screen corresponding to the folding screen, and when the first folding angle acquired by the terminal device is 60°, the terminal device can determine the target that the user currently wants to launch the current application. Mode, at this time, the terminal device can obtain the content presentation mode of the current application in the terminal device to start the target mode of the current application according to the content presentation mode of the current application.
  • the content presentation mode is the normal mode, start the target mode of the current application, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode or a virtual reality VR mode And at least one of three-dimensional 3D mode.
  • the target mode may be any one of AR mode, VR mode and 3D mode, or any two or three modes among AR mode, VR mode and 3D mode.
  • the user when the user wants to view the installation effect of item A in actual environment B, the user can start the AR mode and 3D mode of application C (an application that can simulate the installation effect) in actual environment B, so as to pass the item A Simulate the display in the actual environment B in 3D mode to view the installation effect of the item A in the actual environment B.
  • application C an application that can simulate the installation effect
  • the target mode is any one of AR mode, VR mode, and 3D mode, or any two or three modes among AR mode, VR mode, and 3D mode, can be specifically determined according to actual conditions.
  • the target mode when the current application only supports normal mode and AR mode, the target mode is AR mode; when the current application only supports normal mode and 3D mode, the target mode is 3D mode; when the current application supports normal mode, AR In mode, VR mode and 3D mode, the target mode can be customized by the user in advance (for example, the target mode can be customized as a combination of AR mode and 3D mode), or it can be set by default by the terminal device system (for example, you can set The target mode is set to the AR mode by default), and it can also be automatically determined by the terminal device according to the actual scene (for example, the target mode can be automatically determined as the VR mode according to the actual scene), which is not specifically limited in the embodiment of the present application.
  • the following embodiments of the present application will take any one of the AR mode, VR mode, and 3D mode as an
  • the terminal device can maintain the AR mode, VR mode or 3D mode of the current application, that is, it can continue to pass through on the folded folding screen.
  • AR mode, VR mode or 3D mode to present the content of the current application.
  • the terminal device can start the AR mode of the current application or the VR mode of the current application or the 3D mode of the current application to pass AR mode, VR mode or 3D mode to present the content of the current application.
  • the terminal device may include a rear-mounted first camera device, that is, the terminal device may include a rear-mounted camera.
  • the terminal device may collect a real scene image corresponding to the current environment through the first camera device (that is, a rear camera), so as to present content in the AR mode based on the real scene image.
  • the first camera device may be located in the folded part of the terminal device.
  • the folding screen of the terminal device can form a first display screen and a second display screen after being folded.
  • the first display screen is the folded area of the folding screen
  • the second display screen is the folding screen except the first display screen.
  • the area outside, that is, the second display screen is the unfolded area of the folding screen.
  • the position of the first camera device in the terminal device may correspond to the first display screen, that is, the first camera device may be located on the back side of the terminal device corresponding to the first display screen.
  • the terminal device when the terminal device determines to start the AR mode of the current application, it can acquire the first real-world image of the user’s current environment through the first camera device, and can compare the acquired first real-world image with the current application.
  • the content of the fusion is merged to merge the content that needs to be presented in the current application into the first real-scene image, and then the merged first real-scene image can be presented on the folding screen of the terminal device.
  • the user when the user wants to start the AR mode of the map application (ie, the real-scene navigation mode) for navigation, the user can Fold the folding screen of the terminal device to any angle within the first angle interval.
  • the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the first real scene image of the user’s current environment through the first camera device, and then can use the acquired first real scene
  • the image, the preset map stored in the map application, and the preset navigation route determined by the 2D navigation mode are used to determine the indicated position and direction of the navigation mark in the first real-scene image, where the indicated position may be in the first real-scene image
  • the real-time location where the user is currently located, and the indication direction may be the direction and/or orientation in which the user is walking.
  • the navigation mark can be displayed in the indicated position in the first real scene image in the indicated direction, and the first real scene image with the navigation mark can be presented on the folding screen of the terminal device, so as to better help the user to reach through the real scene navigation Destination location.
  • the indication direction of the navigation mark in the first real scene image can also be adjusted according to the user's moving direction.
  • the terminal device may also determine the indicated position and direction of the navigation marker in the first real-scene image according to the acquired first real-scene image, the preset map stored in the map application, and the destination location to be reached by the user. Specifically, the terminal device can first determine the user's current location in the first real-life image (that is, the above-mentioned indicated location) according to the first real-life image and the preset map, and then can determine the user's current location based on the user's current location and the destination that the user wants to reach. The location plans the user's real-scene navigation route, and the navigation identifier can be presented in the first real-scene image according to the real-scene navigation route.
  • the user when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to the first angle interval. Any angle within.
  • the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the second real-life image of the user’s current environment through the first camera device, and can obtain the current game location in the game application.
  • the corresponding virtual image (such as the foreground image of the game screen, the game object itself, etc.), and then the virtual image and the second real scene image can be merged to merge the virtual image into the second real scene image (for example, the foreground image of the game screen) Fusion into the second real scene image, or fusion of the game object into the second real scene image), and the second real scene image fused with the virtual image can be presented on the folding screen of the terminal device, so that the user can feel the scene in the real environment The experience of playing in the game.
  • the second real scene image for example, the foreground image of the game screen
  • the user when the user wants to start the AR mode of the translation application for translation, the user can fold the folding screen of the terminal device to the first angle interval when the user wants to start the AR mode of the translation application during the translation process in the normal mode of the translation application. Any angle within.
  • the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the third real scene image containing the content to be translated through the first camera device, and can compare the third real scene image in the third real scene image.
  • the content to be translated is translated to obtain the target translation content corresponding to the content to be translated, and then the target translation content can be merged into the third real scene image (for example, the target translation content can be merged to the position of the content to be translated in the third real scene image , To replace the content to be translated in the third real scene image), and the third real scene image integrated with the target translation content can be presented on the folding screen of the terminal device.
  • the user when the user wants to start the AR mode of the camera to take a photo during the user's normal mode of the camera, the user can fold the folding screen of the terminal device to the first angle interval. Any angle.
  • the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the fourth real scene image that the user needs to take through the first camera device, and can obtain the virtual image corresponding to the AR mode. Then, the virtual object and the fourth real-life image can be fused and presented on the folding screen of the terminal device, so that after the user performs the photographing operation, a photographed image fused with the virtual object can be obtained to meet the different photographing needs of the user and improve The fun of shooting enhances the user experience.
  • the virtual object can be an object selected by the user, or an object selected by the terminal device by default when the AR mode is activated, or an object automatically matched by the terminal device according to the current environment corresponding to the third real-life image.
  • This application The embodiment does not specifically limit this.
  • the terminal device may also include a front-facing second camera device, such as a front-facing camera.
  • the terminal device can use the second camera device to perform gesture recognition, and can interact with the current application according to the recognized gesture, so as to improve the interactive performance of the application and enhance the user experience.
  • the second camera device can be provided in the folded part of the terminal device, that is, the position of the second camera device in the terminal device can be Corresponding to the first display screen, that is, the second camera device may be located on the front side corresponding to the first display screen in the terminal device.
  • the second camera device may be arranged at a position above the first display screen to improve the convenience of gesture interaction by the user and improve the user experience.
  • the user when the user is playing the game through the AR mode of the game application, the user can also perform corresponding interactive gestures, and the terminal device can acquire the user's interactive gestures through the second camera on the front, and According to the acquired interactive gestures, interact with game objects in the game application, etc., to unlock more game play methods and enhance the user's game experience.
  • the terminal device may first obtain the content currently being presented in the current application, and may search for the VR content or 3D content corresponding to the content currently being presented, and then The found VR content or 3D content can be presented on the folding screen to present the content of the current application in the VR mode or 3D mode.
  • the user when the user uses the normal mode of the rental and sales application to view the house plan, when the user wants to start the VR mode of the rental and sales application to view the house, the user can turn the folding screen of the terminal device Fold to any angle in the first angle interval.
  • the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the content currently being presented in the rental and sale application (that is, the floor plan of the house currently being viewed by the user), and can search The VR image corresponding to the floor plan of the house (that is, the real view of the house) can then be presented on the folding screen of the terminal device to display the real view of the house found to obtain the rendering effect image shown in FIG. 4a.
  • the user when the user wants to start the 3D mode of the item browsing application to view the item, the user can fold the folding screen of the terminal device to Any angle in the first angle interval.
  • the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the content of the item currently being presented in the item browsing application (ie, the item plan), and can search for the item corresponding to the item plan.
  • the 3D image can then be displayed on the folding screen of the terminal device, so as to obtain the rendering effect image shown in FIG. 4b.
  • the built-in application when the current application is a built-in application directly built into the terminal device, the built-in application can be directly operated and controlled by the terminal device, that is, the terminal device can directly perform the operation and control according to the detected folding operation. Perform corresponding operations and control on the built-in applications built in the terminal device.
  • the terminal device when the user uses the built-in application built in the terminal device, when the user folds the folding screen of the terminal device to any angle within the first angle interval, the terminal device can directly obtain the information of the built-in application.
  • Content presentation mode and can determine whether the content presentation mode of the built-in application is the normal mode.
  • the terminal device can directly start the AR mode of the built-in application, or can directly start the VR mode of the built-in application, or can directly start the 3D mode of the built-in application to The content is presented through the AR mode, VR mode or 3D mode of the built-in application.
  • the terminal device when the current application is a third-party application obtained by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device may send data or instructions to the third-party application and receive data or instructions returned by the third-party application through the configured application interface.
  • the terminal device when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can communicate to the third-party application through the configured application interface.
  • the application sends a content presentation mode acquisition instruction, and can receive data about the content presentation mode returned by the third-party application according to the acquisition instruction through the application interface.
  • the terminal device can determine whether the content presentation mode of the third-party application is the normal mode according to the received data. When it is determined that the content presentation mode of the third-party application is the normal mode, the terminal device can send to the third-party application through the application interface the AR mode that starts the third-party application or the VR mode of the third-party application or the third-party application is started.
  • Start instruction of the 3D mode of the third-party application After the third-party application receives the startup instruction transmitted by the application interface, it can start the AR mode, VR mode, or 3D mode of the third-party application according to the startup instruction to pass the AR mode, VR mode, or 3D mode of the third-party application For content presentation.
  • the terminal device when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device may send information such as the folding angle corresponding to the folding operation to the third-party application through the configured application interface, where the folding operation refers to an operation that triggers the third-party application to start AR mode, VR mode, or 3D mode.
  • the folding angle corresponding to the folding operation refers to the angle between the folded first display screen and the second display screen.
  • the terminal device when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can send a message to the third-party application through the configured application interface.
  • the three-party application sends information such as the folding angle corresponding to the folding operation, that is, the included angle between the first display screen and the second display screen can be sent to the third-party application through the configured application interface.
  • the third-party application After the third-party application receives information such as the folding angle transmitted by the application interface, it can first obtain the content presentation mode of the third-party application, and can determine whether the content presentation mode is a normal mode.
  • the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
  • the terminal device when the current application is a third-party application obtained by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application.
  • the terminal device can send real-time information such as the first angle corresponding to the folding screen to the third-party application through the configured application interface, where the first angle corresponding to the folding screen currently refers to the folding screen in the current form
  • the included angle between the first display screen and the second display screen, the first angle corresponding to the folding screen may be the angle corresponding to the folding operation that can trigger the third-party application to start AR mode, VR mode, or 3D mode, It may also be an angle corresponding to the folding operation that cannot trigger the third-party application to start AR mode, VR mode, or 3D mode.
  • the terminal device can detect the current first angle and other information corresponding to the folding screen in real time, and can use the configured application interface to display the detected first angle and other information Send to the third-party application in real time.
  • the third-party application receives the first angle transmitted by the application interface, it can first determine whether the first angle is within the first angle interval. If it is determined that the first angle is within the first angle interval, the third-party application can Obtain the content presentation mode of the third-party application. Then the third-party application can continue to determine whether the content presentation mode is the normal mode.
  • the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
  • the folding screen may include a folded first display screen and an unfolded second display screen.
  • the terminal device may present the first content of the current application in the target mode on the first display screen, and The second content of the current application can be presented in the normal mode on the second display screen.
  • the terminal device can present the first content of the current application on the first display screen in AR mode, and can present the second content of the current application on the second display screen in the normal mode; or the terminal device can display on the first display screen.
  • the first content of the current application can be presented in the VR mode on the screen, and the second content of the current application can be presented in the normal mode on the second display screen; or the terminal device can be presented in the 3D mode on the first display screen.
  • a content, and the second content of the current application can be presented on the second display screen in a normal mode.
  • the terminal device in a navigation scene, can present real-world navigation content in the AR mode (ie, real-scene navigation mode) on the first display screen, and can present 2D navigation in the normal mode on the second display screen. content. That is, when the user uses the normal mode of the map application for navigation, when the user wants to start the AR mode in the map application for navigation, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can acquire the first real scene image of the user’s current environment through the first camera device, and can use the real scene image based on the first real scene image.
  • the AR mode ie, real-scene navigation mode
  • the navigation content is presented on the first display screen of the terminal device.
  • the terminal device can also present the original 2D navigation content in a normal mode on the second display screen of the terminal device.
  • the real-time navigation content presented on the first display screen and the 2D navigation content presented on the second display screen can be adjusted in real time according to the user's movement. The adjustment of the indication direction corresponding to the navigation mark, etc.
  • the terminal device in a game scene, can present a game screen integrated with the real scene in the AR mode on the first display screen, and can perform game operations and/or display in the normal mode on the second display screen. Or control virtual function buttons and/or game props. That is, when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can obtain the second real scene image of the user’s current environment through the first camera device, and obtain the current game corresponding to the game in the game application.
  • a virtual image that is, a game foreground image or game object that does not include virtual function buttons and game props
  • a second real-scene image integrated with the game foreground image or game object can be presented on the first display screen of the terminal device.
  • the terminal device can also present content such as virtual function keys and/or game props for game operation and/or control on the second display screen of the terminal device in a normal mode.
  • the terminal device may present the third real-world image fused with the target translation content in the AR mode on the first display screen, and may present the content to be translated in the normal mode on the second display screen. That is, when the user performs translation in the normal mode of the translation application, when the user wants to start the AR mode of the translation application for translation, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the third real scene image containing the content to be translated through the first camera device, and can compare the third real scene image in the third real scene image.
  • the content to be translated is translated, and then the target translation content obtained by the translation can be merged into the third real scene image, and the third real scene image fused with the target translation content can be presented on the first display screen of the terminal device.
  • the terminal device can also present the content to be translated on the third display screen of the terminal device in a normal mode.
  • the terminal device may present a fourth real-life image fused with virtual objects in the AR mode on the first display screen, and may present the preview image during the photographing process in the normal mode on the second display screen (i.e. Does not contain images of virtual objects). That is, when the user uses the normal mode of the camera to take pictures, when the user wants to activate the AR mode of the camera to take pictures, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the fourth real scene image that the user needs to take through the first camera device, and can obtain the virtual image corresponding to the AR mode. Then, the virtual object and the fourth real-life image can be merged and presented on the first display screen of the terminal device. At the same time, the terminal device can also present the preview image without virtual objects obtained during the photographing process on the second display screen of the terminal device.
  • the terminal device can present a VR picture of the house (ie a real-life picture of the house) in the VR mode on the first display screen, and can use the normal mode on the second display screen.
  • Present the floor plan of the house That is, when the user uses the normal mode of the rental and sales application to view the house plan, when the user wants to start the VR mode of the rental and sales application to view the house, the user can fold the folding screen of the terminal device to the first angle interval Any angle.
  • the terminal device When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first obtain the house plan currently being presented in the rental and sale application, and can find the real house picture corresponding to the house plan , And then the real view of the house can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present the original house plan in a normal mode on the second display screen of the terminal device.
  • the user can browse the real view of the house by sliding the first display screen.
  • the floor plan of the house in the second display screen can also be rotated with the user's viewing angle, making the user more Immersively use the VR viewing function to understand the characteristics of the house.
  • the terminal device may present a 3D image of the item in a 3D mode on the first display screen, and may present a plan view of the item in a normal mode on the second display screen. That is to say, when the user wants to start the 3D mode of the item browsing application to view the 3D items in the process of viewing the item plan in the normal mode of the item browsing application, the user can fold the folding screen of the terminal device to the first angle interval. Any angle.
  • the terminal device When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the item plan view currently being presented in the item browsing application, and can search for the 3D image corresponding to the item plan view, and then The 3D image can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present the original item plan view on the second display screen of the terminal device in a normal mode.
  • the terminal device can also close the AR mode, VR mode or 3D mode of the current application by receiving the user's closing operation to return To the normal mode of the current application.
  • the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to its original form.
  • the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to the expanded form of the large screen.
  • the terminal device can obtain the second folding angle corresponding to the folding screen in real time, and determine that the second folding angle is within the preset second angle interval.
  • the AR mode, VR mode, or 3D mode of the current application can be turned off to present the content of the current application through the normal mode of the current application.
  • the AR mode of the map application can be turned off, and the 2D navigation content of the map application can be presented in the normal mode.
  • the AR mode of the game application can be closed, and the game screen, virtual function buttons, and game props can be adjusted through the normal mode.
  • the VR mode of the house rental and sale application can be closed, and the house floor plan can be presented in the normal mode, etc. Wait.
  • the second angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device.
  • the second angle interval may be an angle interval corresponding to the expanded form of the folding screen as a large screen.
  • the application interface of the current application may also be provided with a virtual button that closes the AR mode or closes the VR mode or closes the 3D mode.
  • the user can also click or touch the virtual button to close the AR mode of the current application or close the current application VR mode or close the currently applied 3D mode. That is, during the startup process of AR mode, VR mode or 3D mode, the terminal device can detect the trigger state of the virtual button in real time, and when it is determined that the virtual button is triggered, it can turn off the currently applied AR mode, VR mode or 3D mode. model.
  • the user when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can The folding screen of the terminal device is folded. At this time, the terminal device can obtain the content presentation mode of the current application, and can quickly start the target mode of the current application based on the content presentation mode of the current application and the folding operation performed by the user on the folding screen to perform content presentation, simplifying the AR mode,
  • the startup operation of VR mode or 3D mode improves the startup speed of AR mode, VR mode or 3D mode, thereby increasing the presentation speed of content presentation by applications in AR mode, VR mode or 3D mode, and improving user experience.
  • FIG. 9 shows a structural block diagram of a content presentation device provided in an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
  • the content presentation apparatus is applied to a terminal device with a folding screen, and the apparatus may include:
  • the mode obtaining module 901 is configured to obtain the content presentation mode of the current application when a folding operation on the folding screen is detected, the current application being an application currently being used in the terminal device;
  • the content presentation module 902 is configured to start the target mode of the current application if the content presentation mode is the normal mode, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode , At least one of virtual reality VR mode and three-dimensional 3D mode.
  • the folding screen may include a first display screen and a second display screen
  • the content presentation module 902 is further configured to present the first content of the current application in the target mode on the first display screen, and present the first content of the current application in the normal mode on the second display screen. The second content of the current application.
  • the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
  • the content presentation module 902 may include:
  • the first real scene image acquisition unit is configured to acquire a first real scene image corresponding to the current environment through the first camera device, and determine that a navigation mark is in the first real scene image, a preset map, and a preset navigation route. 1. The indicating position and direction in the real image;
  • the first content presentation unit is configured to display the navigation mark in the instruction direction at the instruction location, and present the first real scene image with the navigation mark on the first display screen.
  • the content presentation module 902 may further include:
  • a second real-scene image acquisition unit configured to acquire a second real-scene image corresponding to the current environment through the first camera device, and acquire a virtual image of the current application;
  • the second content presentation unit is configured to fuse the virtual image to the second real scene image, and present the second real scene image fused with the virtual image on the first display screen.
  • the terminal device may further include a front-mounted second camera device, and the second camera device is provided at a position corresponding to the first display screen in the terminal device;
  • the device may also include:
  • the gesture interaction module is used to obtain the user's interaction gesture through the second camera device, and interact with the current application according to the interaction gesture.
  • mode acquisition module 901 may include:
  • the first folding angle acquiring unit is configured to acquire the first folding angle corresponding to the folding screen when a folding operation on the folding screen is detected;
  • the mode obtaining unit is configured to obtain the content presentation mode of the current application if the first folding angle is within a preset first angle interval.
  • the device may further include:
  • the second folding angle obtaining module is configured to obtain the second folding angle corresponding to the folding screen
  • the target mode closing module is configured to close the target mode if the second folding angle is within a preset second angle interval, and present the content of the current application in the normal mode.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of this application.
  • the terminal device 10 of this embodiment includes: at least one processor 1000 (only one is shown in FIG. 10), a memory 1001, and stored in the memory 1001 and can be stored in the at least one processor 1000.
  • the processor 1000 executes the computer program 1002, the steps in any of the foregoing content presentation method embodiments are implemented.
  • the terminal device 10 may include, but is not limited to, a processor 1000 and a memory 1001. Those skilled in the art can understand that FIG. 10 is only an example of the terminal device 10, and does not constitute a limitation on the terminal device 10.
  • the terminal device 10 may include more or less components than those shown in the figure, or a combination of certain components, or Different components, for example, may also include input and output devices, network access devices, and so on.
  • the processor 1000 may be a central processing unit (Central Processing Unit, CPU), and the processor 1000 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 1001 may be an internal storage unit of the terminal device 10 in some embodiments, such as a hard disk or a memory of the terminal device 10. In other embodiments, the memory 1001 may also be an external storage device of the terminal device 10, for example, a plug-in hard disk equipped on the terminal device 10, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, Flash Card, etc. Further, the memory 1001 may also include both an internal storage unit of the terminal device 10 and an external storage device.
  • the memory 1001 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 1001 can also be used to temporarily store data that has been output or will be output.
  • the terminal device involved in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, and the like. Take the terminal device as a mobile phone as an example.
  • FIG. 11 shows a block diagram of a part of the structure of a mobile phone provided in an embodiment of the present application. 11, the mobile phone may include: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, a processor 1180, and power supply 1190 and other components.
  • RF radio frequency
  • the structure of the mobile phone shown in FIG. 11 does not constitute a limitation on the mobile phone, and the mobile phone may include more or less components than those shown in the figure, or a combination of some components, or different component arrangements.
  • the RF circuit 1110 can be used for receiving and sending signals during information transmission and communication or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1180; in addition, the designed uplink data is sent to the base station.
  • the RF circuit 1110 may include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 1110 can also communicate with the network and other devices through wireless communication.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), Email, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • Email Short Messaging Service
  • the memory 1120 may be used to store software programs and modules.
  • the processor 1180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1120.
  • the memory 1120 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 1120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 1130 may be used to receive inputted digital or character information, and generate key signal input related to user settings and function control of the mobile phone.
  • the input unit 1130 may include a touch panel 1131 and other input devices 1132.
  • the touch panel 1131 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1131 or near the touch panel 1131. Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1180, and can receive and execute the commands sent by the processor 1180.
  • the touch panel 1131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 1130 may also include other input devices 1132.
  • other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, etc.
  • the display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the touch panel 1131 can cover the display panel 1141. When the touch panel 1131 detects a touch operation on or near it, it transmits it to the processor 1180 to determine the type of the touch event, and then the processor 1180 responds to the touch event. The type provides corresponding visual output on the display panel 1141.
  • the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and output functions of the mobile phone, but in some embodiments, the touch panel 1131 and the display panel 1141 can be integrated. Realize the input and output functions of the mobile phone.
  • the display unit 1140 may include 1 or N display screens, where N is a positive integer greater than 1.
  • the above-mentioned display screen may be bent.
  • the above-mentioned display screen can be bent means that the display screen can be bent at any position along any axis to any angle, and can be maintained at that angle.
  • the display screen can be folded in half from the middle or up and down from the middle.
  • the bent display screen may be referred to as a folding screen.
  • the folding screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
  • the display screen can also be a flexible screen, which has the characteristics of strong flexibility and bendability, and can provide users with a new interactive mode based on bendable characteristics, which can meet more users' needs for folding screen mobile phones.
  • the folding screen on the mobile phone can be switched between the small screen in the folded form and the large screen in the expanded form at any time.
  • the folding screen may include at least two physical forms: an expanded form and a folded form.
  • the unfolded form refers to the angle formed by the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) that can be folded in half from the left and right sides Between 180 degrees and the first angle, where the first angle is greater than 0 degrees and less than 180 degrees, for example, the first angle may be 90 degrees).
  • Folding form refers to the angle between the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) is between 0 degrees and the first Between angles.
  • the display area of the folding screen after entering the expanded form may be divided into a first display screen and a second display screen.
  • the folding screen In the unfolded configuration, the folding screen can be folded toward the direction facing the first display screen and the second display screen, and can also be folded toward the direction opposite to the first display screen and the second display screen.
  • the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) can form an angle between 0 degrees and +180. Between degrees.
  • the folding screen can be bent toward the direction facing the first display screen and the second display screen into a folded configuration with an included angle of 30 degrees, or it can face the first display screen and the second display screen opposite to each other. Bend in the opposite direction into a folded configuration with an included angle of 30 degrees.
  • the mobile phone can use one or more of a gravity sensor, an acceleration sensor, and a gyroscope to determine whether the folding screen is in a folded form or an unfolded form.
  • the mobile phone can also detect the bending angle of the folding screen through a gravity sensor, an acceleration touch sensor and a gyroscope. Then, the mobile phone can determine whether the folding screen is in a folded state or unfolded according to the bending angle. form.
  • the mobile phone can also use one or more of a gravity sensor, an acceleration sensor and a gyroscope to determine the orientation of the folding screen in the folded form, and then determine the display area of the interface content output by the display system.
  • the mobile phone can display the interface content output by the display system on the first display screen.
  • the mobile phone can display the interface content output by the display system on the second display screen.
  • the mobile phone may further include an angle sensor (not shown in FIG. 11), and the angle sensor may be disposed at a bending part of the folding screen.
  • the mobile phone can measure the angle formed by the two ends of the folding screen in the middle of the folding screen through an angle sensor (not shown in FIG. 11) provided at the bending part of the folding screen.
  • the angle is greater than or equal to the first
  • the mobile phone can recognize that the folding screen enters the unfolded state through the angle sensor.
  • the included angle is less than or equal to the first angle
  • the mobile phone can recognize through the angle sensor that the folding screen enters the folded form.
  • the mobile phone can also recognize whether the folding screen is in a folded configuration through a physical switch provided at the bending part of the folding screen. For example, when the mobile phone receives a user's folding operation of the folding screen, the physical switch provided on the mobile phone is triggered to open, and the mobile phone can determine that the folding screen is in a folded form. When the mobile phone receives the user's unfolding operation of the folding screen, the physical switch set on the mobile phone is triggered to close, and the mobile phone can determine that the folding screen is in the unfolded form.
  • a physical switch provided at the bending part of the folding screen For example, when the mobile phone receives a user's folding operation of the folding screen, the physical switch provided on the mobile phone is triggered to open, and the mobile phone can determine that the folding screen is in a folded form. When the mobile phone receives the user's unfolding operation of the folding screen, the physical switch set on the mobile phone is triggered to close, and the mobile phone can determine that the folding screen is in the unfolded form.
  • the mobile phone may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor can include an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1141 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1141 and/or when the mobile phone is moved to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 1160 can transmit the electric signal converted from the received audio data to the speaker 1161, which is converted into a sound signal by the speaker 1161 for output; on the other hand, the microphone 1162 converts the collected sound signal into an electric signal, and the audio circuit 1160 After being received, it is converted into audio data, and then processed by the audio data output processor 1180, and sent to, for example, another mobile phone via the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.
  • WiFi is a short-distance wireless transmission technology.
  • the mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1170. It provides users with wireless broadband Internet access.
  • FIG. 11 shows the WiFi module 1170, it is understandable that it is not a necessary component of the mobile phone, and can be omitted as needed without changing the essence of the invention.
  • the processor 1180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole.
  • the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1180.
  • the mobile phone may further include a power supply 1190 (such as a battery) for supplying power to various components.
  • a power supply 1190 such as a battery
  • the power supply may be logically connected to the processor 1180 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the mobile phone may also include a camera.
  • the position of the camera on the mobile phone may be front-mounted or rear-mounted, which is not limited in the embodiment of the present application.
  • the mobile phone may include a single camera, a dual camera, or a triple camera, etc., which is not limited in the embodiment of the present application.
  • a mobile phone may include three cameras, of which one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
  • the multiple cameras may be all front-mounted, or all rear-mounted, or partly front-mounted and another part rear-mounted, which is not limited in the embodiment of the present application.
  • the mobile phone may also include a Bluetooth module, etc., which will not be repeated here.
  • Fig. 12 is a schematic diagram of the software structure of a mobile phone according to an embodiment of the present application.
  • the Android system is divided into four layers, namely the application layer, the application framework layer (framework, FWK), the system layer, and the hardware abstraction layer. Through the software interface communication between.
  • the application layer can be a series of application packages, and the application packages can include applications such as short message, calendar, camera, video, navigation, gallery, and call.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer may include some predefined functions, such as functions for receiving events sent by the application framework layer.
  • the application framework layer can include a window manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the application framework layer can also include:
  • a view system which includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the mobile phone. For example, the management of the call status (including connecting, hanging up, etc.).
  • the system layer can include multiple functional modules. For example: sensor service module, physical state recognition module, 3D graphics processing library (for example: OpenGL ES), etc.
  • the sensor service module is used to monitor the sensor data uploaded by various sensors at the hardware layer to determine the physical state of the mobile phone;
  • Physical state recognition module used to analyze and recognize user gestures, faces, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the system layer can also include:
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the hardware abstraction layer is the layer between hardware and software.
  • the hardware abstraction layer can include display drivers, camera drivers, sensor drivers, etc., used to drive related hardware at the hardware layer, such as display screens, cameras, sensors, and so on.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing content presentation method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product.
  • the terminal device can implement the steps in the above-mentioned content presentation method embodiments when executed.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable storage medium may at least include: any entity or device capable of carrying computer program codes to the terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM) , Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable storage media cannot be electrical carrier signals and telecommunication signals.
  • the disclosed device/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application is applicable to the technical field of terminals, and in particular, to a content presentation method and apparatus, a terminal device, and a computer-readable storage medium. According to the method, during a using process of a current application, a folding operation performed by a user on a folding screen of a terminal device can be received, and a content presentation mode of the current mode can be obtained, so as to quickly start a target mode (i.e., at least one of an AR mode, a VR mode, and a 3D mode) of the current application for content presentation according to the content presentation mode of the current application and the folding operation of the user on the folding screen. The start operation for the AR mode, the VR mode or the 3D mode is simplified, and the start speed of the AR mode, the VR mode or the 3D mode is improved, thereby improving the presentation speed at which content is presented by the application in the AR mode, the VR mode or the 3D mode, and improving the user experience.

Description

内容呈现方法、装置、终端设备及计算机可读存储介质Content presentation method, device, terminal equipment and computer readable storage medium
本申请要求于2020年2月28日提交国家知识产权局、申请号为202010133711.1、申请名称为“内容呈现方法、装置、终端设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on February 28, 2020, the application number is 202010133711.1, and the application name is "content presentation method, device, terminal equipment and computer-readable storage medium", all of which The content is incorporated in this application by reference.
技术领域Technical field
本申请属于终端技术领域,尤其涉及一种内容呈现方法、装置、终端设备及计算机可读存储介质。This application belongs to the field of terminal technology, and in particular relates to a content presentation method, device, terminal device, and computer-readable storage medium.
背景技术Background technique
随着终端设备的智能化发展,用户可以在终端设备中安装各种应用来满足日常生活和工作需要。目前,很多应用中都可以使用增强现实AR模式或虚拟现实VR模式或三维3D模式进行内容呈现来帮助用户更沉浸的理解内容和完成任务等。但现有的应用中,用户需要先在应用中找到特定按钮,然后通过点击该特定按钮来启动应用的AR模式或VR模式或3D模式进行内容呈现,操作较为不便,AR模式、VR模式或3D模式呈现内容的速度较慢。With the intelligent development of terminal equipment, users can install various applications in the terminal equipment to meet the needs of daily life and work. At present, many applications can use augmented reality AR mode or virtual reality VR mode or three-dimensional 3D mode for content presentation to help users understand content and complete tasks more immersively. However, in existing applications, users need to find a specific button in the application first, and then click the specific button to start the application’s AR mode or VR mode or 3D mode for content presentation, which is relatively inconvenient to operate. AR mode, VR mode or 3D The mode rendering content is slower.
发明内容Summary of the invention
本申请实施例提供了一种内容呈现方法、装置、终端设备及计算机可读存储介质,可以简单、快速地启动应用的AR模式、VR模式或3D模式来进行内容呈现。The embodiments of the present application provide a content presentation method, device, terminal device, and computer-readable storage medium, which can simply and quickly start the AR mode, VR mode, or 3D mode of the application for content presentation.
第一方面,本申请实施例提供了一种内容呈现方法,应用于具有折叠屏的终端设备,所述方法可以包括:In the first aspect, an embodiment of the present application provides a content presentation method, which is applied to a terminal device with a folding screen, and the method may include:
当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用;When a folding operation on the folding screen is detected, acquiring a content presentation mode of a current application, where the current application is an application currently being used in the terminal device;
若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。If the content presentation mode is the normal mode, the target mode of the current application is started, and the content of the current application is presented through the target mode. The target modes are augmented reality AR mode, virtual reality VR mode and 3D At least one of the 3D modes.
示例性的,内容呈现模式可以包括普通模式和AR模式,即当前应用可以为含有普通模式和AR模式的应用。或者,内容呈现模式可以包括普通模式和VR模式,即当前应用可以为含有普通模式和VR模式的应用。或者,内容获取模式可以包括普通模式、AR模式和3D模式,即当前应用可以为含有普通模式、AR模式和3D模式的应用,等等。Exemplarily, the content presentation mode may include a normal mode and an AR mode, that is, the current application may be an application including a normal mode and an AR mode. Alternatively, the content presentation mode may include a normal mode and a VR mode, that is, the current application may be an application including a normal mode and a VR mode. Alternatively, the content acquisition mode may include a normal mode, an AR mode, and a 3D mode, that is, the current application may be an application including a normal mode, an AR mode, and a 3D mode, and so on.
需要说明的是,当前应用可以为终端设备中直接内置的内置应用,即可以为终端设备的生产商自行开发并直接内置于终端设备中的应用,或者可以为终端设备的生产商与第三方厂商合作开发并直接内置于终端设备中的应用等。It should be noted that the current application can be a built-in application directly built into the terminal device, that is, an application developed by the manufacturer of the terminal device and directly built into the terminal device, or it can be a terminal device manufacturer and a third-party manufacturer Co-developed and directly built-in applications in terminal equipment, etc.
应理解,当前应用也可以为终端设备从外部获取的第三方应用,即当前应用也可以为第三方厂商开发,并由终端设备从第三方厂商中获取并安装于终端设备中的应用。It should be understood that the current application may also be a third-party application obtained by the terminal device from the outside, that is, the current application may also be developed by a third-party manufacturer, and the terminal device may obtain an application from the third-party manufacturer and install it in the terminal device.
示例性的,终端设备可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个来检测用户对折叠屏所执行的折叠操作。示例性的,终端设备也可以通过设置在折叠屏的弯折部位的角度传感器来检测用户对折叠屏所执行的折叠操作。示例性的,终端设备还可以通过设置在折叠屏的 弯折部位的物理开关来检测用户对折叠屏所执行的折叠操作。本申请实施例对折叠操作的检测方式不作具体限定。Exemplarily, the terminal device may detect the folding operation performed by the user on the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope. Exemplarily, the terminal device may also detect the folding operation performed by the user on the folding screen through an angle sensor provided at the bending position of the folding screen. Exemplarily, the terminal device can also detect the folding operation performed by the user on the folding screen through a physical switch set at the bending part of the folding screen. The embodiment of the present application does not specifically limit the detection method of the folding operation.
在一些实施例中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用发送数据或者指令等,以及接收该第三方应用所返回的数据或者指令等。In some embodiments, when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device may send data or instructions to the third-party application and receive data or instructions returned by the third-party application through the configured application interface.
示例性的,在用户使用该第三方应用的过程中,当终端设备检测到用户将折叠屏折叠至第一角度区间内的任一角度时,终端设备可以通过所配置的应用接口向该第三方应用发送内容呈现模式的获取指令,并可以通过该应用接口接收该第三方应用根据该获取指令所返回的有关内容呈现模式的数据。终端设备则可以根据所接收到的数据判断该第三方应用的内容呈现模式是否为普通模式。在确定该第三方应用的内容呈现模式为普通模式时,终端设备则可以通过该应用接口向该第三方应用发送启动该第三方应用的AR模式或者启动该第三方应用的VR模式或者启动该第三方应用的3D模式的启动指令。该第三方应用接收到该应用接口传递的启动指令后,则可以根据该启动指令启动该第三方应用的AR模式、VR模式或者3D模式,以通过该第三方应用的AR模式、VR模式或者3D来进行内容呈现。Exemplarily, when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can communicate to the third-party application through the configured application interface. The application sends a content presentation mode acquisition instruction, and can receive data about the content presentation mode returned by the third-party application according to the acquisition instruction through the application interface. The terminal device can determine whether the content presentation mode of the third-party application is the normal mode according to the received data. When it is determined that the content presentation mode of the third-party application is the normal mode, the terminal device can send to the third-party application through the application interface the AR mode for starting the third-party application or the VR mode of the third-party application or the third-party application. Start instruction of 3D mode for three-party application. After the third-party application receives the startup instruction transmitted by the application interface, it can start the AR mode, VR mode, or 3D mode of the third-party application according to the startup instruction to pass the AR mode, VR mode, or 3D mode of the third-party application For content presentation.
在另一些实施例中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用发送折叠操作所对应的折叠角度等信息,其中,折叠操作是指触发该第三方应用启动AR模式、VR模式或者3D模式的操作,折叠操作所对应的折叠角度是指折叠后的第一显示屏与第二显示屏之间的夹角。In other embodiments, when the current application is a third-party application that the terminal device obtains from the outside and is installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device may send information such as the folding angle corresponding to the folding operation to the third-party application through the configured application interface, where the folding operation refers to an operation that triggers the third-party application to start AR mode, VR mode, or 3D mode. , The folding angle corresponding to the folding operation refers to the angle between the folded first display screen and the second display screen.
示例性的,在用户使用该第三方应用的过程中,当终端设备检测到用户将折叠屏折叠至第一角度区间内的任一角度时,终端设备则可以通过所配置的应用接口向该第三方应用发送折叠操作所对应的折叠角度等信息,即可以通过所配置的应用接口将第一显示屏与第二显示屏之间的夹角发送至该第三方应用。该第三方应用接收到该应用接口传递的折叠角度等信息后,则可以首先获取该第三方应用的内容呈现模式,并可以判断该内容呈现模式是否为普通模式。在确定该内容呈现模式为普通模式时,该第三方应用则可以启动该第三方应用的AR模式或者启动该第三方应用的VR模式或者启动该第三方应用的3D模式,以通过该第三方应用的AR模式、VR模式或者3D模式来进行内容呈现。Exemplarily, when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can send a message to the third-party application through the configured application interface. The three-party application sends information such as the folding angle corresponding to the folding operation, that is, the included angle between the first display screen and the second display screen can be sent to the third-party application through the configured application interface. After the third-party application receives information such as the folding angle transmitted by the application interface, it can first obtain the content presentation mode of the third-party application, and can determine whether the content presentation mode is a normal mode. When it is determined that the content presentation mode is the normal mode, the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
在一些实施例中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用实时发送折叠屏当前所对应的第一角度等信息,其中,折叠屏当前所对应的第一角度是指折叠屏在当前形态中的第一显示屏和第二显示屏之间的夹角,折叠屏当前所对应的第一角度可以为能触发该第三方应用启动AR模式、VR模式或3D模式的折叠操作所对应的角度,也可以为不能触发该第三方应用启动AR模式、VR模式或3D模式的折叠操作所对应的角度。In some embodiments, when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device can send real-time information such as the first angle corresponding to the folding screen to the third-party application through the configured application interface, where the first angle corresponding to the folding screen currently refers to the folding screen in the current form The included angle between the first display screen and the second display screen, the first angle corresponding to the folding screen may be the angle corresponding to the folding operation that can trigger the third-party application to start AR mode, VR mode, or 3D mode, It may also be an angle corresponding to the folding operation that cannot trigger the third-party application to start AR mode, VR mode, or 3D mode.
示例性的,在用户使用该第三方应用的过程中,终端设备可以实时检测折叠屏当前所对应的第一角度等信息,并可以通过所配置的应用接口将所检测到的第一角度等信息实时发送至该第三方应用。该第三方应用接收到该应用接口传递的第一角度后,可以首先判断该第一角度是否位于第一角度区间内,若确定该第一角度位于第一角度区间内,该第三方应用则可以获取该第三方应用的内容呈现模式。然后该第三方应用可以继续判断该内容呈现模式是否为普通模式。在确定该内容呈现模式为普通模式时,该第三方应用则可以启动该第三方应用的AR模式或者启动该第三 方应用的VR模式或者启动该第三方应用的3D模式,以通过该第三方应用的AR模式、VR模式或者3D模式来进行内容呈现。Exemplarily, when the user uses the third-party application, the terminal device can detect the current first angle and other information corresponding to the folding screen in real time, and can use the configured application interface to display the detected first angle and other information Send to the third-party application in real time. After the third-party application receives the first angle transmitted by the application interface, it can first determine whether the first angle is within the first angle interval. If it is determined that the first angle is within the first angle interval, the third-party application can Obtain the content presentation mode of the third-party application. Then the third-party application can continue to determine whether the content presentation mode is the normal mode. When it is determined that the content presentation mode is the normal mode, the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
在第一方面的一种可能的实现方式中,所述折叠屏可以包括第一显示屏和第二显示屏;In a possible implementation of the first aspect, the folding screen may include a first display screen and a second display screen;
所述通过所述目标模式呈现所述当前应用的内容,可以包括:The presenting the content of the current application in the target mode may include:
在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,并在所述第二显示屏中通过所述普通模式呈现所述当前应用的第二内容。The first content of the current application is presented in the first display screen in the target mode, and the second content of the current application is presented in the second display screen in the normal mode.
应理解,所述终端设备可以包括后置的第一摄像装置,所述第一显示屏为所述折叠屏中被折起的区域,所述第二显示屏为所述折叠屏中除所述第一显示屏以外的区域,所述第一摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处。It should be understood that the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
需要说明的是,折叠屏可以包括被折叠起来的第一显示屏和未被折叠的第二显示屏。在此,为了提高当前应用中内容呈现的多样性,以方便用户更好地理解当前应用中所呈现的内容,终端设备可以在第一显示屏中通过目标模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容。具体地,终端设备可以在第一显示屏中通过AR模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容;或者终端设备可以在第一显示屏中通过VR模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容;或者终端设备可以在第一显示屏中通过3D模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容。It should be noted that the folding screen may include a folded first display screen and an unfolded second display screen. Here, in order to improve the diversity of content presentation in the current application, so as to facilitate users to better understand the content presented in the current application, the terminal device may present the first content of the current application in the target mode on the first display screen, and The second content of the current application can be presented in the normal mode on the second display screen. Specifically, the terminal device can present the first content of the current application on the first display screen in AR mode, and can present the second content of the current application on the second display screen in the normal mode; or the terminal device can display on the first display screen. The first content of the current application can be presented in the VR mode on the screen, and the second content of the current application can be presented in the normal mode on the second display screen; or the terminal device can be presented in the 3D mode on the first display screen. A content, and the second content of the current application can be presented on the second display screen in a normal mode.
应理解,终端设备可以包括后置的第一摄像装置,即终端设备可以包括后置摄像头。在目标模式为AR模式时,终端设备可以通过第一摄像装置(即后置摄像头)采集当前环境对应的实景图像,以基于实景图像来进行AR模式中内容的呈现。在此,为确保实景图像采集的准确性与有效性,提高AR模式中内容的呈现效果,第一摄像装置可以位于终端设备中被折叠起的部分。具体地,终端设备的折叠屏被折叠后可以形成第一显示屏和第二显示屏,第一显示屏为折叠屏中被折叠起来的区域,第二显示屏为折叠屏中除第一显示屏以外的区域,即第二显示屏为折叠屏中未被折叠起来的区域。第一摄像装置在终端设备中的位置则可以与第一显示屏相对应,即第一摄像装置可以位于终端设备中与第一显示屏相对应的背面。It should be understood that the terminal device may include a rear-mounted first camera device, that is, the terminal device may include a rear-mounted camera. When the target mode is the AR mode, the terminal device may collect a real scene image corresponding to the current environment through the first camera device (that is, a rear camera), so as to present content in the AR mode based on the real scene image. Here, in order to ensure the accuracy and effectiveness of the real scene image collection and improve the presentation effect of the content in the AR mode, the first camera device may be located in the folded part of the terminal device. Specifically, the folding screen of the terminal device can form a first display screen and a second display screen after being folded. The first display screen is the folded area of the folding screen, and the second display screen is the folding screen except the first display screen. The area outside, that is, the second display screen is the unfolded area of the folding screen. The position of the first camera device in the terminal device may correspond to the first display screen, that is, the first camera device may be located on the back side of the terminal device corresponding to the first display screen.
示例性的,在所述目标模式为AR模式时,所述在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,可以包括:Exemplarily, when the target mode is the AR mode, the presenting the first content of the current application in the target mode on the first display screen may include:
通过所述第一摄像装置获取当前环境对应的第一实景图像,并根据所述第一实景图像、预设地图以及预设导航路线确定导航标识在所述第一实景图像中的指示位置和指示方向;Acquire a first real scene image corresponding to the current environment through the first camera device, and determine the indication position and indication of a navigation mark in the first real scene image according to the first real scene image, a preset map, and a preset navigation route direction;
在所述指示位置以所述指示方向显示所述导航标识,并在所述第一显示屏中呈现带有所述导航标识的所述第一实景图像。The navigation mark is displayed in the instruction direction at the instruction location, and the first real scene image with the navigation mark is presented on the first display screen.
示例性的,终端设备在确定启动当前应用的AR模式时,可以通过第一摄像装置获取用户当前所在环境的第一实景图像,并可以将所获取的第一实景图像与当前应用中所需呈现的内容进行融合,以将当前应用中所需呈现的内容融合至第一实景图像中,然后可以将融合后的第一实景图像在终端设备的折叠屏中进行呈现。Exemplarily, when the terminal device determines to start the AR mode of the current application, it can acquire the first real-world image of the user’s current environment through the first camera device, and can compare the acquired first real-world image with the current application. The content of the fusion is merged to merge the content that needs to be presented in the current application into the first real-scene image, and then the merged first real-scene image can be presented on the folding screen of the terminal device.
具体地,在导航场景中,在用户使用地图应用的普通模式(即2D导航模式)进行导航的过程中,当用户想要启动地图应用的AR模式(即实景导航模式)进行导航时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户当前所在环境的第一实景图像,然 后可以根据所获取的第一实景图像、地图应用中所存储的预设地图以及2D导航模式所确定的预设导航路线,确定导航标识在第一实景图像中的指示位置和指示方向,其中,指示位置可以为第一实景图像中用户当前所在的实时位置,指示方向可以为指示用户行走的方向和/或方位等。然后可以在第一实景图像中的指示位置处以该指示方向显示导航标识,并可以将带有导航标识的第一实景图像呈现于终端设备的折叠屏中,从而通过实景导航更好地帮助用户到达目的位置。其中,导航标识在第一实景图像中的指示方向也可以根据用户的移动方向进行调整。Specifically, in a navigation scenario, when the user uses the normal mode of the map application (ie 2D navigation mode) for navigation, when the user wants to start the AR mode of the map application (ie, the real-world navigation mode) for navigation, the user can Fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first obtain the first real scene image of the user’s current environment through the first camera device, and then can obtain the first real scene image according to the acquired first real scene The image, the preset map stored in the map application, and the preset navigation route determined by the 2D navigation mode are used to determine the indicated position and direction of the navigation mark in the first real-scene image, where the indicated position may be in the first real-scene image The current real-time location of the user, and the indicated direction may indicate the direction and/or orientation in which the user is walking. Then the navigation mark can be displayed at the indicated position in the first real scene image in the indicated direction, and the first real scene image with the navigation mark can be presented on the folding screen of the terminal device, so as to better help the user to reach through the real scene navigation Destination location. Wherein, the indication direction of the navigation mark in the first real scene image can also be adjusted according to the user's moving direction.
示例性的,在所述目标模式为AR模式时,所述在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,可以包括:Exemplarily, when the target mode is the AR mode, the presenting the first content of the current application in the target mode on the first display screen may include:
通过所述第一摄像装置获取当前环境对应的第二实景图像,并获取所述当前应用对应的虚拟图像;Acquiring a second real scene image corresponding to the current environment through the first camera device, and acquiring a virtual image corresponding to the current application;
将所述虚拟图像融合至所述第二实景图像,并在所述第一显示屏中呈现融合有所述虚拟图像的所述第二实景图像。The virtual image is fused to the second real scene image, and the second real scene image fused with the virtual image is presented on the first display screen.
具体地,在游戏场景中,在用户使用游戏应用的普通模式进行游戏的过程中,当用户想要启动游戏应用的AR模式进行游戏时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户当前所在环境的第二实景图像,并可以获取游戏应用中游戏当前所对应的虚拟图像(例如游戏画面的前景图像、游戏对象本身等),然后可以将虚拟图像与第二实景图像进行融合,以将虚拟图像融合至第二实景图像中(例如将游戏画面的前景图像融合至第二实景图像中,或者将游戏对象融合至第二实景图像中),并可以将融合有虚拟图像的第二实景图像呈现于终端设备的折叠屏中,使用户可感受在真实环境场景中进行游戏的体验。Specifically, in the game scene, when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to the first angle interval. Any angle within. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the second real-life image of the user’s current environment through the first camera device, and can obtain the current game location in the game application. The corresponding virtual image (such as the foreground image of the game screen, the game object itself, etc.), and then the virtual image and the second real scene image can be merged to merge the virtual image into the second real scene image (for example, the foreground image of the game screen) Fusion into the second real scene image, or fusion of the game object into the second real scene image), and the second real scene image fused with the virtual image can be presented on the folding screen of the terminal device, so that the user can feel the scene in the real environment The experience of playing in the game.
在第一方面的一种可能的实现方式中,所述终端设备还可以包括前置的第二摄像装置,所述第二摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处;In a possible implementation of the first aspect, the terminal device may further include a front-mounted second camera device, and the second camera device is provided in the terminal device and corresponds to the first display screen. At the location
所述方法还可以包括:The method may also include:
通过所述第二摄像装置获取用户的交互手势,并根据所述交互手势与所述当前应用进行交互。The user's interaction gesture is acquired through the second camera device, and the interaction with the current application is performed according to the interaction gesture.
应理解,终端设备还可以包括前置的第二摄像装置。在此,终端设备可以利用第二摄像装置进行手势识别,并可以根据所识别的手势与当前应用进行交互,以提高应用的交互性能,提升用户体验。示例的,为方便用户通过手势与当前应用进行交互,以提高手势交互的便捷性,第二摄像装置可以设置于终端设备中被折叠起来的部分,即第二摄像装置在终端设备中的位置可以与第一显示屏相对应,也就是说,第二摄像装置可以位于终端设备中与第一显示屏相对应的正面。例如,第二摄像装置可以设置于第一显示屏上方的位置,以提高用户进行手势交互的便捷性,提升用户体验。It should be understood that the terminal device may also include a front-mounted second camera device. Here, the terminal device can use the second camera device to perform gesture recognition, and can interact with the current application according to the recognized gesture, so as to improve the interactive performance of the application and enhance the user experience. For example, in order to facilitate the user to interact with the current application through gestures to improve the convenience of gesture interaction, the second camera device can be provided in the folded part of the terminal device, that is, the position of the second camera device in the terminal device can be Corresponding to the first display screen, that is, the second camera device may be located on the front side corresponding to the first display screen in the terminal device. For example, the second camera device may be arranged at a position above the first display screen to improve the convenience of gesture interaction by the user and improve the user experience.
应理解,所述当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,可以包括:It should be understood that, when a folding operation on the folding screen is detected, acquiring the content presentation mode of the current application may include:
当检测到对所述折叠屏的折叠操作时,获取所述折叠屏对应的第一折叠角度;When a folding operation on the folding screen is detected, acquiring the first folding angle corresponding to the folding screen;
若所述第一折叠角度位于预设的第一角度区间内,则获取所述当前应用的内容呈现模式。If the first folding angle is within the preset first angle interval, acquiring the content presentation mode of the current application.
需要说明的是,为避免目标模式的误启动,终端设备中可以存储有当前应用对应的第一角度区间,并可结合第一角度区间来确定用户是否想要启动当前应用的目标模式。其中,第一角度区间可以为用户根据实际情况预先设置的角度区间,也可以为终端设备中系统默认设置的角度区间,本申请实施例对此不作任何限定。It should be noted that, in order to avoid false activation of the target mode, the terminal device may store the first angle interval corresponding to the current application, and the first angle interval may be combined to determine whether the user wants to start the target mode of the current application. The first angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device, which is not limited in the embodiment of the present application.
示例性的,在所述通过所述目标模式呈现所述当前应用的内容之后,可以包括:Exemplarily, after the presenting the content of the current application in the target mode, the method may include:
获取所述折叠屏对应的第二折叠角度;Acquiring a second folding angle corresponding to the folding screen;
若所述第二折叠角度位于预设的第二角度区间内,则关闭所述目标模式,并通过所述普通模式呈现所述当前应用的内容。If the second folding angle is within the preset second angle interval, the target mode is closed, and the content of the current application is presented in the normal mode.
需要说明的是,在当前应用通过AR模式、VR模式或者3D模式进行内容呈现的过程中,终端设备还可以通过接收用户的关闭操作来关闭当前应用的AR模式、VR模式或者3D模式,以返回至当前应用的普通模式。示例的,用户可以通过将折叠屏恢复至原来的形态来关闭当前应用的AR模式、VR模式或者3D模式。例如,用户可以通过将折叠屏恢复至大屏的展开形态来关闭当前应用的AR模式、VR模式或3D模式。即在当前应用的AR模式、VR模式或3D模式的启动过程中,终端设备可以实时获取折叠屏所对应的第二折叠角度,并在确定该第二折叠角度位于预设的第二角度区间内时,则可以关闭当前应用的AR模式、VR模式或3D模式,以通过当前应用的普通模式来对当前应用的内容进行呈现。It should be noted that in the process of presenting content in the current application in AR mode, VR mode or 3D mode, the terminal device can also close the AR mode, VR mode or 3D mode of the current application by receiving the user's closing operation to return To the normal mode of the current application. For example, the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to its original form. For example, the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to the expanded form of the large screen. That is, during the startup process of the AR mode, VR mode, or 3D mode of the current application, the terminal device can obtain the second folding angle corresponding to the folding screen in real time, and determine that the second folding angle is within the preset second angle interval. When the time, the AR mode, VR mode, or 3D mode of the current application can be turned off to present the content of the current application through the normal mode of the current application.
其中,第二角度区间可以为用户根据实际情况预先设置的角度区间,也可以为终端设备中系统默认设置的角度区间。示例的,第二角度区间可以为折叠屏为大屏的展开形态所对应的角度区间。The second angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device. For example, the second angle interval may be an angle interval corresponding to the expanded form of the folding screen as a large screen.
示例性的,当前应用的应用界面中也可以设置有关闭AR模式或者关闭VR模式或者关闭3D模式的虚拟按键,用户也可以通过点击或者触摸该虚拟按键来关闭当前应用的AR模式或者关闭当前应用的VR模式或者关闭当前应用的3D模式。即在AR模式、VR模式或者3D模式的启动过程中,终端设备可以实时检测该虚拟按键的触发状态,并在确定该虚拟按键被触发时,关闭当前应用的AR模式、VR模式或者3D模式。Exemplarily, the application interface of the current application may also be provided with a virtual button that closes the AR mode or closes the VR mode or closes the 3D mode. The user can also click or touch the virtual button to close the AR mode of the current application or close the current application VR mode or close the currently applied 3D mode. That is, during the startup process of AR mode, VR mode or 3D mode, the terminal device can detect the triggering state of the virtual button in real time, and when determining that the virtual button is triggered, close the currently applied AR mode, VR mode or 3D mode.
第二方面,本申请实施例提供了一种内容呈现装置,应用于具有折叠屏的终端设备,所述装置可以包括:In the second aspect, an embodiment of the present application provides a content presentation device, which is applied to a terminal device with a folding screen, and the device may include:
模式获取模块,用于当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用;A mode obtaining module, configured to obtain a content presentation mode of a current application when a folding operation on the folding screen is detected, the current application being an application currently being used in the terminal device;
内容呈现模块,用于若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。The content presentation module is configured to, if the content presentation mode is the normal mode, start the target mode of the current application, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode, At least one of a virtual reality VR mode and a three-dimensional 3D mode.
在第二方面的一种可能的实现方式中,所述折叠屏可以包括第一显示屏和第二显示屏;In a possible implementation of the second aspect, the folding screen may include a first display screen and a second display screen;
所述内容呈现模块,还用于在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,并在所述第二显示屏中通过所述普通模式呈现所述当前应用的第二内容。The content presentation module is further configured to present the first content of the current application in the target mode on the first display screen, and present the current application in the normal mode on the second display screen. The second content of the application.
应理解,所述终端设备可以包括后置的第一摄像装置,所述第一显示屏为所述折叠屏中被折起的区域,所述第二显示屏为所述折叠屏中除所述第一显示屏以外的区域,所述第一摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处。It should be understood that the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
示例性的,所述内容呈现模块,可以包括:Exemplarily, the content presentation module may include:
第一实景图像获取单元,用于通过所述第一摄像装置获取当前环境对应的第一实景图像,并根据所述第一实景图像、预设地图以及预设导航路线确定导航标识在所述第一实景图像中的指示位置和指示方向;The first real scene image acquisition unit is configured to acquire a first real scene image corresponding to the current environment through the first camera device, and determine that a navigation mark is in the first real scene image, a preset map, and a preset navigation route. 1. The indicating position and direction in the real image;
第一内容呈现单元,用于在所述指示位置以所述指示方向显示所述导航标识,并在所述第一显示屏中呈现带有所述导航标识的所述第一实景图像。The first content presentation unit is configured to display the navigation mark in the instruction direction at the instruction location, and present the first real scene image with the navigation mark on the first display screen.
示例性的,所述内容呈现模块,还可以包括:Exemplarily, the content presentation module may further include:
第二实景图像获取单元,用于通过所述第一摄像装置获取当前环境对应的第二实景图像,并获取所述当前应用对应的虚拟图像;A second real-scene image acquiring unit, configured to acquire a second real-scene image corresponding to the current environment through the first camera device, and to acquire a virtual image corresponding to the current application;
第二内容呈现单元,用于将所述虚拟图像融合至所述第二实景图像,并在所述第一显示屏中呈现融合有所述虚拟图像的所述第二实景图像。The second content presentation unit is configured to fuse the virtual image to the second real scene image, and present the second real scene image fused with the virtual image on the first display screen.
在第二方面的一种可能的实现方式中,所述终端设备还可以包括前置的第二摄像装置,所述第二摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处;In a possible implementation of the second aspect, the terminal device may further include a front-mounted second camera device, and the second camera device is provided in the terminal device and corresponds to the first display screen. At the location
所述装置,还可以包括:The device may also include:
手势交互模块,用于通过所述第二摄像装置获取用户的交互手势,并根据所述交互手势与所述当前应用进行交互。The gesture interaction module is used to obtain the user's interaction gesture through the second camera device, and interact with the current application according to the interaction gesture.
应理解,所述模式获取模块,可以包括:It should be understood that the pattern acquisition module may include:
第一折叠角度获取单元,用于当检测到对所述折叠屏的折叠操作时,获取所述折叠屏对应的第一折叠角度;The first folding angle acquiring unit is configured to acquire the first folding angle corresponding to the folding screen when a folding operation on the folding screen is detected;
模式获取单元,用于若所述第一折叠角度位于预设的第一角度区间内,则获取所述当前应用的内容呈现模式。The mode obtaining unit is configured to obtain the content presentation mode of the current application if the first folding angle is within a preset first angle interval.
示例性的,所述装置,还可以包括:Exemplarily, the device may further include:
第二折叠角度获取模块,用于获取所述折叠屏对应的第二折叠角度;The second folding angle obtaining module is configured to obtain the second folding angle corresponding to the folding screen;
目标模式关闭模块,用于若所述第二折叠角度位于预设的第二角度区间内,则关闭所述目标模式,并通过所述普通模式呈现所述当前应用的内容。The target mode closing module is configured to close the target mode if the second folding angle is within a preset second angle interval, and present the content of the current application in the normal mode.
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面中任一项所述的内容呈现方法。In the third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, The content presentation method according to any one of the above-mentioned first aspects is implemented.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面中任一项所述的内容呈现方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any one of the above-mentioned first aspects. The content presentation method described.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的内容呈现方法。In a fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the content presentation method described in any one of the above-mentioned first aspects.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It is understandable that, for the beneficial effects of the second aspect to the fifth aspect described above, reference may be made to the relevant description in the first aspect described above, and details are not repeated here.
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of this application have the following beneficial effects:
本申请实施例中,在当前应用的使用过程中,当用户想要启动当前应用的目标模式(即AR模式、VR模式和3D模式中的至少一种)来进行内容呈现时,用户可以对终端设备的折叠屏进行折叠。此时,终端设备可以获取当前应用的内容呈现模式,并可以基于当前应用的内容呈现模式和用户对折叠屏的折叠操作快速启动当前应用的AR模式、VR模式或3D模式来进行内容呈现,以简化AR模式、VR模式或3D模式的启动操作,提高AR模式、VR模式或3D模式的启动速度,从而提高应用通过AR模式或通过VR模式或通过3D模式来进行内容呈现的呈现速度,提升用户体验。In the embodiments of the present application, during the use of the current application, when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can display content to the terminal The folding screen of the device is folded. At this time, the terminal device can obtain the content presentation mode of the current application, and can quickly start the AR mode, VR mode, or 3D mode of the current application based on the content presentation mode of the current application and the user's folding operation on the folding screen to perform content presentation. Simplify the startup operation of AR mode, VR mode or 3D mode, improve the startup speed of AR mode, VR mode or 3D mode, thereby increasing the presentation speed of content presentation through AR mode, VR mode or 3D mode, and improve users Experience.
附图说明Description of the drawings
图1是现有技术中的AR模式启动的示意图;Figure 1 is a schematic diagram of AR mode activation in the prior art;
图2是本申请一实施例提供的内容呈现方法的流程示意图;FIG. 2 is a schematic flowchart of a content presentation method provided by an embodiment of the present application;
图3是折叠屏对应的折叠角度的示意图;FIG. 3 is a schematic diagram of the folding angle corresponding to the folding screen;
图4a是VR模式进行内容呈现的场景示意图;Figure 4a is a schematic diagram of a scene of content presentation in VR mode;
图4b是3D模式进行内容呈现的场景示意图;Figure 4b is a schematic diagram of a scene of content presentation in 3D mode;
图5是本申请一实施例提供的应用场景示意图;Figure 5 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图6是本申请另一实施例提供的应用场景示意图;FIG. 6 is a schematic diagram of an application scenario provided by another embodiment of the present application;
图7是本申请一实施例提供的应用场景示意图;FIG. 7 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图8是本申请另一实施例提供的应用场景的示例图;FIG. 8 is an example diagram of an application scenario provided by another embodiment of the present application;
图9是本申请实施例提供的内容呈现装置的结构示意图;FIG. 9 is a schematic structural diagram of a content presentation device provided by an embodiment of the present application;
图10是本申请实施例提供的终端设备的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图11是本申请一实施例提供的内容呈现方法所适用于的手机的结构示意图;FIG. 11 is a schematic structural diagram of a mobile phone to which the content presentation method provided by an embodiment of the present application is applicable;
图12是本申请一实施例提供的内容呈现方法所适用于的软件架构示意图。FIG. 12 is a schematic diagram of a software architecture to which the content presentation method provided by an embodiment of the present application is applicable.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
本申请实施例提供的内容呈现方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备上,本申请实施例对终端设备的具体类型不作任何限制。The content presentation method provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers For terminal devices (ultra-mobile personal computer, UMPC), netbooks, and personal digital assistants (personal digital assistant, PDA), the embodiments of this application do not impose any restrictions on the specific types of terminal devices.
目前,很多应用中都可以使用增强现实AR技术、虚拟现实VR技术或者三维3D技术进行内容呈现来帮助用户更沉浸的理解内容和完成任务等。也就是说,很多应用中都可以设置有普通模 式(即普通2D模式),和基于AR技术的AR模式、基于VR技术的VR模式、基于3D技术的3D模式来供用户进行内容呈现模式的选择,从而可以根据用户所选择的内容呈现模式对应用中的内容进行呈现。但现有应用中,用户往往需要先在应用中找到AR模式、VR模式或者3D模式所对应的特定按钮,然后通过点击或触摸该特定按钮来启动应用的AR模式、VR模式或者3D模式,从而通过AR模式、VR模式或者3D模式进行内容呈现。如图1所示,在用户使用地图应用的普通模式(即2D导航模式)进行导航内容的呈现时,若用户想要通过AR模式(即实景导航模式)进行导航内容的呈现,用户则需要先在地图应用中找到实景导航模式所对应的特定按钮(例如需要先找到图1中的AR按钮),然后通过点击或者触摸AR按钮来进入实景导航模式,从而可以通过实景导航模式进行实景导航内容的呈现。这种通过点击或者触摸特定按钮的方式启动AR模式、VR模式或者3D模式易造成操作上的繁琐与不便,而对于那些特定按钮设置较为隐蔽的应用,这种操作上的繁琐与不便则尤为明显,使得AR模式、VR模式或者3D模式的启动速度较慢,从而使得应用通过AR模式、VR模式或者3D模式进行内容呈现的呈现速度较慢,影响用户体验。At present, many applications can use augmented reality AR technology, virtual reality VR technology or three-dimensional 3D technology for content presentation to help users understand content and complete tasks more immersively. In other words, many applications can be set with normal mode (ie normal 2D mode), AR mode based on AR technology, VR mode based on VR technology, and 3D mode based on 3D technology for users to choose content presentation mode. , So that the content in the application can be presented according to the content presentation mode selected by the user. However, in existing applications, users often need to find the specific button corresponding to the AR mode, VR mode, or 3D mode in the application, and then click or touch the specific button to start the AR mode, VR mode, or 3D mode of the application. Content presentation through AR mode, VR mode or 3D mode. As shown in Figure 1, when the user uses the normal mode of the map application (ie 2D navigation mode) to present the navigation content, if the user wants to present the navigation content through the AR mode (ie the real-world navigation mode), the user needs to first Find the specific button corresponding to the real-scene navigation mode in the map application (for example, you need to find the AR button in Figure 1 first), and then click or touch the AR button to enter the real-scene navigation mode, so that you can use the real-scene navigation mode to perform real-scene navigation content Present. This way of starting AR mode, VR mode or 3D mode by clicking or touching a specific button is easy to cause cumbersome and inconvenient operation, and for those applications where specific button settings are more concealed, this cumbersome and inconvenient operation is particularly obvious , Making the start-up speed of AR mode, VR mode or 3D mode slower, so that the presentation speed of content presentation by the application through AR mode, VR mode or 3D mode is slower, which affects user experience.
为了解决上述问题,本申请实施例提供了一种内容呈现方法、装置、终端设备及计算机可读存储介质,该内容呈现方法所应用于的终端设备可以为具有折叠屏的终端设备。在用户使用终端设备某一应用的过程中,当用户想要启动该应用的目标模式(即AR模式、VR模式和3D模式中的至少一种)来进行内容呈现时,用户可以对终端设备的折叠屏进行折叠。此时,终端设备则可以获取该应用的内容呈现模式,并可以基于该应用的内容呈现模式和用户对折叠屏的折叠操作快速启动该应用的AR模式、VR模式或者3D模式进行内容呈现,以简化AR模式、VR模式或者3D模式的启动操作,提高AR模式、VR模式或者3D模式的启动速度,从而提高应用通过AR模式或者通过VR模式或者通过3D模式进行内容呈现的呈现速度,提升用户体验。In order to solve the foregoing problems, embodiments of the present application provide a content presentation method, device, terminal device, and computer-readable storage medium. The terminal device to which the content presentation method is applied may be a terminal device with a folding screen. During the user's use of an application on the terminal device, when the user wants to start the target mode of the application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can display the content of the terminal device. The folding screen is folded. At this time, the terminal device can obtain the content presentation mode of the application, and can quickly start the AR mode, VR mode, or 3D mode of the application for content presentation based on the content presentation mode of the application and the user's folding operation on the folding screen. Simplify the startup operation of AR mode, VR mode or 3D mode, and improve the startup speed of AR mode, VR mode or 3D mode, thereby improving the presentation speed of content presentation of applications through AR mode, VR mode or 3D mode, and improving user experience .
需要说明的是,本申请实施例提供的内容呈现方法所应用于的终端设备的折叠屏可以采用一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的显示屏。在使用过程中,折叠屏可以随时在折叠形态下的小屏和展开形态下的大屏之间切换。其中,折叠形态可以是完全折叠,即折叠屏被折叠后所对应的第一显示屏和第二显示屏之间的夹角为0度(实际可能达不到0度,具体以终端设备中的角度传感器等传感器实际上报角度为准),也可以是部分折叠,即折叠屏被折叠后所对应的第一显示屏和第二显示屏之间的夹角大于0度且小于180度。It should be noted that the folding screen of the terminal device to which the content presentation method provided in the embodiment of the present application is applied may adopt an integrated flexible display screen, or may adopt two rigid screens and a flexible screen located between the two rigid screens. Screen composed of display screens. During use, the folding screen can be switched between the small screen in the folded form and the large screen in the expanded form at any time. Among them, the folding form can be completely folded, that is, the angle between the first display screen and the second display screen corresponding to the folding screen after being folded is 0 degrees (in fact, it may not reach 0 degrees, which is specified in the terminal device. The angle sensor and other sensors actually report the angle), or it can be partially folded, that is, the angle between the first display and the second display after the folding screen is folded is greater than 0 degrees and less than 180 degrees.
图2示出了本申请实施例提供的内容呈现方法的示意性流程图。如图2所示,所述内容呈现方法,可以包括:Fig. 2 shows a schematic flowchart of a content presentation method provided by an embodiment of the present application. As shown in Figure 2, the content presentation method may include:
S201、当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用。S201: When a folding operation on the folding screen is detected, obtain a content presentation mode of a current application, where the current application is an application currently being used in the terminal device.
应理解,当前应用为终端设备中用户当前正在使用的应用,即当前应用为终端设备中正处于前台运行的应用。其中,内容呈现模式可以包括普通模式,以及可以包括AR模式、VR模式和3D模式中的至少一种。It should be understood that the current application is an application currently being used by the user in the terminal device, that is, the current application is an application running in the foreground in the terminal device. Wherein, the content presentation mode may include a normal mode, and may include at least one of an AR mode, a VR mode, and a 3D mode.
示例性的,内容呈现模式可以包括普通模式和AR模式,即当前应用可以为含有普通模式和AR模式的应用。例如,当前应用可以为含有普通模式(即2D导航模式)和AR模式(即实景导航模式)的地图应用,或者可以为含有普通模式(即普通2D游戏模式)和AR模式(即融合真实场景的游戏模式)的游戏应用。示例性的,内容呈现模式可以包括普通模式和VR模式,即当前应用可以为含有普通模式和VR模式的应用。例如,当前应用可以为含有普通模式和VR模式的 租售房应用,或者可以为含有普通模式和VR模式的商品展示(销售)应用。示例性的,内容获取模式还可以包括普通模式、AR模式和3D模式,即当前应用可以为含有普通模式、AR模式和3D模式的应用,等等。Exemplarily, the content presentation mode may include a normal mode and an AR mode, that is, the current application may be an application including a normal mode and an AR mode. For example, the current application can be a map application containing a normal mode (ie 2D navigation mode) and an AR mode (ie a real-world navigation mode), or it can be a map application containing a normal mode (ie a normal 2D game mode) and an AR mode (ie a fusion of real scenes). Game mode) game application. Exemplarily, the content presentation mode may include a normal mode and a VR mode, that is, the current application may be an application including a normal mode and a VR mode. For example, the current application may be a house rental application including a normal mode and a VR mode, or may be a commodity display (sale) application including a normal mode and a VR mode. Exemplarily, the content acquisition mode may also include a normal mode, an AR mode, and a 3D mode, that is, the current application may be an application including a normal mode, an AR mode, and a 3D mode, and so on.
需要说明的是,当前应用可以为终端设备中直接内置的内置应用,即可以为终端设备的生产商自行开发并直接内置于终端设备中的应用,或者可以为终端设备的生产商与第三方厂商合作开发并直接内置于终端设备中的应用等。例如,当前应用可以为终端设备的生产商自行开发并内置于终端设备中的游戏应用。例如,当前应用可以为终端设备的生产商与第三方厂商合作开发并内置于终端设备中的地图应用。It should be noted that the current application can be a built-in application directly built into the terminal device, that is, an application developed by the manufacturer of the terminal device and directly built into the terminal device, or it can be a terminal device manufacturer and a third-party manufacturer Co-developed and directly built-in applications in terminal equipment, etc. For example, the current application may be a game application developed by the manufacturer of the terminal device and built into the terminal device. For example, the current application may be a map application developed in cooperation with a third-party manufacturer and built into the terminal device by the manufacturer of the terminal device.
应理解,当前应用也可以为终端设备从外部获取的第三方应用,即当前应用也可以为第三方厂商开发,并由终端设备从第三方厂商中获取并安装于终端设备中的应用。例如,当前应用也可以为终端设备从第三方厂商下载并安装的地图应用。It should be understood that the current application may also be a third-party application obtained by the terminal device from the outside, that is, the current application may also be developed by a third-party manufacturer, and the terminal device may obtain an application from the third-party manufacturer and install it in the terminal device. For example, the current application may also be a map application downloaded and installed by the terminal device from a third-party manufacturer.
具体地,在用户使用终端设备的某一应用(即上述所述的当前应用)的过程中,当用户想要启动当前应用的目标模式(即AR模式、VR模式和3D模式中的至少一种模式)进行内容呈现时,如图1所示,在用户使用终端设备中的地图应用进行导航的过程中,当用户想要启动地图应用的AR模式(即实景导航模式)进行导航内容的呈现时,用户可以对终端设备的折叠屏进行折叠,终端设备则可以根据用户对折叠屏的折叠操作,获取地图应用的内容呈现模式,并可以根据地图应用的内容呈现模式来进行AR模式的启动。Specifically, when a user uses a certain application of the terminal device (that is, the current application described above), when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) Mode) for content presentation, as shown in Figure 1, when the user uses the map application in the terminal device to navigate, when the user wants to start the AR mode of the map application (that is, the real-scene navigation mode) to present the navigation content The user can fold the folding screen of the terminal device, and the terminal device can obtain the content presentation mode of the map application according to the user's folding operation on the folding screen, and can start the AR mode according to the content presentation mode of the map application.
示例性的,终端设备可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个来检测用户对折叠屏所执行的折叠操作。示例性的,终端设备还可以通过设置在折叠屏的弯折部位的角度传感器来检测用户对折叠屏所执行的折叠操作。具体地,角度传感器可以实时测量折叠屏中间弯折部位两端所成的夹角(即实时测量第一显示屏和第二显示屏之间的夹角),当该夹角小于或等于预设角度时,终端设备即可以通过角度传感器检测到用户对折叠屏所执行的折叠操作。其中,该预设角度可以根据实际情况进行具体的设置,本申请实施例对此不作具体限定。Exemplarily, the terminal device may detect the folding operation performed by the user on the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope. Exemplarily, the terminal device may also detect the folding operation performed by the user on the folding screen through an angle sensor provided at the bending position of the folding screen. Specifically, the angle sensor can measure the included angle between the two ends of the bending part in the middle of the folding screen in real time (that is, measure the included angle between the first display screen and the second display screen in real time), when the included angle is less than or equal to the preset When angled, the terminal device can detect the folding operation performed by the user on the folding screen through the angle sensor. The preset angle can be specifically set according to actual conditions, which is not specifically limited in the embodiment of the present application.
在一些实施例中,终端设备也可以通过设置在折叠屏的弯折部位的物理开关来检测用户对折叠屏所执行的折叠操作。例如,当用户对折叠屏执行折叠操作时,设置在终端设备上的物理开关将被触发打开,终端设备根据物理开关的打开即可以检测到用户对折叠屏所执行的折叠操作。In some embodiments, the terminal device may also detect the folding operation performed by the user on the folding screen through a physical switch provided at the bending part of the folding screen. For example, when the user performs a folding operation on the folding screen, the physical switch set on the terminal device will be triggered to open, and the terminal device can detect the folding operation performed by the user on the folding screen according to the opening of the physical switch.
应理解,上述示例的通过重力传感器、加速度传感器、陀螺仪、角度传感器和物理开关来检测用户对折叠屏所执行的折叠操作仅仅用于解释本申请实施例,不应构成对本申请实施例的具体限定。It should be understood that the detection of the folding operation performed by the user on the folding screen through the gravity sensor, acceleration sensor, gyroscope, angle sensor, and physical switch in the above example is only used to explain the embodiment of the present application, and should not constitute a specific example of the embodiment of the present application. limited.
需要说明的是,为避免目标模式的误启动,终端设备中可以存储有当前应用对应的第一角度区间,并可结合第一角度区间来确定用户是否想要启动当前应用的目标模式。其中,第一角度区间可以为用户根据实际情况预先设置的角度区间,也可以为终端设备中系统默认设置的角度区间,本申请实施例对此不作任何限定。It should be noted that, in order to avoid false activation of the target mode, the terminal device may store the first angle interval corresponding to the current application, and the first angle interval may be combined to determine whether the user wants to start the target mode of the current application. The first angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device, which is not limited in the embodiment of the present application.
在此,终端设备中可以针对不同的应用设置有统一的第一角度区间,也可以针对不同的应用设置有不同的第一角度区间,本申请实施例对此不作任何限定。例如,终端设备中可以为含有AR模式的应用A和应用B以及含有VR模式的应用C设置有统一的第一角度区间[50°,70°]。例如,终端设备中可以为含有AR模式的应用A和应用B设置有第一角度区间[50°,70°],可以为含有VR模式的应用C设置有第一角度区间[60°,80°]。例如,终端设备中可以为含有AR模式的应用A设置有第一角度区间[50°,70°],可以为含有AR模式的应用B设置有第一角度区间[60°,80 °],可以为含有VR模式的应用C设置有第一角度区间[80°,90°]。Here, a unified first angle interval may be set in the terminal device for different applications, or different first angle intervals may be set for different applications, which is not limited in the embodiment of the present application. For example, the terminal device may be provided with a unified first angle interval [50°, 70°] for application A and application B containing the AR mode and application C containing the VR mode. For example, the first angle interval [50°, 70°] may be set in the terminal device for application A and application B containing the AR mode, and the first angle interval [60°, 80°] may be set for the application C containing the VR mode. ]. For example, in the terminal device, the first angle interval [50°, 70°] may be set for the application A containing the AR mode, and the first angle interval [60°, 80°] may be set for the application B containing the AR mode. A first angle interval [80°, 90°] is set for the application C including the VR mode.
示例性的,终端设备在检测到用户对折叠屏所执行的折叠操作时,可以获取折叠屏对应的第一折叠角度,并可以根据第一折叠角度和第一角度区间来确定用户是否想要启动当前应用的目标模式。具体地,当第一折叠角度位于第一角度区间内时,终端设备则可以确定用户想要启动当前应用的目标模式,此时终端设备则可以获取当前应用的内容呈现模式,以根据当前应用的内容呈现模式来进行目标模式的启动。Exemplarily, when the terminal device detects the folding operation performed by the user on the folding screen, it can obtain the first folding angle corresponding to the folding screen, and can determine whether the user wants to start according to the first folding angle and the first angle interval. The target mode of the current application. Specifically, when the first folding angle is within the first angle interval, the terminal device can determine the target mode in which the user wants to start the current application. At this time, the terminal device can obtain the content presentation mode of the current application to determine the content presentation mode of the current application. Content presentation mode to start the target mode.
需要说明的是,折叠操作可以是将折叠屏往朝着第一显示屏和第二显示屏相面对的方向进行折叠的操作,也可以是将折叠屏往朝着第一显示屏和第二显示屏相背对的方向进行折叠的操作,本申请实施例对此不作任何限定。为了便于理解,本申请实施例中后续将以折叠操作为将折叠屏往朝着第一显示屏和第二显示屏相面对的方向进行折叠的操作为例进行示例性说明。It should be noted that the folding operation can be an operation of folding the folding screen toward the direction facing the first display screen and the second display screen, or the folding screen facing the first display screen and the second display screen. The folding operation of the display screen in opposite directions is not limited in the embodiment of the present application. For ease of understanding, the following embodiments of the present application will exemplify an example in which the folding operation is an operation in which the folding screen is folded in a direction facing the first display screen and the second display screen.
如图3所示,折叠屏对应的第一折叠角度是指折叠屏对应的第一显示屏(即图3所示的B屏)和第二显示屏(即图3所示的A屏)之间的夹角α。示例性的,终端设备可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个来获取折叠屏对应的第一折叠角度。示例性的,终端设备还可以通过设置在折叠屏的弯折部位处的角度传感器来获取折叠屏对应的第一折叠角度。As shown in FIG. 3, the first folding angle corresponding to the folding screen refers to the difference between the first display screen (that is, the B screen shown in FIG. 3) and the second display screen (that is, the A screen shown in FIG. 3) corresponding to the folding screen. The angle between α. Exemplarily, the terminal device may obtain the first folding angle corresponding to the folding screen through one or more of a gravity sensor, an acceleration sensor, and a gyroscope. Exemplarily, the terminal device may also obtain the first folding angle corresponding to the folding screen through an angle sensor provided at the bending position of the folding screen.
例如,在第一角度区间为[50°,70°]的场景中,用户对折叠屏执行折叠操作后,终端设备则可以通过角度传感器获取折叠屏当前对应的第一折叠角度,即可以通过角度传感器测量折叠屏对应的第一显示屏与第二显示屏之间的夹角,而当终端设备获取的第一折叠角度为60°时,终端设备则可以确定用户当前想要启动当前应用的目标模式,此时终端设备即可以获取终端设备中当前应用的内容呈现模式,以根据当前应用的内容呈现模式来启动当前应用的目标模式。For example, in a scene where the first angle interval is [50°, 70°], after the user performs a folding operation on the folding screen, the terminal device can obtain the first folding angle corresponding to the folding screen through the angle sensor, that is, through the angle The sensor measures the angle between the first display screen and the second display screen corresponding to the folding screen, and when the first folding angle acquired by the terminal device is 60°, the terminal device can determine the target that the user currently wants to launch the current application. Mode, at this time, the terminal device can obtain the content presentation mode of the current application in the terminal device to start the target mode of the current application according to the content presentation mode of the current application.
S202、若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。S202. If the content presentation mode is the normal mode, start the target mode of the current application, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode or a virtual reality VR mode And at least one of three-dimensional 3D mode.
应理解,目标模式可以为AR模式、VR模式和3D模式中的任一种模式,也可以为AR模式、VR模式和3D模式中的任意两种模式或者三种模式。例如,当用户想要查看物品A在实际环境B中的安装效果时,用户可以在实际环境B中启动应用C(可进行安装效果模拟的应用)的AR模式和3D模式,以通过将物品A以3D模式模拟展示于实际环境B中来查看物品A在实际环境B中的安装效果。It should be understood that the target mode may be any one of AR mode, VR mode and 3D mode, or any two or three modes among AR mode, VR mode and 3D mode. For example, when the user wants to view the installation effect of item A in actual environment B, the user can start the AR mode and 3D mode of application C (an application that can simulate the installation effect) in actual environment B, so as to pass the item A Simulate the display in the actual environment B in 3D mode to view the installation effect of the item A in the actual environment B.
在此,目标模式是AR模式、VR模式和3D模式中的任一种模式,还是AR模式、VR模式和3D模式中的任意两种模式或者三种模式,可以根据实际情况具体确定。示例性的,在当前应用仅支持普通模式和AR模式时,目标模式即为AR模式;在当前应用仅支持普通模式和3D模式时,目标模式即为3D模式;在当前应用支持普通模式、AR模式、VR模式和3D模式时,目标模式可以由用户事先进行自定义设置(例如可以将目标模式自定义设置为AR模式与3D模式的结合),也可以由终端设备系统默认设置(例如可以将目标模式默认设置为AR模式),还可以由终端设备根据实际场景自动确定(例如可以根据实际场景将目标模式自动确定为VR模式),本申请实施例对此不作具体限定。为了便于理解,本申请实施例后续将以目标模式为AR模式、VR模式和3D模式中的任一种模式为例进行示例性说明。Here, whether the target mode is any one of AR mode, VR mode, and 3D mode, or any two or three modes among AR mode, VR mode, and 3D mode, can be specifically determined according to actual conditions. Exemplarily, when the current application only supports normal mode and AR mode, the target mode is AR mode; when the current application only supports normal mode and 3D mode, the target mode is 3D mode; when the current application supports normal mode, AR In mode, VR mode and 3D mode, the target mode can be customized by the user in advance (for example, the target mode can be customized as a combination of AR mode and 3D mode), or it can be set by default by the terminal device system (for example, you can set The target mode is set to the AR mode by default), and it can also be automatically determined by the terminal device according to the actual scene (for example, the target mode can be automatically determined as the VR mode according to the actual scene), which is not specifically limited in the embodiment of the present application. For ease of understanding, the following embodiments of the present application will take any one of the AR mode, VR mode, and 3D mode as an example for exemplification.
应理解,在当前应用的内容呈现模式已为AR模式、VR模式或者3D模式时,终端设备则可以保持当前应用的AR模式、VR模式或者3D模式,即可以在折叠后的折叠屏中继续通过AR模式、VR模式或者3D模式来呈现当前应用的内容。而在当前应用的内容呈现模式为普通模式时, 终端设备则可以启动当前应用的AR模式或者启动当前应用的VR模式或者启动当前应用的3D模式,以在折叠后的折叠屏中通过AR模式、VR模式或者3D模式来对当前应用的内容进行呈现。It should be understood that when the content presentation mode of the current application has been AR mode, VR mode or 3D mode, the terminal device can maintain the AR mode, VR mode or 3D mode of the current application, that is, it can continue to pass through on the folded folding screen. AR mode, VR mode or 3D mode to present the content of the current application. When the content presentation mode of the current application is the normal mode, the terminal device can start the AR mode of the current application or the VR mode of the current application or the 3D mode of the current application to pass AR mode, VR mode or 3D mode to present the content of the current application.
需要说明的是,终端设备可以包括后置的第一摄像装置,即终端设备可以包括后置摄像头。在目标模式为AR模式时,终端设备可以通过第一摄像装置(即后置摄像头)采集当前环境对应的实景图像,以基于实景图像来进行AR模式中内容的呈现。在此,为确保实景图像采集的准确性与有效性,提高AR模式中内容的呈现效果,第一摄像装置可以位于终端设备中被折叠起的部分。具体地,终端设备的折叠屏被折叠后可以形成第一显示屏和第二显示屏,第一显示屏为折叠屏中被折叠起来的区域,第二显示屏为折叠屏中除第一显示屏以外的区域,即第二显示屏为折叠屏中未被折叠起来的区域。第一摄像装置在终端设备中的位置则可以与第一显示屏相对应,即第一摄像装置可以位于终端设备中与第一显示屏相对应的背面。It should be noted that the terminal device may include a rear-mounted first camera device, that is, the terminal device may include a rear-mounted camera. When the target mode is the AR mode, the terminal device may collect a real scene image corresponding to the current environment through the first camera device (that is, a rear camera), so as to present content in the AR mode based on the real scene image. Here, in order to ensure the accuracy and effectiveness of the real scene image collection and improve the presentation effect of the content in the AR mode, the first camera device may be located in the folded part of the terminal device. Specifically, the folding screen of the terminal device can form a first display screen and a second display screen after being folded. The first display screen is the folded area of the folding screen, and the second display screen is the folding screen except the first display screen. The area outside, that is, the second display screen is the unfolded area of the folding screen. The position of the first camera device in the terminal device may correspond to the first display screen, that is, the first camera device may be located on the back side of the terminal device corresponding to the first display screen.
示例性的,终端设备在确定启动当前应用的AR模式时,可以通过第一摄像装置获取用户当前所在环境的第一实景图像,并可以将所获取的第一实景图像与当前应用中所需呈现的内容进行融合,以将当前应用中所需呈现的内容融合至第一实景图像中,然后可以将融合后的第一实景图像在终端设备的折叠屏中进行呈现。Exemplarily, when the terminal device determines to start the AR mode of the current application, it can acquire the first real-world image of the user’s current environment through the first camera device, and can compare the acquired first real-world image with the current application. The content of the fusion is merged to merge the content that needs to be presented in the current application into the first real-scene image, and then the merged first real-scene image can be presented on the folding screen of the terminal device.
具体地,在导航场景中,在用户使用地图应用的普通模式(即2D导航模式)进行导航的过程中,当用户想要启动地图应用的AR模式(即实景导航模式)进行导航时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户当前所在环境的第一实景图像,然后可以根据所获取的第一实景图像、地图应用中所存储的预设地图以及2D导航模式所确定的预设导航路线,确定导航标识在第一实景图像中的指示位置和指示方向,其中,指示位置可以为第一实景图像中用户当前所在的实时位置,指示方向可以为指示用户行走的方向和/或方位等。然后可以在第一实景图像中的指示位置处以该指示方向显示导航标识,并可以将带有导航标识的第一实景图像呈现于终端设备的折叠屏中,从而通过实景导航更好地帮助用户到达目的位置。其中,导航标识在第一实景图像中的指示方向也可以根据用户的移动方向进行调整。Specifically, in the navigation scenario, when the user wants to start the AR mode of the map application (ie, the real-scene navigation mode) for navigation, the user can Fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the first real scene image of the user’s current environment through the first camera device, and then can use the acquired first real scene The image, the preset map stored in the map application, and the preset navigation route determined by the 2D navigation mode are used to determine the indicated position and direction of the navigation mark in the first real-scene image, where the indicated position may be in the first real-scene image The real-time location where the user is currently located, and the indication direction may be the direction and/or orientation in which the user is walking. Then, the navigation mark can be displayed in the indicated position in the first real scene image in the indicated direction, and the first real scene image with the navigation mark can be presented on the folding screen of the terminal device, so as to better help the user to reach through the real scene navigation Destination location. Wherein, the indication direction of the navigation mark in the first real scene image can also be adjusted according to the user's moving direction.
示例性的,终端设备也可以根据所获取的第一实景图像、地图应用中所存储的预设地图以及用户所要到达的目的位置来确定导航标识在第一实景图像中的指示位置和指示方向。具体地,终端设备可首先根据第一实景图像和预设地图确定出第一实景图像中用户当前所在的位置(即上述的指示位置),然后可以根据用户当前所在的位置和用户所要到达的目的位置规划用户的实景导航路线,并可以根据该实景导航路线在第一实景图像中进行导航标识的呈现。Exemplarily, the terminal device may also determine the indicated position and direction of the navigation marker in the first real-scene image according to the acquired first real-scene image, the preset map stored in the map application, and the destination location to be reached by the user. Specifically, the terminal device can first determine the user's current location in the first real-life image (that is, the above-mentioned indicated location) according to the first real-life image and the preset map, and then can determine the user's current location based on the user's current location and the destination that the user wants to reach. The location plans the user's real-scene navigation route, and the navigation identifier can be presented in the first real-scene image according to the real-scene navigation route.
上述示例的“根据所获取的第一实景图像、地图应用中所存储的预设地图以及2D导航模式所确定的预设导航路线,确定导航标识在第一实景图像中的指示位置和指示方向”,以及“根据所获取的第一实景图像、地图应用中所存储的预设地图以及用户所要到达的目的位置来确定导航标识在第一实景图像中的指示位置和指示方向”仅仅用于解释本申请实施例,不应构成对本申请实施例的限定,本申请实施例中当然可以通过现有的任一确定方式来确定实景导航模式中导航标识的指示位置和指示方向等。In the above example, "determine the indicated position and direction of the navigation mark in the first real image according to the acquired first real image, the preset map stored in the map application, and the preset navigation route determined by the 2D navigation mode" , And “determine the indication position and direction of the navigation mark in the first real scene image according to the acquired first real scene image, the preset map stored in the map application, and the destination position that the user wants to reach” is only used to explain this The application example should not constitute a limitation to the example of the application. Of course, the example of the application may be used to determine the indication position and direction of the navigation indicator in the live navigation mode through any existing determination method.
具体地,在游戏场景中,在用户使用游戏应用的普通模式进行游戏的过程中,当用户想要启动游戏应用的AR模式进行游戏时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户当前所在环境的第二实景图像,并可以获取游戏应用中游戏当前所对应的虚 拟图像(例如游戏画面的前景图像、游戏对象本身等),然后可以将虚拟图像与第二实景图像进行融合,以将虚拟图像融合至第二实景图像中(例如将游戏画面的前景图像融合至第二实景图像中,或者将游戏对象融合至第二实景图像中),并可以将融合有虚拟图像的第二实景图像呈现于终端设备的折叠屏中,使用户可感受在真实环境场景中进行游戏的体验。Specifically, in the game scene, when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to the first angle interval. Any angle within. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the second real-life image of the user’s current environment through the first camera device, and can obtain the current game location in the game application. The corresponding virtual image (such as the foreground image of the game screen, the game object itself, etc.), and then the virtual image and the second real scene image can be merged to merge the virtual image into the second real scene image (for example, the foreground image of the game screen) Fusion into the second real scene image, or fusion of the game object into the second real scene image), and the second real scene image fused with the virtual image can be presented on the folding screen of the terminal device, so that the user can feel the scene in the real environment The experience of playing in the game.
具体地,在翻译场景中,在用户使用翻译应用的普通模式进行翻译的过程中,当用户想要启动翻译应用的AR模式进行翻译时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取包含待翻译内容的第三实景图像,并可以对第三实景图像中的待翻译内容进行翻译,得到待翻译内容对应的目标翻译内容,然后可以将目标翻译内容融合至第三实景图像中(例如可以将目标翻译内容融合至第三实景图像中的待翻译内容所在的位置,以取代第三实景图像中的待翻译内容),并可以将融合有目标翻译内容的第三实景图像呈现于终端设备的折叠屏中。Specifically, in the translation scenario, when the user wants to start the AR mode of the translation application for translation, the user can fold the folding screen of the terminal device to the first angle interval when the user wants to start the AR mode of the translation application during the translation process in the normal mode of the translation application. Any angle within. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the third real scene image containing the content to be translated through the first camera device, and can compare the third real scene image in the third real scene image. The content to be translated is translated to obtain the target translation content corresponding to the content to be translated, and then the target translation content can be merged into the third real scene image (for example, the target translation content can be merged to the position of the content to be translated in the third real scene image , To replace the content to be translated in the third real scene image), and the third real scene image integrated with the target translation content can be presented on the folding screen of the terminal device.
具体地,在拍照场景中,在用户使用相机的普通模式进行拍照的过程中,当用户想要启动相机的AR模式进行拍照时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户所需拍摄的第四实景图像,并可以获取AR模式所对应的虚拟物体,然后可以将虚拟物体与第四实景图像进行融合呈现于终端设备的折叠屏中,使得用户在执行拍照操作后,可得到融合有虚拟物体的拍照图像,以满足用户的不同拍照需求,提高拍摄的趣味性,提升用户体验。其中,虚拟物体可以为用户自定义选择的物体,也可以为终端设备在启动AR模式中默认选择的物体,还可以为终端设备根据第三实景图像所对应的当前环境自动匹配的物体,本申请实施例对此不作具体限定。Specifically, in the photo scene, when the user wants to start the AR mode of the camera to take a photo during the user's normal mode of the camera, the user can fold the folding screen of the terminal device to the first angle interval. Any angle. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the fourth real scene image that the user needs to take through the first camera device, and can obtain the virtual image corresponding to the AR mode. Then, the virtual object and the fourth real-life image can be fused and presented on the folding screen of the terminal device, so that after the user performs the photographing operation, a photographed image fused with the virtual object can be obtained to meet the different photographing needs of the user and improve The fun of shooting enhances the user experience. Among them, the virtual object can be an object selected by the user, or an object selected by the terminal device by default when the AR mode is activated, or an object automatically matched by the terminal device according to the current environment corresponding to the third real-life image. This application The embodiment does not specifically limit this.
应理解,终端设备还可以包括前置的第二摄像装置,例如前置摄像头。在此,终端设备可以利用第二摄像装置进行手势识别,并可以根据所识别的手势与当前应用进行交互,以提高应用的交互性能,提升用户体验。示例的,为方便用户通过手势与当前应用进行交互,以提高手势交互的便捷性,第二摄像装置可以设置于终端设备中被折叠起来的部分,即第二摄像装置在终端设备中的位置可以与第一显示屏相对应,也就是说,第二摄像装置可以位于终端设备中与第一显示屏相对应的正面。例如,第二摄像装置可以设置于第一显示屏上方的位置,以提高用户进行手势交互的便捷性,提升用户体验。It should be understood that the terminal device may also include a front-facing second camera device, such as a front-facing camera. Here, the terminal device can use the second camera device to perform gesture recognition, and can interact with the current application according to the recognized gesture, so as to improve the interactive performance of the application and enhance the user experience. For example, in order to facilitate the user to interact with the current application through gestures to improve the convenience of gesture interaction, the second camera device can be provided in the folded part of the terminal device, that is, the position of the second camera device in the terminal device can be Corresponding to the first display screen, that is, the second camera device may be located on the front side corresponding to the first display screen in the terminal device. For example, the second camera device may be arranged at a position above the first display screen to improve the convenience of gesture interaction by the user and improve the user experience.
例如,在游戏场景中,在用户通过游戏应用的AR模式进行游戏的过程中,用户还可以执行相应的交互手势,终端设备则可以通过前置的第二摄像装置获取用户的交互手势,并可以根据所获取的交互手势来与游戏应用中的游戏对象进行交互等,以解锁更多游戏玩法,提升用户的游戏体验。For example, in a game scenario, when the user is playing the game through the AR mode of the game application, the user can also perform corresponding interactive gestures, and the terminal device can acquire the user's interactive gestures through the second camera on the front, and According to the acquired interactive gestures, interact with game objects in the game application, etc., to unlock more game play methods and enhance the user's game experience.
示例性的,终端设备在确定启动当前应用的VR模式或者3D模式时,可以首先获取当前应用中当前正在呈现的内容,并可以查找该当前正在呈现的内容所对应的VR内容或者3D内容,然后可以在折叠屏中对所查找到的VR内容或者3D内容进行呈现,以通过VR模式或者3D模式来对当前应用的内容进行呈现。Exemplarily, when determining to start the VR mode or 3D mode of the current application, the terminal device may first obtain the content currently being presented in the current application, and may search for the VR content or 3D content corresponding to the content currently being presented, and then The found VR content or 3D content can be presented on the folding screen to present the content of the current application in the VR mode or 3D mode.
例如,在物品展示场景中,在用户使用租售房应用的普通模式观看房屋平面图的过程中,当用户想要启动租售房应用的VR模式进行房屋查看时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先获取租售房应用中当前正在呈现的内容(即用户当前正在观看的房屋平面图),并可查 找该房屋平面图对应的VR图(即房屋实景图),然后可以在终端设备的折叠屏中呈现所查找到的房屋实景图,以得到图4a中所示的呈现效果图。For example, in the item display scene, when the user uses the normal mode of the rental and sales application to view the house plan, when the user wants to start the VR mode of the rental and sales application to view the house, the user can turn the folding screen of the terminal device Fold to any angle in the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the content currently being presented in the rental and sale application (that is, the floor plan of the house currently being viewed by the user), and can search The VR image corresponding to the floor plan of the house (that is, the real view of the house) can then be presented on the folding screen of the terminal device to display the real view of the house found to obtain the rendering effect image shown in FIG. 4a.
例如,在物品展示场景中,在用户使用物品浏览应用的普通模式观看物品平面图的过程中,当用户想要启动物品浏览应用的3D模式进行物品查看时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先获取物品浏览应用中当前正在呈现的物品内容(即物品平面图),并可以查找该物品平面图对应的3D图,然后可以在终端设备的折叠屏中呈现所查找到的3D图,以得到图4b中所示的呈现效果图。For example, in the item display scene, when the user wants to start the 3D mode of the item browsing application to view the item, the user can fold the folding screen of the terminal device to Any angle in the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the content of the item currently being presented in the item browsing application (ie, the item plan), and can search for the item corresponding to the item plan. The 3D image can then be displayed on the folding screen of the terminal device, so as to obtain the rendering effect image shown in FIG. 4b.
在一种可能的实现方式中,在当前应用为直接内置于终端设备中的内置应用时,该内置应用可以直接由终端设备进行操作与控制等,即终端设备可以根据所检测到的折叠操作直接对内置于终端设备中的内置应用进行相应的操作与控制等。也就是说,在用户使用内置于终端设备中的内置应用的过程中,当用户将终端设备的折叠屏折叠至第一角度区间内的任一角度时,终端设备则可以直接获取该内置应用的内容呈现模式,并可以确定该内置应用的内容呈现模式是否为普通模式。而在确定该内置应用的内容呈现模式为普通模式时,终端设备可以直接启动该内置应用的AR模式,或者可以直接启动该内置应用的VR模式,或者可以直接启动该内置应用的3D模式,以通过该内置应用的AR模式、VR模式或者3D模式来进行内容呈现。In a possible implementation, when the current application is a built-in application directly built into the terminal device, the built-in application can be directly operated and controlled by the terminal device, that is, the terminal device can directly perform the operation and control according to the detected folding operation. Perform corresponding operations and control on the built-in applications built in the terminal device. In other words, when the user uses the built-in application built in the terminal device, when the user folds the folding screen of the terminal device to any angle within the first angle interval, the terminal device can directly obtain the information of the built-in application. Content presentation mode, and can determine whether the content presentation mode of the built-in application is the normal mode. When it is determined that the content presentation mode of the built-in application is the normal mode, the terminal device can directly start the AR mode of the built-in application, or can directly start the VR mode of the built-in application, or can directly start the 3D mode of the built-in application to The content is presented through the AR mode, VR mode or 3D mode of the built-in application.
在另一种可能的实现方式中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用发送数据或者指令等,以及接收该第三方应用所返回的数据或者指令等。In another possible implementation manner, when the current application is a third-party application obtained by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device may send data or instructions to the third-party application and receive data or instructions returned by the third-party application through the configured application interface.
示例性的,在用户使用该第三方应用的过程中,当终端设备检测到用户将折叠屏折叠至第一角度区间内的任一角度时,终端设备可以通过所配置的应用接口向该第三方应用发送内容呈现模式的获取指令,并可以通过该应用接口接收该第三方应用根据该获取指令所返回的有关内容呈现模式的数据。终端设备则可以根据所接收到的数据判断该第三方应用的内容呈现模式是否为普通模式。在确定该第三方应用的内容呈现模式为普通模式时,终端设备则可以通过该应用接口向该第三方应用发送启动该第三方应用的AR模式或者启动该第三方应用的VR模式的或者启动该第三方应用的3D模式的启动指令。该第三方应用接收到该应用接口传递的启动指令后,则可以根据该启动指令启动该第三方应用的AR模式、VR模式或者3D模式,以通过该第三方应用的AR模式、VR模式或者3D来进行内容呈现。Exemplarily, when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can communicate to the third-party application through the configured application interface. The application sends a content presentation mode acquisition instruction, and can receive data about the content presentation mode returned by the third-party application according to the acquisition instruction through the application interface. The terminal device can determine whether the content presentation mode of the third-party application is the normal mode according to the received data. When it is determined that the content presentation mode of the third-party application is the normal mode, the terminal device can send to the third-party application through the application interface the AR mode that starts the third-party application or the VR mode of the third-party application or the third-party application is started. Start instruction of the 3D mode of the third-party application. After the third-party application receives the startup instruction transmitted by the application interface, it can start the AR mode, VR mode, or 3D mode of the third-party application according to the startup instruction to pass the AR mode, VR mode, or 3D mode of the third-party application For content presentation.
在一种可能的实现方式中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用发送折叠操作所对应的折叠角度等信息,其中,折叠操作是指触发该第三方应用启动AR模式、VR模式或者3D模式的操作,折叠操作所对应的折叠角度是指折叠后的第一显示屏与第二显示屏之间的夹角。In a possible implementation manner, when the current application is a third-party application acquired by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device may send information such as the folding angle corresponding to the folding operation to the third-party application through the configured application interface, where the folding operation refers to an operation that triggers the third-party application to start AR mode, VR mode, or 3D mode. , The folding angle corresponding to the folding operation refers to the angle between the folded first display screen and the second display screen.
示例性的,在用户使用该第三方应用的过程中,当终端设备检测到用户将折叠屏折叠至第一角度区间内的任一角度时,终端设备则可以通过所配置的应用接口向该第三方应用发送折叠操作所对应的折叠角度等信息,即可以通过所配置的应用接口将第一显示屏与第二显示屏之间的夹角发送至该第三方应用。该第三方应用接收到该应用接口传递的折叠角度等信息后,则可以首先获取该第三方应用的内容呈现模式,并可以判断该内容呈现模式是否为普通模式。在确定该内容呈 现模式为普通模式时,该第三方应用则可以启动该第三方应用的AR模式或者启动该第三方应用的VR模式或者启动该第三方应用的3D模式,以通过该第三方应用的AR模式、VR模式或者3D模式来进行内容呈现。Exemplarily, when the user uses the third-party application, when the terminal device detects that the user folds the folding screen to any angle within the first angle interval, the terminal device can send a message to the third-party application through the configured application interface. The three-party application sends information such as the folding angle corresponding to the folding operation, that is, the included angle between the first display screen and the second display screen can be sent to the third-party application through the configured application interface. After the third-party application receives information such as the folding angle transmitted by the application interface, it can first obtain the content presentation mode of the third-party application, and can determine whether the content presentation mode is a normal mode. When it is determined that the content presentation mode is the normal mode, the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
在另一种可能的实现方式中,在当前应用为终端设备从外部获取并安装于终端设备中的第三方应用时,终端设备中可以配置有与该第三方应用对接的应用接口。在此,终端设备可以通过所配置的应用接口向该第三方应用实时发送折叠屏当前所对应的第一角度等信息,其中,折叠屏当前所对应的第一角度是指折叠屏在当前形态中的第一显示屏和第二显示屏之间的夹角,折叠屏当前所对应的第一角度可以为能触发该第三方应用启动AR模式、VR模式或3D模式的折叠操作所对应的角度,也可以为不能触发该第三方应用启动AR模式、VR模式或3D模式的折叠操作所对应的角度。In another possible implementation manner, when the current application is a third-party application obtained by the terminal device from the outside and installed in the terminal device, the terminal device may be configured with an application interface for docking with the third-party application. Here, the terminal device can send real-time information such as the first angle corresponding to the folding screen to the third-party application through the configured application interface, where the first angle corresponding to the folding screen currently refers to the folding screen in the current form The included angle between the first display screen and the second display screen, the first angle corresponding to the folding screen may be the angle corresponding to the folding operation that can trigger the third-party application to start AR mode, VR mode, or 3D mode, It may also be an angle corresponding to the folding operation that cannot trigger the third-party application to start AR mode, VR mode, or 3D mode.
示例性的,在用户使用该第三方应用的过程中,终端设备可以实时检测折叠屏当前所对应的第一角度等信息,并可以通过所配置的应用接口将所检测到的第一角度等信息实时发送至该第三方应用。该第三方应用接收到该应用接口传递的第一角度后,可以首先判断该第一角度是否位于第一角度区间内,若确定该第一角度位于第一角度区间内,该第三方应用则可以获取该第三方应用的内容呈现模式。然后该第三方应用可以继续判断该内容呈现模式是否为普通模式。在确定该内容呈现模式为普通模式时,该第三方应用则可以启动该第三方应用的AR模式或者启动该第三方应用的VR模式或者启动该第三方应用的3D模式,以通过该第三方应用的AR模式、VR模式或者3D模式来进行内容呈现。Exemplarily, when the user uses the third-party application, the terminal device can detect the current first angle and other information corresponding to the folding screen in real time, and can use the configured application interface to display the detected first angle and other information Send to the third-party application in real time. After the third-party application receives the first angle transmitted by the application interface, it can first determine whether the first angle is within the first angle interval. If it is determined that the first angle is within the first angle interval, the third-party application can Obtain the content presentation mode of the third-party application. Then the third-party application can continue to determine whether the content presentation mode is the normal mode. When it is determined that the content presentation mode is the normal mode, the third-party application can start the AR mode of the third-party application or start the VR mode of the third-party application or start the 3D mode of the third-party application to pass the third-party application AR mode, VR mode or 3D mode for content presentation.
由前述描述可知,折叠屏可以包括被折叠起来的第一显示屏和未被折叠的第二显示屏。在此,为提高当前应用中内容呈现的多样性,以方便用户更好的理解当前应用中所呈现的内容,终端设备可以在第一显示屏中通过目标模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容。具体地,终端设备可以在第一显示屏中通过AR模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容;或者终端设备可以在第一显示屏中通过VR模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容;或者终端设备可以在第一显示屏中通过3D模式呈现当前应用的第一内容,并可以在第二显示屏中通过普通模式呈现当前应用的第二内容。As can be seen from the foregoing description, the folding screen may include a folded first display screen and an unfolded second display screen. Here, in order to improve the diversity of content presentation in the current application, so as to facilitate users to better understand the content presented in the current application, the terminal device may present the first content of the current application in the target mode on the first display screen, and The second content of the current application can be presented in the normal mode on the second display screen. Specifically, the terminal device can present the first content of the current application on the first display screen in AR mode, and can present the second content of the current application on the second display screen in the normal mode; or the terminal device can display on the first display screen. The first content of the current application can be presented in the VR mode on the screen, and the second content of the current application can be presented in the normal mode on the second display screen; or the terminal device can be presented in the 3D mode on the first display screen. A content, and the second content of the current application can be presented on the second display screen in a normal mode.
例如,如图5所示,在导航场景中,终端设备可以在第一显示屏中通过AR模式(即实景导航模式)呈现实景导航内容,并可以在第二显示屏中通过普通模式呈现2D导航内容。即在用户使用地图应用的普通模式进行导航的过程中,当用户想要启动地图应用中的AR模式进行导航时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以通过第一摄像装置获取用户当前所在环境的第一实景图像,并可以将基于第一实景图像的实景导航内容呈现于终端设备的第一显示屏中。同时,终端设备还可以将原2D导航内容以普通模式呈现于终端设备的第二显示屏中。其中,第一显示屏中呈现的实景导航内容和第二显示屏中呈现的2D导航内容均可以根据用户的移动进行实时调整,例如,可以根据用户的方向变动进行实景导航内容和2D导航内容中导航标识所对应的指示方向的调整等。For example, as shown in FIG. 5, in a navigation scene, the terminal device can present real-world navigation content in the AR mode (ie, real-scene navigation mode) on the first display screen, and can present 2D navigation in the normal mode on the second display screen. content. That is, when the user uses the normal mode of the map application for navigation, when the user wants to start the AR mode in the map application for navigation, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can acquire the first real scene image of the user’s current environment through the first camera device, and can use the real scene image based on the first real scene image. The navigation content is presented on the first display screen of the terminal device. At the same time, the terminal device can also present the original 2D navigation content in a normal mode on the second display screen of the terminal device. Among them, the real-time navigation content presented on the first display screen and the 2D navigation content presented on the second display screen can be adjusted in real time according to the user's movement. The adjustment of the indication direction corresponding to the navigation mark, etc.
例如,如图6所示,在游戏场景中,终端设备可以在第一显示屏中通过AR模式呈现融合真实场景的游戏画面,并可以在第二显示屏中通过普通模式呈现进行游戏操作和/或控制的虚拟功能按键和/或游戏道具等内容。即在用户使用游戏应用的普通模式进行游戏的过程中,当用户想要启 动游戏应用的AR模式进行游戏时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以通过第一摄像装置获取用户当前所在环境的第二实景图像,以及获取游戏应用中游戏当前所对应的虚拟图像(即为不包括虚拟功能按键和游戏道具的游戏前景画面或者游戏对象),并可以将融合有游戏前景画面或者游戏对象的第二实景图像呈现于终端设备的第一显示屏中。同时,终端设备还可以将进行游戏操作和/或控制的虚拟功能按键和/或游戏道具等内容以普通模式呈现于终端设备的第二显示屏中。For example, as shown in FIG. 6, in a game scene, the terminal device can present a game screen integrated with the real scene in the AR mode on the first display screen, and can perform game operations and/or display in the normal mode on the second display screen. Or control virtual function buttons and/or game props. That is, when the user uses the normal mode of the game application to play the game, when the user wants to start the AR mode of the game application to play the game, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can obtain the second real scene image of the user’s current environment through the first camera device, and obtain the current game corresponding to the game in the game application. A virtual image (that is, a game foreground image or game object that does not include virtual function buttons and game props), and a second real-scene image integrated with the game foreground image or game object can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present content such as virtual function keys and/or game props for game operation and/or control on the second display screen of the terminal device in a normal mode.
例如,在翻译场景中,终端设备可以在第一显示屏中通过AR模式呈现融合有目标翻译内容的第三实景图像,并可以在第二显示屏中通过普通模式呈现待翻译内容。即在用户使用翻译应用的普通模式进行翻译的过程中,当用户想要启动翻译应用的AR模式进行翻译时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取包含待翻译内容的第三实景图像,并可以对第三实景图像中的待翻译内容进行翻译,然后可以将翻译得到的目标翻译内容融合至第三实景图像中,并可以将融合有目标翻译内容的第三实景图像呈现于终端设备的第一显示屏中。同时,终端设备还可以将待翻译内容以普通模式呈现于终端设备的第三显示屏中。For example, in a translation scenario, the terminal device may present the third real-world image fused with the target translation content in the AR mode on the first display screen, and may present the content to be translated in the normal mode on the second display screen. That is, when the user performs translation in the normal mode of the translation application, when the user wants to start the AR mode of the translation application for translation, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first acquire the third real scene image containing the content to be translated through the first camera device, and can compare the third real scene image in the third real scene image. The content to be translated is translated, and then the target translation content obtained by the translation can be merged into the third real scene image, and the third real scene image fused with the target translation content can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present the content to be translated on the third display screen of the terminal device in a normal mode.
例如,在拍照场景中,终端设备可以在第一显示屏中通过AR模式呈现融合有虚拟物体的第四实景图像,并可以在第二显示屏中通过普通模式呈现拍照过程中的预览图像(即不含有虚拟物体的图像)。即在用户使用相机的普通模式进行拍照的过程中,当用户想要启动相机的AR模式进行拍照时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先通过第一摄像装置获取用户所需拍摄的第四实景图像,并可以获取AR模式所对应的虚拟物体,然后可以将虚拟物体与第四实景图像进行融合呈现于终端设备的第一显示屏中。同时,终端设备还可以将拍照过程中所获取的不含有虚拟物体的预览图像呈现于终端设备的第二显示屏中。For example, in a photographing scene, the terminal device may present a fourth real-life image fused with virtual objects in the AR mode on the first display screen, and may present the preview image during the photographing process in the normal mode on the second display screen (i.e. Does not contain images of virtual objects). That is, when the user uses the normal mode of the camera to take pictures, when the user wants to activate the AR mode of the camera to take pictures, the user can fold the folding screen of the terminal device to any angle within the first angle interval. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the fourth real scene image that the user needs to take through the first camera device, and can obtain the virtual image corresponding to the AR mode. Then, the virtual object and the fourth real-life image can be merged and presented on the first display screen of the terminal device. At the same time, the terminal device can also present the preview image without virtual objects obtained during the photographing process on the second display screen of the terminal device.
例如,如图7所示,在房屋租售场景中,终端设备可以在第一显示屏中通过VR模式呈现房屋的VR图(即房屋实景图),并可以在第二显示屏中通过普通模式呈现房屋平面图。即在用户使用租售房应用的普通模式观看房屋平面图的过程中,当用户想要启动租售房应用的VR模式进行房屋查看时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先获取租售房应用中当前正在呈现的房屋平面图,并可以查找该房屋平面图所对应的房屋实景图,然后可以在终端设备的第一显示屏中呈现该房屋实景图。同时,终端设备还可以将原房屋平面图以普通模式呈现于终端设备的第二显示屏中。在此,在房屋实景图的呈现过程中,用户可通过滑动第一显示屏来浏览房屋实景图,此时第二显示屏中的房屋平面图也可以随着用户的浏览视角进行旋转,使得用户更加沉浸的使用VR看房功能,了解房屋特性。For example, as shown in Figure 7, in a house rental and sale scenario, the terminal device can present a VR picture of the house (ie a real-life picture of the house) in the VR mode on the first display screen, and can use the normal mode on the second display screen. Present the floor plan of the house. That is, when the user uses the normal mode of the rental and sales application to view the house plan, when the user wants to start the VR mode of the rental and sales application to view the house, the user can fold the folding screen of the terminal device to the first angle interval Any angle. When the terminal device detects that the user folds the folding screen to a certain angle within the first angle interval, it can first obtain the house plan currently being presented in the rental and sale application, and can find the real house picture corresponding to the house plan , And then the real view of the house can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present the original house plan in a normal mode on the second display screen of the terminal device. Here, in the process of presenting the real view of the house, the user can browse the real view of the house by sliding the first display screen. At this time, the floor plan of the house in the second display screen can also be rotated with the user's viewing angle, making the user more Immersively use the VR viewing function to understand the characteristics of the house.
例如,如图8所示,在物品展示场景中,终端设备可以在第一显示屏中通过3D模式呈现物品的3D图,并可以在第二显示屏中通过普通模式呈现物品平面图。即在用户使用物品浏览应用的普通模式观看物品平面图的过程中,当用户想要启动物品浏览应用的3D模式进行3D物品查看时,用户可以将终端设备的折叠屏折叠至第一角度区间内的任一角度。终端设备在检测到用户将折叠屏折叠至第一角度区间内的某一角度时,则可以首先获取物品浏览应用中当前正在呈现的物品平面图,并可以查找该物品平面图所对应的3D图,然后可以在终端设备的第一显示屏中呈现 该3D图。同时,终端设备还可以将原物品平面图以普通模式呈现于终端设备的第二显示屏中。For example, as shown in FIG. 8, in an item display scene, the terminal device may present a 3D image of the item in a 3D mode on the first display screen, and may present a plan view of the item in a normal mode on the second display screen. That is to say, when the user wants to start the 3D mode of the item browsing application to view the 3D items in the process of viewing the item plan in the normal mode of the item browsing application, the user can fold the folding screen of the terminal device to the first angle interval. Any angle. When the terminal device detects that the user has folded the folding screen to a certain angle within the first angle interval, it can first obtain the item plan view currently being presented in the item browsing application, and can search for the 3D image corresponding to the item plan view, and then The 3D image can be presented on the first display screen of the terminal device. At the same time, the terminal device can also present the original item plan view on the second display screen of the terminal device in a normal mode.
需要说明的是,在当前应用通过AR模式、VR模式或3D模式进行内容呈现的过程中,终端设备还可以通过接收用户的关闭操作来关闭当前应用的AR模式、VR模式或3D模式,以返回至当前应用的普通模式。示例的,用户可以通过将折叠屏恢复至原来的形态来关闭当前应用的AR模式、VR模式或3D模式。例如,用户可以通过将折叠屏恢复至大屏的展开形态来关闭当前应用的AR模式、VR模式或3D模式。即在当前应用的AR模式、VR模式或3D模式的启动过程中,终端设备可以实时获取折叠屏所对应的第二折叠角度,并在确定该第二折叠角度位于预设的第二角度区间内时,则可以关闭当前应用的AR模式、VR模式或3D模式,以通过当前应用的普通模式来对当前应用的内容进行呈现。It should be noted that in the process of presenting content in the current application in AR mode, VR mode or 3D mode, the terminal device can also close the AR mode, VR mode or 3D mode of the current application by receiving the user's closing operation to return To the normal mode of the current application. For example, the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to its original form. For example, the user can close the AR mode, VR mode, or 3D mode of the current application by restoring the folding screen to the expanded form of the large screen. That is, during the startup process of the AR mode, VR mode, or 3D mode of the current application, the terminal device can obtain the second folding angle corresponding to the folding screen in real time, and determine that the second folding angle is within the preset second angle interval. When the time, the AR mode, VR mode, or 3D mode of the current application can be turned off to present the content of the current application through the normal mode of the current application.
例如,在导航场景中,终端设备在确定用户将折叠屏恢复至大屏的展开形态时,则可关闭地图应用的AR模式,并可以通过普通模式对地图应用进行2D导航内容的呈现。例如,在游戏场景中,终端设备在确定用户将折叠屏恢复至大屏的展开形态时,则可关闭游戏应用的AR模式,并可以通过普通模式来对游戏画面、虚拟功能按键以及游戏道具等进行呈现。例如,在房屋租售场景中,终端设备在确定用户将折叠屏恢复至大屏的展开形态时,则可关闭房屋租售应用的VR模式,并可以通过普通模式来对房屋平面图进行呈现,等等。For example, in a navigation scenario, when the terminal device determines that the user restores the folding screen to the expanded form of the large screen, the AR mode of the map application can be turned off, and the 2D navigation content of the map application can be presented in the normal mode. For example, in a game scenario, when the terminal device determines that the user restores the folding screen to the expanded form of the large screen, the AR mode of the game application can be closed, and the game screen, virtual function buttons, and game props can be adjusted through the normal mode. To present. For example, in the house rental and sale scenario, when the terminal device determines that the user restores the folding screen to the expanded form of the large screen, the VR mode of the house rental and sale application can be closed, and the house floor plan can be presented in the normal mode, etc. Wait.
其中,第二角度区间可以为用户根据实际情况预先设置的角度区间,也可以为终端设备中系统默认设置的角度区间。示例的,第二角度区间可以为折叠屏为大屏的展开形态所对应的角度区间。The second angle interval may be an angle interval preset by the user according to actual conditions, or may be an angle interval set by default by the system in the terminal device. For example, the second angle interval may be an angle interval corresponding to the expanded form of the folding screen as a large screen.
示例性的,当前应用的应用界面中也可以设置有关闭AR模式或者关闭VR模式或者关闭3D模式的虚拟按键,用户也可以通过点击或者触摸该虚拟按键来关闭当前应用的AR模式或者关闭当前应用的VR模式或者关闭当前应用的3D模式。即在AR模式、VR模式或者3D模式的启动过程中,终端设备可以实时检测该虚拟按键的触发状态,并在确定该虚拟按键被触发时,则可以关闭当前应用的AR模式、VR模式或者3D模式。Exemplarily, the application interface of the current application may also be provided with a virtual button that closes the AR mode or closes the VR mode or closes the 3D mode. The user can also click or touch the virtual button to close the AR mode of the current application or close the current application VR mode or close the currently applied 3D mode. That is, during the startup process of AR mode, VR mode or 3D mode, the terminal device can detect the trigger state of the virtual button in real time, and when it is determined that the virtual button is triggered, it can turn off the currently applied AR mode, VR mode or 3D mode. model.
本申请实施例中,在当前应用的使用过程中,当用户想要启动当前应用的目标模式(即AR模式、VR模式和3D模式中的至少一种模式)来进行内容呈现时,用户可以对终端设备的折叠屏进行折叠。此时,终端设备即可以获取当前应用的内容呈现模式,并可以基于当前应用的内容呈现模式和用户对折叠屏所执行的折叠操作快速启动当前应用的目标模式来进行内容呈现,简化AR模式、VR模式或3D模式的启动操作,提高AR模式、VR模式或3D模式的启动速度,从而提高应用通过AR模式、VR模式或3D模式进行内容呈现的呈现速度,提升用户体验。In the embodiments of the present application, during the use of the current application, when the user wants to start the target mode of the current application (that is, at least one of AR mode, VR mode, and 3D mode) for content presentation, the user can The folding screen of the terminal device is folded. At this time, the terminal device can obtain the content presentation mode of the current application, and can quickly start the target mode of the current application based on the content presentation mode of the current application and the folding operation performed by the user on the folding screen to perform content presentation, simplifying the AR mode, The startup operation of VR mode or 3D mode improves the startup speed of AR mode, VR mode or 3D mode, thereby increasing the presentation speed of content presentation by applications in AR mode, VR mode or 3D mode, and improving user experience.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
对应于上文实施例所述的内容呈现方法,图9示出了本申请实施例提供的内容呈现装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the content presentation method described in the above embodiment, FIG. 9 shows a structural block diagram of a content presentation device provided in an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
参照图9,该内容呈现装置应用于具有折叠屏的终端设备,该装置可以包括:Referring to FIG. 9, the content presentation apparatus is applied to a terminal device with a folding screen, and the apparatus may include:
模式获取模块901,用于当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用;The mode obtaining module 901 is configured to obtain the content presentation mode of the current application when a folding operation on the folding screen is detected, the current application being an application currently being used in the terminal device;
内容呈现模块902,用于若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。The content presentation module 902 is configured to start the target mode of the current application if the content presentation mode is the normal mode, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode , At least one of virtual reality VR mode and three-dimensional 3D mode.
在一种可能的实现方式中,所述折叠屏可以包括第一显示屏和第二显示屏;In a possible implementation, the folding screen may include a first display screen and a second display screen;
所述内容呈现模块902,还用于在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,并在所述第二显示屏中通过所述普通模式呈现所述当前应用的第二内容。The content presentation module 902 is further configured to present the first content of the current application in the target mode on the first display screen, and present the first content of the current application in the normal mode on the second display screen. The second content of the current application.
应理解,所述终端设备可以包括后置的第一摄像装置,所述第一显示屏为所述折叠屏中被折起的区域,所述第二显示屏为所述折叠屏中除所述第一显示屏以外的区域,所述第一摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处。It should be understood that the terminal device may include a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen is the folding screen except for the In an area other than the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
示例性的,所述内容呈现模块902,可以包括:Exemplarily, the content presentation module 902 may include:
第一实景图像获取单元,用于通过所述第一摄像装置获取当前环境对应的第一实景图像,并根据所述第一实景图像、预设地图以及预设导航路线确定导航标识在所述第一实景图像中的指示位置和指示方向;The first real scene image acquisition unit is configured to acquire a first real scene image corresponding to the current environment through the first camera device, and determine that a navigation mark is in the first real scene image, a preset map, and a preset navigation route. 1. The indicating position and direction in the real image;
第一内容呈现单元,用于在所述指示位置以所述指示方向显示所述导航标识,并在所述第一显示屏中呈现带有所述导航标识的所述第一实景图像。The first content presentation unit is configured to display the navigation mark in the instruction direction at the instruction location, and present the first real scene image with the navigation mark on the first display screen.
示例性的,所述内容呈现模块902,还可以包括:Exemplarily, the content presentation module 902 may further include:
第二实景图像获取单元,用于通过所述第一摄像装置获取当前环境对应的第二实景图像,并获取所述当前应用的虚拟图像;A second real-scene image acquisition unit, configured to acquire a second real-scene image corresponding to the current environment through the first camera device, and acquire a virtual image of the current application;
第二内容呈现单元,用于将所述虚拟图像融合至所述第二实景图像,并在所述第一显示屏中呈现融合有所述虚拟图像的所述第二实景图像。The second content presentation unit is configured to fuse the virtual image to the second real scene image, and present the second real scene image fused with the virtual image on the first display screen.
在一种可能的实现方式中,所述终端设备还可以包括前置的第二摄像装置,所述第二摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处;In a possible implementation manner, the terminal device may further include a front-mounted second camera device, and the second camera device is provided at a position corresponding to the first display screen in the terminal device;
所述装置,还可以包括:The device may also include:
手势交互模块,用于通过所述第二摄像装置获取用户的交互手势,并根据所述交互手势与所述当前应用进行交互。The gesture interaction module is used to obtain the user's interaction gesture through the second camera device, and interact with the current application according to the interaction gesture.
应理解,所述模式获取模块901,可以包括:It should be understood that the mode acquisition module 901 may include:
第一折叠角度获取单元,用于当检测到对所述折叠屏的折叠操作时,获取所述折叠屏对应的第一折叠角度;The first folding angle acquiring unit is configured to acquire the first folding angle corresponding to the folding screen when a folding operation on the folding screen is detected;
模式获取单元,用于若所述第一折叠角度位于预设的第一角度区间内,则获取所述当前应用的内容呈现模式。The mode obtaining unit is configured to obtain the content presentation mode of the current application if the first folding angle is within a preset first angle interval.
示例性的,所述装置,还可以包括:Exemplarily, the device may further include:
第二折叠角度获取模块,用于获取所述折叠屏对应的第二折叠角度;The second folding angle obtaining module is configured to obtain the second folding angle corresponding to the folding screen;
目标模式关闭模块,用于若所述第二折叠角度位于预设的第二角度区间内,则关闭所述目标模式,并通过所述普通模式呈现所述当前应用的内容。The target mode closing module is configured to close the target mode if the second folding angle is within a preset second angle interval, and present the content of the current application in the normal mode.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat it here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互 区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of this application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
图10为本申请一实施例提供的终端设备的结构示意图。如图10所示,该实施例的终端设备10包括:至少一个处理器1000(图10中仅示出一个)、存储器1001以及存储在所述存储器1001中并可在所述至少一个处理器1000上运行的计算机程序1002,所述处理器1000执行所述计算机程序1002时实现上述任意各个内容呈现方法实施例中的步骤。FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of this application. As shown in FIG. 10, the terminal device 10 of this embodiment includes: at least one processor 1000 (only one is shown in FIG. 10), a memory 1001, and stored in the memory 1001 and can be stored in the at least one processor 1000. When the processor 1000 executes the computer program 1002, the steps in any of the foregoing content presentation method embodiments are implemented.
所述终端设备10可以包括,但不仅限于,处理器1000、存储器1001。本领域技术人员可以理解,图10仅仅是终端设备10的举例,并不构成对终端设备10的限定,终端设备10可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The terminal device 10 may include, but is not limited to, a processor 1000 and a memory 1001. Those skilled in the art can understand that FIG. 10 is only an example of the terminal device 10, and does not constitute a limitation on the terminal device 10. The terminal device 10 may include more or less components than those shown in the figure, or a combination of certain components, or Different components, for example, may also include input and output devices, network access devices, and so on.
所述处理器1000可以是中央处理单元(Central Processing Unit,CPU),该处理器1000还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1000 may be a central processing unit (Central Processing Unit, CPU), and the processor 1000 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器1001在一些实施例中可以是所述终端设备10的内部存储单元,例如终端设备10的硬盘或内存。所述存储器1001在另一些实施例中也可以是所述终端设备10的外部存储设备,例如所述终端设备10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器1001还可以既包括所述终端设备10的内部存储单元也包括外部存储设备。所述存储器1001用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器1001还可以用于暂时地存储已经输出或者将要输出的数据。The memory 1001 may be an internal storage unit of the terminal device 10 in some embodiments, such as a hard disk or a memory of the terminal device 10. In other embodiments, the memory 1001 may also be an external storage device of the terminal device 10, for example, a plug-in hard disk equipped on the terminal device 10, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, Flash Card, etc. Further, the memory 1001 may also include both an internal storage unit of the terminal device 10 and an external storage device. The memory 1001 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 1001 can also be used to temporarily store data that has been output or will be output.
如上述,本申请实施例涉及的终端设备可以是手机、平板电脑、可穿戴设备等。以所述终端设备为手机为例。图11示出的是与本申请实施例提供的手机的部分结构的框图。参考图11,手机可以包括:射频(Radio Frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。本领域技术人员可以理解,图11中示出的手机结构并不构成对手机的限定,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As described above, the terminal device involved in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, and the like. Take the terminal device as a mobile phone as an example. FIG. 11 shows a block diagram of a part of the structure of a mobile phone provided in an embodiment of the present application. 11, the mobile phone may include: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, a processor 1180, and power supply 1190 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 11 does not constitute a limitation on the mobile phone, and the mobile phone may include more or less components than those shown in the figure, or a combination of some components, or different component arrangements.
下面结合图11对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to Figure 11:
RF电路1110可以用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将设计上行的数据发送给基站。通常,RF电路1110可以包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1110 can be used for receiving and sending signals during information transmission and communication or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1180; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1110 may include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1110 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), Email, Short Messaging Service (SMS), etc.
存储器1120可以用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软 件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可以主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可以存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1120 may be used to store software programs and modules. The processor 1180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 1120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元1130可以用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可以包括触控面板1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可以收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于,物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 may be used to receive inputted digital or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1131 or near the touch panel 1131. Operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1180, and can receive and execute the commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, etc.
显示单元1140可以用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可以包括显示面板1141,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。进一步的,触控面板1131可以覆盖显示面板1141,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141上提供相应的视觉输出。虽然在图11中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输出功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Optionally, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1131 can cover the display panel 1141. When the touch panel 1131 detects a touch operation on or near it, it transmits it to the processor 1180 to determine the type of the touch event, and then the processor 1180 responds to the touch event. The type provides corresponding visual output on the display panel 1141. Although in FIG. 11, the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and output functions of the mobile phone, but in some embodiments, the touch panel 1131 and the display panel 1141 can be integrated. Realize the input and output functions of the mobile phone.
在一些实施例中,显示单元1140可以包括1个或N个显示屏,其中,N为大于1的正整数。In some embodiments, the display unit 1140 may include 1 or N display screens, where N is a positive integer greater than 1.
在一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述显示屏可以被弯折。这里,上述显示屏可以被弯折是指显示屏可以在任意部位沿任意轴线被弯折到任意角度,并可以在该角度保持,例如,显示屏可以从中部左右对折,也可以从中部上下对折。本申请实施例中,可以将被弯折的显示屏称为折叠屏。其中,该折叠屏可以是一块屏幕,也可以是多块屏幕拼凑在一起组合成的显示屏,在此不做限定。显示屏还可以是一种柔性屏,具有柔韧性强和可弯曲的特点,可以给用户提供基于可弯折特性的新交互方式,可以满足用户对于折叠屏手机的更多需求。对于配置有折叠屏的手机而言,手机上的折叠屏可以随时在折叠形态下的小屏和展开形态下的大屏之间切换。In some embodiments, when the display panel uses OLED, AMOLED, FLED and other materials, the above-mentioned display screen may be bent. Here, the above-mentioned display screen can be bent means that the display screen can be bent at any position along any axis to any angle, and can be maintained at that angle. For example, the display screen can be folded in half from the middle or up and down from the middle. . In the embodiments of the present application, the bent display screen may be referred to as a folding screen. Wherein, the folding screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here. The display screen can also be a flexible screen, which has the characteristics of strong flexibility and bendability, and can provide users with a new interactive mode based on bendable characteristics, which can meet more users' needs for folding screen mobile phones. For a mobile phone equipped with a folding screen, the folding screen on the mobile phone can be switched between the small screen in the folded form and the large screen in the expanded form at any time.
示例性的,折叠屏可以至少包括两种物理形态:展开形态和折叠形态。展开形态,即指可以从中部左右对折的该折叠屏的中间弯折部位的左右两端(如果折叠屏是上下折叠,则是折叠屏的中间弯折部位的上下两端)所成的夹角在180度和第一角度之间,其中,第一角度大于0度且小于180度,例如第一角度可以是90度)。折叠形态,即指该折叠屏的中间弯折部位的左右两端(如果折叠屏是上下折叠,则是折叠屏的中间弯折部位的上下两端)所成的夹角在0度和第一角度之间。本申请实施例中,进入展开形态后的该折叠屏的显示区域可以被划分为第一显示屏和第二显示屏。该 折叠屏在展开形态下可以朝着第一显示屏和第二显示屏相面对的方向折叠,也可以朝着第一显示屏和第二显示屏相背对的方向折叠。在一些实施例中,折叠屏中部弯折部位的左右两端(如果折叠屏是上下折叠,则是折叠屏的中间弯折部位的上下两端)所成的夹角可以在0度到+180度之间。例如,折叠屏可以往朝着第一显示屏和第二显示屏相面对的方向弯折成夹角为30度的折叠形态,也可以往朝着第一显示屏和第二显示屏相背对的方向弯折成夹角30度的折叠形态。Exemplarily, the folding screen may include at least two physical forms: an expanded form and a folded form. The unfolded form refers to the angle formed by the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) that can be folded in half from the left and right sides Between 180 degrees and the first angle, where the first angle is greater than 0 degrees and less than 180 degrees, for example, the first angle may be 90 degrees). Folding form refers to the angle between the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) is between 0 degrees and the first Between angles. In the embodiment of the present application, the display area of the folding screen after entering the expanded form may be divided into a first display screen and a second display screen. In the unfolded configuration, the folding screen can be folded toward the direction facing the first display screen and the second display screen, and can also be folded toward the direction opposite to the first display screen and the second display screen. In some embodiments, the left and right ends of the middle bending part of the folding screen (if the folding screen is folded up and down, the upper and lower ends of the middle bending part of the folding screen) can form an angle between 0 degrees and +180. Between degrees. For example, the folding screen can be bent toward the direction facing the first display screen and the second display screen into a folded configuration with an included angle of 30 degrees, or it can face the first display screen and the second display screen opposite to each other. Bend in the opposite direction into a folded configuration with an included angle of 30 degrees.
在一些实施例中,该手机可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个,判断该折叠屏处于折叠形态还是处于展开形态。该手机还可以通过重力传感器、加速度触感器和陀螺仪,检测该折叠屏的弯折的夹角,然后,该手机可以根据该弯折的夹角,判断出该折叠屏处于折叠形态还是处于展开形态。该手机还可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个,判断折叠形态下,该折叠屏的朝向,进而确定出显示系统所输出界面内容的显示区域。例如,当该折叠屏的第一显示屏相对于地面朝向上方时,该手机可以将显示系统输出的界面内容,显示在第一显示屏上。当该折叠屏的第二显示屏相对于地面朝向上方时,该手机可以将显示系统输出的界面内容,显示在第二显示屏上。In some embodiments, the mobile phone can use one or more of a gravity sensor, an acceleration sensor, and a gyroscope to determine whether the folding screen is in a folded form or an unfolded form. The mobile phone can also detect the bending angle of the folding screen through a gravity sensor, an acceleration touch sensor and a gyroscope. Then, the mobile phone can determine whether the folding screen is in a folded state or unfolded according to the bending angle. form. The mobile phone can also use one or more of a gravity sensor, an acceleration sensor and a gyroscope to determine the orientation of the folding screen in the folded form, and then determine the display area of the interface content output by the display system. For example, when the first display screen of the folding screen faces upward with respect to the ground, the mobile phone can display the interface content output by the display system on the first display screen. When the second display screen of the folding screen faces upward with respect to the ground, the mobile phone can display the interface content output by the display system on the second display screen.
在一些实施例中,该手机还可以包括角度传感器(图11中未示出),该角度传感器可以设置在该折叠屏的弯折部位处。该手机可以通过设置在该折叠屏的弯折部位的角度传感器(图11中未示出),测量该折叠屏中间弯折部位两端所成的夹角,当该夹角大于或等于第一角度时,该手机可以通过角度传感器识别出该折叠屏进入展开状态。当该夹角小于或等于第一角度时,该手机可以通过角度传感器识别出该折叠屏进入折叠形态。In some embodiments, the mobile phone may further include an angle sensor (not shown in FIG. 11), and the angle sensor may be disposed at a bending part of the folding screen. The mobile phone can measure the angle formed by the two ends of the folding screen in the middle of the folding screen through an angle sensor (not shown in FIG. 11) provided at the bending part of the folding screen. When the angle is greater than or equal to the first When angled, the mobile phone can recognize that the folding screen enters the unfolded state through the angle sensor. When the included angle is less than or equal to the first angle, the mobile phone can recognize through the angle sensor that the folding screen enters the folded form.
在其他一些实施例中,该手机也可以通过设置在该折叠屏的弯折部位的物理开关,识别出该折叠屏是否处于折叠形态。例如,当手机接收到用户对该折叠屏的折叠操作,该设置在该手机上的物理开关被触发打开,该手机可以确定该折叠屏处于折叠形态。当该手机接收到用户对该折叠屏的展开操作,该设置在该手机上的物理开关被触发关闭,手机可以确定该折叠屏处于展开形态。上述示例仅仅用于解释本申请,不应构成限定。In some other embodiments, the mobile phone can also recognize whether the folding screen is in a folded configuration through a physical switch provided at the bending part of the folding screen. For example, when the mobile phone receives a user's folding operation of the folding screen, the physical switch provided on the mobile phone is triggered to open, and the mobile phone can determine that the folding screen is in a folded form. When the mobile phone receives the user's unfolding operation of the folding screen, the physical switch set on the mobile phone is triggered to close, and the mobile phone can determine that the folding screen is in the unfolded form. The above examples are only used to explain the application and should not constitute a limitation.
手机还可以包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速计传感器可以检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1141 according to the brightness of the ambient light. The proximity sensor can close the display panel 1141 and/or when the mobile phone is moved to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary. Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can also be configured in mobile phones, I will not here Go into details.
音频电路1160、扬声器1161,传声器1162可提供用户与手机之间的音频接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。The audio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone. The audio circuit 1160 can transmit the electric signal converted from the received audio data to the speaker 1161, which is converted into a sound signal by the speaker 1161 for output; on the other hand, the microphone 1162 converts the collected sound signal into an electric signal, and the audio circuit 1160 After being received, it is converted into audio data, and then processed by the audio data output processor 1180, and sent to, for example, another mobile phone via the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1170. It provides users with wireless broadband Internet access. Although FIG. 11 shows the WiFi module 1170, it is understandable that it is not a necessary component of the mobile phone, and can be omitted as needed without changing the essence of the invention.
处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1180中。The processor 1180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1180.
手机可以还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone may further include a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply may be logically connected to the processor 1180 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
尽管未示出,手机还可以包括摄像头。可选地,摄像头在手机的上的位置可以为前置的,也可以为后置的,本申请实施例对此不作限定。Although not shown, the mobile phone may also include a camera. Optionally, the position of the camera on the mobile phone may be front-mounted or rear-mounted, which is not limited in the embodiment of the present application.
可选地,手机可以包括单摄像头、双摄像头或三摄像头等,本申请实施例对此不作限定。Optionally, the mobile phone may include a single camera, a dual camera, or a triple camera, etc., which is not limited in the embodiment of the present application.
例如,手机可以包括三摄像头,其中,一个为主摄像头、一个为广角摄像头、一个为长焦摄像头。For example, a mobile phone may include three cameras, of which one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
可选地,当手机包括多个摄像头时,这多个摄像头可以全部前置,或者全部后置,或者一部分前置、另一部分后置,本申请实施例对此不作限定。Optionally, when the mobile phone includes multiple cameras, the multiple cameras may be all front-mounted, or all rear-mounted, or partly front-mounted and another part rear-mounted, which is not limited in the embodiment of the present application.
另外,尽管未示出,手机还可以包括蓝牙模块等,在此不再赘述。In addition, although not shown, the mobile phone may also include a Bluetooth module, etc., which will not be repeated here.
图12是本申请实施例的手机的软件结构示意图。以手机操作系统为Android系统为例,在一些实施例中,将Android系统分为四层,分别为应用程序层、应用程序框架层(framework,FWK)、系统层以及硬件抽象层,层与层之间通过软件接口通信。Fig. 12 is a schematic diagram of the software structure of a mobile phone according to an embodiment of the present application. Taking the Android system as the mobile phone operating system as an example, in some embodiments, the Android system is divided into four layers, namely the application layer, the application framework layer (framework, FWK), the system layer, and the hardware abstraction layer. Through the software interface communication between.
如图12所示,所述应用程序层可以一系列应用程序包,应用程序包可以包括短信息,日历,相机,视频,导航,图库,通话等应用程序。As shown in FIG. 12, the application layer can be a series of application packages, and the application packages can include applications such as short message, calendar, camera, video, navigation, gallery, and call.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数,例如用于接收应用程序框架层所发送的事件的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer may include some predefined functions, such as functions for receiving events sent by the application framework layer.
如图12所示,应用程序框架层可以包括窗口管理器、资源管理器以及通知管理器等。As shown in Figure 12, the application framework layer can include a window manager, a resource manager, and a notification manager.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc. The content provider is used to store and retrieve data and make these data accessible to applications. The data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
应用程序框架层还可以包括:The application framework layer can also include:
视图系统,所述视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。A view system, which includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供手机的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the mobile phone. For example, the management of the call status (including connecting, hanging up, etc.).
系统层可以包括多个功能模块。例如:传感器服务模块,物理状态识别模块,三维图形处理库(例如:OpenGL ES)等。The system layer can include multiple functional modules. For example: sensor service module, physical state recognition module, 3D graphics processing library (for example: OpenGL ES), etc.
传感器服务模块,用于对硬件层各类传感器上传的传感器数据进行监测,确定手机的物理状态;The sensor service module is used to monitor the sensor data uploaded by various sensors at the hardware layer to determine the physical state of the mobile phone;
物理状态识别模块,用于对用户手势、人脸等进行分析和识别;Physical state recognition module, used to analyze and recognize user gestures, faces, etc.;
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
系统层还可以包括:The system layer can also include:
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
硬件抽象层是硬件和软件之间的层。硬件抽象层可以包括显示驱动,摄像头驱动,传感器驱动等,用于驱动硬件层的相关硬件,如显示屏、摄像头、传感器等。The hardware abstraction layer is the layer between hardware and software. The hardware abstraction layer can include display drivers, camera drivers, sensor drivers, etc., used to drive related hardware at the hardware layer, such as display screens, cameras, sensors, and so on.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时可实现上述各个内容呈现方法实施例中的步骤。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing content presentation method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时可实现上述各个内容呈现方法实施例中的步骤。The embodiments of the present application provide a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned content presentation method embodiments when executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in the present application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable storage medium may at least include: any entity or device capable of carrying computer program codes to the terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM) , Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. For example, U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, in accordance with legislation and patent practices, computer-readable storage media cannot be electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (11)

  1. 一种内容呈现方法,其特征在于,应用于具有折叠屏的终端设备,所述方法包括:A content presentation method, characterized in that it is applied to a terminal device with a folding screen, and the method includes:
    当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用;When a folding operation on the folding screen is detected, acquiring a content presentation mode of a current application, where the current application is an application currently being used in the terminal device;
    若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。If the content presentation mode is the normal mode, the target mode of the current application is started, and the content of the current application is presented through the target mode. The target modes are augmented reality AR mode, virtual reality VR mode and 3D At least one of the 3D modes.
  2. 根据权利要求1所述的方法,其特征在于,所述折叠屏包括第一显示屏和第二显示屏;The method according to claim 1, wherein the folding screen comprises a first display screen and a second display screen;
    所述通过所述目标模式呈现所述当前应用的内容包括:The presenting the content of the current application in the target mode includes:
    在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容,并在所述第二显示屏中通过所述普通模式呈现所述当前应用的第二内容。The first content of the current application is presented in the first display screen in the target mode, and the second content of the current application is presented in the second display screen in the normal mode.
  3. 根据权利要求2所述的方法,其特征在于,所述终端设备包括后置的第一摄像装置,所述第一显示屏为所述折叠屏中被折起的区域,所述第二显示屏为所述折叠屏中除所述第一显示屏以外的区域,所述第一摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处。The method according to claim 2, wherein the terminal device includes a rear-mounted first camera device, the first display screen is a folded area in the folding screen, and the second display screen For an area of the folding screen excluding the first display screen, the first camera device is disposed at a position corresponding to the first display screen in the terminal device.
  4. 根据权利要求3所述的方法,其特征在于,在所述目标模式为AR模式时,所述在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容包括:The method according to claim 3, wherein when the target mode is the AR mode, the presenting the first content of the current application in the first display screen in the target mode comprises:
    通过所述第一摄像装置获取当前环境对应的第一实景图像,并根据所述第一实景图像、预设地图以及预设导航路线确定导航标识在所述第一实景图像中的指示位置和指示方向;Acquire a first real scene image corresponding to the current environment through the first camera device, and determine the indication position and indication of a navigation mark in the first real scene image according to the first real scene image, a preset map, and a preset navigation route direction;
    在所述指示位置以所述指示方向显示所述导航标识,并在所述第一显示屏中呈现带有所述导航标识的所述第一实景图像。The navigation mark is displayed in the instruction direction at the instruction location, and the first real scene image with the navigation mark is presented on the first display screen.
  5. 根据权利要求3所述的方法,其特征在于,在所述目标模式为AR模式时,所述在所述第一显示屏中通过所述目标模式呈现所述当前应用的第一内容包括:The method according to claim 3, wherein when the target mode is an AR mode, the presenting the first content of the current application in the target mode on the first display screen comprises:
    通过所述第一摄像装置获取当前环境对应的第二实景图像,并获取所述当前应用对应的虚拟图像;Acquiring a second real scene image corresponding to the current environment through the first camera device, and acquiring a virtual image corresponding to the current application;
    将所述虚拟图像融合至所述第二实景图像,并在所述第一显示屏中呈现融合有所述虚拟图像的所述第二实景图像。The virtual image is fused to the second real scene image, and the second real scene image fused with the virtual image is presented on the first display screen.
  6. 根据权利要求5所述的方法,其特征在于,所述终端设备还包括前置的第二摄像装置,所述第二摄像装置设置于所述终端设备中与所述第一显示屏相对应的位置处;The method according to claim 5, wherein the terminal device further comprises a front-mounted second camera device, and the second camera device is provided in the terminal device corresponding to the first display screen. Location
    所述方法还包括:The method also includes:
    通过所述第二摄像装置获取用户的交互手势,并根据所述交互手势与所述当前应用进行交互。The user's interaction gesture is acquired through the second camera device, and the interaction with the current application is performed according to the interaction gesture.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式包括:The method according to any one of claims 1 to 6, wherein when a folding operation on the folding screen is detected, acquiring the content presentation mode of the current application comprises:
    当检测到对所述折叠屏的折叠操作时,获取所述折叠屏对应的第一折叠角度;When a folding operation on the folding screen is detected, acquiring the first folding angle corresponding to the folding screen;
    若所述第一折叠角度位于预设的第一角度区间内,则获取所述当前应用的内容呈现模式。If the first folding angle is within the preset first angle interval, acquiring the content presentation mode of the current application.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,在所述通过所述目标模式呈现所述当前应用的内容之后包括:The method according to any one of claims 1 to 7, wherein after the presenting the content of the current application in the target mode comprises:
    获取所述折叠屏对应的第二折叠角度;Acquiring a second folding angle corresponding to the folding screen;
    若所述第二折叠角度位于预设的第二角度区间内,则关闭所述目标模式,并通过所述普通模式呈现所述当前应用的内容。If the second folding angle is within the preset second angle interval, the target mode is closed, and the content of the current application is presented in the normal mode.
  9. 一种内容呈现装置,其特征在于,应用于具有折叠屏的终端设备,所述装置包括:A content presentation device, characterized in that it is applied to a terminal device with a folding screen, and the device includes:
    模式获取模块,用于当检测到对所述折叠屏的折叠操作时,获取当前应用的内容呈现模式,所述当前应用为所述终端设备中当前正在使用的应用;A mode obtaining module, configured to obtain a content presentation mode of a current application when a folding operation on the folding screen is detected, the current application being an application currently being used in the terminal device;
    内容呈现模块,用于若所述内容呈现模式为普通模式,则启动所述当前应用的目标模式,并通过所述目标模式呈现所述当前应用的内容,所述目标模式为增强现实AR模式、虚拟现实VR模式和三维3D模式中的至少一种。The content presentation module is configured to, if the content presentation mode is the normal mode, start the target mode of the current application, and present the content of the current application through the target mode, the target mode being an augmented reality AR mode, At least one of a virtual reality VR mode and a three-dimensional 3D mode.
  10. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8任一项所述的内容呈现方法。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 8. Any of the content presentation methods.
  11. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述的内容呈现方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the content presentation method according to any one of claims 1 to 8 when the computer program is executed by a processor.
PCT/CN2021/077641 2020-02-28 2021-02-24 Content presentation method and apparatus, terminal device, and computer-readable storage medium WO2021169992A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010133711.1 2020-02-28
CN202010133711.1A CN111338737B (en) 2020-02-28 2020-02-28 Content presentation method and device, terminal equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021169992A1 true WO2021169992A1 (en) 2021-09-02

Family

ID=71182036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077641 WO2021169992A1 (en) 2020-02-28 2021-02-24 Content presentation method and apparatus, terminal device, and computer-readable storage medium

Country Status (2)

Country Link
CN (2) CN111338737B (en)
WO (1) WO2021169992A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114299447A (en) * 2021-12-24 2022-04-08 武汉工程大学 Improved YOLOv 3-based blind obstacle avoidance device and method
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device
WO2024017090A1 (en) * 2022-07-21 2024-01-25 华为技术有限公司 Information display method and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338737B (en) * 2020-02-28 2022-04-08 华为技术有限公司 Content presentation method and device, terminal equipment and computer readable storage medium
CN114241168A (en) * 2021-12-01 2022-03-25 歌尔光学科技有限公司 Display method, display device, and computer-readable storage medium
CN117369756A (en) * 2022-06-30 2024-01-09 华为技术有限公司 Display method of folding screen and related equipment
CN116405592A (en) * 2023-04-19 2023-07-07 维沃移动通信有限公司 Wallpaper processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130077228A1 (en) * 2011-09-22 2013-03-28 Jeffrey A. Batio Portable computer assembly
US20140328013A1 (en) * 2013-05-05 2014-11-06 Gerald Lee Heikes Music book
CN106382937A (en) * 2015-08-25 2017-02-08 深圳视景文化科技有限公司 Navigation method and navigation terminal
CN108762875A (en) * 2018-05-30 2018-11-06 维沃移动通信(深圳)有限公司 A kind of application program display methods and terminal
CN110187946A (en) * 2019-05-06 2019-08-30 珠海格力电器股份有限公司 Application program adaptation method and device and storage medium
CN111338737A (en) * 2020-02-28 2020-06-26 华为技术有限公司 Content presentation method and device, terminal equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102423145B1 (en) * 2016-04-12 2022-07-21 삼성전자주식회사 Flexible device and method of operating in the flexible device
CN108200269A (en) * 2017-11-30 2018-06-22 努比亚技术有限公司 Display screen control management method, terminal and computer readable storage medium
CN107977080B (en) * 2017-12-05 2021-03-30 北京小米移动软件有限公司 Product use display method and device
CN109542380A (en) * 2018-11-26 2019-03-29 Oppo广东移动通信有限公司 Control method, device, storage medium and the terminal of display pattern

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130077228A1 (en) * 2011-09-22 2013-03-28 Jeffrey A. Batio Portable computer assembly
US20140328013A1 (en) * 2013-05-05 2014-11-06 Gerald Lee Heikes Music book
CN106382937A (en) * 2015-08-25 2017-02-08 深圳视景文化科技有限公司 Navigation method and navigation terminal
CN108762875A (en) * 2018-05-30 2018-11-06 维沃移动通信(深圳)有限公司 A kind of application program display methods and terminal
CN110187946A (en) * 2019-05-06 2019-08-30 珠海格力电器股份有限公司 Application program adaptation method and device and storage medium
CN111338737A (en) * 2020-02-28 2020-06-26 华为技术有限公司 Content presentation method and device, terminal equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114299447A (en) * 2021-12-24 2022-04-08 武汉工程大学 Improved YOLOv 3-based blind obstacle avoidance device and method
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device
WO2024017090A1 (en) * 2022-07-21 2024-01-25 华为技术有限公司 Information display method and electronic device

Also Published As

Publication number Publication date
CN114816617A (en) 2022-07-29
CN111338737A (en) 2020-06-26
CN111338737B (en) 2022-04-08
CN114816617B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
WO2021169992A1 (en) Content presentation method and apparatus, terminal device, and computer-readable storage medium
EP4130951A1 (en) Content sharing method and electronic device
US9262867B2 (en) Mobile terminal and method of operation
WO2022083241A1 (en) Information guide method and apparatus
KR20180109229A (en) Method and apparatus for providing augmented reality function in electornic device
CN113127130B (en) Page jump method, device and storage medium
CN111368114B (en) Information display method, device, equipment and storage medium
JP7361917B2 (en) Screenshot display method and device, and terminal device
CN112230910B (en) Page generation method, device and equipment of embedded program and storage medium
WO2021109960A1 (en) Image processing method, electronic device, and storage medium
CN109343782A (en) A kind of display methods and terminal
JP2023519389A (en) Scratchpad creation method and electronic device
CN116033051B (en) Folding angle detection method and device for folding screen and readable storage medium
CN112037545B (en) Information management method, information management device, computer equipment and storage medium
CN114816622B (en) Scene picture display method and device, electronic equipment and storage medium
KR102278676B1 (en) Method and apparatus for displaying user interface
US12147661B2 (en) Content sharing method and electronic device
KR102239019B1 (en) Method and apparatus for displaying user interface
KR102385946B1 (en) Method and apparatus for displaying user interface
CN115379274B (en) Picture-based interaction method and device, electronic equipment and storage medium
CN115022721B (en) Content display method and device, electronic equipment and storage medium
KR102187856B1 (en) Method and apparatus for displaying user interface
CN115640007A (en) Data structure creation method and device and electronic equipment
CN115774822A (en) Data updating method, device, terminal and storage medium
CN112269573A (en) State data processing method and device, computer equipment and storage medium

Legal Events

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

Ref document number: 21760579

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21760579

Country of ref document: EP

Kind code of ref document: A1