Near-to-eye display apparatus, control method thereof, and storage medium
By integrating image recognition and artificial intelligence models in near-eye display devices, it detects the interaction between the user's hands and target objects, and outputs touch special effects, solving the problem of limited device functions and achieving a higher user interaction experience and immersion.
Patent Information
- Application Number
- CN202410620685.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-23
AI Technical Summary
Near-eye display devices have limited functions and are difficult to meet the diverse needs of users, especially in virtual reality, augmented reality and mixed reality applications, which lack effective user interaction and immersive experience.
By implementing image recognition and artificial intelligence models in near-eye display devices, it detects the interaction between the user's hand and the target object, obtains object information and outputs touch effects, provides display and touch feedback of virtual objects, and enhances the user's interactive experience.
It enhances the user's immersion and interactive experience, increases the fun of near-eye display devices, meets the diverse needs of users, and provides richer interactive functions.
Smart Images

Figure CN118534653A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of near-eye display devices, and in particular to a near-eye display device, a control method thereof, and a storage medium. Background Art
[0002] As technologies such as virtual reality (VR), augmented reality (AR), and mixed reality (MR) are gradually applied to people's lives, the use scenarios of near-eye display devices are becoming more and more extensive, for example, they can be applied to the field of entertainment and audio-visual; however, near-eye display devices can only realize fewer functions and sometimes cannot meet the needs of users well, and new functions still need to be continuously expanded. Summary of the invention
[0003] The main purpose of the present application is to provide a near-eye display device, a control method thereof, and a storage medium, aiming to provide a touch-based interactive function based on the near-eye display device to better meet the user's usage needs.
[0004] In a first aspect, the present application provides a control method for a near-eye display device, which is used for the near-eye display device, and the method includes:
[0005] Acquire an image captured by the near-eye display device;
[0006] When the image includes a user's hand, determining a target object touched by the user's hand in the image;
[0007] Acquiring object information of the target object;
[0008] According to the object information, a first touch effect is outputted through the near-eye display device to indicate that the user's hand touches the target object.
[0009] In a second aspect, the present application further provides a control method for a near-eye display device, which is used for a near-eye display device, and the method includes:
[0010] Displaying a first preset virtual object through a display device of the near-eye display device;
[0011] Acquire an image captured by the near-eye display device;
[0012] When the image includes a user's hand and the hand posture of the user's hand is a preset posture, displaying a second preset virtual object at a preset position corresponding to the user's hand;
[0013] As the user's hand moves, adjusting the display position of the second preset virtual object;
[0014] When the second preset virtual object touches the first preset virtual object, a second touch special effect is output through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object.
[0015] In a third aspect, the present application further provides a control device for a near-eye display device, comprising:
[0016] An image acquisition module, used to acquire an image captured by the near-eye display device;
[0017] an object acquisition module, configured to determine, in the image, a target object touched by the user's hand when the image includes the user's hand;
[0018] An information acquisition module, used to acquire object information of the target object;
[0019] A prompt module is used to output a first touch effect through the near-eye display device according to the object information to indicate that the user's hand touches the target object.
[0020] In a fourth aspect, the present application further provides a control device for a near-eye display device, comprising:
[0021] A first object display module, configured to display a first preset virtual object through a display device of the near-eye display device;
[0022] An image acquisition module, used to acquire an image captured by the near-eye display device;
[0023] A second object display module, configured to display a second preset virtual object at a preset position corresponding to the user's hand when the image includes the user's hand and the hand posture of the user's hand is a preset posture;
[0024] A position adjustment module, used for adjusting the display position of the second preset virtual object as the user's hand moves;
[0025] and a prompt module, configured to output a second touch special effect through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object when the second preset virtual object touches the first preset virtual object.
[0026] In a fifth aspect, the present application also provides a near-eye display device, including a memory and a processor;
[0027] The memory is used to store computer programs;
[0028] The processor is used to execute the computer program and implement the steps of the aforementioned method for controlling the near-eye display device when executing the computer program.
[0029] In a sixth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements: the steps of the aforementioned method for controlling a near-eye display device.
[0030] The present application provides a near-eye display device and a control method and storage medium thereof, wherein the control method comprises: obtaining an image captured by the near-eye display device; when the image includes the user's hand, determining the target object touched by the user's hand in the image; obtaining object information of the target object; and outputting a first touch special effect through the near-eye display device according to the object information to indicate that the user's hand touches the target object. The user can be provided with special effect feedback of touching the target object, thereby enhancing the user's immersion and interactive experience; the near-eye display device is more interesting and better meets the user's usage needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are 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.
[0032] Figure 1 is a flow chart of a control method of a near-eye display device provided in an embodiment of the present application;
[0033] Figure 2 is a schematic block diagram of a near-eye display device in one embodiment of the present application;
[0034] Figure 3 is a flow chart of a control method of a near-eye display device provided by another embodiment of the present application;
[0035] Figure 4 yes Figure 3 Schematic diagram of the implementation scenario of the control method;
[0036] Figure 5 is a schematic block diagram of a control device for a near-eye display device provided in an embodiment of the present application;
[0037] Figure 6 is a schematic block diagram of a control device for a near-eye display device provided in another embodiment of the present application;
[0038] Figure 7 It is a schematic block diagram of the structure of a near-eye display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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.
[0040] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0041] The embodiment of the present application provides a near-eye display device and a control method and a storage medium thereof, wherein the control method of the near-eye display device can be applied to the near-eye display device.
[0042] Exemplarily, near-eye display devices may include head-mounted display devices such as virtual reality (VR) glasses, augmented reality (AR) glasses, mixed reality (MR) glasses, VR helmets, AR helmets, MR helmets, etc., but are certainly not limited to these. For example, they may also include shoulder-mounted display devices, etc., which are not limited here.
[0043] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0044] See also Figure 1 , Figure 1 1 is a flow chart of a control method of a near-eye display device provided in an embodiment of the present application. It should be noted that the control method of a near-eye display device provided in an embodiment of the present application can be used for a near-eye display device. For ease of explanation, the embodiment of the present application is mainly described by taking the near-eye display device as AR glasses as an example.
[0045] like Figure 2 The figure is a schematic block diagram of a near-eye display device in one embodiment, wherein the near-eye display device includes a processor, a display device, a shooting device, a speaker, and a vibration device; optionally, the near-eye display device also includes a communication device; the display device, the shooting device, the speaker, the vibration device, and the communication device are connected to the processor, for example, they may be connected via a bus.
[0046] In some embodiments, the near-eye display device can communicate with a target device through a communication device. The target device is, for example, a device wearable on a user's hand, including but not limited to at least one of the following: a smart ring, a smart glove, and a smart bracelet.
[0047] It should be understood that Figure 2 The near-eye display device described in the embodiment of the present application is only an example, and does not constitute a specific limitation on the near-eye display device of the embodiment of the present application. The near-eye display device of the embodiment of the present application can also be other specific implementations. In other implementations, the near-eye display device can be more Figure 2 The near-eye display device shown may have more or fewer components, for example, may not include a vibration device.
[0048] like Figure 1 As shown, the control method of the near-eye display device includes steps S110 to S140.
[0049] Step S110: Acquire an image captured by the near-eye display device.
[0050] In some embodiments, the images captured by the camera may be acquired periodically at a preset frequency, for example, 30 frames of images may be acquired per second, but this is certainly not limited thereto.
[0051] The shooting range of the camera usually includes some objects, such as tables, books, cups, etc.; when the user moves his hand into the shooting range of the camera, for example, when the user taps the table within the shooting range with his hand, the image captured by the camera may include the user's hand.
[0052] Step S120: When the image includes a user's hand, determine in the image a target object touched by the user's hand.
[0053] In some embodiments, whether the image includes the user's hand can be identified based on an artificial intelligence model, and the artificial intelligence model can include a machine learning model and / or a deep learning model.
[0054] Exemplarily, when it is detected that the image includes the user's hand, the object in the image can be detected based on the artificial intelligence model, and it is determined whether the user's hand touches a certain object according to the area of the user's hand and the area of the object in the image; for example, when the outline of the area of the user's hand and the outline of the area of the object in the image intersect, it is determined that the user's hand touches the object, and the object touched by the user's hand is determined to be the target object.
[0055] In some embodiments, the artificial intelligence model is deployed in a near-eye display device, and a processor of the near-eye display device can detect the area of the user's hand and the area of the object in the image. In some other embodiments, the near-eye display device can send the image to other devices, such as a server, and the artificial intelligence model deployed by the other device detects the area of the user's hand and the area of the object in the image.
[0056] Step S130: Obtain object information of the target object.
[0057] Object information can represent some characteristics of the target object, and different objects can have different characteristics. For example, the materials of a table and a cup can be different.
[0058] In some embodiments, the object information is information that affects the sense of touch, hearing, etc. when the hand touches the object.
[0059] In some embodiments, obtaining the object information of the target object includes at least one of the following: obtaining object type information of the target object; obtaining touch feedback information when the user's hand touches the target object; and obtaining material information of the target object.
[0060] The object type information is used to indicate the type or kind of the target object. For example, when a user's hand touches different types of objects, such as a table, a book, or a cup, the sound and / or touch sensation produced may be different. By obtaining the object type information of the target object, a reference can be provided for the feedback provided by the subsequent near-eye display device, making the feedback provided by the near-eye display device more targeted.
[0061] Exemplarily, the obtaining of the object type information of the target object includes: performing image recognition on the image to obtain the object type information of the target object. For example, the type of the target object can be identified based on an artificial intelligence model to obtain the object type information of the target object; the artificial intelligence model can include a machine learning model and / or a deep learning model. Optionally, the object type information of the target object can be obtained when detecting an object in an image based on an artificial intelligence model in step S120; or the artificial intelligence model in step S120 is only used to detect the regional contour of the object, and another artificial intelligence model is used to perform image recognition on the image in step S130 to obtain the object type information of the target object.
[0062] Exemplarily, the acquiring of touch feedback information when the user's hand touches the target object includes: acquiring posture change information of a target device worn on the user's hand when the user's hand touches the target object.
[0063] For example, the target device worn by the user includes but is not limited to at least one of the following: a smart ring, a smart glove, and a smart wristband. The target device may include a posture sensor, such as an inertial measurement unit (IMU). The target device may detect the posture change of the user's hand through the posture sensor, and send the detected posture change information to the near-eye display device; the posture change may include a position change and / or a posture change.
[0064] When the user's hand touches different objects and / or touches objects with different strengths, the tactile sensation or touch feedback generated will be different. For example, when the user's hand touches a rigid object with greater strength, the amplitude of the vibration of the user's hand is greater, and the amplitude of the change in the posture of the user's hand detected by the target device is also greater. By obtaining the touch feedback information when the user's hand touches the target object, a reference can be provided for the feedback provided by the subsequent near-eye display device, making the feedback provided by the near-eye display device more targeted.
[0065] Exemplarily, the obtaining of the material information of the target object includes: determining the material information of the target device according to the position change information of the target device worn by the user when the user's hand touches the target object. Of course, it is not limited to this. For example, the image may be subjected to image recognition to obtain the material information of the target object; or the material information of the target device may include both the material information determined according to the position change information and the position change information obtained by performing image recognition on the image.
[0066] For example, the material information of the target object, such as wood, glass, plastic, porcelain, etc., can be identified based on an artificial intelligence model; the artificial intelligence model may include a machine learning model and / or a deep learning model.
[0067] For example, when a user touches an object of different materials, the tactile sensation or touch feedback generated will be different, such as different vibration amplitudes and / or frequencies. By obtaining the material information of the target object, a reference can be provided for the feedback provided by the subsequent near-eye display device, making the feedback provided by the near-eye display device more targeted.
[0068] For example, the material information of the target device can be determined according to the posture change information corresponding to the target object; for example, based on the posture change information corresponding to different materials in the algorithm library, the corresponding material information can be determined according to the posture change information of the target device when the user's hand touches the target object.
[0069] For example, when the material information determined according to the posture change information is the same as the material information obtained by performing image recognition on the image, the same material information is determined as the material information of the target object; when the material information determined according to the posture change information is different from the material information obtained by performing image recognition on the image, the material information determined according to the posture change information can be determined as the material information of the target object. Of course, this is not limited to this, for example, the material information of the target object can be determined only based on the posture change information.
[0070] Step S140: output a first touch effect through the near-eye display device according to the object information to indicate that the user's hand touches the target object.
[0071] In some embodiments, the first touch special effect includes at least one of the following: displaying a target virtual object, a preset sound effect, and a vibration special effect at a position corresponding to the target object.
[0072] Exemplarily, the first touch special effect can be outputted by a preset output device of the near-eye display device. For example, the first touch special effect outputted by the preset output device includes at least one of the following: a display device displays a target virtual object at a position corresponding to the target object; a speaker outputs a preset sound effect; a vibration device generates a vibration special effect.
[0073] For ease of explanation, the embodiment of the present application mainly takes a table made of wood as an example for explanation. In the embodiment of the present application, when the user touches the table, the target virtual object can be displayed at the position where the user's hand touches the table. The target virtual object includes but is not limited to at least one of the following: text, graphics, images, and animations. The speaker can output a preset sound effect of "dong", and the vibration device can also produce a preset vibration effect.
[0074] In some embodiments, step S140 includes: determining the first touch special effect according to the material information and / or the touch feedback information and / or the object type information; and outputting the first touch special effect through the near-eye display device.
[0075] By outputting a corresponding first touch effect according to the object information to indicate that the user's hand touches the target object, the user can be provided with special effect feedback of touching the target object, thereby enhancing the user's immersion and interactive experience; a touch-type interactive function is provided based on the near-eye display device, which increases the fun of the near-eye display device and better meets the user's usage needs.
[0076] Exemplarily, the first touch special effect includes displaying a target virtual object at a position corresponding to the target object. The determining of the first touch special effect includes: determining at least one of the following: a type of the target virtual object, and a size of the target virtual object.
[0077] Exemplarily, the first touch special effect includes a preset sound effect, and determining the first touch special effect includes: determining a type of the preset sound effect and a volume of the preset sound effect.
[0078] Exemplarily, the first touch special effect includes a vibration special effect, and determining the first touch special effect includes: determining a type of the vibration special effect and a vibration intensity of the vibration special effect.
[0079] Exemplarily, when the object type information of the target object is different, at least one characteristic of the first touch special effect is different. For example, when the target object is a table, the target virtual object is an animation, and the preset sound effect is "dong"; when the target object is a book, the target virtual object is a static image, and the preset sound effect is "bang".
[0080] Exemplarily, when the material information of the target object is different, at least one characteristic of the first touch special effect is different. For example, when the target object is wood, the target virtual object is a wood sign, and the preset sound effect is "bang"; when the target object is metal, the target virtual object is a metal sign, and the preset sound effect is "ding".
[0081] Exemplarily, when the vibration amplitude corresponding to the touch feedback information of the target object is large, the size of the target virtual object is large, and the volume of the preset sound effect and the vibration intensity of the vibration special effect are large; when the vibration amplitude corresponding to the touch feedback information of the target object is small, the size of the target virtual object is small, and the volume of the preset sound effect and the vibration intensity of the vibration special effect are small.
[0082] By determining and outputting the corresponding first touch effect based on the material information of the target object and / or the touch feedback information and / or the object type information and object information, the feedback provided by the near-eye display device can be more targeted, thereby enhancing the user's immersion and interactive experience.
[0083] In some implementations, the method further includes: acquiring a hand gesture of the user when the hand touches the target object.
[0084] Optionally, outputting a first touch effect through the near-eye display device based on the object information to indicate that the user's hand touches the target object includes: outputting a first touch effect through the near-eye display device based on the hand posture and the object information to indicate that the user's hand touches the target object.
[0085] For example, when the user extends one finger to touch the target object, the volume of the preset sound effect and the vibration intensity of the vibration effect are relatively small; when the user extends multiple fingers to touch the target object, the volume of the preset sound effect and the vibration intensity of the vibration effect are relatively large.
[0086] For example, when a user taps a target object, the near-eye display device can play corresponding sound effects and animation effects based on the object type and hand posture, providing the user with touch feedback and enhancing the user's sense of immersion and interactive experience.
[0087] When the user touches the target object with different hand gestures, the sound and / or touch sensation generated may be different. By determining and outputting the corresponding first touch special effect according to the hand gesture of the user when the hand touches the target object, the feedback provided by the near-eye display device can be more targeted, thereby enhancing the user's immersion and interactive experience.
[0088] Exemplarily, the obtaining of the hand posture of the user's hand when touching the target object includes: obtaining the position information of the target device worn by the user when the user's hand touches the target object; and determining the hand posture of the user's hand when touching the target object according to the position information. For example, the hand posture of the user's hand when touching the target object can be determined according to the position information of the user's hand when touching the target object based on the position information corresponding to different hand postures in the algorithm library.
[0089] Exemplarily, the obtaining of the hand posture of the user's hand when touching the target object includes: performing image recognition on the image to obtain the hand posture of the user's hand when touching the target object. For example, the hand posture of the user's hand when touching the target object can be obtained according to the image based on an artificial intelligence model; the artificial intelligence model can include a machine learning model and / or a deep learning model. Optionally, the hand posture of the user's hand can be obtained when the user's hand in the image is detected based on the artificial intelligence model in step S120.
[0090] The control method of the near-eye display device provided in the embodiment of the present application includes: obtaining an image captured by the near-eye display device; when the image includes the user's hand, determining the target object touched by the user's hand in the image; obtaining the object information of the target object; and according to the object information, outputting a first touch special effect through the near-eye display device to indicate that the user's hand touches the target object. By outputting a first touch special effect to indicate that the user's hand touches the target object according to the object information of the target object touched by the user's hand, special effect feedback of touching the target object can be provided to the user, thereby enhancing the user's sense of immersion and interactive experience; based on the near-eye display device, a touch-based interactive function is provided, which increases the fun of the near-eye display device and better meets the user's usage needs.
[0091] Please refer to the above examples. Figure 3 , Figure 3 It is a flow chart of a control method of a near-eye display device provided by another embodiment of the present application; wherein, the control method of the near-eye display device can be applied to the near-eye display device. The near-eye display device may include head-mounted display devices such as virtual reality (VR) glasses, augmented reality (AR) glasses, mixed reality (MR) glasses, VR helmets, AR helmets, MR helmets, etc., but of course it is not limited thereto, for example, it may also include shoulder-mounted display devices, etc., which may not be limited here. For ease of explanation, the embodiment of the present application is mainly described by taking the near-eye display device as AR glasses as an example.
[0092] like Figure 3 As shown, the control method of the near-eye display device includes steps S210 to S250.
[0093] Step S210: displaying a first preset virtual object through the display device of the near-eye display apparatus.
[0094] In some embodiments, the first preset virtual object may be displayed by the display device of the near-eye display device according to a user instruction. For example, when the user starts a virtual interaction function, the first preset virtual object is displayed by the display device of the near-eye display device, the first preset virtual object appears in the virtual space where the user is located, and subsequent steps S220 to S250 are performed.
[0095] In some embodiments, see Figure 4 The display position of the first preset virtual object can be determined according to the preset object within the shooting range of the shooting device. For example, the first preset virtual object is displayed at the position corresponding to the table, so that the first preset virtual object appears to the user to be placed on the desktop.
[0096] For ease of explanation, the embodiment of the present application is mainly described by taking the first preset virtual object as a virtual wooden fish as an example. Of course, it is not limited to this. For example, the first preset virtual object can be determined according to an object within the shooting range of the shooting device. For example, when a cup or a book is placed on the table within the shooting range, a virtual object corresponding to the cup or a virtual object corresponding to the book can be displayed at the position corresponding to the cup or the book.
[0097] Step S220: Acquire an image captured by the near-eye display device.
[0098] For example, when the user places his / her hand within the shooting range of the shooting device, the image shot by the shooting device may include the user's hand.
[0099] Step S230: When the image includes a user's hand and the hand posture of the user's hand is a preset posture, display a second preset virtual object at a preset position corresponding to the user's hand.
[0100] Exemplarily, the position information of the target device worn on the hand of the user may be obtained; and the hand posture of the hand of the user may be determined according to the position information.
[0101] Exemplarily, image recognition may be performed on the image to obtain the hand gesture of the user's hand.
[0102] In some embodiments, the preset posture includes but is not limited to at least one of the following: holding posture, fisting posture, palm posture, finger extension posture, and of course not limited thereto. Optionally, the second preset virtual objects corresponding to different hand postures may be different. The preset positions for displaying the second preset virtual objects corresponding to different hand postures may also be different, for example, they may be displayed at the fingers, the palm, the back of the hand, etc.
[0103] Exemplarily, when the hand gesture of the user's hand is a holding gesture, the second preset virtual object may be a virtual object corresponding to a mallet, which includes a wooden handle and a hammer head. For example, the virtual object corresponding to the mallet may be anchored to a preset position corresponding to the user's hand, so that the user appears to be holding a mallet in his hand.
[0104] In some embodiments, the first preset virtual object can also be moved to a user-specified position for display according to the user's hand movements, and the user can freely adjust the display position of the first preset virtual object to adapt to different environments and needs; for example, the user can drag the virtual wooden fish to a comfortable position with his fingers.
[0105] Step S240: adjusting the display position of the second preset virtual object as the user's hand moves.
[0106] In some embodiments, the images captured by the camera can be acquired periodically at a preset frequency, for example, 30 frames of images are acquired per second, but this is not limited thereto. The movement amplitude and direction of the user's hand can be determined based on the change in the position of the user's hand in each frame of the image; by adjusting the display position of the second preset virtual object based on the movement amplitude and direction of the user's hand, the second preset virtual object will move with the movement of the user's hand, for example, the virtual wooden fish will dance up and down with the fingers, thereby enhancing the user's immersion and interactive experience.
[0107] Step S250: When the second preset virtual object touches the first preset virtual object, a second touch special effect is output through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object.
[0108] In some embodiments, the second touch special effect includes at least one of the following: displaying a target virtual object, a preset sound effect, and a vibration special effect at a position corresponding to the first preset object.
[0109] Exemplarily, the near-eye display device may be controlled to output the second touch special effect through a preset output device. Exemplarily, the second touch special effect output by the preset output device includes at least one of the following: a display device displays a target virtual object at a position corresponding to the first preset virtual object; a speaker outputs a preset sound effect; a vibration device generates a vibration special effect.
[0110] Exemplarily, when the outline of the second preset virtual object intersects with the outline of the first preset virtual object, it is determined that the second preset virtual object touches the first preset virtual object; of course, this is not limited to this. For example, the posture change information of the target device worn by the user's hand can be obtained, and it is determined based on the posture change information whether the user's hand stops after moving a certain distance, and when the hand stops, it is determined that the second preset virtual object touches the first preset virtual object.
[0111] When the second preset virtual object touches the first preset virtual object, the display device may display a target virtual object at the position corresponding to the first preset virtual object, and the target virtual object includes but is not limited to at least one of the following: text, graphics, images, and animations. Figure 4 , the target virtual objects include the text "Good Luck +1" or "Wealth +1".
[0112] When the second preset virtual object collides with the first preset virtual object, the speaker may output a preset sound effect of "dong", and the vibration device may also produce a preset vibration effect.
[0113] In some embodiments, before step S250, the method further includes: obtaining posture change information of the target device worn on the user's hand when the second preset virtual object touches the first preset virtual object; and determining at least one of the following based on the posture change information: the type of the target virtual object, the size of the target virtual object, the type of the preset sound effect, the volume of the preset sound effect, the type of the vibration special effect, and the vibration intensity of the vibration special effect.
[0114] Exemplarily, the strength corresponding to the user's hand movement can be determined according to the posture change information, and the effect of the second touch special effect can be determined according to the posture change information. For example, when the second preset virtual object touches the first preset virtual object, if the posture change information indicates that the strength of the user's hand movement is large, the volume of the preset sound effect can be large; if the posture change information indicates that the strength of the user's hand movement is small, the volume of the preset sound effect can be small. The second touch special effect provided by the near-eye display device can be more targeted, enhancing the user's immersion and interactive experience.
[0115] The control method of the near-eye display device provided in the embodiment of the present application can provide the user with special effect feedback of the second preset virtual object touching the first preset virtual object by outputting a second touch special effect to indicate that the second preset virtual object touches the first preset virtual object when the second preset virtual object touches the first preset virtual object, thereby enhancing the user's immersion and interactive experience; and provides a touch-based interactive function based on the near-eye display device, which increases the fun of the near-eye display device and better meets the user's usage needs.
[0116] In some embodiments, users can interact with the virtual wooden fish, which increases the fun and immersion of AR glasses; the automatically anchored hammer head provides users with an actual knocking experience, making the virtual wooden fish more realistic. Every time a user virtually knocks on the virtual wooden fish, the hammer head will dance up and down with the finger, and display feedback such as "good luck +1" and "wealth +1". This increases the user's sense of interaction with the virtual wooden fish, making the game more interesting; it improves the fun and interactive experience of AR glasses users in a virtual environment. Compared with the finger wooden fish game on a mobile phone or tablet, that is, the action of knocking on the wooden fish is simulated by clicking on the screen, the embodiment of the present application is based on the virtual imaging of the near-eye display device in front of the eyes, simulating the knocking effect in reality, and the virtual picture can create a sense of atmosphere, a better sense of experience, and a more "quiet" feeling, and can reduce the restrictions on the use scenario and reduce the interference of some interference factors in the scene.
[0117] Please refer to the above examples. Figure 5 , Figure 51 is a schematic block diagram of a control device for a near-eye display device provided in an embodiment of the present application. The control device for a near-eye display device is configured in the near-eye display device and is used to execute the steps of the control method for the near-eye display device described above.
[0118] like Figure 5 As shown, the control device of the near-eye display device includes:
[0119] An image acquisition module 110, configured to acquire an image captured by the near-eye display device;
[0120] An object acquisition module 120, configured to determine a target object touched by the user's hand in the image when the image includes the user's hand;
[0121] An information acquisition module 130, used to acquire object information of the target object;
[0122] The prompt module 140 is used to output a first touch effect through the near-eye display device according to the object information to indicate that the user's hand touches the target object.
[0123] In some embodiments, the first touch special effect includes at least one of the following: displaying a target virtual object at a position corresponding to the target object, a preset sound effect, and a vibration special effect. Exemplarily, the prompt module 140 is used to output the first touch special effect through a preset output device of the near-eye display device. For example, the first touch special effect output by the preset output device includes at least one of the following: a display device displays a target virtual object at a position corresponding to the target object; a speaker outputs a preset sound effect; and a vibration device generates a vibration special effect.
[0124] In some implementations, the information acquisition module 130 includes at least one of the following:
[0125] A type acquisition unit, acquiring object type information of the target object;
[0126] A feedback acquisition unit, which acquires touch feedback information when the user's hand touches the target object;
[0127] The material acquisition unit acquires the material information of the target object.
[0128] Exemplarily, the type acquisition unit is used to: perform image recognition on the image to acquire object type information of the target object.
[0129] Exemplarily, the feedback acquisition unit is used to: acquire posture change information of the target device worn on the user's hand when the user's hand touches the target object.
[0130] Exemplarily, the material acquisition unit is used to determine the material information of the target device according to the posture change information of the target device worn by the user when the user's hand touches the target object. Of course, it is not limited to this. For example, the image can be recognized by image recognition to obtain the material information of the target object; or the material information of the target device can include both the material information determined according to the posture change information and the posture change information obtained by image recognition of the image.
[0131] In some implementations, the information acquisition module 130 may include:
[0132] A special effect determination unit, configured to determine the first touch special effect according to the object information of the target object. Exemplarily, the special effect determination unit is configured to determine at least one of the following according to the object information of the target object, such as the material information and / or the touch feedback information and / or the object type information: the type of the target virtual object, the size of the target virtual object, the type of the preset sound effect, the volume of the preset sound effect, the type of the vibration special effect, and the vibration intensity of the vibration special effect;
[0133] A special effect output unit is used to output the first touch special effect through the near-eye display device.
[0134] For example, the first touch special effect output by the special effect output unit includes displaying a target virtual object at a position corresponding to the target object, and the special effect determination unit is used to determine the type and / or size of the target virtual object based on the material information and / or the touch feedback information and / or the object type information.
[0135] For example, the first touch special effect output by the special effect output unit includes a preset sound effect, and the special effect determination unit is used to determine the type and / or volume of the preset sound effect based on the material information and / or the touch feedback information and / or the object type information.
[0136] For example, the first touch special effect output by the special effect output unit includes a vibration special effect, and the special effect determination unit is used to determine the type and / or vibration intensity of the vibration special effect according to the material information and / or the touch feedback information and / or the object type information.
[0137] In some embodiments, the control device of the near-eye display device may further include: a hand posture determination module, used to obtain the hand posture of the user when the hand touches the target object.
[0138] Exemplarily, the prompt module 140 is used to output a first touch effect through the near-eye display device according to the hand gesture and the object information to indicate that the user's hand touches the target object.
[0139] Exemplarily, the hand posture determination module is used to: obtain the posture information of the target device worn on the user's hand when the user's hand touches the target object; determine the hand posture of the user when the hand touches the target object based on the posture information; or perform image recognition on the image to obtain the hand posture of the user when the hand touches the target object.
[0140] The specific principles and implementation methods of the control device provided in the embodiment of the present application are similar to the control method of the aforementioned embodiment and will not be repeated here.
[0141] Please refer to the above examples. Figure 6 , Figure 6 1 is a schematic block diagram of a control device for a near-eye display device provided in an embodiment of the present application. The control device for a near-eye display device is configured in the near-eye display device and is used to execute the steps of the control method for the near-eye display device described above.
[0142] like Figure 6 As shown, the control device of the near-eye display device includes:
[0143] A first object display module 210, configured to display a first preset virtual object through a display device of the near-eye display device;
[0144] An image acquisition module 220, configured to acquire an image captured by the near-eye display device;
[0145] A second object display module 230, configured to display a second preset virtual object at a preset position corresponding to the user's hand when the image includes the user's hand and the hand posture of the user's hand is a preset posture;
[0146] A position adjustment module 240, configured to adjust the display position of the second preset virtual object as the user's hand moves;
[0147] The prompt module 250 is used to output a second touch special effect through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object when the second preset virtual object touches the first preset virtual object.
[0148] In some embodiments, the second touch special effect includes at least one of the following: displaying a target virtual object, a preset sound effect, and a vibration special effect at a position corresponding to the first preset object.
[0149] In some embodiments, the control device may further include:
[0150] The special effects determination module is used to: obtain the posture change information of the target device worn by the user when the second preset virtual object touches the first preset virtual object; and determine at least one of the following based on the posture change information: the type of the target virtual object, the size of the target virtual object, the type of the preset sound effect, the volume of the preset sound effect, the type of the vibration special effect, and the vibration intensity of the vibration special effect.
[0151] The specific principles and implementation methods of the control device provided in the embodiment of the present application are similar to the control method of the aforementioned embodiment and will not be repeated here.
[0152] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0153] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0154] Exemplarily, the above method and apparatus may be implemented in the form of a computer program, which may be run on a near-eye display device. Exemplarily, the near-eye display device may include VR glasses, AR glasses, MR glasses, VR helmets, AR helmets, MR helmets, etc., which are not limited here.
[0155] Please refer to the above examples. Figure 7 , Figure 7 It is a schematic block diagram of the structure of a near-eye display device provided in an embodiment of the present application.
[0156] like Figure 7 As shown, the near-eye display device includes a memory and a processor. The memory and the processor may be connected via a system bus, and the memory may include a storage medium and an internal memory.
[0157] The storage medium may store an operating system and a computer program. When the computer program is executed, the processor may execute the steps of any method for controlling a near-eye display device.
[0158] The processor is used to provide computing and control capabilities to support the operation of the entire near-eye display device.
[0159] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute the steps of any method for controlling a near-eye display device.
[0160] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a portion of the structure related to the scheme of the present application, and does not constitute a limitation on the near-eye display device to which the scheme of the present application is applied. The specific near-eye display device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0162] In one embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:
[0163] Acquire an image captured by the near-eye display device;
[0164] When the image includes a user's hand, determining a target object touched by the user's hand in the image;
[0165] Acquiring object information of the target object;
[0166] According to the object information, a first touch effect is outputted through the near-eye display device to indicate that the user's hand touches the target object.
[0167] In another embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:
[0168] Displaying a first preset virtual object through a display device of the near-eye display device;
[0169] Acquire an image captured by the near-eye display device;
[0170] When the image includes a user's hand and the hand posture of the user's hand is a preset posture, displaying a second preset virtual object at a preset position corresponding to the user's hand;
[0171] As the user's hand moves, adjusting the display position of the second preset virtual object;
[0172] When the second preset virtual object touches the first preset virtual object, a second touch special effect is output through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object.
[0173] It should be noted that those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the vision test described above can refer to the corresponding process in the aforementioned control method embodiment of the near-eye display device, and will not be repeated here.
[0174] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The method implemented when the computer program is executed by a processor can refer to the various embodiments of the control method of the near-eye display device of the present application.
[0175] The computer-readable storage medium may be an internal storage unit of the near-eye display device described in the aforementioned embodiment, such as a hard disk or memory of the near-eye display device. The computer-readable storage medium may also be an external storage device of the near-eye display device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the near-eye display device.
[0176] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0177] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0178] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for controlling a near-eye display device, characterized in that: For a near-eye display device, the method comprises: Acquire an image captured by the near-eye display device; When the image includes a user's hand, determining a target object touched by the user's hand in the image; Acquiring object information of the target object; According to the object information, a first touch effect is outputted through the near-eye display device to indicate that the user's hand touches the target object.
2. The control method according to claim 1, characterized in that: The acquiring of the object information of the target object includes at least one of the following: Acquiring object type information of the target object; Acquiring touch feedback information when the user's hand touches the target object; Acquire material information of the target object; Outputting the first touch special effect through the near-eye display device according to the object information includes: determining the first touch special effect according to the material information and / or the touch feedback information and / or the object type information; The first touch special effect is output through the near-eye display device.
3. The control method according to claim 2, characterized in that: The first touch special effect includes displaying a target virtual object at a position corresponding to the target object, and determining the first touch special effect includes: determining the type and / or size of the target virtual object; and / or The first touch special effect includes a preset sound effect, and the determining the first touch special effect includes: determining the type and / or volume of the preset sound effect; and / or The first touch special effect includes a vibration special effect, and determining the first touch special effect includes: determining a type and / or a vibration intensity of the vibration special effect.
4. The control method according to claim 2, characterized in that: The obtaining the object type information of the target object includes: Performing image recognition on the image to obtain object type information of the target object.
5. The control method according to claim 2, characterized in that: The acquiring of the touch feedback information when the user's hand touches the target object includes: acquiring the posture change information of the target device worn by the user's hand when the user's hand touches the target object; The acquiring of the material information of the target object includes: determining the material information of the target device according to information of a position change of the target device worn by the user when the user's hand touches the target object.
6. The control method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire the hand posture of the user when the hand touches the target object; Outputting a first touch special effect through the near-eye display device according to the object information to indicate that the user's hand touches the target object includes: According to the hand gesture and the object information, a first touch effect is outputted through the near-eye display device to indicate that the user's hand touches the target object.
7. The control method according to claim 6, characterized in that: The obtaining of the hand posture of the user when the hand touches the target object includes: Acquire the position information of the target device worn by the user when the user's hand touches the target object; determine the hand posture of the user when the hand touches the target object according to the position information; or Image recognition is performed on the image to obtain the hand posture of the user when the hand touches the target object.
8. A method for controlling a near-eye display device, characterized in that: For a near-eye display device, the method comprises: Displaying a first preset virtual object through a display device of the near-eye display device; Acquire an image captured by the near-eye display device; When the image includes a user's hand and the hand posture of the user's hand is a preset posture, displaying a second preset virtual object at a preset position corresponding to the user's hand; As the user's hand moves, adjusting the display position of the second preset virtual object; When the second preset virtual object touches the first preset virtual object, a second touch special effect is output through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object.
9. The control method according to claim 8, characterized in that: The second touch special effect includes at least one of the following: displaying a target virtual object, a preset sound effect, or a vibration special effect at a position corresponding to the first preset object; Before outputting a second touch special effect through the near-eye display device to indicate that the second preset virtual object touches the first preset virtual object when the second preset virtual object touches the first preset virtual object, the method further includes: Acquire position change information of the target device worn by the user when the second preset virtual object touches the first preset virtual object; Based on the posture change information, determine at least one of the following: the type of the target virtual object, the size of the target virtual object, the type of the preset sound effect, the volume of the preset sound effect, the type of the vibration special effect, and the vibration intensity of the vibration special effect.
10. A near-eye display device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the control method of the near-eye display device according to any one of claims 1 to 9 when executing the computer program.
11. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is enabled to implement: The steps of the method for controlling a near-eye display device as described in any one of claims 1 to 9.
