Intelligent glasses control method, device and system, readable storage medium and terminal
By obtaining the head posture information of the smart glasses wearer and determining the anchor point offset information, menu selection without key operations on the display interface is realized, which solves the problems of complex structure of smart glasses and poor user operating experience, and improves the operating experience.
Patent Information
- Application Number
- CN202310332533.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
The structural design of smart glasses is complex and users cannot directly see the buttons, resulting in poor user experience. Users need to be familiar with the location and configuration of the buttons for blind operation.
By obtaining the head posture information of the smart glasses wearer, the anchor point offset information is determined, and the anchor point position is refreshed on the display interface based on this information, and the menu is selected to achieve no need to press buttons.
It simplifies the structural design of smart glasses, improves the user operating experience, and allows the wearer to directly select menus by adjusting the head posture.
Smart Images

Figure CN118732259A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of smart device control, and in particular to a control method, device and system for smart glasses, a readable storage medium, and a terminal. Background Art
[0002] Virtual Reality (VR) is a technology that uses electronic devices to create a realistic and interactive world, giving people an immersive feeling. Augmented Reality (AR) is a technology that combines the real world with virtual objects, integrating virtual objects into the real world and enhancing the content and interactivity of images in the real world.
[0003] With the continuous updating and iteration of electronic technology and optical devices, the software and hardware of VR and AR devices have gradually improved and matured, and their applications have become more and more extensive. At first, VR and AR were mainly used in a few specific fields such as game entertainment and scene display, but now they have gradually expanded to home office, design and development, and industrial production.
[0004] VR devices and AR devices represented by smart glasses can project a display screen, which can be used to display operable menus, images or videos, etc. When a user needs to operate the display menu of the display screen, it is usually necessary to operate some buttons on the smart glasses. On the one hand, it is necessary to set additional buttons on the smart glasses, which makes the structural design of the smart glasses complicated; on the other hand, because smart glasses are usually worn on the head, users cannot directly see the buttons and usually need to operate blindly, which requires users to be familiar with the location and operation configuration of the buttons, affecting the user's operation experience. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a new control method for smart glasses to simplify the structural design of the smart glasses and improve the user operation experience.
[0006] To achieve the above-mentioned purpose, an embodiment of the present invention provides a control method for smart glasses, including: obtaining head posture information of a wearer of the smart glasses, the head posture information including position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, the first direction is parallel to the length direction of a display interface of the smart glasses, the second direction is parallel to the width direction of the display interface, and the first direction is perpendicular to the second direction; determining anchor point offset information according to the head posture information, the anchor point offset information including a length direction offset, a width direction offset and an anchor point offset direction; obtaining a current position of an anchor point on the display interface; according to the anchor point offset information and the anchor point offset direction, refreshing the current position of the anchor point to obtain a refresh position of the anchor point on the display interface; determining a selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
[0007] Optionally, obtaining the head posture information of the wearer of the smart glasses includes: obtaining multiple frames of head images of the wearer within a preset time length, and selecting multiple frames of specified images from the multiple frames of head images; performing head posture recognition on each frame of the specified image to obtain head posture information corresponding to each frame of the specified image.
[0008] Optionally, selecting a plurality of frames of designated images from the plurality of frames of head images includes: selecting the plurality of frames of designated images from the plurality of frames of head images in sequence and at intervals according to a preset number of frames.
[0009] Optionally, determining the offset information based on the head posture information includes: determining the wearer's head offset direction, the offset in the first direction, and the offset in the second direction based on the head posture information corresponding to an adjacent specified image; determining the anchor point offset direction based on the head offset direction; determining the length direction offset based on the offset in the first direction, and determining the width direction offset based on the offset in the second direction.
[0010] Optionally, determining the length direction offset according to the offset in the first direction, and determining the width direction offset according to the offset in the second direction, includes: obtaining the length direction offset corresponding to the offset in the first direction according to a conversion relationship between the offset in the first direction and the offset in the length direction indicated by a preset first mapping relationship; obtaining the width direction offset corresponding to the offset in the second direction according to a conversion relationship between the offset in the second direction and the offset in the width direction indicated by a preset second mapping relationship.
[0011] Optionally, obtaining the head posture information of the wearer of the smart glasses includes: receiving the head posture information of the wearer sent by a smart terminal, the smart terminal being pre-associated with the smart glasses; or, obtaining the acceleration and angular velocity of the smart glasses, and determining the head posture information of the wearer based on the acceleration and angular velocity.
[0012] Optionally, determining the selected menu based on the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface includes: obtaining selected areas corresponding to each menu displayed on the display interface; and determining the menu corresponding to the selected area where the refresh position of the anchor point is located as the selected menu.
[0013] Optionally, determining the menu corresponding to the selected area where the refresh position of the anchor point is located as the selected menu includes one or more of the following: detecting that the stay time of the anchor point in the selected area reaches a set time, and using the menu corresponding to the selected area where the stay time reaches the set time as the selected menu; receiving a selection instruction, and using the menu corresponding to the selected area where the anchor point is located when the selection instruction is received as the selected menu.
[0014] Optionally, the control method of the smart glasses also includes: after determining the selected menu, performing any one of the following operations on the selected menu: performing a zooming operation on the selected menu, wherein the size of the selected menu after the zooming operation is larger than the size of an unselected menu; performing a color changing operation on the selected menu, wherein the color of the selected menu after the color changing operation is different from the color of an unselected menu.
[0015] Optionally, the control method of the smart glasses also includes: after determining that a menu is selected, obtaining a hand image, and performing gesture recognition on the hand image to determine a corresponding gesture action; and performing a control operation on the selected menu according to a control instruction corresponding to the gesture action under the selected menu.
[0016] Optionally, the control instruction corresponding to the selected menu according to the gesture action includes: acquiring menu attributes of the selected menu; and determining the corresponding control instruction according to the menu attributes of the selected menu.
[0017] An embodiment of the present invention also provides a control system of smart glasses, including: a smart terminal, used to send head posture information of a wearer of the smart glasses, the head posture information including position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, the first direction is parallel to the length direction of the display interface of the smart glasses, the second direction is parallel to the width direction of the display interface, and the first direction is perpendicular to the second direction; smart glasses, used to obtain the head posture information of the wearer, determine anchor point offset information according to the head posture information, the anchor point offset information including a length direction offset, a width direction offset and an anchor point offset direction; obtain the current position of the anchor point on the display interface; according to the anchor point offset information, refresh the current position of the anchor point according to the anchor point offset direction to obtain the refresh position of the anchor point on the display interface; determine the selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
[0018] An embodiment of the present invention further provides a control device for smart glasses, comprising: a head posture information acquisition unit, used to acquire head posture information of a wearer of the smart glasses, the head posture information including position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction; a determination unit, used to determine anchor point offset information according to the head posture information, the anchor point offset information including a length direction offset, a width direction offset and an anchor point offset direction; a position acquisition unit, used to acquire a current position of an anchor point on the display interface; a refresh unit, used to refresh the current position of the anchor point according to the anchor point offset information and the anchor point offset direction to obtain a refresh position of the anchor point on the display interface; a selection unit, used to determine a selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
[0019] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for controlling smart glasses are executed.
[0020] An embodiment of the present invention further provides a terminal, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and wherein the processor executes the steps of any of the above-mentioned smart glasses control methods when running the computer program.
[0021] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:
[0022] The embodiment of the present invention provides a control method for smart glasses, by acquiring head posture information of a wearer of the smart glasses, the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, the first direction is parallel to the length direction of the smart glasses display interface, the second direction is parallel to the width direction of the display interface, and the first direction is perpendicular to the second direction; determining anchor point offset information according to the head posture information, the anchor point offset information includes length direction offset, width direction offset and anchor point offset direction; acquiring the current position of the anchor point on the display interface; refreshing the current position of the anchor point according to the anchor point offset information and the anchor point offset direction to obtain the refresh position of the anchor point on the display interface; determining the selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface. In this way, the wearer can refresh the position of the anchor point on the display interface by adjusting the head posture, so as to adjust the anchor point to the desired position and determine the selected menu, without the need for buttons on the smart glasses, which can simplify the structure of the smart glasses and improve the user operation experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of a control method of smart glasses in an embodiment of the present invention;
[0024] Figure 2 is a menu distribution diagram of a smart glasses display interface in an embodiment of the present invention;
[0025] Figure 3 Schematic diagram of the structure of a control device of smart glasses in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] As mentioned above, VR devices and AR devices represented by smart glasses can project a display screen, which can be used to display an operable menu, or to display images or videos, etc. When a user needs to operate the display menu of the display screen, it is usually necessary to operate some buttons on the smart glasses. On the one hand, it is necessary to set additional buttons on the smart glasses, which makes the structural design of the smart glasses complicated; on the other hand, since smart glasses are usually worn on the head, users cannot directly see the buttons, and usually need to operate blindly, which requires users to be familiar with the location and operation configuration of the buttons, affecting the user's operating experience.
[0027] To solve the above problems, in an embodiment of the present invention, by obtaining the head posture information of the wearer of the smart glasses, the head posture information includes the position information of the wearer's head in the first direction and the position information of the wearer's head in the second direction, the first direction is parallel to the length direction of the smart glasses display interface, the second direction is parallel to the width direction of the display interface, and the first direction is perpendicular to the second direction; according to the head posture information, the anchor point offset information is determined, and the anchor point offset information includes the length direction offset, the width direction offset and the anchor point offset direction; the current position of the anchor point on the display interface is obtained; according to the anchor point offset information, according to the anchor point offset direction, the current position of the anchor point is refreshed to obtain the refresh position of the anchor point on the display interface; according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface, the selected menu is determined. In this way, the wearer can refresh the position of the anchor point on the display interface by adjusting the head posture, so as to adjust the anchor point to the desired position and determine the selected menu, without the need for the buttons on the smart glasses, which can simplify the structure of the smart glasses and improve the user operation experience.
[0028] In order to make the above-mentioned purposes, features and beneficial effects of the embodiments of the present invention more obvious and understandable, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0029] Reference Figure 1 , a flow chart of a control method of smart glasses in an embodiment of the present invention is given, and the control method of smart glasses may specifically include the following steps. The control method of smart glasses may be executed by the smart glasses, or by a smart terminal associated with the smart glasses, so as to control the smart glasses through the smart terminal.
[0030] Step 11, obtaining head posture information of the wearer of the smart glasses, wherein the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, wherein the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction;
[0031] Step 12, determining anchor point offset information according to the head posture information, wherein the anchor point offset information includes a length direction offset, a width direction offset, and an anchor point offset direction;
[0032] Step 13, obtaining the current position of the anchor point on the display interface;
[0033] Step 14, refreshing the current position of the anchor point according to the anchor point offset information and the anchor point offset direction to obtain a refresh position of the anchor point on the display interface;
[0034] Step 15: Determine the selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
[0035] In a specific implementation, the smart glasses may be virtual reality glasses, augmented reality glasses, mixed reality glasses, etc.
[0036] In a specific implementation, the smart glasses display interface can display a menu, or a submenu or corresponding content after entering a menu. Of course, some images or videos can also be displayed.
[0037] An anchor point may be configured, and the anchor point is used for positioning and subsequent operations at the location of the anchor point.
[0038] The anchor point may be displayed in a certain shape on the display interface so that the user can intuitively know the position of the anchor point and the current operable area.
[0039] The anchor point may not be directly displayed on the display interface, that is, the user cannot see the anchor point on the display interface. In order to facilitate the user to know the position of the anchor point when selecting a menu, the area where the anchor point is currently located can be determined in conjunction with the display form of the content corresponding to the position of the anchor point. For example, the size of the menu corresponding to the area where the anchor point is located is different from the size of other menus. For another example, the color of the menu corresponding to the area where the anchor point is located is different from the color of other menus. It is understandable that other display forms can also be used to represent the area where the anchor point is located, and examples are not given one by one here.
[0040] In a specific implementation of step 11, the head posture information of the wearer may be collected by a smart terminal, which is pre-associated with the smart glasses. The smart terminal may be a terminal with an image acquisition function, such as a smart phone, a tablet, or a smart camera.
[0041] In another specific implementation of step 11, the acceleration and angular velocity of the smart glasses are obtained, and the head posture information of the wearer is determined according to the acceleration and angular velocity. For example, the smart glasses include an acceleration sensor and an angular velocity sensor, the acceleration sensor is used to collect the acceleration of the smart glasses, and the angular velocity sensor is used to collect the angular velocity of the smart glasses.
[0042] In the specific implementation of step 11, the head posture of the smart glasses wearer can be recognized based on the pre-trained head posture recognition model, and the head posture information of the smart glasses wearer can be obtained. The head posture recognition model can be trained based on a neural network algorithm.
[0043] Specifically, a head image of the wearer of the smart glasses may be obtained, and the obtained head image may be input into a head posture recognition model, and the head posture recognition model may perform head posture recognition on the head image to obtain head posture information.
[0044] In a specific implementation, the head image can be obtained by shooting with a smart terminal. The smart terminal can shoot the head image of the wearer at a set image acquisition frequency, or can shoot a video of the wearer and obtain the head image of the wearer based on the shot video.
[0045] In some non-limiting embodiments, step 11 can be implemented as follows: obtain multiple frames of head images of the wearer within a preset time length, and select multiple frames of specified images from the multiple frames of head images; perform head posture recognition on each frame of the specified image to obtain head posture information corresponding to each frame of the specified image.
[0046] In a specific implementation, the length of the preset duration can be determined according to the response speed requirement of the anchor point position refresh, etc. The shorter the preset duration, the higher the response speed of the anchor point position refresh. The length of the preset duration can be configured according to the actual application scenario requirements and is not limited here.
[0047] According to the preset number of frames, the multiple frames of designated images are selected from the multiple frames of head images at intervals. The preset number of frames is used to indicate the number of frame skips when selecting the designated image from the multiple frames of head images. For example, if the preset number of frames is 2, then according to the acquisition time of the head image, one frame of head image is selected from the multiple frames of head images every two frames as the designated image. It can be understood that the preset number of frames can also be 0, 1, 3 or other larger numbers, which are not limited here. When the preset number of frames is 0, it means that all head images are designated images.
[0048] The specific value of the preset number of frames may be determined according to one or more of the number of frames of the head image, the resolution of the head image, or the resolution of the display interface.
[0049] In some embodiments, the relationship between the preset number of frames and the resolution of the head image can be configured according to the actual application scenario requirements. If the actual application scenario requirements are to reduce the computing resource usage during the control process of the smart glasses, the preset number of frames can be configured to be positively correlated with the resolution of the head image, so as to select a specified image with a relatively small number of frames from multiple frames of head images to reduce the computing resource usage during the control process of the smart glasses.
[0050] In other embodiments, the preset number of frames may be configured to be positively correlated with the resolution of the head image, thereby reducing the computing resource usage during the control process of the smart glasses.
[0051] In some other embodiments, the preset number of frames may be configured to be inversely related to the resolution of the head image, thereby improving the accuracy of refreshing the position of the anchor point.
[0052] Furthermore, the offset information can be determined based on the head posture information in the following manner. Specifically, based on the head posture information corresponding to the adjacent specified images, the wearer's head offset direction, the offset in the first direction, and the offset in the second direction are determined; the anchor point offset direction is determined based on the head offset direction; the length direction offset is determined based on the offset in the first direction, and the width direction offset is determined based on the offset in the second direction.
[0053] In some non-limiting embodiments, the length direction offset corresponding to the first direction offset is obtained according to a conversion relationship between the first direction offset and the length direction offset indicated by a preset first mapping relationship.
[0054] In some non-limiting embodiments, the width direction offset corresponding to the second direction offset is obtained according to a conversion relationship between the second direction offset and the width direction offset indicated by a preset second mapping relationship.
[0055] In some embodiments, the offset in the first direction, the offset in the length direction, the offset in the second direction, and the offset in the width direction are all scalars. In this case, the offset direction can be determined according to the position change of the calibration point in the head image. The offset direction is used to indicate the offset of the head in the first direction and the second direction.
[0056] In other embodiments, the offset in the first direction, the offset in the length direction, the offset in the second direction, and the offset in the width direction are all vectors. The offset in the first direction, the offset in the length direction, the offset in the second direction, and the offset in the width direction can indicate directions by themselves without the need for additional offset directions.
[0057] When there are multiple frames of designated images, according to the image acquisition time of the multiple frames of designated images, the offset information is obtained according to the head posture information corresponding to the adjacent designated images in sequence, and the anchor point position is refreshed in sequence. For example, the multiple frames of designated images include designated image 1, designated image 2, and designated image 3. The offset information is obtained according to the head posture information corresponding to designated image 1 and designated image 2, and the anchor point position is refreshed. Thereafter, based on the offset information obtained based on the head posture information corresponding to designated image 1 and designated image 2, and the anchor point position is refreshed, the offset information is obtained according to the head posture information corresponding to designated image 2 and designated image 3, and the anchor point position is continuously refreshed.
[0058] In the specific implementation of step 14, the current position of the anchor point can be refreshed according to the offset in the length direction and the offset in the width direction indicated by the anchor point offset information. For example, according to the offset direction, the length direction offset is moved in the length direction, and the width direction offset is moved in the width direction, and the anchor point is moved from the current position to obtain the refreshed position of the anchor point on the display interface. For another example, a coordinate system corresponding to the display interface is pre-established, the coordinates corresponding to the current position of the anchor point in the display interface are obtained, the coordinates of the anchor point after the refresh position are calculated according to the offset direction, the length direction offset and the width direction offset, and the anchor point is moved to the position corresponding to the coordinates after the refresh position, so as to obtain the refreshed position of the anchor point on the display interface.
[0059] In some embodiments, the head posture information is three-dimensional information, and the head posture information can be represented by Euler angles, that is, the position information of the wearer's head in the first direction and the position information in the second direction are represented by Euler angles. The anchor point offset information can be two-dimensional information, and the three-dimensional head posture information is converted into two-dimensional anchor point offset information by solving Euler angles.
[0060] In the specific implementation of step 15, the selected areas corresponding to the respective menus displayed on the display interface are obtained; and the menu corresponding to the selected area where the refresh position of the anchor point is located is determined as the selected menu.
[0061] There are multiple implementations for determining the menu corresponding to the selected area where the refresh position of the anchor point is located as the selected menu, which are described below.
[0062] In some embodiments, once the anchor point enters a selected area, the menu corresponding to the selected area entered by the anchor point is used as the selected menu. That is, the menu corresponding to the selected area where the refresh position of the anchor point is located is used as the selected menu.
[0063] In other embodiments, it is detected that the residence time of the anchor point in the selected area reaches a set time, and the menu corresponding to the selected area where the residence time reaches the set time is used as the selected menu.
[0064] In some other embodiments, a selection instruction is received, and a menu corresponding to the selected area where the anchor point is located when the selection instruction is received is used as the selected menu.
[0065] The selected instruction may come from a smart terminal. The selected instruction may be generated by pressing a designated button on the smart terminal. The designated button may be a volume increase button, a volume decrease button, or other suitable single button or button combination on the smart terminal.
[0066] In some other embodiments, it is detected that the anchor point stays in the selected area for a set time and a selection instruction is received, and the menu corresponding to the selected area where the anchor point is located when the selection instruction is received is used as the selected menu.
[0067] In a specific implementation, the selected area is related to the position of the menu on the display interface and the preset motion trajectory of the anchor point. The selected area can be the same as the area occupied by the menu on the display interface, or it can be larger or smaller than the area occupied by the menu on the display interface. It is understandable that other corresponding relationships can also be established in advance.
[0068] In some implementations, after determining the selected menu, a zoom operation is performed on the selected menu, and the size of the selected menu after the zoom operation is performed is larger than the size of the unselected menus. Figure 2 The menu distribution diagram of a smart glasses display interface in an embodiment of the present invention is shown, and the display interface 200 displays two menus, namely menu 1 and menu 2. The selected menu is menu 1, and the size of menu 1 is larger than the size of unselected menu 2.
[0069] In some other implementations, a color change operation is performed on the selected menu, and the color of the selected menu after the color change operation is performed is different from the color of the unselected menus.
[0070] In some other embodiments, after determining the selected menu, a zoom-in operation is performed on the selected menu, and a color change operation is performed on the selected menu. The size of the selected menu after the zoom-in operation is larger than the size of the unselected menus, and the color of the selected menu after the color change operation is different from the color of the unselected menus.
[0071] In a specific implementation, after determining that a menu is selected, a hand image is acquired, and gesture recognition is performed on the hand image to determine a corresponding gesture action; and a control operation is performed on the selected menu according to a control instruction corresponding to the gesture action under the selected menu.
[0072] The relationship between gesture actions and control instructions can be established in advance. After the gesture action is determined, the control instruction corresponding to the gesture action can be obtained.
[0073] In some embodiments, a gesture action may correspond to a control instruction.
[0074] In other embodiments, a gesture action may correspond to multiple control instructions, and the control instructions corresponding to the gesture action may be different according to the display content of the current display interface. For example, for a certain gesture action, when the display interface displays the general menu option, the gesture action is to confirm entering the submenu corresponding to the selected menu; when the display interface displays the submenu, the gesture action is to confirm entering the submenu.
[0075] In some further embodiments, menu attributes of a selected menu are obtained, and corresponding control instructions are determined according to the menu attributes of the selected menu.
[0076] The menu attribute includes submenu information. When the menu attribute of the selected menu indicates that the selected menu includes a submenu, executing the control operation on the selected menu includes displaying the submenu of the selected menu. When the menu attribute of the selected menu indicates that the selected menu does not include a submenu, executing the control operation on the selected menu includes entering the selected menu. Thus, one gesture action can correspond to multiple control instructions.
[0077] In a specific implementation, the gesture action may be various suitable gestures, such as gesture numbers and the like.
[0078] As can be seen from the above, by obtaining the head posture information of the wearer of the smart glasses, the head posture information includes the position information of the wearer's head in the first direction and the position information in the second direction, the first direction is parallel to the length direction of the smart glasses display interface, the second direction is parallel to the width direction of the display interface, and the first direction is perpendicular to the second direction; according to the head posture information, the anchor point offset information is determined, and the anchor point offset information includes the length direction offset, the width direction offset and the anchor point offset direction; the current position of the anchor point on the display interface is obtained; according to the anchor point offset information, according to the anchor point offset direction, the current position of the anchor point is refreshed to obtain the refresh position of the anchor point on the display interface; according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface, the selected menu is determined. In this way, the wearer can refresh the position of the anchor point on the display interface by adjusting the head posture, so as to adjust the anchor point to the desired position and determine the selected menu, without the help of the buttons on the smart glasses, which can simplify the structure of the smart glasses and improve the user operation experience.
[0079] An embodiment of the present invention further provides a control system for smart glasses, comprising a smart terminal and smart glasses. The smart terminal is used to send head posture information of a wearer of the smart glasses, wherein the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, wherein the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction;
[0080] Smart glasses are used to obtain the head posture information of the wearer, determine the anchor point offset information according to the head posture information, and the anchor point offset information includes the length direction offset, the width direction offset and the anchor point offset direction; obtain the current position of the anchor point on the display interface; according to the anchor point offset information and the anchor point offset direction, refresh the current position of the anchor point to obtain the refresh position of the anchor point on the display interface; determine the selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
[0081] In a specific embodiment, the control system of the smart glasses can be used to implement the control method of the smart glasses in the above embodiment. For the specific working principle and workflow of the control system of the smart glasses, please refer to the description of the control method of the smart glasses provided in the above embodiment, which is not limited here.
[0082] The present invention also provides a control device for smart glasses, see Figure 3 , a schematic diagram of the structure of a control device of smart glasses in an embodiment of the present invention is given, and the control device 30 of the smart glasses includes:
[0083] A head posture information acquisition unit 31 is used to acquire head posture information of a wearer of the smart glasses, wherein the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, wherein the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction;
[0084] A determination unit 32, configured to determine anchor point offset information according to the head posture information, wherein the anchor point offset information includes a length direction offset, a width direction offset, and an anchor point offset direction;
[0085] A position acquisition unit 33, used to acquire the current position of the anchor point on the display interface;
[0086] A refreshing unit 34, configured to refresh the current position of the anchor point according to the anchor point offset information and the anchor point offset direction, so as to obtain a refresh position of the anchor point on the display interface;
[0087] The selection unit 35 is used to determine the selected menu according to the position relationship between the refresh position of the anchor point and the various menus displayed on the display interface.
[0088] In a specific implementation, the control device of the smart glasses can be used to implement the control method of the smart glasses mentioned above. The specific working principle and work flow of the control device of the smart glasses can be found in the description of the control method of the smart glasses in any of the above embodiments, which will not be repeated here.
[0089] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for controlling the smart glasses provided by any of the above embodiments of the present invention are executed.
[0090] The computer-readable storage medium may include a non-volatile memory or a non-transitory memory, and may also include an optical disk, a mechanical hard disk, a solid-state hard disk, etc.
[0091] An embodiment of the present invention further provides a terminal, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor runs the computer program, the steps of the control method of the smart glasses provided in any of the above embodiments are executed.
[0092] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer program may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means.
[0093] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least part of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least part of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0095] The "plurality" appearing in the embodiments of the present application refers to two or more.
[0096] It should be pointed out that the serial numbers of the steps in this embodiment do not limit the execution order of the steps.
[0097] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A method for controlling smart glasses, characterized in that: Acquire head posture information of a wearer of the smart glasses, where the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, where the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction; Determine anchor point offset information according to the head posture information, wherein the anchor point offset information includes a length direction offset, a width direction offset and an anchor point offset direction; Obtaining the current position of the anchor point on the display interface; Refreshing the current position of the anchor point according to the anchor point offset information and the anchor point offset direction to obtain a refresh position of the anchor point on the display interface; The selected menu is determined according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
2. The control method of the smart glasses according to claim 1, characterized in that: The obtaining of head posture information of the wearer of the smart glasses includes: Acquire multiple frames of head images of the wearer within a preset time period, and select multiple frames of designated images from the multiple frames of head images; Perform head posture recognition on each frame of the specified image to obtain head posture information corresponding to each frame of the specified image.
3. The control method of the smart glasses according to claim 2, characterized in that: The step of selecting a plurality of frames of designated images from the plurality of frames of head images comprises: The multiple frames of designated images are selected from the multiple frames of head images at intervals in sequence according to a preset number of frames.
4. The control method of the smart glasses according to claim 2, characterized in that: The determining the offset information according to the head posture information comprises: Determining the wearer's head offset direction, an offset amount in a first direction, and an offset amount in a second direction according to head posture information corresponding to adjacent designated images; Determining the anchor point offset direction according to the head offset direction; The length direction offset is determined according to the first direction offset, and the width direction offset is determined according to the second direction offset.
5. The control method of the smart glasses according to claim 4, characterized in that: The step of determining the length direction offset according to the offset in the first direction, and determining the width direction offset according to the offset in the second direction, comprises: Obtaining the length direction offset corresponding to the first direction offset according to a conversion relationship between the first direction offset and the length direction offset indicated by a preset first mapping relationship; The width direction offset corresponding to the second direction offset is obtained according to the conversion relationship between the second direction offset and the width direction offset indicated by the preset second mapping relationship.
6. The control method of the smart glasses according to claim 1, characterized in that: The obtaining of head posture information of the wearer of the smart glasses includes: Receiving head posture information of the wearer sent by a smart terminal, the smart terminal being pre-associated with the smart glasses; Alternatively, the acceleration and angular velocity of the smart glasses are obtained, and the head posture information of the wearer is determined according to the acceleration and angular velocity.
7. The control method of the smart glasses according to claim 1, characterized in that: The determining the selected menu according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface includes: Obtaining selected areas corresponding to respective menus displayed on the display interface; The menu corresponding to the selected area where the refresh position of the anchor point is located is determined as the selected menu.
8. The control method of the smart glasses according to claim 7, characterized in that: The determining the menu corresponding to the selected area where the refresh position of the anchor point is located as the selected menu includes one or more of the following: Detecting that the stay time of the anchor point in the selected area reaches a set time, and taking a menu corresponding to the selected area where the stay time reaches the set time as the selected menu; A selection instruction is received, and a menu corresponding to the selection area where the anchor point is located when the selection instruction is received is used as the selected menu.
9. The control method of the smart glasses according to claim 1, characterized in that: Also includes: After determining the selected menu, perform any of the following operations on the selected menu: Performing a zoom-in operation on the selected menu, wherein the size of the selected menu after the zoom-in operation is larger than the size of the unselected menus; A color changing operation is performed on the selected menu, and the color of the selected menu after the color changing operation is performed is different from the color of the unselected menus.
10. The control method of the smart glasses according to claim 1, characterized in that: Also includes: After determining that the menu is selected, a hand image is acquired, and gesture recognition is performed on the hand image to determine a corresponding gesture action; According to the control instruction corresponding to the gesture action under the selected menu, a control operation is performed on the selected menu.
11. The control method of the smart glasses according to claim 10, characterized in that: The control instruction corresponding to the gesture action under the selected menu includes: Get the menu attributes of the selected menu; The corresponding control instruction is determined according to the menu attribute of the selected menu.
12. A control system for smart glasses, characterized in that: include: A smart terminal, used to send head posture information of a wearer of smart glasses, the head posture information including position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction; smart glasses, used to obtain the head posture information of the wearer, determine anchor point offset information according to the head posture information, the anchor point offset information including a length direction offset, a width direction offset and an anchor point offset direction; obtain a current position of an anchor point on the display interface; according to the anchor point offset information, refresh the current position of the anchor point according to the anchor point offset direction to obtain a refresh position of the anchor point on the display interface; The selected menu is determined according to the positional relationship between the refresh position of the anchor point and each menu displayed on the display interface.
13. A control device for smart glasses, characterized in that: include: a head posture information acquisition unit, configured to acquire head posture information of a wearer of the smart glasses, wherein the head posture information includes position information of the wearer's head in a first direction and position information of the wearer's head in a second direction, wherein the first direction is parallel to a length direction of a display interface of the smart glasses, the second direction is parallel to a width direction of the display interface, and the first direction is perpendicular to the second direction; A determination unit, configured to determine anchor point offset information according to the head posture information, wherein the anchor point offset information includes a length direction offset, a width direction offset, and an anchor point offset direction; A position acquisition unit, used to acquire the current position of the anchor point on the display interface; a refreshing unit, configured to refresh the current position of the anchor point according to the anchor point offset information and the anchor point offset direction, so as to obtain a refresh position of the anchor point on the display interface; The selection unit is used to determine the selected menu according to the position relationship between the refresh position of the anchor point and the various menus displayed on the display interface.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling the smart glasses according to any one of claims 1 to 11 are executed.
15. A terminal comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the steps of the method for controlling the smart glasses according to any one of claims 1 to 11 are performed.
