A control method for head mounted device, head mounted device and storage medium

By identifying the application scene in the head-mounted device and driving the camera to perform translational and rotational movements, the adaptation problem caused by the fixed camera position and angle in the existing technology is solved, and the universality and user experience of the device are improved.

CN114442810BActive Publication Date: 2024-09-06GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210109173.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-09-06
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

The camera position and pitch angle of existing head-mounted devices are fixed and cannot be adapted to all users, resulting in reduced universality and user experience performance.

Method used

By identifying the current application scenario in the main control unit of the head-mounted device, corresponding control instructions are generated to drive the camera to perform translational and rotational movements, and flexibly adjust the camera posture.

Benefits of technology

It improves the universality and user experience of the head-mounted device, solves the adaptation problem caused by the fixed camera position and angle, and expands the user's observation range and interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114442810B
    Figure CN114442810B
Patent Text Reader

Abstract

The present application discloses a control method for a head-mounted device, which is applied to a main control unit of the head-mounted device, wherein the head-mounted device further comprises a control unit and a camera, and the control method for the head-mounted device comprises: identifying a current application scenario and generating a control instruction corresponding to the current application scenario; sending the control instruction to the control unit so that the control unit drives the camera to perform a preset motion; wherein the preset motion comprises a translation motion and / or a rotation motion. The present application also discloses a head-mounted device and a storage medium, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wearable devices, and in particular to a control method for a head-mounted device, a head-mounted device, and a storage medium. Background Art

[0002] Head-mounted devices such as AR (Augmented Reality) glasses and VR (Virtual Reality) helmets can provide users with a virtual world that interacts with the real world.

[0003] Head-mounted devices are usually equipped with cameras for information collection. In the prior art, two cameras are fixed on the same base plate, and the pitch angle and position of the cameras are fixed, which cannot be adapted to all users.

[0004] Therefore, how to flexibly adjust the camera posture of the head-mounted device to improve the universality of the head-mounted device is a technical problem that technical personnel in this field currently need to solve. Summary of the invention

[0005] The purpose of the present application is to provide a control method for a head-mounted device, a head-mounted device and a storage medium, which can flexibly adjust the camera posture of the head-mounted device and improve the universality of the head-mounted device.

[0006] In order to solve the above technical problems, the present application provides a control method of a head mounted device, which is applied to a main control unit of the head mounted device. The head mounted device further includes a control unit and a camera. The control method of the head mounted device includes:

[0007] Identify the current application scenario and generate a control instruction corresponding to the current application scenario;

[0008] The control instruction is sent to the control unit so that the control unit drives the camera to perform a preset movement; wherein the preset movement includes a translation movement and / or a rotation movement.

[0009] Optionally, the head-mounted device includes a left camera corresponding to the user's left eye, and a right camera corresponding to the user's right eye; the control unit includes a left control unit respectively connected to the left camera and the main control unit, and a right control unit respectively connected to the right camera and the main control unit.

[0010] Optionally, identifying a current application scenario and generating a control instruction corresponding to the current application scenario includes:

[0011] Determining whether a deviation correction instruction is received;

[0012] If yes, determining that the current application scenario is a camera deviation correction scenario, and generating a control instruction corresponding to the camera deviation correction scenario;

[0013] Accordingly, sending the control instruction to the control unit so that the control unit drives the camera to perform a preset movement includes:

[0014] The control instructions are sent to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to move and the right control unit drives the right camera to move.

[0015] Optionally, the identifying a current application scenario and generating a control instruction corresponding to the current application scenario includes:

[0016] Acquiring motion data of the head mounted device;

[0017] Determining whether there is a rotation action with a rotation angle greater than a preset value according to the motion data;

[0018] If yes, determining that the current application scene is a rotational motion scene, and setting the rotation angle and rotation direction of the rotation action as scene parameters of the rotational motion scene;

[0019] generating a rotation control instruction corresponding to the scene parameter of the rotation motion scene;

[0020] Accordingly, sending the control instruction to the control unit so that the control unit drives the camera to perform a preset movement includes:

[0021] The rotation control instruction is sent to the control unit so that the control unit drives the camera to rotate; wherein the rotation direction of the camera is the same as the rotation direction of the rotation action, and the rotation angle of the camera is positively correlated with the rotation angle of the rotation action.

[0022] Optionally, judging whether there is a rotation action with a rotation angle greater than a preset value according to the motion data includes:

[0023] Determining the plane where the rotation action is located according to the motion data;

[0024] If the plane where the rotation action is located is a horizontal plane, determining whether the rotation angle of the rotation action is greater than a first preset value; if so, determining that there is the rotation action with a rotation angle greater than the preset value; if not, determining that there is no rotation action with a rotation angle greater than the preset value;

[0025] If the plane where the rotation action is located is a vertical plane, determine whether the rotation angle of the rotation action is greater than a second preset value; if so, determine that there is a rotation action with a rotation angle greater than the preset value; if not, determine that there is no rotation action with a rotation angle greater than the preset value.

[0026] Optionally, after sending the control instruction to the control unit, the method further includes:

[0027] The actual motion data fed back by the control unit is received, and closed-loop control of the control unit is implemented according to the actual motion data.

[0028] The present application also provides a head mounted device, the head mounted device comprising a main control unit, a control unit and a camera;

[0029] Among them, the main control unit is used to identify the current application scenario and generate control instructions corresponding to the current application scenario; it is also used to send the control instructions to the control unit so that the control unit drives the camera to perform a preset movement; wherein the preset movement includes translational movement and / or rotational movement.

[0030] Optionally, the head mounted device is a head mounted device with a 6Dof function.

[0031] Optionally, the control unit includes a connector and a drive motor, the main control unit is connected to the connector, the connector is connected to the drive motor, the drive motor is connected to a rotating mechanism, and the camera is mounted on the rotating mechanism.

[0032] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps of the control method of the head mounted device are implemented.

[0033] The present application provides a control method for a head-mounted device, which is applied to a main control unit of the head-mounted device. The head-mounted device also includes a control unit and a camera. The control method for the head-mounted device includes: identifying a current application scenario and generating a control instruction corresponding to the current application scenario; sending the control instruction to the control unit so that the control unit drives the camera to perform a preset movement; wherein the preset movement includes a translation movement and / or a rotation movement.

[0034] The head-mounted device provided by the present application includes a control unit and a camera, which generates corresponding control instructions according to the current application scenario and sends the control instructions to the control unit. The control unit can drive the camera to perform translational movement and / or rotational movement according to the control instructions to change the position and / or posture of the camera. The above scheme can control the camera to perform preset movements according to the current application scenario, can flexibly adjust the camera posture of the head-mounted device, and improve the universality of the head-mounted device. The present application also provides a head-mounted device and a storage medium, which have the above-mentioned beneficial effects, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1 A flowchart of a method for controlling a head mounted device provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the appearance of a head mounted device provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of the control relationship of a head mounted device provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the camera posture adjustment principle provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of a 6Dof camera moving on a bracket provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of an interface for a camera control solution for a head mounted device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] See below Figure 1 , Figure 1A flowchart of a method for controlling a head mounted device provided in an embodiment of the present application.

[0044] Specific steps may include:

[0045] S101: Identify a current application scenario, and generate a control instruction corresponding to the current application scenario.

[0046] This embodiment can be applied to the main control unit of the head-mounted device, such as a CPU (central processing unit), an MCU (Microcontroller Unit), etc. The head-mounted device may include a control unit, a camera, and a mainboard, the control unit is mounted on the mainboard, the camera is mounted on the control unit, and the control unit can drive the camera to move. The number of cameras in the head-mounted device may be one or more, and one control unit can drive one or more cameras to move.

[0047] This embodiment can identify the current application scenario based on information collected by sensors or received user instructions. The above sensors may include acceleration sensors and / or gyroscopes, and user instructions may include deviation correction instructions, field of view adjustment instructions, etc. Specifically, the main control unit can detect the movement direction of the head-mounted device based on the information collected by the sensors, and then use the scene corresponding to the movement direction (such as shaking the head or looking up) as the current application scenario; the main control unit can use the scene corresponding to the user instruction (such as the camera deviation correction scene or the field of view adjustment scene) as the current application scenario.

[0048] This embodiment can pre-set the mapping relationship between application scenarios and control instructions, and generate corresponding control instructions based on the identified current application scenario; for example, if the current application scenario is a rotational motion scene, a control instruction for driving the camera's rotational motion can be generated; if the current application scenario is a camera deviation correction scene or a field of view adjustment scene, a control instruction for driving the camera's translational motion and / or rotational motion can be generated.

[0049] S102: Sending the control instruction to the control unit so that the control unit drives the camera to perform a preset movement.

[0050] Among them, the main control unit and the control unit can be both set on the main board. The main control unit sends control instructions to the control unit. The control instructions may include control parameters. The control unit can drive the camera to perform preset movements according to the control instructions. The above preset movements include translational movements and / or rotational movements.

[0051] Furthermore, after sending the control instruction to the control unit, actual motion data fed back by the control unit may be received, and closed-loop control of the control unit may be implemented according to the actual motion data to improve control accuracy.

[0052] The head mounted device provided in this embodiment includes a control unit and a camera, which generates corresponding control instructions according to the current application scenario and sends the control instructions to the control unit. The control unit can drive the camera to perform translational movement and / or rotational movement according to the control instructions to change the position and / or posture of the camera. The above scheme can control the camera to perform preset movements according to the current application scenario, can flexibly adjust the camera posture of the head mounted device, and improve the universality of the head mounted device.

[0053] As for Figure 1 Further introduction to the corresponding embodiments: for a scene with two cameras, the head-mounted device includes a left camera corresponding to the user's left eye, and a right camera corresponding to the user's right eye; accordingly, a corresponding control unit can be set for each camera, and the above-mentioned control unit includes a left control unit respectively connected to the left camera and the main control unit, and a right control unit respectively connected to the right camera and the main control unit, the left control unit is used to drive the movement of the left camera, and the right control unit is used to drive the movement of the right camera.

[0054] After the head-mounted device is used for a long time, there will be a large cumulative deviation between the left camera and the right camera. In this embodiment, a timer can be used to record the time of the last deviation correction. When the time difference between the last deviation correction time and the current time is greater than the preset time difference, the timer can send a deviation correction instruction to the main control unit. As another feasible implementation method, the deviation correction instruction can also be a command sent by the user to the head-mounted device.

[0055] Specifically, Figure 1 The corresponding embodiment can achieve deviation correction in the following way: determine whether a deviation correction instruction is received; if so, determine that the current application scenario is a camera deviation correction scenario, and generate a control instruction corresponding to the camera deviation correction scenario; send the control instruction to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to move, and the right control unit drives the right camera to move.

[0056] The deviation correction instruction can be a position deviation correction instruction, an angle deviation correction instruction or a posture deviation correction instruction. Correspondingly, there are the following deviation correction scenarios:

[0057] Scenario 1, Figure 1 The corresponding embodiment can realize position deviation correction in the following manner:

[0058] Step A1: Determine whether a position deviation correction instruction is received; if so, proceed to step A2; if not, end the process.

[0059] Step A2: determining that the current application scenario is a camera position deviation correction scenario, and generating a translation control instruction corresponding to the camera position deviation correction scenario.

[0060] Step A3: Send the translation control instruction to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to translate and the right control unit drives the right camera to translate.

[0061] Scenario 2, Figure 1 The corresponding embodiment can realize angle deviation correction in the following manner:

[0062] Step B1: Determine whether an angle deviation correction instruction is received; if so, proceed to step B2; if not, end the process.

[0063] Step B2: determining that the current application scenario is a camera angle deviation correction scenario, and generating a rotation control instruction corresponding to the camera angle deviation correction scenario.

[0064] Step B3: Send the rotation control instruction to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to rotate and the right control unit drives the right camera to rotate.

[0065] Scenario 3, Figure 1 The corresponding embodiment can realize posture deviation correction in the following ways:

[0066] Step C1: Determine whether a posture deviation correction instruction is received; if so, proceed to step C2; if not, end the process.

[0067] Step C2: determining that the current application scenario is a camera posture deviation correction scenario, and generating translation and rotation control instructions corresponding to the camera posture deviation correction scenario.

[0068] Step C3: Send translation and rotation control instructions to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to translate and rotate, and the right control unit drives the right camera to translate and rotate.

[0069] Through the above method, the deviation between the left camera and the right camera can be corrected to improve the user experience of the head-mounted device.

[0070] As for Figure 1Further introduction to the corresponding embodiment: Due to individual differences in the height and head swing amplitude of the wearer of the head mounted device, it is possible that the user cannot observe the desired area after exercise. This embodiment can adaptively adjust the rotation angle of the camera according to the user's exercise situation to expand the user's observation range. The specific process is as follows:

[0071] Step D1: Acquire motion data of the head mounted device.

[0072] Step D2: determine whether there is a rotation action with a rotation angle greater than a preset value according to the motion data; if so, proceed to D3; if not, end the process.

[0073] Step D3: determining that the current application scene is a rotational motion scene, and setting the rotation angle and rotation direction of the rotation action as scene parameters of the rotational motion scene.

[0074] Step D4: generating a rotation control instruction corresponding to the scene parameter of the rotation motion scene.

[0075] Step D5: Sending the rotation control instruction to the control unit so that the control unit drives the camera to rotate.

[0076] The rotation direction of the camera is the same as the rotation direction of the rotation action, and the rotation angle of the camera is positively correlated with the rotation angle of the rotation action.

[0077] Furthermore, this embodiment can determine whether there is a rotation action with a rotation angle greater than a preset value in the following manner: determine the plane where the rotation action is located according to the motion data; if the plane where the rotation action is located is a horizontal plane, determine whether the rotation angle of the rotation action is greater than a first preset value; if so, determine that there is a rotation action with a rotation angle greater than the preset value; if not, determine that there is no rotation action with a rotation angle greater than the preset value; if the plane where the rotation action is located is a vertical plane, determine whether the rotation angle of the rotation action is greater than a second preset value; if so, determine that there is a rotation action with a rotation angle greater than the preset value; if not, determine that there is no rotation action with a rotation angle greater than the preset value.

[0078] In order to achieve a good combination of the real environment and the virtual world, there are head-mounted devices with 6Dof (degrees of freedom tracking) function in the relevant technology. The 6Dof function provides users with unprecedented interactive experience and control over the virtual world. The 6Dof function is the basis for establishing a connection between the virtual world and the real world, and it is also the prerequisite for AR to achieve a subversive experience. However, taking the binocular camera as an example, the main limiting factors of head-mounted devices with 6Dof function are as follows: (1) It is necessary to ensure that the two cameras are relatively fixed to reduce the mutual movement between each other. Therefore, after the positions of the two cameras are determined, they need to be fixed on the same base plate. When there is a long-term cumulative deviation, the distance cannot be adjusted. (2) The pitch angles of the two cameras are fixed and cannot adapt to the height of all people, resulting in a decrease in the universality and experience performance of the product. It can be seen that when the positions and placement angles of the two cameras are also fixed, the FOV (Field of view) value of the product will also be fixed. The direct impact of the fixed camera position and angle is that the horizontal detection distance and vertical detection distance of the head-mounted device are fixed. For example, when the head-mounted device is tilted downward by 12°, the floor 1.5 meters away can be seen, and it can only detect data beyond 1.5 meters. However, for the scene using the manual tracking function, it is necessary to ensure that the head-mounted device is tilted downward by 22°, and the floor 1 meter away is also clearly visible, and the hands and elbows can appear in the picture. It can be seen that the camera position and angle of the existing head-mounted device are fixed, resulting in problems such as limited morphological design, limited structural development and design, reduced user experience performance, and a narrow range of compatible users. In response to the defects existing in the above-mentioned existing head-mounted devices, the embodiments of the present application provide a new head-mounted device with a 6Dof function, and provide a camera relative position adjustment scheme and an implementation scheme for adjustable camera pitch angles.

[0079] See also Figure 2 and Figure 3 , Figure 2 This is a schematic diagram of the appearance of a head mounted device provided in an embodiment of the present application. Figure 3 A schematic diagram of the control relationship of a head mounted device provided in an embodiment of the present application. Figure 2 and Figure 3The head mounted device shown is a head mounted device with a 6Dof function. In this embodiment, the camera on the head mounted device that participates in realizing the 6Dof function is called a 6Dof camera. The head mounted device in this embodiment is provided with a left 6Dof camera 1 and a right 6Dof camera 2, and both the left 6Dof camera and the right 6Dof camera are fixed on a front frame bracket 3. The main control unit sends control information to the left 6Dof camera and the right 6Dof camera, and the left 6Dof camera and the right 6Dof camera can transmit the captured image information to the main control unit, thereby realizing the interaction process of the AR glasses.

[0080] See also Figure 4 , Figure 4 A schematic diagram of the camera posture adjustment principle provided in an embodiment of the present application, in which a control unit 4 and a control unit 5 are added to the head-mounted device. The control unit 4 mainly includes a drive motor and a connector, and the control unit 5 mainly includes a drive motor and a connector. The main control unit can send control instructions to the drive motor through the connector; the drive motor realizes the position and angle adjustment of the left 6Dof camera (i.e., the left camera above) and the right 6Dof camera (i.e., the right camera above) by horizontal movement and vertical rotation. For example, when the gesture recognition function is required, the main control unit first sends a control signal to the left 6Dof camera and the right 6Dof camera, and the two cameras upload the data after taking pictures to the main control unit. When the main control unit analyzes the actual picture taking results and compares them with the algorithm requirements and finds that the current collected data does not meet the requirements, the main control unit calculates the distance D that needs to be moved between the cameras, and the angle θ that the two cameras need to pitch, and then sends the adjustment control instruction to the control unit.

[0081] The process of the control unit controlling the 6Dof camera movement is as follows:

[0082] After the main control unit sends instructions to control unit 4 and control unit 5, control unit 4 and control unit 5 drive the rotating mechanism to move. Figure 5 , Figure 5 A schematic diagram of the movement of a 6Dof camera on a bracket provided in an embodiment of the present application.

[0083] When you need to adjust the horizontal distance between the two cameras, Figure 5 The left 6Dof camera 1 and the right 6Dof camera 2 move along the front frame bracket 3, the left 6Dof camera 1 moves horizontally in direction A, and the right 6Dof camera moves horizontally in direction B. The above method can solve the problem that the FOV is limited to a fixed value due to the fixed distance between the two cameras in the whole machine. This solution can be used to solve the problem of different FOV angle requirements in different application scenarios.

[0084] When the horizontal spacing is adjusted in place and there is a need for rotation (or pitch), the main control unit sends instructions to the control unit 4 and the control unit 5, and the control unit drives the rotation mechanism to rotate, and the left 6Dof camera and the right 6Dof camera rotate (or pitch) along the front frame bracket 3. The rotation (or pitch) direction of the left 6Dof camera is Figure 5 In C, the direction of rotation (or pitch) of the right 6Dof camera is Figure 5 For example, for gesture recognition applications, this can solve the problem that the camera's downward angle is too small, resulting in the inability to capture hands and arms when taking pictures. Similarly, the upward angle can also be solved through this adjustment method.

[0085] See also Figure 6 , Figure 6 This is a schematic diagram of an interface of a camera control solution for a head-mounted device provided in an embodiment of the present application. The functions of the components of the head-mounted device are as follows:

[0086] The left 6Dof camera 1 receives the control instruction of the main control unit 6 to take pictures and transmits the data to the main control unit 6. The left 6Dof camera can realize horizontal movement and rotation (or pitch) movement under the drive of the control unit 4. The right 6Dof camera 2 receives the control instruction of the main control unit 6 to take pictures and transmits the data to the main control unit 6. The right 6Dof camera can realize horizontal movement and rotation (or pitch) movement under the drive of the control unit 5. The movements of the left 6Dof camera 1 and the right 6Dof camera 2 are all moved and rotated by the front shell bracket 3.

[0087] The control unit 4 corresponding to the left 6Dof camera receives the control instruction of the main control unit 6 to drive the left 6Dof camera to move, and can feed back the adjustment data to the main control unit 6 to realize closed-loop control. The control unit 4 can be a drive motor or other drive device. The control unit 5 corresponding to the right 6Dof camera receives the control instruction of the main control unit 6 to drive the 6Dof camera to move, and can feed back the adjustment data to the main control unit 6 to realize closed-loop control. The control unit 5 can be a drive motor or other drive device.

[0088] The rotation (or pitch) direction of the left 6Dof camera is C, and its rotation angle is limited by the control unit of the left 6Dof camera; the horizontal movement direction of the left 6Dof camera is A, and its moving distance is limited by the control unit of the left 6Dof camera; the rotation (or pitch) direction of the right 6Dof camera is D, and its rotation angle is limited by the control unit of the right 6Dof camera; the horizontal movement direction of the right 6Dof camera is B, and its moving distance is limited by the control unit of the right 6Dof camera.

[0089] The main control unit 6 is responsible for issuing control instructions to the control unit 4, the control unit 5, the left 6Dof camera 1 and the right 6Dof camera 2. The adjustment of the horizontal data and the rotation (or pitch) direction of the left 6Dof camera and the right 6Dof camera is also completed by the main control unit. The main control unit can undertake the 6Dof data fusion processing and algorithm processing to realize the interaction between the head-mounted device and the person.

[0090] The above solution can provide solution support for engineers during the product development process and provide a good user wearing experience by adjusting the dual cameras of the head-mounted device.

[0091] An embodiment of the present application provides a head-mounted device, which includes a main control unit, a control unit and a camera; wherein the main control unit is used to identify a current application scenario and generate a control instruction corresponding to the current application scenario; and is also used to send the control instruction to the control unit so that the control unit drives the camera to perform a preset movement; wherein the preset movement includes a translational movement and / or a rotational movement.

[0092] The head mounted device provided in this embodiment includes a control unit and a camera, which generates corresponding control instructions according to the current application scenario and sends the control instructions to the control unit. The control unit can drive the camera to perform translational movement and / or rotational movement according to the control instructions to change the position and / or posture of the camera. The above scheme can control the camera to perform preset movements according to the current application scenario, can flexibly adjust the camera posture of the head mounted device, and improve the universality of the head mounted device.

[0093] Optionally, the head mounted device is a head mounted device with a 6Dof function.

[0094] Optionally, the control unit includes a connector and a drive motor, the main control unit is connected to the connector, the connector is connected to the drive motor, the drive motor is connected to a rotating mechanism, and the camera is mounted on the rotating mechanism.

[0095] Furthermore, the head-mounted device includes a left camera corresponding to the user's left eye, and a right camera corresponding to the user's right eye; the control unit includes a left control unit respectively connected to the left camera and the main control unit, and a right control unit respectively connected to the right camera and the main control unit.

[0096] Further, the main control unit identifies the current application scenario and generates a control instruction corresponding to the current application scenario, including: determining whether a deviation correction instruction is received; if so, determining that the current application scenario is a camera deviation correction scenario, and generating a control instruction corresponding to the camera deviation correction scenario;

[0097] Correspondingly, the process in which the main control unit sends the control instruction to the control unit so that the control unit drives the camera to perform a preset movement includes: sending the control instruction to the left control unit and the right control unit respectively so that the left control unit drives the left camera to move and the right control unit drives the right camera to move.

[0098] Furthermore, the process in which the main control unit identifies the current application scene and generates a control instruction corresponding to the current application scene includes: obtaining motion data of the head mounted device; judging whether there is a rotation action with a rotation angle greater than a preset value according to the motion data; if so, judging that the current application scene is a rotation motion scene, and setting the rotation angle and rotation direction of the rotation action as scene parameters of the rotation motion scene; generating a rotation control instruction corresponding to the scene parameters of the rotation motion scene;

[0099] Correspondingly, the process in which the main control unit sends the control instruction to the control unit so that the control unit drives the camera to perform a preset movement includes: sending the rotation control instruction to the control unit so that the control unit drives the camera to rotate; wherein the rotation direction of the camera is the same as the rotation direction of the rotation action, and the rotation angle of the camera is positively correlated with the rotation angle of the rotation action.

[0100] Furthermore, the process of the main control unit judging whether there is a rotation action with a rotation angle greater than a preset value based on the motion data includes: determining the plane where the rotation action is located based on the motion data; if the plane where the rotation action is located is a horizontal plane, judging whether the rotation angle of the rotation action is greater than a first preset value; if so, judging that there is a rotation action with a rotation angle greater than the preset value; if not, judging that there is no rotation action with a rotation angle greater than the preset value; if the plane where the rotation action is located is a vertical plane, judging whether the rotation angle of the rotation action is greater than a second preset value; if so, judging that there is a rotation action with a rotation angle greater than the preset value; if not, judging that there is no rotation action with a rotation angle greater than the preset value.

[0101] Furthermore, after sending the control instruction to the control unit, the main control unit also performs the following operations: receiving actual motion data fed back by the control unit, and implementing closed-loop control of the control unit according to the actual motion data.

[0102] Since the embodiments of the head-mounted device part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the head-mounted device part, and will not be repeated here.

[0103] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0104] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0105] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for controlling a head mounted device, It is characterized in that A main control unit applied to a head mounted device, the head mounted device further comprising a control unit and a camera, the head mounted device being a head mounted device with a 6Dof function, the control unit comprising a connector and a drive motor, the main control unit being connected to the connector, the connector being connected to the drive motor, the drive motor being connected to a rotating mechanism, the camera being mounted on the rotating mechanism, the camera comprising a left camera corresponding to a user's left eye and a right camera corresponding to a user's right eye, the control unit comprising a left control unit respectively connected to the left camera and the main control unit, and a right control unit respectively connected to the right camera and the main control unit; The process of the main control unit implementing the control method of the head mounted device includes: Identify the current application scenario and generate a control instruction corresponding to the current application scenario; Sending the control instruction to the control unit so that the control unit drives the camera to perform translational movement and / or rotational movement; Among them, identifying the current application scenario and generating a control instruction corresponding to the current application scenario includes: Acquiring motion data of the head mounted device; Determining whether there is a rotation action with a rotation angle greater than a preset value according to the motion data; If yes, determining that the current application scene is a rotational motion scene, and setting the rotation angle and rotation direction of the rotation action as scene parameters of the rotational motion scene; generating a rotation control instruction corresponding to the scene parameter of the rotation motion scene; The step of sending the control instruction to the control unit so that the control unit drives the camera to perform translational movement and / or rotational movement includes: The rotation control instruction is sent to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to rotate and the right control unit drives the right camera to rotate; wherein the rotation direction of the left camera and the right camera is the same as the rotation direction of the rotation action, and the rotation angle of the left camera and the right camera is positively correlated with the rotation angle of the rotation action.

2. The method for controlling a head mounted device according to claim 1, It is characterized in that The identifying the current application scenario and generating a control instruction corresponding to the current application scenario includes: Determining whether a deviation correction instruction is received; If yes, determining that the current application scenario is a camera deviation correction scenario, and generating a control instruction corresponding to the camera deviation correction scenario; Accordingly, sending the control instruction to the control unit so that the control unit drives the camera to perform a preset movement includes: The control instructions are sent to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to move and the right control unit drives the right camera to move.

3. The method for controlling a head mounted device according to claim 1, It is characterized in that Determining whether there is a rotation motion with a rotation angle greater than a preset value according to the motion data includes: Determining the plane where the rotation action is located according to the motion data; If the plane where the rotation action is located is a horizontal plane, determining whether the rotation angle of the rotation action is greater than a first preset value; if so, determining that there is the rotation action with a rotation angle greater than the preset value; if not, determining that there is no rotation action with a rotation angle greater than the preset value; If the plane where the rotation action is located is a vertical plane, determine whether the rotation angle of the rotation action is greater than a second preset value; if so, determine that there is a rotation action with a rotation angle greater than the preset value; if not, determine that there is no rotation action with a rotation angle greater than the preset value.

4. The method for controlling a head mounted device according to claim 1, It is characterized in that After sending the control instruction to the control unit, the method further includes: The actual motion data fed back by the control unit is received, and closed-loop control of the control unit is implemented according to the actual motion data.

5. A head-mounted device, It is characterized in that The head-mounted device comprises a main control unit, a control unit and a camera. The head-mounted device is a head-mounted device with a 6Dof function. The control unit comprises a connector and a drive motor. The main control unit is connected to the connector, the connector is connected to the drive motor, the drive motor is connected to a rotating mechanism, the camera is mounted on the rotating mechanism, and the camera comprises a left camera corresponding to the user's left eye and a right camera corresponding to the user's right eye; the control unit comprises a left control unit respectively connected to the left camera and the main control unit, and a right control unit respectively connected to the right camera and the main control unit; The main control unit identifies the current application scenario and generates a control instruction corresponding to the current application scenario, including: Acquiring motion data of the head mounted device; Determining whether there is a rotation action with a rotation angle greater than a preset value according to the motion data; If yes, determining that the current application scene is a rotational motion scene, and setting the rotation angle and rotation direction of the rotation action as scene parameters of the rotational motion scene; generating a rotation control instruction corresponding to the scene parameter of the rotation motion scene; The main control unit sends the control instruction to the control unit so that the control unit drives the camera to perform translational movement and / or rotational movement, including: The rotation control instruction is sent to the left control unit and the right control unit respectively, so that the left control unit drives the left camera to rotate and the right control unit drives the right camera to rotate; wherein the rotation direction of the left camera and the right camera is the same as the rotation direction of the rotation action, and the rotation angle of the left camera and the right camera is positively correlated with the rotation angle of the rotation action.

6. A storage medium, It is characterized in that The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the control method of the head mounted device according to any one of claims 1 to 4 are implemented.