Virtual reality device and static screen recording method

By using posture sensors and controllers in virtual reality devices to calculate action judgments to intelligently lock or unlock the screen recording perspective, the problem of frequent jitters caused by subtle head swings during screen recording of virtual reality devices is solved, improving the efficiency of screen recording. quality.

CN113655887BActive Publication Date: 2024-09-06HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110980427.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-01-18
Filing Date
2021-08-25
Publication Date
2024-09-06
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

During the screen recording process, the virtual reality device is worn on the user's head, causing frequent jitter problems caused by subtle head swings, which reduces the quality of the screen recording.

Method used

Provides a virtual reality device equipped with an attitude sensor and a controller. By receiving screen recording control instructions input by the user, it obtains initial and real-time attitude data, calculates the action judgment amount, and uses the initial attitude if the action judgment amount is less than or equal to the preset threshold. The data sets the screen recording angle. If it exceeds the threshold, it is updated to real-time posture data, and the screen recording angle is intelligently locked or unlocked.

Benefits of technology

By integrating angle changes and time-maintained states, we can accurately determine the reasons for changes in user posture data to ensure the stability of the screen recording video, reduce jitter, and improve the quality of the screen recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113655887B_ABST
    Figure CN113655887B_ABST
Patent Text Reader

Abstract

The present application provides a virtual reality device and a static screen recording method, which can detect the initial posture data and the real-time posture data after the user inputs a control command to start screen recording, and calculate the action judgment amount of the real-time posture data relative to the initial posture data, wherein the action judgment amount is the cumulative time when the angle difference between the real-time posture data and the initial posture data is greater than the preset angle threshold. When the action judgment amount does not exceed the preset judgment threshold, the initial posture data is used to set the screen recording viewing angle direction to generate screen recording data containing stable video content; and when the action judgment amount exceeds the preset judgment threshold, the real-time posture data can be used to update the screen recording viewing angle direction. The method can comprehensively determine the cause of the change in user posture data and the state of time maintenance, intelligently lock or unlock the screen recording viewing angle, and make the output video picture more stable.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to a Chinese patent application filed with the Chinese Patent Office on January 18, 2021, with application number 202110065015.6 and invention name “A virtual reality device and quick interaction method”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of virtual reality technology, and in particular to a virtual reality device and a static screen recording method. Background Art

[0003] Virtual Reality (VR) technology is a display technology that uses computers to simulate virtual environments, giving people a sense of immersion in the environment. A virtual reality device is a device that uses virtual display technology to present virtual images to users. Usually, a virtual reality device includes two display screens for presenting virtual image content, one for the user's left eye and the other for the left eye. When the content displayed on the two display screens comes from images of the same object from different perspectives, it can bring a three-dimensional viewing experience to the user.

[0004] Virtual reality devices can record the screen to save the content displayed over a period of time in the form of a video for subsequent viewing or sending to other devices for playback. Usually, when a virtual reality device performs a screen recording operation, it will directly capture the content displayed on the screen at a specific frame rate and arrange it in chronological order to form a video file.

[0005] However, since the virtual reality device needs to be worn on the user's head during use, the screen is updated in real time following the user's head posture. Slight movements of the head, such as breathing movements, will cause the displayed screen to change. Therefore, the screen obtained by the screen recording operation has frequent jitter problems, which reduces the quality of the screen recording. Summary of the invention

[0006] The present application provides a virtual reality device and a static screen recording method to solve the problem of frequent jitters in video images obtained by traditional screen recording methods.

[0007] In one aspect, the present application provides a virtual reality device, comprising: a display, a posture sensor, and a controller. The display is configured to display a virtual reality device screen; the posture sensor is configured to detect user posture data; and the controller is configured to execute the following program steps:

[0008] Receive a control command input by a user for starting screen recording;

[0009] In response to the control instruction, initial posture data and real-time posture data are acquired, wherein the initial posture data is user posture data recorded at the time of input of the control instruction; and the real-time posture data is user posture data continuously detected by the posture sensor after receiving the control instruction;

[0010] Calculating an action judgment amount, the action judgment amount being the cumulative time in which an angle difference between the real-time posture data and the initial posture data is greater than a preset angle threshold;

[0011] If the action judgment amount is less than or equal to a preset judgment threshold, use the initial posture data to set the screen recording viewing angle direction to generate screen recording data;

[0012] If the action judgment amount is greater than the preset judgment threshold, the real-time posture data is used to update the screen recording viewing angle direction.

[0013] On the other hand, the present application further provides a static screen recording method, which is applied to the virtual reality device provided in the first aspect above, and the static screen recording method comprises the following steps:

[0014] Receive a control command input by a user for starting screen recording;

[0015] In response to the control instruction, initial posture data and real-time posture data are acquired, wherein the initial posture data is user posture data recorded at the time of input of the control instruction; and the real-time posture data is user posture data continuously detected by the posture sensor after receiving the control instruction;

[0016] Calculating an action judgment amount, the action judgment amount being the cumulative time during which the angle difference between the real-time posture data and the initial posture data is greater than a preset angle threshold;

[0017] If the action judgment amount is less than or equal to a preset judgment threshold, use the initial posture data to set the screen recording viewing angle direction to generate screen recording data;

[0018] If the action judgment amount is greater than the preset judgment threshold, the real-time posture data is used to update the screen recording viewing angle direction.

[0019] It can be seen from the above technical solutions that the virtual reality device and static screen recording method provided by the present application can detect the initial posture data and the real-time posture data after the user inputs the control command to start screen recording, and calculate the action judgment amount of the real-time posture data relative to the initial posture data, wherein the action judgment amount is the cumulative time when the angle difference between the real-time posture data and the initial posture data is greater than the preset angle threshold. When the action judgment amount does not exceed the preset judgment threshold, it can be determined that the change of the user's posture data is caused by the user's unconscious small movements, and the initial posture data can still be used to set the screen recording angle direction to generate screen recording data containing stable video content; and when the action judgment amount exceeds the preset judgment threshold, it is determined that the change of the user's posture data is caused by the user's active action, so the real-time posture data can be used to update the screen recording angle direction. The method can comprehensively determine the state of angle change and time maintenance, accurately determine the cause of the change of the user's posture data, intelligently lock or unlock the screen recording angle, and make the output video picture more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A schematic diagram of the structure of a display system including a virtual reality device in an embodiment of the present application;

[0022] Figure 2 This is a schematic diagram of the global interface of the VR scene in the embodiment of the present application;

[0023] Figure 3 A schematic diagram of the recommended content area of ​​the global interface in an embodiment of the present application;

[0024] Figure 4 This is a schematic diagram of the application quick operation entry area of ​​the global interface in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of suspended matter at a global interface in an embodiment of the present application;

[0026] Figure 6 This is a schematic diagram of entering the quick center through the status bar in an embodiment of the present application;

[0027] Figure 7 This is a schematic diagram of the quick center window in the embodiment of this application;

[0028] Figure 8 This is a schematic diagram of entering the shortcut center by pressing a button in an embodiment of the present application;

[0029] Fig. 9This is a schematic diagram of starting screen recording in an embodiment of the present application;

[0030] Fig.10 This is a schematic diagram of the interface during screen recording in an embodiment of the present application;

[0031] Fig.11 This is a schematic diagram of the static screen recording method flow in an embodiment of the present application;

[0032] Fig.12 This is a schematic diagram of the timing relationship of the static screen recording method in the embodiment of the present application;

[0033] Fig.13 This is a schematic diagram of the screen recording setting interface in the embodiment of the present application;

[0034] Fig.14 This is a schematic diagram of a process for setting the screen recording viewing angle direction according to the screen recording mode in an embodiment of the present application;

[0035] Fig.15 This is a schematic diagram of a virtual screen recording camera in a rendering scene in an embodiment of the present application;

[0036] Fig.16 This is a schematic diagram of setting the shooting angle of the screen recording camera in an embodiment of the present application;

[0037] Fig.17 This is a schematic diagram of a process for determining an action judgment amount by accumulating the number of frames in an embodiment of the present application;

[0038] Fig.18 This is a schematic diagram of a process for adjusting the screen recording direction according to a counting variable in an embodiment of the present application;

[0039] Fig.19 This is a flow chart of extracting multiple frames of user posture data at intervals in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0041] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0042] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0043] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0044] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0045] References throughout this specification to "multiple embodiments", "some embodiments", "one embodiment" or "an embodiment" etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment. Therefore, phrases such as "in multiple embodiments", "in some embodiments", "in at least another embodiment" or "in an embodiment" etc. that appear throughout this specification do not necessarily all refer to the same embodiment. In addition, in one or more embodiments, specific features, structures or characteristics may be combined in any suitable manner. Therefore, without limitation, specific features, structures or characteristics shown or described in conjunction with one embodiment may be combined in whole or in part with features, structures or characteristics of one or more other embodiments. Such modifications and variations are intended to be included within the scope of this application.

[0046] In the embodiments of the present application, the virtual reality device 500 generally refers to a display device that can be worn on the user's face to provide the user with an immersive experience, including but not limited to VR glasses, augmented reality devices (AR), VR gaming devices, mobile computing devices, and other wearable computers. Some embodiments of the present application use VR glasses as an example to illustrate the technical solution. It should be understood that the provided technical solution can also be applied to other types of virtual reality devices. The virtual reality device 500 can operate independently or be connected to other smart display devices as an external device, wherein the display device can be a smart TV, computer, tablet computer, server, etc.

[0047] After being worn on the user's face, the virtual reality device 500 can display media images and provide close-up images for the user's eyes to bring an immersive experience. In order to present media images, the virtual reality device 500 may include multiple components for displaying images and wearing on the face. Taking VR glasses as an example, the virtual reality device 500 may include but is not limited to at least one of the components such as a housing, a position fixing member, an optical system, a display component, a posture detection circuit, and an interface circuit. In actual applications, the optical system, the display component, the posture detection circuit, and the interface circuit can be arranged in the housing to present a specific display image; the housing is connected to position fixing connectors on both sides to be worn on the user's head.

[0048] When in use, the posture detection circuit has built-in posture detection elements such as gravity acceleration sensors and gyroscopes. When the user's head moves or rotates, the user's posture can be detected, and the detected posture data can be transmitted to processing elements such as controllers, so that the processing elements can adjust the specific screen content in the display component according to the detected posture data.

[0049] In some embodiments, Figure 1 The virtual reality device 500 shown can be connected to the display device 200, and a network-based display system can be established between the virtual reality device 500, the display device 200 and the server 400. Real-time data interaction can be performed between the virtual reality device 500, the display device 200 and the server 400. For example, the display device 200 can obtain media data from the server 400 and play it, and transmit specific picture content to the virtual reality device 500 for display.

[0050] The display device 200 may be a liquid crystal display, an OLED display, or a projection display device. The specific display device type, size, and resolution are not limited. It is understood by those skilled in the art that the display device 200 may be modified in performance and configuration as needed. The display device 200 may provide a broadcast receiving television function, and may also provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.

[0051] The display device 200 and the virtual reality device 500 also communicate data with the server 400 through various communication methods. The display device 200 and the virtual reality device 500 may be allowed to communicate and connect via a local area network (LAN), a wireless local area network (WLAN) and other networks. The server 400 may provide various contents and interactions to the display device 200. For example, the display device 200 receives software program updates or accesses a remotely stored digital media library by sending and receiving information and interacting with an electronic program guide (EPG). The server 400 may be one cluster or multiple clusters, and may include one or more types of servers. Other network service contents such as video on demand and advertising services are provided through the server 400.

[0052] During the data interaction, the user can operate the display device 200 through the mobile terminal 300 and the remote controller 100. The mobile terminal 300 and the remote controller 100 can communicate with the display device 200 by direct wireless connection or by indirect connection. That is, in some embodiments, the mobile terminal 300 and the remote controller 100 can communicate with the display device 200 by direct connection such as Bluetooth or infrared. When sending a control command, the mobile terminal 300 and the remote controller 100 can directly send the control command data to the display device 200 by Bluetooth or infrared.

[0053] In other embodiments, the mobile terminal 300 and the remote controller 100 may also access the same wireless network as the display device 200 through a wireless router to establish indirect connection communication with the display device 200 through the wireless network. When sending a control command, the mobile terminal 300 and the remote controller 100 may first send the control command data to the wireless router, and then forward the control command data to the display device 200 through the wireless router.

[0054] In some embodiments, the user can also use the mobile terminal 300 and the remote control 100 to directly interact with the virtual reality device 500. For example, the mobile terminal 300 and the remote control 100 can be used as handles in a virtual reality scene to achieve functions such as somatosensory interaction.

[0055] In some embodiments, the display component of the virtual reality device 500 includes a display screen and a driving circuit related to the display screen. In order to present a specific picture and bring a stereoscopic effect, the display component may include two display screens, corresponding to the left eye and the right eye of the user respectively. When presenting a 3D effect, the picture content displayed on the left and right screens will be slightly different, and the left camera and the right camera of the 3D film source during the shooting process can be displayed respectively. Due to the picture content observed by the left and right eyes of the user, a display picture with a strong sense of stereoscopic can be observed when wearing it.

[0056] The optical system in the virtual reality device 500 is an optical module composed of multiple lenses. The optical system is arranged between the user's eyes and the display screen, and can increase the optical path through the refraction of the light signal by the lens and the polarization effect of the polarizer on the lens, so that the content presented by the display component can be clearly presented within the user's field of vision. At the same time, in order to adapt to the vision conditions of different users, the optical system also supports focusing, that is, adjusting the position of one or more of the multiple lenses through the focusing component, changing the mutual distance between the multiple lenses, thereby changing the optical path and adjusting the picture clarity.

[0057] The interface circuit of the virtual reality device 500 can be used to transmit interactive data. In addition to the above-mentioned transmission of posture data and display content data, in actual applications, the virtual reality device 500 can also be connected to other display devices or peripherals through the interface circuit to achieve more complex functions by exchanging data with the connected devices. For example, the virtual reality device 500 can be connected to the display device through the interface circuit, so that the displayed picture is output to the display device in real time for display. For another example, the virtual reality device 500 can also be connected to a handle through the interface circuit, and the handle can be held by the user to perform related operations in the VR user interface.

[0058] The VR user interface can be presented in a variety of different types of UI layouts according to user operations. For example, the user interface can include a global interface. The global UI after the AR / VR terminal is started is as follows: Figure 2 As shown, the global UI can be displayed on the display screen of the AR / VR terminal or on the display of the display device. The global UI can include a recommended content area 1, a business classification extension area 2, an application quick operation entry area 3, and a floating object area 4.

[0059] The recommended content area 1 is used to configure different classification TAB columns; in the columns, media resources, special topics, etc. can be selected and configured; the media resources may include 2D film and television, educational courses, travel, 3D, 360-degree panoramic view, live broadcast, 4K film and television, program applications, games, travel and other businesses with media content, and the columns can select different template styles and support the simultaneous recommendation and arrangement of media resources and special topics, such as Figure 3 shown.

[0060] In some embodiments, a status bar may be provided at the top of the recommended content area 1, and a plurality of display controls may be provided in the status bar, including common options such as time, network connection status, and power. The content included in the status bar may be customized by the user, for example, weather, user avatars, and other content may be added. The content included in the status bar may be selected by the user to perform a corresponding function. For example, when the user clicks on the time option, the virtual reality device 500 may display a time device window in the current interface, or jump to a calendar interface. When the user clicks on the network connection status option, the virtual reality device 500 may display a WiFi list in the current interface, or jump to a network settings interface.

[0061] The content displayed in the status bar can be presented in different content forms according to the setting status of the specific project. For example, the time control can directly display specific time text information, and display different texts at different times; the power control can display different patterns according to the current remaining power of the virtual reality device 500.

[0062] The status bar is used to enable the user to perform commonly used control operations and quickly set up the virtual reality device 500. Since the setting program for the virtual reality device 500 includes many items, it is usually not possible to display all commonly used setting options in the status bar. For this reason, in some embodiments, an extended option may also be provided in the status bar. After the extended option is selected, an extended window may be presented in the current interface, and a plurality of setting options may be further provided in the extended window to implement other functions of the virtual reality device 500.

[0063] For example, in some embodiments, after the extension option is selected, a "Quick Center" option can be set in the extension window. After the user clicks the Quick Center option, the virtual reality device 500 can display the Quick Center window. The Quick Center window can include "Screenshot", "Screen Recording" and "Screen Casting" options for waking up corresponding functions respectively.

[0064] The business category extension area 2 supports the configuration of extended categories of different categories. If there is a new business type, it supports the configuration of an independent TAB to display the corresponding page content. The extended categories in the business category extension area 2 can also be sorted and adjusted and offline business operations can be performed. In some embodiments, the business category extension area 2 may include the following content: film and television, education, travel, applications, and mine. In some embodiments, the business category extension area 2 is configured to display a large business category TAB and supports the configuration of more categories. Its icons support configuration, such as Figure 3 shown.

[0065] The application quick operation entry area 3 can specify pre-installed applications to be displayed in front for operation recommendation, and supports configuration of special icon styles to replace default icons. The pre-installed applications can be specified as multiple. In some embodiments, the application quick operation entry area 3 also includes a left-moving control and a right-moving control for moving the option target, which are used to select different icons, such as Figure 4 shown.

[0066] The floating object area 4 can be configured to be located at the upper left side or the upper right side of the fixed area, and can be configured as a replaceable image or a jump link. For example, after receiving a confirmation operation, the floating object jumps to a certain application or displays a specified function page, such as Figure 5 In some embodiments, the floating object may not be configured with a jump link and is simply used for image display.

[0067] In some embodiments, the global UI also includes a status bar at the top for displaying time, network connection status, battery status, and more quick operation entries. When an icon is selected using the handle of the AR / VR terminal, that is, a handheld controller, the icon will display a text prompt including left and right expansion, and the selected icon will be stretched left and right according to its position.

[0068] For example, after selecting the search icon, the search icon will display the text "Search" and the original icon. After further clicking the icon or text, the search icon will jump to the search page. For example, clicking the favorite icon will jump to the favorites TAB, clicking the history icon will display the history page by default, clicking the search icon will jump to the global search page, and clicking the message icon will jump to the message page.

[0069] In some embodiments, interaction can be performed through peripherals. For example, the handle of the AR / VR terminal can operate the user interface of the AR / VR terminal, including a back button; a home button, and a long press of the home button can realize a reset function; a volume plus or minus button; and a touch area, which can realize the focus click, slide, hold and drag functions.

[0070] The user can perform interactive operations through the global UI interface and jump to a specific interface in some interactive modes. For example, in order to play media data, the user can click on any media link icon in the global UI interface to start playing the media file corresponding to the media link. At this time, the virtual reality device 500 can control the jump to the media playback interface.

[0071] After jumping to a specific interface, the virtual reality device 500 may also display a status bar at the top of the playback interface and execute corresponding setting functions according to the set interaction mode. Figure 6As shown, when the virtual reality device 500 plays video media, if the user wants to perform a screen recording operation on the media screen, the user can click the extension option on the status bar to call out the extension window, and click the quick center option in the extension window to display the quick center window on the playback interface of the virtual reality device 500. Figure 7 As shown, finally click the "Screen Recording" option in the extension center window to enable the virtual reality device 500 to perform a screen recording operation and store the images displayed within a period of time after the current moment in video form.

[0072] Among them, the status bar can be hidden when the virtual reality device 500 plays the media screen to avoid blocking the media screen. When the user performs a specific interactive action, the display is triggered. For example, when the user does not use the handle to perform an action, the status bar can be hidden, and when the user uses the handle to perform an action, the status bar is displayed. To this end, the virtual reality device 500 can be configured to detect the state of the orientation sensor in the handle or the state of any button when playing the media screen. When it is detected that the detection value of the orientation sensor has changed, or the button is pressed, the status bar can be controlled to be displayed at the top of the playback interface. When it is detected that the orientation sensor has not changed within the set time, or the button has not been pressed, the status bar is hidden in the playback interface.

[0073] It can be seen that in the above embodiment, the user can call up the quick center through the status bar, and then click the corresponding option in the quick center window to complete the screenshot, screen recording and screen projection operations. Other interactive methods can also be used to call the quick center and display the quick center window. For example, Figure 8 As shown, the user can call up the shortcut center window by double-clicking the home button on the controller.

[0074] The user can select any icon in the shortcut center window to start the corresponding function. The startup method of the corresponding function can be determined according to the actual interaction method of the virtual reality device 500. For example, Fig. 9 As shown, after calling up the quick center window, the user can move the handle downward, and the user can control the virtual reality device 500 to start the screen recording function by selecting the "screen recording" icon in the quick center window. After starting the screen recording function, the virtual reality device 500 can save the displayed screen content frame by frame to output a video file. The specific screen recording range can also be set according to different usage scenarios.

[0075] For example, during the media playback process, the user can choose to record only the played media screen, or to record the entire displayed content. In the case of recording only the played media screen, the virtual reality device 500 can obtain the media data (i.e., the data obtained by parsing the video file) that has not been rendered by the rendering engine to produce a 3D scene, and copy it to output the recording result. In the case of recording the entire displayed content, the virtual reality device 500 can capture the final screen displayed on the display frame by frame to obtain multiple continuous screenshot images, thereby forming a video file and outputting the recording result.

[0076] In order to indicate that the virtual reality device 500 is currently performing a screen recording operation, after starting the screen recording function, the virtual reality device 500 may display prompts related to screen recording in the playback interface. Fig.10 As shown, a permanent recording symbol can be displayed in the upper right corner of the playback interface. The recording symbol can be composed of a flashing dot and a time frame. When the recording function is executed, the dot flashes to remind the user that the screen is being recorded, and the time frame can record the length of the video obtained by the screen recording.

[0077] It should be noted that for the recording symbol, you can choose whether to add it to the screen recording result file. When you choose to add it to the video file, the recording symbol can also be displayed in the upper right corner of the screen recording video to mark the video playback process. When you choose not to add it to the screen recording result file, there will be no recording symbol in the screen recording video. Obviously, these two methods require different recording procedures to be executed during the screen recording process. That is, when adding a recording symbol, the virtual reality device 500 needs to capture the superposition results of all layer contents frame by frame; and when not adding a recording symbol, the virtual reality device 500 does not perform screen capture on the topmost layer, but instead captures the superposition results of other layer contents below the topmost layer frame by frame.

[0078] After the user starts the screen recording operation through the above-mentioned interactive operation, the virtual reality device 500 can record the screen program, perform the screen recording operation on the currently displayed screen, and save the VR screen displayed on the left display or the right display. During the screen recording operation, the user can continue to use the virtual reality device 500 to watch video screens from different perspectives through the virtual reality device 500. At this time, the video screen obtained by the screen recording operation also changes with the user's interactive actions as the user continues to use it.

[0079] That is, the posture sensor can detect the user's movement process to generate user posture data. The generated user posture data is then transmitted to the controller so that the controller can adjust the screen content in the left display and the right display according to the user posture data. However, since the virtual reality device 500 needs to be worn on the user's head, during the wearing process, when the user's head moves slightly unconsciously during the screen recording process, the posture sensor will also detect the unconscious slight movement and trigger the controller to adjust the displayed VR screen content. These unconscious slight movements will cause the video screen obtained by the screen recording to shake frequently, reducing the picture quality of the screen recording output screen.

[0080] In order to improve the image quality of the recorded screen output, a static screen recording method is provided in some embodiments of the present application. The static screen recording method can be applied to the virtual reality device 500, and can also be applied to head-mounted devices such as augmented reality devices, wearable devices, VR game devices, etc. with the same functional hardware. In order for the virtual reality device 500 to implement the static screen recording method, the virtual reality device 500 should at least include a display, a posture sensor, and a controller. Among them, the display includes a left display and a right display, which are respectively used to display the virtual reality screen, so as to show the screen content from different perspectives to the user's left and right eyes, forming a 3D effect. The posture sensor may include a gravity sensor, a gyroscope, etc., for detecting user posture data. The controller is configured to execute the application corresponding to the static screen recording method to realize the static screen recording function, such as Fig.11 , Fig.12 As shown, specifically including the following:

[0081] Receive a control command input by the user for starting screen recording. When using the virtual reality device 500, the user can perform interactive operations through the buttons and touch areas on the virtual reality device 500, or through interactive devices supporting the virtual reality device 500, such as a somatosensory device, a handle, etc. Different interactive operations can trigger the virtual reality device 500 to execute different control programs.

[0082] For example, the user can control the focus cursor in the presented image to move by using the direction keys on the virtual reality device 500. When the user controls the focus cursor to move to a button control that selects the "record screen" function, the virtual reality device 500 can be triggered to execute the screen recording function. That is, the virtual reality device 500 can trigger the receipt of a control instruction for starting screen recording based on the user's interactive operation on the user interface.

[0083] The control command for starting screen recording can be input through a specific window or interface. For example, the user can call out the "Quick Center" window provided in the above embodiment in any interface, and click the "Screen Recording" option in the Quick Center window, so that the virtual reality device 500 receives the control command for starting screen recording.

[0084] The control instruction for starting screen recording can also be input through a combination of shortcut keys, so that the user can trigger the execution of the screen recording interactive operation when the "screen recording" button control is not included in the currently displayed interface. For example, the virtual reality device 500 can set the shortcut key for the screen recording function to be a simultaneous long press of the power button and the volume "+" button. When the user enters the shortcut operation instruction, it can indicate that the user has entered the control instruction for starting screen recording.

[0085] In addition, for some virtual reality devices 500, users can also use other interactive devices or interactive systems to complete the input of control instructions. For example, an intelligent voice system can be built into the virtual reality device 500, and the user can input voice information, such as "start screen recording", through an audio input device such as a microphone. The intelligent voice system recognizes the meaning of the voice information by converting, analyzing, and processing the user's voice information, and generates control instructions based on the recognition results to control the virtual reality device 500 to perform the screen recording operation.

[0086] After the user inputs a control command for starting screen recording, the virtual reality device 500 can respond to the control command and obtain initial posture data and real-time posture data. The initial posture data is the user posture data recorded at the time of inputting the control command; the real-time posture data is the user posture data continuously detected by the posture sensor after receiving the control command.

[0087] For example, when the user clicks the "Screen Recording" option through the quick center window, the virtual reality device 500 can start the screen recording related program. By executing the screen recording related program, the virtual reality device 500 can detect the current user posture data through the posture sensor, and record the user posture data at the moment when the user inputs the control command as the initial posture data. After starting the screen recording, the user can continue to engage in conscious or unconscious actions while wearing the virtual reality device 500. At this time, the posture sensor will detect the changes in posture data caused by the user's actions for adjusting the displayed VR screen. Therefore, after the user inputs the control command, the virtual reality device 500 can also detect the user posture data frame by frame to obtain real-time posture data.

[0088] After detecting the initial posture data and the real-time posture data, the virtual reality device 500 can perform calculations based on the detected data content to calculate the action judgment amount, wherein the action judgment amount is the cumulative time when the angle difference between the real-time posture data and the initial posture data is greater than a preset angle threshold.

[0089] After acquiring the initial posture data and the real-time posture data, the virtual reality device 500 may first calculate the angle difference based on the real-time posture data and the initial posture data, that is, calculate the change in the viewing angle direction corresponding to the user's action process. In some embodiments, in order to calculate the angle difference between the real-time posture data and the initial posture data, the virtual reality device 500 may first extract the direction quaternion A (w0, x0, y0, z0) of the initial posture data and the direction quaternion B (w, x, y, z) in the real-time posture data during the process of calculating the action judgment amount. Then, the direction quaternion A of the initial posture data is inverted to obtain the inverse matrix A. -1 , that is, A -1 =(w0,x0,y0,z0) -1 . Calculate the orientation quaternion B and inverse matrix A in the real-time attitude data -1 The product of θ and θ can be used to obtain the attitude difference C. After the attitude difference C is calculated, the quaternion corresponding to the attitude difference C can also be normalized to calculate the angle difference according to the attitude difference C. The angle difference θ is calculated according to the following formula:

[0090] θ=arccos(C·w)*2;

[0091] In the formula, θ represents the angle difference; C represents the attitude difference, that is, C = B*A -1 ; w represents the first element value in the quaternion B (w, x, y, z) corresponding to the real-time posture data.

[0092] After the above calculation, the angle difference θ can be obtained. Since the above angle difference is expressed in radians, which is inconsistent with the angle expression method that users are accustomed to, after calculating the angle difference θ, the virtual reality device 500 can also convert the radian expression into the angle expression, that is, the angle difference α=θ*180 / π.

[0093] Since the user's unconscious movements are generally small in amplitude during the actual wearing process, after calculating the angle difference, the virtual reality device 500 can make a judgment based on the calculated angle difference to determine whether the angle difference exceeds the preset angle judgment threshold. That is, the virtual reality device 500 can compare the angle difference α with the preset angle threshold α0. If the angle difference is greater than the preset angle threshold, that is, α>α0, the user action corresponding to the current real-time posture data is likely to be an unconscious action of the user. Similarly, if the angle difference is less than or equal to the preset angle threshold, that is, α≤α0, the user action corresponding to the current real-time posture data may be an active action of the user.

[0094] In addition, the unconscious action of the user also has the characteristic of a short action duration. Therefore, after determining that the angle difference is greater than the preset angle threshold, the virtual reality device 500 can detect the duration of the angle difference being greater than the preset angle threshold, thereby further determining whether the user's action is an unconscious action based on the cumulative time that the angle difference is greater than the preset angle threshold. That is, in some embodiments, the virtual reality device 500 can obtain multiple consecutive frames of real-time posture data according to the sampling frequency of the posture sensor, and perform calculations for each frame of real-time posture data to determine the angle difference between each frame of real-time posture data and the initial posture data.

[0095] Then, it is determined whether the angle difference corresponding to the multiple frames of real-time posture data exceeds the preset angle threshold, so as to determine the duration of the angle difference exceeding the preset angle threshold, i.e., the action judgment amount. If the action judgment amount is less than or equal to the preset judgment threshold, i.e., the duration of the angle difference exceeding the preset angle threshold is short, the user posture change during this detection cycle is caused by the user's unconscious action, so the virtual reality device 500 can lock the screen recording angle, i.e., use the initial posture data to set the screen recording angle direction during this period to generate stable screen recording data.

[0096] Similarly, if the action judgment amount is greater than the preset judgment threshold, that is, the angle difference exceeds the preset angle threshold state for a long time, the user posture change within this detection cycle is caused by the user's active action. Therefore, the virtual reality device 500 can follow the user's action and align the recording angle direction to the new angle, that is, use real-time posture data to update the recording angle direction.

[0097] For example, the virtual reality device 500 can set the angle threshold to 20° and the judgment threshold to 1.5s, that is, the state where the angle difference caused by the user's action exceeds 20° and lasts for more than 1.5s, and the current real-time posture data is determined to be caused by the user's active action. Therefore, after calculating and determining that the state where the angle difference exceeds 20° lasts for more than 1.5s, the virtual reality device 500 can align the screen recording angle to a new angle, that is, the angle corresponding to the latest frame of real-time posture data, and continue to record the screen. After calculating and determining that the angle difference has never exceeded 20°, or the state where the angle difference exceeds 20° has not lasted for more than 1.5s, the virtual reality device 500 can always maintain the initial angle for screen recording, that is, set the screen recording direction according to the angle corresponding to the initial posture data when the user inputs the control command.

[0098] It should be noted that after the virtual reality device 500 determines that the action judgment amount is greater than the preset judgment threshold and uses the real-time posture data to update the screen recording viewing angle direction, the virtual reality device 500 enters the next detection cycle, that is, the virtual reality device 500 can use the real-time posture data (w n , x n ,y n , z n ) as the initial posture data for the next detection cycle, and in the next detection cycle, use the newly detected real-time posture data (w n+1 , x n+1 ,y n+1 , z n+1 )、(w n+2 , x n+2 ,y n+2 , z n+2 )……and the initial posture data (w n , x n ,y n , z n ) calculates the angle difference and the cumulative time that the angle difference exceeds the angle threshold. By analogy, the virtual reality device 500 can continuously align the angle corresponding to the user action through multiple detection cycles while maintaining the stability of the screen recording output image to complete the screen recording operation.

[0099] It can be seen from the above technical solution that the static screen recording method provided in the above embodiment can comprehensively consider the angle change and time maintenance status, accurately determine the reason for the change of user posture data, intelligently lock or unlock the screen recording perspective, and make the output video picture more stable.

[0100] In order to meet the different needs of different users for screen recording effects, in some embodiments, the static screen recording function can be used as a screen recording mode and set in a specific control interface for users to choose. Fig.13As shown, the "static screen recording" option and the "dynamic screen recording" option can be set in the screen recording control interface of the virtual reality device 500. The user can set the screen recording method used in the screen recording process by clicking different options. Fig.14 As shown, after the user inputs a control instruction for starting screen recording, the virtual reality device 500 can respond to the control instruction and parse the screen recording method specified in the control instruction.

[0101] The screen recording mode may include static screen recording and dynamic screen recording. That is, when the user selects the static screen recording option in the screen recording setting interface, the screen recording mode specified in the control instruction input is static screen recording; similarly, when the user selects the dynamic screen recording option in the screen recording setting interface, the screen recording mode specified in the control instruction input is dynamic screen recording.

[0102] The virtual reality device 500 can perform different screen recording processes for different screen recording modes. That is, if the screen recording mode is static screen recording, the steps of obtaining the initial posture data and the real-time posture data are performed, and the action judgment amount is calculated according to the initial posture data and the real-time posture data in accordance with the method provided in the above embodiment, and different screen recording modes are set according to different action judgment amounts. If the screen recording mode is dynamic screen recording, the virtual reality device 500 can detect the real-time posture data through the posture sensor in accordance with the conventional screen recording mode, and use the real-time posture data to set the screen recording angle of view direction, cancel the lock of the screen recording angle of view by the virtual reality device 500 during the screen recording process, and generate screen recording data that is the same as the content viewed by the user.

[0103] It can be seen that in the above embodiment, the virtual reality device 500 can provide a screen recording setting interface, allowing the user to select a static screen recording mode or a dynamic screen recording mode based on the screen recording setting interface, so that the virtual reality device 500 can meet the personalized needs of different users.

[0104] It should be noted that, in order to allow the control instructions to include different screen recording modes, different screen recording modes may be set to correspond to different interactive operations in the virtual reality device 500. For example, the user may indicate different screen recording modes through different shortcut key combinations. That is, by long pressing the power button and the volume "+" button at the same time, the virtual reality device 500 is controlled to perform screen recording operations in a static screen recording mode; and by long pressing the power button and the volume "-" button at the same time, the virtual reality device 500 is controlled to perform screen recording operations in a dynamic screen recording mode.

[0105] During the screen recording process, the virtual reality device 500 can generate a screen recording image in real time according to the VR image and output the screen recording data. The screen content corresponding to the screen recording image can be the same as the screen displayed by the virtual reality device 500. For example, the screen recording image can directly reuse the screen content displayed by the left display or the right display. However, since the static screen recording method requires locking the screen recording angle when the user makes unconscious small and short movements, and in order to provide a better immersive experience, the images displayed by the left and right displays change the viewing angle in real time according to the user's posture. Therefore, the screen recording content without frequent shaking will be partially different from the screen content actually viewed by the user.

[0106] In order to meet the needs of static screen recording, in some embodiments, the virtual reality device 500 can be provided with an independent virtual screen recording camera dedicated to screen recording operations, and the virtual screen recording camera can be used to capture images of the rendering scene to generate screen recording data. That is, in the step of obtaining the initial posture data and the real-time posture data, the virtual reality device 500 can first add a virtual screen recording camera to the rendering scene.

[0107] Among them, the rendering scene refers to a virtual scene constructed by the rendering engine of the virtual reality device 500 through a rendering program. For example, the virtual reality device 500 based on the unity 3D rendering engine can construct a unity 3D scene when presenting a display screen. In the unity 3D scene, various virtual objects and function controls can be added to render a specific usage scene. For example, when playing multimedia resources, a display panel can be added to the unity 3D scene, and the display panel is used to present the multimedia resource screen. At the same time, virtual object models such as seats, speakers, and characters can also be added to the unity 3D scene to create a cinema effect.

[0108] In order to output the rendered images, the virtual reality device 500 can also set a virtual camera in the unity 3D scene. For example, the virtual reality device 500 can set a left eye camera and a right eye camera in the unity 3D scene according to the positional relationship between the user's eyes, and the two virtual cameras can simultaneously shoot objects in the unity 3D scene, thereby outputting the rendered images to the left display and the right display respectively. In order to obtain a better immersive experience, the angles of the two virtual cameras in the unity 3D scene can be adjusted in real time with the posture sensor of the virtual reality device 500, so that when the user wears the virtual reality device 500 to move, the rendered images in the unity 3D scene under different viewing angles can be output in real time.

[0109] like Fig.15As shown, in this embodiment, the virtual reality device 500 can add a virtual screen recording camera for performing screen recording operations to the rendering scene on the basis of including a left eye camera and a right eye camera in the rendering scene. The virtual screen recording camera can be set at a central position between the left eye camera and the right eye camera, so that the screen content captured by the virtual screen recording camera in the rendering scene is similar to the content viewed by the user.

[0110] like Fig.16 As shown, after adding a virtual screen recording camera to the rendering scene, the virtual reality device 500 can set the shooting angle of the virtual screen recording camera according to the user posture data detected by the posture sensor, that is, after the virtual reality device 500 obtains the user posture data, it is necessary to first record the initial posture data and set the shooting angle of the virtual screen recording camera according to the initial posture data, that is, the initial angle of the virtual screen recording camera.

[0111] When the user uses the virtual reality device 500, the shooting angle of the virtual screen recording camera in the rendering scene may also be affected by the posture sensor, but the user posture data detected by the posture sensor is not directly used as the basis for the virtual screen recording camera to record the screen. Instead, before the user posture data is transmitted to the virtual screen recording camera, it is first judged by the static screen recording program. When the action judgment amount corresponding to the user posture data is greater than the judgment threshold, it is input to the virtual screen recording camera to maintain the stability of the shooting angle of the virtual screen recording camera.

[0112] That is Fig.16 As shown, in some embodiments, the virtual reality device 500 can record real-time gesture data in the step of using real-time gesture data to update the screen recording viewing angle direction, and use the real-time gesture data to replace the initial gesture data to adjust the shooting angle of the virtual screen recording camera.

[0113] For example, after the user starts using the virtual reality device 500, the virtual reality device 500 can build a unity 3D scene and add virtual cameras to the unity 3D scene, including a left-eye camera, a right-eye camera, and a center camera, wherein the center camera is specifically used to perform screenshot or screen recording operations, i.e., a virtual screen recording camera. After adding the virtual camera, the virtual reality device 500 can perform image capture in the unity 3D scene through the left-eye camera and the right-eye camera according to the normal VR display process, and transmit the image to the left display and the right display in real time for display.

[0114] When the user inputs a control command for starting screen recording by long pressing the power button and the volume "+" button, the virtual reality device 500 can first record the user posture data detected by the posture sensor at the time of inputting the control command, that is, the initial posture data. The initial posture data is used to set the shooting angle of the center camera, so that the center camera can perform image capture of the virtual screen in the unity 3D scene according to the angle corresponding to the initial posture data to generate screen recording data.

[0115] During the screen recording process, the posture sensor can detect real-time posture data and send the real-time posture data to the controller of the virtual reality device 500. On the one hand, the controller sends the real-time posture data to the left eye camera and the right eye camera to change the shooting angles of the left eye camera and the right eye camera, and adjust the content displayed in the left display and the right display in real time. On the other hand, the controller can judge the real-time posture data to calculate the action judgment amount based on the real-time posture data. After comparing with the preset judgment threshold, when the action judgment amount is greater than the preset judgment threshold, the real-time posture data is sent to the center camera, so that the center camera can update the shooting angle according to the real-time posture data; when the action judgment amount is less than or equal to the preset judgment threshold, the controller does not send the real-time posture data to the center camera, so that the center camera still performs the screen recording operation according to the shooting angle corresponding to the initial posture data.

[0116] By setting the shooting angle of the virtual screen recording camera separately in multiple detection cycles, the virtual screen recording camera can output the screen recording data independently of the left eye camera and the right eye camera. In some embodiments, in order to output the screen recording data, the virtual reality device 500 can also set the output frame rate of the screen recording data, and shoot multiple continuous frame images of the current rendering scene according to the set output frame rate to generate the screen recording data. Using a virtual screen recording camera independent of the left eye camera and the right eye camera for screen recording can reduce the interference of the screen recording process on the user's normal viewing process, and because the virtual screen recording camera can maintain a fixed shooting angle for a longer period of time, the virtual reality device 500 can ensure that the screen recording video content will not shake frequently, providing the user with a better viewing experience.

[0117] In the above embodiment, the virtual reality device 500 mainly judges the user's action based on the action judgment amount, that is, the cumulative time of the angle difference between the real-time posture data and the initial posture data being greater than the preset angle threshold state. Since the sampling frame rate of the posture sensor is generally fixed, the virtual reality device 500 can feedback the collected user posture data to the controller according to the sampling frame rate after the user wears it. For example, the sampling frame rate of the posture sensor is 60FPS (frames per second), that is, within 1s, the posture sensor can feedback 60 frames of real-time posture data to the display device 200, and the time interval between two adjacent frames of real-time posture data is fixed at 0.016s. Based on this, when calculating the action judgment amount, the virtual reality device 500 can determine the cumulative time of the angle difference being greater than the preset angle threshold state by accumulating the number of frames.

[0118] That is Fig.17 As shown, in order to calculate the action judgment amount, in some embodiments, the virtual reality device 500 can sequentially obtain multiple frames of real-time posture data in the step of calculating the action judgment amount, and calculate the angle difference between each frame of real-time posture data and the initial posture data, and then record the continuous cumulative frame number in which the angle difference is greater than the preset angle threshold, so as to determine the cumulative time of the state in which the angle difference is greater than the preset angle threshold through the recorded continuous cumulative frame number. If the continuous cumulative frame number is greater than the preset cumulative frame number threshold, it can be determined that the action judgment amount is greater than the preset judgment threshold; if the continuous cumulative frame number is less than or equal to the preset cumulative frame number threshold, it is determined that the action judgment amount is less than or equal to the preset judgment threshold.

[0119] For example, for a 60FPS gesture sensor, the virtual reality device 500 can set the cumulative frame number threshold to 100 frames, and the corresponding cumulative time of the state in which the angle difference is greater than the preset angle threshold is about 1.5s. Therefore, after determining that the angle difference between a frame of real-time gesture data and the initial gesture data is greater than the preset angle threshold, that is, α1>α0, the virtual reality device 500 can make a judgment on each frame of user gesture data after the frame of real-time gesture data. If within a detection cycle, the accumulated angle difference between 100 consecutive frames of real-time gesture data and the initial gesture data is greater than the preset angle threshold, that is, α2>α0, α3>α0, α4>α0..., it is determined that the cumulative time of the state in which the angle difference is greater than the preset angle threshold exceeds 1.5s, that is, the action judgment amount is greater than the preset judgment threshold.

[0120] Similarly, if within a detection cycle, the angle difference between any frame of real-time posture data and the initial posture data is less than or equal to the preset angle threshold, such as α 10 ≤α0, it is determined that the cumulative time of the state in which the angle difference is greater than the preset angle threshold does not exceed 1.5s, that is, the action judgment amount is less than or equal to the preset judgment threshold.

[0121] In order to facilitate the virtual reality device 500 to perform memory judgment on multiple consecutive frames of real-time posture data, such as Fig.18 As shown, in some embodiments, the virtual reality device 500 can also create a counting variable N in the step of recording the continuous cumulative number of frames with an angle difference greater than a preset judgment threshold, for saving the cumulative number of frames with an angle difference greater than a preset angle threshold state.

[0122] Then, each frame is judged and processed separately. If the angle difference is greater than the preset angle threshold, the cumulative number of the counting variable is increased by one, that is, N=N0+1; if the angle difference is less than or equal to the preset angle threshold, the cumulative number of the counting variable is cleared, that is, N=0. For example, when the virtual reality device 500 detects the update of the real-time posture data of each frame, it determines whether the actual direction corresponding to the current real-time posture data deviates from the screen recording direction corresponding to the initial posture data by direction comparison by more than 20 degrees. If the actual direction deviates from the screen recording direction by more than 20 degrees, the counting variable N is increased by 1 until the continuous cumulative number of frames represented by the counting variable N is counted 100 times, that is, after about 1.5 seconds, the screen recording direction is updated, and then N is cleared and counted again. If the actual direction does not deviate from the screen recording direction by more than 20 degrees, the counting variable N can be directly cleared to start the detection process of the next cycle.

[0123] In the above embodiment, the virtual reality device 500 can perform angle difference judgment on each frame of real-time posture data, and determine whether the screen recording angle needs to be adjusted based on the frame-by-frame judgment result. This judgment method has high accuracy, but the virtual reality device 500 needs to analyze and calculate frame by frame, so that the judgment process requires more computing resources and increases the processor load of the virtual reality device 500. Fig.19 As shown, in order to reduce the processor load, in some embodiments, the virtual reality device 500 can also first compare the angle difference with the preset angle threshold in the step of calculating the action judgment amount, and record the acquisition time of the real-time posture data when the angle difference is greater than the preset angle threshold.

[0124] For example, when it is determined that the angle difference α1 between the real-time posture data (w1, x1, y1, z1) and the initial posture data (w0, x0, y0, z0) is greater than the preset angle threshold α0, the virtual reality device 500 can record the acquisition time corresponding to the real-time posture data (w1, x1, y1, z1), that is: 16:00:01:000.

[0125] After recording the acquisition time, the virtual reality device 500 may start a new detection cycle and extract multiple frames of user posture data at intervals within a preset detection cycle after the acquisition time. The extraction interval of multiple frames of user posture data may be determined based on time or the number of frames. For example, the virtual reality device 500 may extract one frame of real-time posture data every 0.1 seconds within a detection cycle of 1.5 seconds. Alternatively, the virtual reality device 500 may extract one frame of real-time posture data every 10 frames within a detection cycle of 1.5 seconds.

[0126] According to the multiple frames of user posture data extracted at intervals, the virtual reality device 500 can perform a judgment on the extracted multiple frames of user posture data again to determine whether the angle difference between the multiple frames of user posture data and the initial posture data exceeds the preset angle threshold. If the angle difference between the extracted multiple frames of user posture data and the initial posture data is greater than the preset angle threshold, it can be determined that the action judgment amount is greater than the preset judgment threshold; if the angle difference between any frame of user posture data extracted and the initial posture data is less than or equal to the preset angle threshold, it can be determined that the action judgment amount is less than or equal to the preset judgment threshold.

[0127] It can be seen that by extracting multiple frames of user posture data at intervals within a preset detection period, the data processing amount of the virtual reality device 500 can be greatly reduced while meeting the basic action judgment accuracy, and different user needs can be met by controlling the extraction interval time or the number of interval frames. For example, when the user needs to judge with higher accuracy, the interval time can be shortened or the number of interval frames can be reduced to increase the number of samples so that the screen recording angle can be aligned with the actual angle in time. When the user needs to reduce the processing load, the interval time can be extended or the number of interval frames can be increased to reduce the number of samples and reduce the data processing amount.

[0128] It should be noted that, in order to balance the judgment accuracy and processing load, the virtual reality device 500 may also be provided with a load detection module, such as an MCU monitoring module, a memory detection module, a temperature monitoring module, etc. The load detection module can detect the current load state of the virtual reality device 500, and dynamically set the interval time or the interval frame number according to the current load state.

[0129] Based on the above static screen recording method, a virtual reality device 500 is provided in some embodiments of the present application, including: a display, a posture sensor and a controller. The posture sensor is configured to detect user posture data, and the controller is configured to execute the following program steps:

[0130] Receive a control command input by a user for starting screen recording;

[0131] In response to the control instruction, initial posture data and real-time posture data are acquired, wherein the initial posture data is the user posture data recorded at the time of input of the control instruction; the real-time posture data is the user posture data continuously detected by the posture sensor after receiving the control instruction;

[0132] Calculate the action judgment amount, which is the cumulative time when the angle difference between the real-time posture data and the initial posture data is greater than the preset angle threshold state;

[0133] If the motion judgment amount is less than or equal to the preset judgment threshold, the screen recording viewing direction is set using the initial posture data to generate screen recording data;

[0134] If the motion judgment amount is greater than the preset judgment threshold, the real-time posture data is used to update the screen recording viewing direction.

[0135] As can be seen from the above technical solutions, the virtual reality device 500 provided by the present application can execute the static screen recording method through the controller, so that the virtual reality device 500 can detect the initial posture data and the real-time posture data after the user inputs the control command to start the screen recording, and calculate the action judgment amount of the real-time posture data relative to the initial posture data, wherein the action judgment amount is the cumulative time when the angle difference between the real-time posture data and the initial posture data is greater than the preset angle threshold. When the action judgment amount does not exceed the preset judgment threshold, it can be determined that the change of the user's posture data is caused by the user's unconscious small movements, and the initial posture data can still be used to set the screen recording angle direction to generate screen recording data containing stable video content; and when the action judgment amount exceeds the preset judgment threshold, it is determined that the change of the user's posture data is caused by the user's active action, so the real-time posture data can be used to update the screen recording angle direction. The method of the virtual reality device 500 can comprehensively determine the state of angle change and time maintenance, accurately determine the cause of the change of the user's posture data, intelligently lock or unlock the screen recording angle, and make the output video picture more stable.

[0136] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

Claims

1. A virtual reality device, characterized in that: include: monitor; A gesture sensor configured to detect user gesture data; The controller is configured as: Receive a control command input by a user for starting screen recording; In response to the control instruction, initial posture data and real-time posture data are acquired, wherein the initial posture data is user posture data recorded at the time of input of the control instruction; and the real-time posture data is user posture data continuously detected by the posture sensor after receiving the control instruction; Calculating an action judgment amount, the action judgment amount being the cumulative time in which an angle difference between the real-time posture data and the initial posture data is greater than a preset angle threshold; If the action judgment amount is less than or equal to a preset judgment threshold, the initial posture data is used to set the screen recording viewing angle direction of the virtual screen recording camera in the rendering scene to generate screen recording data; If the action judgment amount is greater than the preset judgment threshold, the real-time posture data is used to update the recording viewing angle direction of the virtual recording camera in the rendering scene.

2. The virtual reality device according to claim 1, characterized in that: The controller is further configured to: In the step of responding to the control instruction, parsing the screen recording mode specified in the control instruction, the screen recording mode including static screen recording and dynamic screen recording; If the screen recording mode is static screen recording, obtaining initial posture data and real-time posture data; If the screen recording mode is dynamic screen recording, the real-time posture data is detected by the posture sensor, and the real-time posture data is used to set the viewing angle direction of the screen recording.

3. The virtual reality device according to claim 1, characterized in that: The controller is further configured to: In the step of acquiring the initial posture data and the real-time posture data, a virtual screen recording camera is added to the rendering scene, the rendering scene includes a left-eye camera and a right-eye camera, and the virtual screen recording camera is set at a central position between the left-eye camera and the right-eye camera; Recording the initial posture data; The shooting angle of the virtual screen recording camera is set according to the initial posture data.

4. The virtual reality device according to claim 3, characterized in that: The controller is further configured to: In the step of using the real-time gesture data to update the screen recording viewing angle direction, recording the real-time gesture data; The real-time posture data is used to replace the initial posture data to adjust the shooting angle of the virtual screen recording camera.

5. The virtual reality device according to claim 1, characterized in that: The controller is further configured to: In the step of calculating the action judgment amount, a plurality of frames of the real-time posture data are obtained; Calculating the angle difference between the real-time posture data and the initial posture data of each frame in sequence; Recording the continuous cumulative number of frames in which the angle difference is greater than the preset angle threshold; If the continuous cumulative frame number is greater than a preset cumulative frame number threshold, marking the action judgment amount as greater than the preset judgment threshold; If the continuous accumulated frame number is less than or equal to the preset accumulated frame number threshold, it is marked that the action judgment amount is less than or equal to the preset judgment threshold.

6. The virtual reality device according to claim 5, characterized in that: The controller is further configured to: In the step of recording the number of consecutive accumulated frames in which the angle difference is greater than the preset judgment threshold, creating a counting variable; If the angle difference is greater than a preset angle threshold, the cumulative number of the counting variable is increased by one; If the angle difference is less than or equal to the preset angle threshold, the accumulated number of the counting variable is cleared to zero.

7. The virtual reality device according to claim 1, characterized in that: The controller is further configured to: In the step of calculating the action judgment amount, extracting the direction quaternion A of the initial posture data and the direction quaternion B in the real-time posture data; Take the inverse operation on the direction quaternion A of the initial posture data to obtain the inverse matrix A -1 ; Calculate the direction quaternion B and the inverse matrix A in the real-time posture data -1 to obtain the attitude difference C; The angle difference is calculated according to the posture difference C, and the angle difference θ is calculated according to the following formula: θ=arccos(C·w)*2; Among them, θ is the angle difference; C is the attitude difference; w is the first element value in the quaternion corresponding to the real-time attitude data.

8. The virtual reality device according to claim 7, characterized in that: The controller is further configured to: In the step of calculating the action judgment amount, comparing the angle difference with the preset angle threshold; Recording the acquisition time of the real-time posture data when the angle difference is greater than the preset angle threshold; Extracting multiple frames of user posture data at intervals within a preset detection period after the acquisition time; If the angle differences between the extracted multi-frame user posture data and the initial posture data are all greater than the preset angle threshold, marking the action judgment amount as greater than the preset judgment threshold; If the angle difference between any frame of user posture data extracted and the initial posture data is less than or equal to the preset angle threshold, it is marked that the action judgment amount is less than or equal to the preset judgment threshold.

9. The virtual reality device according to claim 1, characterized in that: The controller is further configured to: Set the output frame rate of screen recording data; A plurality of continuous frame images are captured for the current rendering scene at the output frame rate to generate screen recording data.

10. A static screen recording method, characterized in that: Applied to a virtual reality device, the virtual reality device includes a display, a posture sensor and a controller; wherein the posture sensor is used to detect user posture data; the static screen recording method includes: Receive a control command input by a user for starting screen recording; In response to the control instruction, initial posture data and real-time posture data are acquired, wherein the initial posture data is user posture data recorded at the time of input of the control instruction; and the real-time posture data is user posture data continuously detected by the posture sensor after receiving the control instruction; Calculating an action judgment amount, the action judgment amount being the cumulative time during which the angle difference between the real-time posture data and the initial posture data is greater than a preset angle threshold; If the action judgment amount is less than or equal to a preset judgment threshold, the initial posture data is used to set the screen recording viewing angle direction of the virtual screen recording camera in the rendering scene to generate screen recording data; If the action judgment amount is greater than the preset judgment threshold, the real-time posture data is used to update the recording viewing angle direction of the virtual recording camera in the rendering scene.