WO2019100299A1 - Head-mounted display apparatus and automatic calibration method of touch device thereof - Google Patents

Head-mounted display apparatus and automatic calibration method of touch device thereof Download PDF

Info

Publication number
WO2019100299A1
WO2019100299A1 PCT/CN2017/112725 CN2017112725W WO2019100299A1 WO 2019100299 A1 WO2019100299 A1 WO 2019100299A1 CN 2017112725 W CN2017112725 W CN 2017112725W WO 2019100299 A1 WO2019100299 A1 WO 2019100299A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
display device
coordinate system
angle value
plane
Prior art date
Application number
PCT/CN2017/112725
Other languages
French (fr)
Chinese (zh)
Inventor
张�浩
Original Assignee
深圳市柔宇科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to CN201780095849.3A priority Critical patent/CN111316207A/en
Priority to PCT/CN2017/112725 priority patent/WO2019100299A1/en
Publication of WO2019100299A1 publication Critical patent/WO2019100299A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present application relates to the field of touch calibration technologies, and in particular, to an automatic calibration method for a head mounted display device and a touch device thereof, and a computer readable storage medium.
  • a head mounted display refers to a display device that can be worn on a user's head.
  • Head-mounted display devices are becoming more and more popular due to their good visual experience.
  • Head-mounted display devices currently on the market are generally configured to be used with headphones to control the user's vision and hearing, and thus the head-mounted display device typically includes three parts: a display device, a headphone device, and a head-mounted device, wherein the head
  • the display device of the wearable display device is generally designed to be rotatable, and when not in use, the display device can be rotated to a position substantially overlapping with the headgear device for storage; when needed, the display device can be rotated to the head
  • the device is placed in a substantially vertical position to facilitate wearing and placing the display device in front of the user's eyes after wearing.
  • some head-mounted display devices are also equipped with a touch device, such as a touch panel or a touch screen, to perform corresponding operations on the head-mounted display device.
  • the touch device is generally disposed on the earphone device to facilitate user operation.
  • the touch device also rotates following the rotation of the display device or the headset, such that the operation on the touch device produces different effects as the angle between the headset and the display device changes, such as gestures, up and down, left and right. The judgment may result in misjudgment, which affects the user experience.
  • the present application provides an automatic calibration method for a head mounted display device and a touch device thereof, and a computer readable storage medium capable of automatically calibrating coordinates of a touch point when the position of the touch device deviates from a corresponding position in a standard wearing state. Value to accurately identify the touch operation and avoid situations where the actual touch operation is inconsistent with the touch operation desired by the user.
  • the present application provides an automatic calibration method for a touch device, the automatic calibration method being applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a headset Device.
  • the automatic calibration method includes:
  • a touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
  • the present application provides an automatic calibration method for a touch device, the automatic calibration method being applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a headset Device.
  • the automatic calibration method includes:
  • a touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
  • the present application provides a head mounted display device, the head mounted display device comprising a processor for implementing the touch described in any of the above embodiments when executing a stored computer program in a memory The steps of the automatic calibration method of the device.
  • the present application provides a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, implement the steps of the automatic calibration method of the touch device described in any of the above embodiments.
  • the automatic calibration method and device of the touch device of the present application can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device deviates from the corresponding position in the standard wearing state, thereby accurately identifying the touch operation and effectively The situation that the actual touch operation is inconsistent with the touch operation desired by the user is avoided, and the user has a better use experience.
  • FIG. 1 is a perspective view of a head mounted display device according to an embodiment of the present application, the head mounted display device including a display device Set, headset, and touch device.
  • FIG. 2 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a first use state.
  • FIG. 3 is a flow chart of an automatic calibration method of a touch device according to a first embodiment of the present application.
  • FIG. 4 is a schematic illustration of angle values between the plane in which the display device of FIG. 2 is located and the plane in which the headgear is located.
  • FIG. 5 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a non-use state.
  • FIG. 6 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a second use state.
  • FIG. 7 is a schematic diagram of coordinates of the touch point A and its calibration point B generated in the touch device of FIG. 2 in the original coordinate system.
  • FIG. 8 is a flowchart of an automatic calibration method of a touch device according to a second embodiment of the present application.
  • FIG. 9 is a schematic diagram of coordinates of a touch point generated in the touch device of FIG. 2 in a raw coordinate system and a calibration coordinate system.
  • FIG. 10 is a functional block diagram of an automatic calibration apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of functional modules of a head mounted display device according to an embodiment of the present application.
  • the present application provides a head mounted display device 100 for providing a user with a head worn on a head so that a user can view a video or an image and can listen to the sound.
  • the head mounted display device 100 can be a head mounted video player, game device, navigation device, or the like.
  • the head mounted display device 100 includes at least a display device 51, an earphone device 52, a headset 53, and a touch device 54.
  • the display device 51 is configured to provide a display screen
  • the earphone device 52 is configured to provide sound
  • the headset device 53 is configured to wear the head mounted display device 100 on a user's head.
  • the touch device 54 is configured to generate a touch signal in response to the touch operation to control the head mounted display device 100 to perform a corresponding function.
  • the display device 51 and the head device 53 are rotatably connected.
  • the earphone device 52 is disposed at a connection between the display device 51 and the headset device 53.
  • the touch device 54 is disposed on the earphone device 52, and the display device 51 and the headset device
  • the center of rotation 513 of 53 (shown in Figure 2) is opposite.
  • the display device 51 can be rotated to a position substantially overlapping with the headset 53 (as shown in FIG. 5), that is, a plane in which the display device 51 is located and the headset The plane in which 53 is located substantially coincides to facilitate accommodation of the head mounted display device 100.
  • the display device 51 can be rotated to a position substantially perpendicular to the headset 53 (as shown in FIG. 6), that is, a plane in which the display device 51 is located and the headset 53
  • the plane in which it is located is substantially vertical to facilitate wearing the head mounted display device 100 and placing the display device 51 in front of the user's eyes after wearing.
  • the touch device 54 is disposed on a side of the earphone device 52 away from the user, so that the user operates the touch device 54 while wearing the head mounted display device 100.
  • the head mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second disposed on the display device 51.
  • An angle sensor 612 wherein the first angle sensor 611 is configured to detect an angle value at which the head gear 53 rotates, and the second angle sensor 612 is configured to detect an angle value at which the display device 51 rotates.
  • An angle value of relative rotation between the display device 51 and the headset 53 can be calculated by the angle data detected by the first angle sensor 611 and the second angle sensor 612.
  • the touch device 54 can also rotate according to the rotation of the display device 51 or the headset 53 , that is, the touch device 54 and the display device 51 or the headset There is a relatively static connection between 53. Since the touch operation on the touch device 54 may have different effects as the angle value between the head device 53 and the display device 51 changes, for example, a gesture, a determination of up, down, left, and right may occur. Misjudgment, which affects the user experience. Therefore, when using the head mounted display device 100, coordinates of an effective touch point of the touch device 54 according to an actual angle value between a plane in which the headset 53 is located and a plane in which the display device 51 is located are required. The value is calibrated.
  • the touch device 54 After the touch device 54 is deflected by 90 degrees with respect to the position in the standard wearing state, if the user inputs an upward sliding gesture on the touch device 54, the touch device 54 recognizes before the calibration is performed. It is a vector-to-left gesture that needs to be corrected to a vector-up gesture.
  • FIG. 3 is a flowchart of an automatic calibration method of a touch device according to a first embodiment of the present application, which is applied to a head mounted display device having the touch device. It should be noted that the automatic calibration method in the embodiment of the present application is not limited to the steps and the sequence in the flowchart shown in FIG. 3. The steps in the illustrated flow diagrams can be added, removed, or changed in order, depending on the requirements.
  • the automatic calibration method includes the following steps:
  • Step 101 preset an original coordinate system of the touch device.
  • the plane where the display device 51 is located and the headset 53 are set.
  • the state can be set to a standard wearing state, and the display device will be in the standard wearing state.
  • the angle value a between the plane in which 51 is located and the plane in which the headgear 53 is located is set to a preset angle value a0.
  • the position of the origin O of the original coordinate system (shown by the dotted line in FIG. 6) is set at the rotation center 513 between the display device 51 and the wearing device 53 in the The projection position of the surface of the touch device 54.
  • the touch device 54 rotates following the rotation of the headset 53, and the ordinate axis of the original coordinate system is set to be parallel to the plane in which the headset 53 is located.
  • the preset angle value a0 90 degrees.
  • the abscissa axis of the original coordinate system is also parallel to the plane in which the display device 51 is located.
  • the negative and positive directions of the abscissa of the original coordinate system respectively correspond to the left and right directions of the touch device 54, and the ordinate of the original coordinate system is positive.
  • the negative direction corresponds to the upper and lower directions of the touch device 54, respectively.
  • the touch operations generated on the touch device 54 such as gestures, up, down, left, and the like, are all normal.
  • the preset angle value a0 can also be set to other values, such as 95 degrees.
  • the touch device 54 can also rotate according to the rotation of the display device 51, and the abscissa axis of the original coordinate system can also be set to be opposite to the display device 51.
  • the planes are parallel.
  • Step 102 Predetermine a coordinate conversion formula between an actual coordinate value of the effective touch point of the touch device and the calibration coordinate value in the original coordinate system.
  • the effective touch area of the touch device 54 is a circle having the origin O as a center and a preset value R as a radius.
  • the coordinate value of the origin O is O(x0, y0), assuming that the touch point is point A, and the straight line passing through the touch point A and the origin O of the original coordinate system and the abscissa axis of the original coordinate system The angle between the two is b, and it is assumed that the actual coordinate value of the touch point A detected by the touch device 54 in the original coordinate system is A (x1, y1).
  • the angle value a is greater than or less than a0, it may be determined that the position of the headset 53 and the touch device 54 is deflected relative to the position in the standard wearing state, so that the original coordinate system is also The deflection occurs following the touch device 54, so the coordinate values of the touch points generated on the touch device 54 need to be calibrated.
  • the deflection angle of the headset 53 can be determined as (a-a0). Therefore, the position of the touch point A is also centered on the origin of the original coordinate system, and is followed by the headset 53. The angle of (a-a0).
  • the equivalent point after the touch point A is calibrated is the calibration point B
  • the coordinate value of the calibration point B in the original coordinate system is B(x, y)
  • an angle between a straight line passing through the touch point A and the origin O of the original coordinate system and a straight line passing through the calibration point B and the origin O of the original coordinate system can be determined as (a-a0)
  • the angle between the straight line passing through the calibration point B and the origin O of the original coordinate system and the abscissa axis of the original coordinate system is (b+a-a0).
  • y (x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0.
  • the effective touch area of the touch device 54 may also be other shapes, such as a square, a polygon, or the like.
  • the touch device 54 can also rotate following the rotation of the display device 51.
  • the setting of the coordinate conversion formula is similar to the above example, and details are not repeated herein.
  • Step 103 Acquire an actual angle value between a plane where the display device is located and a plane where the headset is located when relative rotation occurs between the display device and the headset.
  • the head-mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second angle sensor 612 disposed on the display device 51, wherein the head-mounted display device 100 includes a second angle sensor 612 disposed on the display device 51, wherein The first angle sensor 611 is configured to detect an angle value at which the head gear 53 rotates, and the second angle sensor 612 is configured to detect an angle value at which the display device 51 rotates.
  • the step of acquiring the actual angle value between the plane where the display device is located and the plane where the headset is located includes:
  • the first angle sensor 611 can detect the angle c1 of the wearing device 53 in a specific state, for example, an initial state, and the second angle sensor 612 detects the display by the second angle sensor 612.
  • the actual angle value can be obtained by c2-c1
  • the actual angle value is equal to the absolute value of the difference between the angles of rotation. If the headset 53 rotates in the opposite direction with the display device 51, the actual angle value is equal to the sum of the angles at which the two are rotated. If only one of the headset 53 and the display device 51 is rotated, the actual angle value is equal to the angle value at which the rotating headset 53 or the display device 51 rotates.
  • Step 104 Acquire real coordinate data of the touch point corresponding to the touch operation in the original coordinate system when the actual angle value is not equal to the preset angle value and a touch operation is detected.
  • the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
  • Step 105 Calculate according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data.
  • the touch operation includes a single touch operation, and the actual coordinate data and the calibration coordinate data each include a coordinate value.
  • the touch operation may also include a multi-touch operation, and the actual coordinate data and the calibration coordinate data each include a set of coordinate values.
  • Step 106 Generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
  • a touch instruction for controlling playing or pausing the currently played audio and video file may be generated.
  • a touch action for controlling the call menu may be generated.
  • a touch instruction for controlling the adjustment of the playback volume may be generated.
  • a touch instruction or the like for enlarging or reducing the display interface displayed by the display device may be generated.
  • the automatic calibration method of the touch device of the present application can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device deviates from the corresponding position in the standard wearing state, thereby accurately recognizing the touch operation, effectively avoiding The actual touch operation is inconsistent with the touch operation desired by the user, and the user has a better use experience.
  • FIG. 8 is a flowchart of an automatic calibration method of a touch device according to a second embodiment of the present application.
  • the second embodiment includes setting the calibration coordinates of the touch device according to the difference between the actual angle value and the preset angle value. And performing coordinate transformation on coordinate values of respective effective touch points in the original coordinate system to obtain coordinate values of the respective effective touch points in the calibration coordinate system.
  • the specific solutions applicable to the first embodiment may also be correspondingly applied to the second embodiment, in order to save space and avoid repetition, here I won't go into details.
  • the automatic calibration method includes the following steps:
  • Step 201 preset an original coordinate system of the touch device (as indicated by a dotted line in FIG. 9).
  • Step 202 Predetermine a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value.
  • the effective touch area of the touch device 54 is a circle having the origin O as a center and a preset value R as a radius.
  • the coordinate value of the origin O is O(x0, y0), assuming that the touch point is point A, and the straight line passing through the touch point A and the origin O of the original coordinate system and the abscissa axis of the original coordinate system The angle between the two is b, and it is assumed that the actual coordinate value of the touch point A detected by the touch device 54 in the original coordinate system is A (x1, y1).
  • the angle value a is greater than or less than a0, it may be determined that the position of the headset 53 and the touch device 54 is deflected relative to the position in the standard wearing state, so that the original coordinate system is also Deflection occurs following the touch device 54, so the coordinate system of the touch device 54 needs to be calibrated.
  • the angle can be determined as (a-a0), the original coordinate system is also centered on its origin, and the angle of (a-a0) is deflected following the wearing device 53, and the original coordinate system needs to be centered on its origin.
  • the angle of (a-a0) is deflected in the opposite direction to obtain a calibration coordinate system (shown by the solid line in Fig. 9).
  • the coordinate value A'(x, y) is the calibration coordinate value of the touch point A.
  • the angle between the abscissa axis of the original coordinate system and the abscissa axis of the calibration coordinate system may be determined as (a-a0), then the touch point A and the origin of the calibration coordinate system
  • the angle between the straight line of O and the abscissa axis of the calibration coordinate system is (b+a-a0).
  • the coordinate relationship between the coordinate values of the touch point A in the original coordinate system and the coordinate values in the calibration coordinate system can be calculated by using the following trigonometric function formula:
  • the coordinate value of the origin of the calibration coordinate system is the same as the coordinate value of the origin of the original coordinate system, and is set to O(x0, y0). It can be understood that, in other embodiments, the coordinate value of the origin of the calibration coordinate system and the coordinate value of the origin of the original coordinate system may also be different.
  • y (x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0.
  • the effective touch area of the touch device 54 may also be other shapes, such as a square, a polygon, or the like.
  • the touch device 54 can also rotate following the rotation of the display device 51.
  • the setting of the coordinate conversion formula is similar to the above example, and details are not repeated herein.
  • Step 203 Acquire an actual angle value between a plane where the display device is located and a plane where the headset is located when relative rotation occurs between the display device and the headset.
  • Step 204 Set the calibration coordinate system of the touch device according to a difference between the actual angle value and the preset angle value, where the actual angle value is not equal to the preset angle value.
  • the preset angle value is an angle value between a plane in which the display device is located and a plane in which the headwear device is located in the standard wearing state.
  • the step of setting the calibration coordinate system of the touch device according to the difference between the actual angle value and the preset angle value specifically includes:
  • the original coordinate system is placed along the wearing device near the display centering on the origin of the original coordinate system Rotating the first angle of the device to get the a calibration coordinate system of the touch device, wherein the first angle is equal to the difference;
  • the original coordinate system is moved away from the display along the wearing device centering on the origin of the original coordinate system
  • the direction of the device is rotated a second angle to obtain a calibration coordinate system of the touch device, wherein the second angle is equal to the absolute value of the difference.
  • Step 205 Perform coordinate conversion on coordinate values of the effective touch points of the touch device in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value to obtain the effective touch points. Coordinate values in the calibration coordinate system.
  • Step 206 Acquire calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected.
  • Step 207 Generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
  • the automatic calibration method of the touch device of the present application can automatically set the calibration coordinate system of the touch device when the position of the touch device deviates from the corresponding position in the standard wearing state, and the effective touch points of the touch device are original
  • the coordinate values in the coordinate system are converted into calibration coordinate values in the calibration coordinate system, and the calibration coordinate values of the touch points in the calibration coordinate system are directly acquired when the touch operation is generated, so that the touch operation can be accurately recognized.
  • the situation that the actual touch operation is inconsistent with the touch operation desired by the user is effectively avoided, and the user has a better use experience.
  • FIG. 10 is a schematic structural diagram of an automatic calibration apparatus 10 of a touch device according to an embodiment of the present application.
  • the automatic calibration apparatus 10 is applied to a head mounted display device having the touch device.
  • the automatic calibration device 10 can include one or more modules that are stored in a memory of the head mounted display device and configured to be comprised by one or more processors (this embodiment is A processor) is executed to complete the application.
  • the automatic calibration apparatus 10 may include a setting module 111, an angle detecting module 112, a coordinate detecting module 113, a coordinate conversion module 114, and a control module 115.
  • the module referred to in the embodiment of the present application may be a program segment that completes a specific function, and is more suitable than the program to describe the execution process of the software in the processor. It can be understood that, corresponding to each of the above-described automatic calibration methods, the automatic calibration apparatus 10 may include some or all of the functional modules shown in FIG. 10, and the functions of each module will be specifically described below.
  • the setting module 111 is configured to preset an original coordinate system of the touch device 54 and preset an actual coordinate value and calibration of an effective touch point of the touch device 54 in the original coordinate system.
  • the angle detecting module 112 is configured to acquire a plane between the plane where the display device 51 is located and the plane where the head device 53 is located when the relative rotation between the display device 51 and the headset 53 occurs. Actual angle value.
  • the head mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second angle sensor 612 disposed on the display device 51.
  • the first angle sensor 611 is configured to detect an angle value at which the headset device 53 rotates
  • the second angle sensor 612 is configured to detect The angle value at which the display device 51 rotates.
  • the angle detecting module 112 is configured to respectively acquire angle data sensed by the first angle sensor 611 and the second angle sensor 612, and calculate a plane where the display device 51 is located according to the acquired angle data. The actual angular value between the planes in which the headgear 53 is located.
  • the coordinate detecting module 113 is configured to acquire a touch point corresponding to the touch operation in the original when the actual angle value is not equal to the preset angle value and a touch operation is detected. Actual coordinate data in the coordinate system.
  • the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
  • the coordinate conversion module 114 is configured to calculate calibration coordinate data of the touch point corresponding to the touch operation in the original coordinate system according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data.
  • the touch operation includes a single touch operation, and the actual coordinate data and the calibration coordinate data each include a coordinate value.
  • the touch operation may also include a multi-touch operation, and the actual coordinate data and the calibration coordinate data each include a set of coordinate values.
  • the control module 115 is configured to generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
  • a touch instruction for controlling playing or pausing the currently played audio and video file may be generated.
  • a touch action is a double tap
  • a touch command for controlling the call menu may be generated.
  • a touch instruction for controlling the adjustment of the playback volume may be generated.
  • a touch instruction or the like for enlarging or reducing the display interface displayed by the display device 51 may be generated.
  • the automatic calibration device of the touch device 54 provided by the one embodiment can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device 54 deviates from the corresponding position in the standard wearing state, thereby being able to accurately Recognizing the touch operation effectively avoids the situation where the actual touch operation is inconsistent with the touch operation desired by the user, and enables the user to have a better use experience.
  • the setting module 111 is further configured to: according to the difference between the actual angle value and the preset angle value, the actual angle value is not equal to the preset angle value.
  • the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
  • the position of the origin of the calibration coordinate system is the same as the position of the origin of the original coordinate system.
  • the angle detecting module 112 is further configured to calculate the actual angle value and the preset angle. The difference in degrees.
  • the setting module 111 is specifically configured to: when the difference is greater than zero, that is, the actual angle value is greater than the preset angle value, centering on an origin of the original coordinate system, and the original coordinate system is along the
  • the headset 53 is rotated a first angle in the direction of the display device 51 to obtain a calibration coordinate system of the touch device 54, wherein the first angle is equal to the difference.
  • the setting module 111 is further configured to: when the difference is less than zero, that is, when the actual angle value is less than the preset angle value, the original coordinate system is centered on an origin of the original coordinate system
  • the headset 53 is rotated a second angle away from the direction of the display device 51 to obtain a calibration coordinate system of the touch device 54, wherein the second angle is equal to the absolute value of the difference.
  • the coordinate conversion module 114 is configured to perform coordinate conversion on coordinate values of the effective touch points of the touch device 54 in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value to obtain Coordinate values of the respective effective touch points in the calibration coordinate system.
  • the coordinate detecting module 113 is configured to acquire calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected.
  • the control module 115 is configured to generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
  • the automatic calibration method of the touch device provided by the other embodiment can automatically set the calibration coordinate system of the touch device when the position of the touch device deviates from the corresponding position in the standard wearing state, and each of the touch devices
  • the coordinate value of the effective touch point in the original coordinate system is converted into the calibration coordinate value in the calibration coordinate system, and the calibration coordinate value of the touch point in the calibration coordinate system is directly acquired when the touch operation is generated, thereby being accurate
  • the touch operation is recognized to effectively avoid the situation that the actual touch operation is inconsistent with the touch operation desired by the user, and the user has a better use experience.
  • the embodiment of the present application further provides a head mounted display device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor executes the program to implement the foregoing embodiment.
  • a head mounted display device including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor executes the program to implement the foregoing embodiment.
  • FIG. 11 is a schematic structural diagram of a head mounted display device 100 according to a first embodiment of the present application.
  • the head mounted display device 100 includes at least a processor 20, a memory 30, a computer program 40 (eg, a photographing program) stored in the memory 30 and operable on the processor 20,
  • the display device 51, the earphone device 52, the head device 53, and the touch device 54 are provided.
  • the head mounted display device 100 may be a head mounted video player, a game device, a navigation device, or the like.
  • the display device 51, the earphone device 52, the headset 53 and the touch device 54 please refer to the related detailed description above, and for the sake of saving space and avoiding repetition, no further description is provided here.
  • the schematic diagram 11 is only an example of the head mounted display device 100 used in the present application for implementing the automatic calibration method of the touch device 54 and does not constitute a limitation on the head mounted display device 100. More or fewer components may be included, or some components may be combined, or different components, such as the head mounted display device 100. Input and output devices, network access devices, wireless transmission devices, and the like can also be included.
  • the processor 20 executes the computer program 40, the steps in the above embodiments of the various automatic calibration methods are implemented, such as steps 101-106 shown in FIG. 3 or steps 201-207 shown in FIG.
  • the processor 20 executes the computer program 40, the functions of the modules/units, such as the modules 111-115, in the embodiment of the automatic calibration device 10 described above are implemented.
  • the computer program 40 can be partitioned into one or more modules/units that are stored in the memory 30 and executed by the processor 20 to complete This application.
  • the one or more modules/units may be a series of computer program 40 instruction segments capable of performing a particular function for describing the execution of the computer program 40 in the head mounted display device 100.
  • the computer program 40 can be divided into the setting module 111, the angle detecting module 112, the coordinate detecting module 113, the coordinate conversion module 114, and the control module 115 in FIG. 10, and the specific functions of the modules 111-115 are as described above. For details, in order to save space and avoid duplication, we will not repeat them here.
  • the processor 20 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 20 is a control center of the head mounted display device 100, and the entire automatic calibration is connected by using various interfaces and lines. Device 10 / various portions of head mounted display device 100.
  • the memory 30 can be used to store the computer program 40 and/or modules/units by running or executing computer programs 40 and/or modules/units stored in the memory 30, and for invoking storage
  • the data within the memory 30 enables various functions of the auto-calibration device 10/head-mounted display device 100.
  • the memory 30 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (for example, a sound playing function, an image playing function, etc.), and the like; the storage data area may be Data created according to the use of the head mounted display device 100 (for example, audio data, data set and acquired by applying the above-described automatic calibration method, and the like) are stored.
  • the memory 30 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD).
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD).
  • SSD secure digital
  • flash card at least one disk storage device, flash device, or other volatile solid state storage device.
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the automatic calibration method described in the above embodiments.
  • the automatic calibration device 10/head mounted display device 100/computer device integrated module/unit of the present application can be stored in a computer readable if it is implemented in the form of a software functional unit and sold or used as a standalone product. In the storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor. Wherein the computer program includes
  • the computer program code may be in the form of source code, an object code form, an executable file, or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
  • the disclosed automatic calibration method and apparatus may be implemented in other manners.
  • the above-described automatic calibration device implementation is merely illustrative.
  • the division of the module is only a logical function division, and the actual implementation may have another division manner.
  • each functional module in each embodiment of the present application may be integrated in the same processing module, or each module may exist physically separately, or two or more modules may be integrated in the same module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.

Abstract

A head-mounted display apparatus (100) and an automatic calibration method of a touch device (54) thereof, said method comprising: predetermining an original coordinate system of the touch device (54), and a coordinate conversion formula between the actual coordinate values and the calibration coordinate values of an effective touch point of the touch device; when a relative rotation occurs between the display device (51) and the head- mounted device (53) of the head-mounted display apparatus (100), acquiring an actual angle value between a plane where the display device (51) is located and a plane where the head-mounted device (53) is located; when the actual angle value is not equal to a preset angle value and a touch operation is detected, acquiring actual coordinate data of a touch point corresponding to the touch operation in the original coordinate system; calculating, according to the coordinate conversion formula and the actual coordinate data, calibration coordinate data of the touch point in the original coordinate system; and generating a touch instruction according to the calibration coordinate data, so as to trigger a corresponding touch operation, thereby avoiding the case that the actual operation is inconsistent with the touch operation expected by the user.

Description

头戴式显示设备及其触摸装置的自动校准方法Head-mounted display device and automatic calibration method thereof 技术领域Technical field
本申请涉及触摸校准技术领域,尤其涉及一种头戴式显示设备及其触摸装置的自动校准方法、以及计算机可读存储介质。The present application relates to the field of touch calibration technologies, and in particular, to an automatic calibration method for a head mounted display device and a touch device thereof, and a computer readable storage medium.
背景技术Background technique
头戴式显示设备(Head Mounted Display,HMD)是指可穿戴于用户头部的显示设备。目前,头戴式显示设备由于其具有良好的视觉体验效果而变得越来越流行。目前市场上的头戴式显示设备通常被配置成与耳机一起使用来控制用户的视觉和听觉,因此头戴式显示设备通常包括显示装置、耳机装置和头戴装置这三大部分,其中,头戴式显示设备的显示装置通常被设计成可以旋转,不使用时,可将显示装置旋转至与头戴装置大致叠合的位置,以便于收纳;需要使用时,可将显示装置旋转至与头戴装置大致垂直的位置,以便于佩戴及在佩戴后将显示装置置于用户的眼睛前方。A head mounted display (HMD) refers to a display device that can be worn on a user's head. Currently, head-mounted display devices are becoming more and more popular due to their good visual experience. Head-mounted display devices currently on the market are generally configured to be used with headphones to control the user's vision and hearing, and thus the head-mounted display device typically includes three parts: a display device, a headphone device, and a head-mounted device, wherein the head The display device of the wearable display device is generally designed to be rotatable, and when not in use, the display device can be rotated to a position substantially overlapping with the headgear device for storage; when needed, the display device can be rotated to the head The device is placed in a substantially vertical position to facilitate wearing and placing the display device in front of the user's eyes after wearing.
目前有一些头戴式显示设备还配备了触摸装置,例如触摸板或触摸屏,以实现对该头戴式显示设备进行相应的操作。该触摸装置一般设于耳机装置上,以便于用户操作。该触摸装置还跟随显示装置或者头戴装置的旋转而转动,这样在该触摸装置上的操作就会随着头戴装置与显示装置之间的角度变化而产生不同的效果,例如手势、上下左右的判断都可能会产生误判,从而影响用户使用体验。At present, some head-mounted display devices are also equipped with a touch device, such as a touch panel or a touch screen, to perform corresponding operations on the head-mounted display device. The touch device is generally disposed on the earphone device to facilitate user operation. The touch device also rotates following the rotation of the display device or the headset, such that the operation on the touch device produces different effects as the angle between the headset and the display device changes, such as gestures, up and down, left and right. The judgment may result in misjudgment, which affects the user experience.
发明内容Summary of the invention
鉴于此,本申请提供一种头戴式显示设备及其触摸装置的自动校准方法、以及计算机可读存储介质,能够在触摸装置的位置偏离标准佩戴状态下对应的位置时自动校准触摸点的坐标值,以准确地识别触摸操作,并避免实际触摸操作与用户期望的触摸操作不一致的情况。In view of this, the present application provides an automatic calibration method for a head mounted display device and a touch device thereof, and a computer readable storage medium capable of automatically calibrating coordinates of a touch point when the position of the touch device deviates from a corresponding position in a standard wearing state. Value to accurately identify the touch operation and avoid situations where the actual touch operation is inconsistent with the touch operation desired by the user.
第一方面,本申请提供一种触摸装置的自动校准方法,所述自动校准方法应用于具有所述触摸装置的头戴式显示设备中,所述头戴式显示设备还包括显示装置以及头戴装置。所述自动校准方法包括:In a first aspect, the present application provides an automatic calibration method for a touch device, the automatic calibration method being applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a headset Device. The automatic calibration method includes:
预设所述触摸装置的原始坐标系;Presetting the original coordinate system of the touch device;
预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式;Presetting a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value;
在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值;Obtaining an actual angle value between a plane in which the display device is located and a plane in which the head device is located when relative rotation occurs between the display device and the headwear device;
在所述实际角度值不等于预设角度值且侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述原始坐标系中的实际坐标数据; Obtaining actual coordinate data of the touch point corresponding to the touch operation in the original coordinate system when the actual angle value is not equal to the preset angle value and the touch operation is detected;
依据所述坐标转换公式、实际角度值、预设角度值以及实际坐标数据,计算出所述触摸操作对应的触摸点在所述原始坐标系中的校准坐标数据;Calculating calibration coordinate data of the touch point corresponding to the touch operation in the original coordinate system according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data;
依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。A touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
第二方面,本申请提供一种触摸装置的自动校准方法,所述自动校准方法应用于具有所述触摸装置的头戴式显示设备中,所述头戴式显示设备还包括显示装置以及头戴装置。所述自动校准方法包括:In a second aspect, the present application provides an automatic calibration method for a touch device, the automatic calibration method being applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a headset Device. The automatic calibration method includes:
预设所述触摸装置的原始坐标系;Presetting the original coordinate system of the touch device;
预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式;Presetting a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value;
在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值;Obtaining an actual angle value between a plane in which the display device is located and a plane in which the head device is located when relative rotation occurs between the display device and the headwear device;
在所述实际角度值不等于所述预设角度值时,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系;When the actual angle value is not equal to the preset angle value, setting a calibration coordinate system of the touch device according to a difference between the actual angle value and the preset angle value;
依据所述坐标转换公式、实际角度值、预设角度值对所述触摸装置的各个有效触摸点在所述原始坐标系中的坐标值进行坐标转换,以获得所述各个有效触摸点在所述校准坐标系中的坐标值;Performing coordinate conversion on coordinate values of the effective touch points of the touch device in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value, to obtain the respective effective touch points in the Calibrate the coordinate values in the coordinate system;
在侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述校准坐标系中的校准坐标数据;Obtaining calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected;
依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。A touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
第三方面,本申请提供一种头戴式显示设备,所述头戴式显示设备包括处理器,所述处理器用于执行存储器中的存储的计算机程序时实现上述任一实施例所述的触摸装置的自动校准方法的步骤。In a third aspect, the present application provides a head mounted display device, the head mounted display device comprising a processor for implementing the touch described in any of the above embodiments when executing a stored computer program in a memory The steps of the automatic calibration method of the device.
第四方面,本申请提供一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时实现上述任一实施例所述的触摸装置的自动校准方法的步骤。In a fourth aspect, the present application provides a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, implement the steps of the automatic calibration method of the touch device described in any of the above embodiments.
本申请的触摸装置的自动校准方法、装置能够在触摸装置的位置偏离标准佩戴状态下对应的位置时,自动将触摸点的实际坐标值转换为校准坐标值,从而能够准确地识别触摸操作,有效避免了实际触摸操作与用户期望的触摸操作不一致的情况,并使用户具有较佳的使用体验。The automatic calibration method and device of the touch device of the present application can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device deviates from the corresponding position in the standard wearing state, thereby accurately identifying the touch operation and effectively The situation that the actual touch operation is inconsistent with the touch operation desired by the user is avoided, and the user has a better use experience.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为本申请一实施方式的头戴式显示设备的立体图,所述头戴式显示设备包括显示装 置、头戴装置以及触摸装置。1 is a perspective view of a head mounted display device according to an embodiment of the present application, the head mounted display device including a display device Set, headset, and touch device.
图2为图1的头戴式显示设备处于第一使用状态时的等效结构示意图。2 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a first use state.
图3为本申请第一实施方式的触摸装置的自动校准方法的流程图。3 is a flow chart of an automatic calibration method of a touch device according to a first embodiment of the present application.
图4为图2的显示装置所在的平面和头戴装置所在的平面之间的角度值的示意图。4 is a schematic illustration of angle values between the plane in which the display device of FIG. 2 is located and the plane in which the headgear is located.
图5为图1的头戴式显示设备处于非使用状态时的等效结构示意图。FIG. 5 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a non-use state.
图6为图1的头戴式显示设备处于第二使用状态时的等效结构示意图。6 is a schematic diagram showing an equivalent structure of the head mounted display device of FIG. 1 in a second use state.
图7为在图2的触摸装置中产生的触摸点A及其校准点B在原始坐标系中的坐标示意图。FIG. 7 is a schematic diagram of coordinates of the touch point A and its calibration point B generated in the touch device of FIG. 2 in the original coordinate system.
图8为本申请第二实施方式的触摸装置的自动校准方法的流程图。FIG. 8 is a flowchart of an automatic calibration method of a touch device according to a second embodiment of the present application.
图9为在图2的触摸装置中产生的触摸点在原始坐标系以及校准坐标系中的坐标示意图。9 is a schematic diagram of coordinates of a touch point generated in the touch device of FIG. 2 in a raw coordinate system and a calibration coordinate system.
图10为本申请一实施方式的自动校准装置的功能模块图。FIG. 10 is a functional block diagram of an automatic calibration apparatus according to an embodiment of the present application.
图11为本申请一实施方式的头戴式显示设备的功能模块示意图。FIG. 11 is a schematic diagram of functional modules of a head mounted display device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,本申请提供一种头戴式显示设备100,所述头戴式显示设备100用于提供给用户佩戴于头部上,以便于用户观看视频或图像,并可听声音。所述头戴式显示设备100可以是一个头戴式的视频播放器、游戏装置、导航装置等。在本实施方式中,所述头戴式显示设备100至少包括显示装置51、耳机装置52、头戴装置53以及触摸装置54。其中,所述显示装置51用于提供显示画面,所述耳机装置52用于提供声音,所述头戴装置53用于将所述头戴式显示设备100佩戴于用户的头部上,所述触摸装置54用于响应触摸操作而产生触控信号,以控制所述头戴式显示设备100执行相应的功能。Referring to FIG. 1 , the present application provides a head mounted display device 100 for providing a user with a head worn on a head so that a user can view a video or an image and can listen to the sound. The head mounted display device 100 can be a head mounted video player, game device, navigation device, or the like. In the present embodiment, the head mounted display device 100 includes at least a display device 51, an earphone device 52, a headset 53, and a touch device 54. The display device 51 is configured to provide a display screen, the earphone device 52 is configured to provide sound, and the headset device 53 is configured to wear the head mounted display device 100 on a user's head. The touch device 54 is configured to generate a touch signal in response to the touch operation to control the head mounted display device 100 to perform a corresponding function.
在本实施方式中,所述显示装置51与所述头戴装置53可转动地连接。所述耳机装置52设置于所述显示装置51与所述头戴装置53的连接处,所述触摸装置54设置于所述耳机装置52上,并与所述显示装置51以及所述头戴装置53的旋转中心513(如图2所示)相对。不使用时,可将所述显示装置51旋转至与所述头戴装置53大致叠合的位置(如图5所示),即,使所述显示装置51所在的平面与所述头戴装置53所在的平面大致重合,以便于收纳所述头戴式显示设备100。需要使用时,可将所述显示装置51旋转至与所述头戴装置53大致垂直的位置(如图6所示),即,使所述显示装置51所在的平面与所述头戴装置53所在的平面大致垂直,以便于佩戴所述头戴式显示设备100及在佩戴后将所述显示装置51置于用户的眼睛前方。 可以理解的是,所述触摸装置54设置于所述耳机装置52的远离用户的一侧,以便于用户在佩戴所述头戴式显示设备100时操作所述触摸装置54。In the present embodiment, the display device 51 and the head device 53 are rotatably connected. The earphone device 52 is disposed at a connection between the display device 51 and the headset device 53. The touch device 54 is disposed on the earphone device 52, and the display device 51 and the headset device The center of rotation 513 of 53 (shown in Figure 2) is opposite. When not in use, the display device 51 can be rotated to a position substantially overlapping with the headset 53 (as shown in FIG. 5), that is, a plane in which the display device 51 is located and the headset The plane in which 53 is located substantially coincides to facilitate accommodation of the head mounted display device 100. When it is required to be used, the display device 51 can be rotated to a position substantially perpendicular to the headset 53 (as shown in FIG. 6), that is, a plane in which the display device 51 is located and the headset 53 The plane in which it is located is substantially vertical to facilitate wearing the head mounted display device 100 and placing the display device 51 in front of the user's eyes after wearing. It can be understood that the touch device 54 is disposed on a side of the earphone device 52 away from the user, so that the user operates the touch device 54 while wearing the head mounted display device 100.
如图2所示,在本实施方式中,所述头戴式显示设备100还包括设置于所述头戴装置53上的第一角度传感器611,以及设置于所述显示装置51上的第二角度传感器612,其中,所述第一角度传感器611用于检测所述头戴装置53发生旋转的角度值,所述第二角度传感器612用于检测所述显示装置51发生旋转的角度值。通过所述第一角度传感器611以及所述第二角度传感器612检测到的角度数据即可计算出所述显示装置51与所述头戴装置53之间发生相对旋转的角度值。As shown in FIG. 2, in the present embodiment, the head mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second disposed on the display device 51. An angle sensor 612, wherein the first angle sensor 611 is configured to detect an angle value at which the head gear 53 rotates, and the second angle sensor 612 is configured to detect an angle value at which the display device 51 rotates. An angle value of relative rotation between the display device 51 and the headset 53 can be calculated by the angle data detected by the first angle sensor 611 and the second angle sensor 612.
在本实施方式中,所述触摸装置54还可跟随所述显示装置51或者所述头戴装置53的旋转而转动,即,所述触摸装置54与所述显示装置51或者所述头戴装置53之间具有相对静止的连接关系。由于在所述触摸装置54上的触摸操作会随着所述头戴装置53与所述显示装置51之间的角度值的变化而产生不同的效果,例如手势、上下左右的判断都可能会产生误判,从而影响用户使用体验。因此在使用所述头戴式显示设备100时需要根据所述头戴装置53所在的平面与所述显示装置51所在的平面之间的实际角度值对所述触摸装置54的有效触摸点的坐标值进行校准。In the embodiment, the touch device 54 can also rotate according to the rotation of the display device 51 or the headset 53 , that is, the touch device 54 and the display device 51 or the headset There is a relatively static connection between 53. Since the touch operation on the touch device 54 may have different effects as the angle value between the head device 53 and the display device 51 changes, for example, a gesture, a determination of up, down, left, and right may occur. Misjudgment, which affects the user experience. Therefore, when using the head mounted display device 100, coordinates of an effective touch point of the touch device 54 according to an actual angle value between a plane in which the headset 53 is located and a plane in which the display device 51 is located are required. The value is calibrated.
举例来说,当所述触摸装置54相对于标准佩戴状态下的位置偏转了90度后,若用户在所述触摸装置54上输入向上的滑动手势,在没有校准之前,所述触摸装置54识别到的是矢量向左的手势,需要矫正为矢量向上的手势。For example, after the touch device 54 is deflected by 90 degrees with respect to the position in the standard wearing state, if the user inputs an upward sliding gesture on the touch device 54, the touch device 54 recognizes before the calibration is performed. It is a vector-to-left gesture that needs to be corrected to a vector-up gesture.
请参阅图3,为本申请第一实施方式的触摸装置的自动校准方法的流程图,所述自动校准方法应用于具有所述触摸装置的头戴式显示设备中。应说明的是,本申请实施方式的所述自动校准方法并不限于图3所示的流程图中的步骤及顺序。根据不同的需求,所示流程图中的步骤可以增加、移除、或者改变顺序。Please refer to FIG. 3 , which is a flowchart of an automatic calibration method of a touch device according to a first embodiment of the present application, which is applied to a head mounted display device having the touch device. It should be noted that the automatic calibration method in the embodiment of the present application is not limited to the steps and the sequence in the flowchart shown in FIG. 3. The steps in the illustrated flow diagrams can be added, removed, or changed in order, depending on the requirements.
如图3所示,所述自动校准方法包括如下步骤:As shown in FIG. 3, the automatic calibration method includes the following steps:
步骤101,预设所述触摸装置的原始坐标系。Step 101: preset an original coordinate system of the touch device.
在本实施方式中,如图4所示,在所述显示装置51与所述头戴装置53之间发生相对旋转后,设定所述显示装置51所在的平面与所述头戴装置53所在的平面之间的角度值为a,如图5所示,当所述显示装置51旋转至与所述头戴装置53大致叠合的位置时,所述角度值a=0。如图6所示,当所述显示装置51与所述头戴装置53之间大致呈垂直状态时,可将该状态设为标准佩戴状态,并将在所述标准佩戴状态下所述显示装置51所在的平面与所述头戴装置53所在的平面之间的角度值a设为预设角度值a0。In the present embodiment, as shown in FIG. 4, after the relative rotation between the display device 51 and the headset 53, the plane where the display device 51 is located and the headset 53 are set. The angle value between the planes is a, as shown in FIG. 5, when the display device 51 is rotated to a position substantially overlapping the headwear 53, the angle value a=0. As shown in FIG. 6, when the display device 51 and the headset 53 are substantially perpendicular to each other, the state can be set to a standard wearing state, and the display device will be in the standard wearing state. The angle value a between the plane in which 51 is located and the plane in which the headgear 53 is located is set to a preset angle value a0.
在本实施方式中,所述原始坐标系(如图6中的点画线所示)的原点O的位置设于所述显示装置51与所述头戴装置53之间的旋转中心513在所述触摸装置54表面的投影位置上。In the present embodiment, the position of the origin O of the original coordinate system (shown by the dotted line in FIG. 6) is set at the rotation center 513 between the display device 51 and the wearing device 53 in the The projection position of the surface of the touch device 54.
在本实施方式中,所述触摸装置54跟随所述头戴装置53的旋转而转动,所述原始坐标系的纵坐标轴设定为与所述头戴装置53所在的平面平行。 In the present embodiment, the touch device 54 rotates following the rotation of the headset 53, and the ordinate axis of the original coordinate system is set to be parallel to the plane in which the headset 53 is located.
在本实施方式中,所述预设角度值a0=90度。这样,所述原始坐标系的横坐标轴还与所述显示装置51所在的平面平行。In this embodiment, the preset angle value a0=90 degrees. Thus, the abscissa axis of the original coordinate system is also parallel to the plane in which the display device 51 is located.
可以理解的是,在所述标准佩戴状态下,所述原始坐标系的横坐标的负、正方向分别与所述触摸装置54的左、右方向对应,所述原始坐标系的纵坐标的正、负方向分别与所述触摸装置54的上、下方向对应。如此,在所述触摸装置54上产生的触摸操作,例如手势、上下左右等的判断均正常。It can be understood that, in the standard wearing state, the negative and positive directions of the abscissa of the original coordinate system respectively correspond to the left and right directions of the touch device 54, and the ordinate of the original coordinate system is positive. The negative direction corresponds to the upper and lower directions of the touch device 54, respectively. As such, the touch operations generated on the touch device 54, such as gestures, up, down, left, and the like, are all normal.
可以理解的是,在其他实施方式中,所述预设角度值a0也可以设为其他值,例如95度等。It can be understood that in other embodiments, the preset angle value a0 can also be set to other values, such as 95 degrees.
可以理解的是,在其他实施方式中,所述触摸装置54也可以跟随所述显示装置51的旋转而转动,所述原始坐标系的横坐标轴也可设定为与所述显示装置51所在的平面平行。It can be understood that, in other embodiments, the touch device 54 can also rotate according to the rotation of the display device 51, and the abscissa axis of the original coordinate system can also be set to be opposite to the display device 51. The planes are parallel.
步骤102,预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式。Step 102: Predetermine a coordinate conversion formula between an actual coordinate value of the effective touch point of the touch device and the calibration coordinate value in the original coordinate system.
下面以所述触摸装置54跟随所述头戴装置53的旋转而转动为例对上述的坐标转换公式进行详细说明。The coordinate conversion formula described above will be described in detail below by taking the touch device 54 following the rotation of the head device 53 as an example.
如图7所示,在本实施方式中,所述触摸装置54的有效触摸区域为以所述原点O为圆心,以预设值R为半径的圆。As shown in FIG. 7 , in the present embodiment, the effective touch area of the touch device 54 is a circle having the origin O as a center and a preset value R as a radius.
假设原点O的坐标值为O(x0,y0),假设触摸点为A点,且经过所述触摸点A和所述原始坐标系的原点O的直线与所述原始坐标系的横坐标轴之间的夹角为b,并假设所述触摸装置54检测到的所述触摸点A在所述原始坐标系中的实际坐标值为A(x1,y1)。Suppose the coordinate value of the origin O is O(x0, y0), assuming that the touch point is point A, and the straight line passing through the touch point A and the origin O of the original coordinate system and the abscissa axis of the original coordinate system The angle between the two is b, and it is assumed that the actual coordinate value of the touch point A detected by the touch device 54 in the original coordinate system is A (x1, y1).
当所述角度值a大于或小于a0时,可确定所述头戴装置53以及所述触摸装置54的位置相对于在所述标准佩戴状态下的位置发生了偏转,从而所述原始坐标系也跟随所述触摸装置54发生了偏转,因此,在所述触摸装置54上产生的触摸点的坐标值需要校准。其中,所述头戴装置53的偏转角度可确定为(a-a0),因此,所述触摸点A的位置也要以所述原始坐标系的原点为中心,跟随所述头戴装置53偏转(a-a0)的角度。When the angle value a is greater than or less than a0, it may be determined that the position of the headset 53 and the touch device 54 is deflected relative to the position in the standard wearing state, so that the original coordinate system is also The deflection occurs following the touch device 54, so the coordinate values of the touch points generated on the touch device 54 need to be calibrated. The deflection angle of the headset 53 can be determined as (a-a0). Therefore, the position of the touch point A is also centered on the origin of the original coordinate system, and is followed by the headset 53. The angle of (a-a0).
假设触摸点A被校准后的等效点为校准点B,并假设校准点B位于所述原始坐标系中的坐标值为B(x,y),则所述坐标值B(x,y)即为所述触摸点A的校准坐标值。其中,经过所述触摸点A和所述原始坐标系的原点O的直线与经过所述校准点B和所述原始坐标系的原点O的直线之间的夹角可确定为(a-a0),则经过所述校准点B以及所述原始坐标系的原点O的直线与所述原始坐标系的横坐标轴之间的夹角为(b+a-a0)。Assume that the equivalent point after the touch point A is calibrated is the calibration point B, and assuming that the coordinate value of the calibration point B in the original coordinate system is B(x, y), the coordinate value B(x, y) That is, the calibration coordinate value of the touch point A. Wherein, an angle between a straight line passing through the touch point A and the origin O of the original coordinate system and a straight line passing through the calibration point B and the origin O of the original coordinate system can be determined as (a-a0) Then, the angle between the straight line passing through the calibration point B and the origin O of the original coordinate system and the abscissa axis of the original coordinate system is (b+a-a0).
利用下面的三角函数公式可计算出所述触摸点A以及校准点B的坐标值之间的转换关系:The conversion relationship between the coordinate values of the touch point A and the calibration point B can be calculated by using the following trigonometric function formula:
Sin(b)=(y1-y0)/R,Sin(b)=(y1-y0)/R,
Cos(b)=(x0-x1)/R,Cos(b)=(x0-x1)/R,
Sin(b+a-a0)=(y-y0)/R,Sin(b+a-a0)=(y-y0)/R,
Cos(b+a-a0)=(x0-x)/R。Cos(b+a-a0)=(x0-x)/R.
经过数学关系换算之后,可得到所述坐标转换公式: After the mathematical relationship is converted, the coordinate conversion formula can be obtained:
x=(x1-x0)*cos(a0-a)-(y-y0)*sin(a0-a)+x0,x=(x1-x0)*cos(a0-a)-(y-y0)*sin(a0-a)+x0,
y=(x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0。y=(x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0.
可以理解的是,在其他实施方式中,所述触摸装置54的有效触摸区域也可以为其他的形状,例如方形、多边形等。在其他实施方式中,所述触摸装置54也可以跟随所述显示装置51的旋转而转动。在所述其他实施方式中,所述坐标转换公式的设定与上述的举例类似,在此不重复赘述。It can be understood that in other embodiments, the effective touch area of the touch device 54 may also be other shapes, such as a square, a polygon, or the like. In other embodiments, the touch device 54 can also rotate following the rotation of the display device 51. In the other embodiments, the setting of the coordinate conversion formula is similar to the above example, and details are not repeated herein.
步骤103,在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值。Step 103: Acquire an actual angle value between a plane where the display device is located and a plane where the headset is located when relative rotation occurs between the display device and the headset.
其中,如前面所述,所述头戴式显示设备100还包括设置于所述头戴装置53上的第一角度传感器611,以及设置于所述显示装置51上的第二角度传感器612,其中,所述第一角度传感器611用于检测所述头戴装置53发生旋转的角度值,所述第二角度传感器612用于检测所述显示装置51发生旋转的角度值。The head-mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second angle sensor 612 disposed on the display device 51, wherein the head-mounted display device 100 includes a second angle sensor 612 disposed on the display device 51, wherein The first angle sensor 611 is configured to detect an angle value at which the head gear 53 rotates, and the second angle sensor 612 is configured to detect an angle value at which the display device 51 rotates.
在本实施方式中,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值的步骤包括:In this embodiment, the step of acquiring the actual angle value between the plane where the display device is located and the plane where the headset is located includes:
分别获取所述第一角度传感器以及第二角度传感器感测到的角度数据;Acquiring the angle data sensed by the first angle sensor and the second angle sensor respectively;
根据获取到的角度数据计算出所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值。Calculating an actual angle value between a plane where the display device is located and a plane where the head device is located according to the acquired angle data.
具体地,可通过所述第一角度传感器611检测所述头戴装置53在一特定状态,例如初始状态下沿一预设方向旋转的角度c1,通过所述第二角度传感器612检测所述显示装置51在所述特定状态下沿所述预设方向旋转的角度c2,并通过计算两者之和(即a=c1+c2)或两者之间的差值的绝对值(即a=|c2-c1|)即可得到所述实际角度值。Specifically, the first angle sensor 611 can detect the angle c1 of the wearing device 53 in a specific state, for example, an initial state, and the second angle sensor 612 detects the display by the second angle sensor 612. The angle 51 of the device 51 rotating in the predetermined direction in the predetermined state, and by calculating the sum of the two (ie, a=c1+c2) or the absolute value of the difference between the two (ie, a=| The actual angle value can be obtained by c2-c1|).
可以理解的是,若所述头戴装置53与所述显示装置51沿相同方向旋转,则所述实际角度值等于两者旋转的角度之差的绝对值。若所述头戴装置53与所述显示装置51沿相反方向旋转,则所述实际角度值等于两者旋转的角度之和。若所述头戴装置53与所述显示装置51中只有其中一个发生旋转,则所述实际角度值等于发生旋转的头戴装置53或显示装置51旋转的角度值。It can be understood that if the headset 53 rotates in the same direction as the display device 51, the actual angle value is equal to the absolute value of the difference between the angles of rotation. If the headset 53 rotates in the opposite direction with the display device 51, the actual angle value is equal to the sum of the angles at which the two are rotated. If only one of the headset 53 and the display device 51 is rotated, the actual angle value is equal to the angle value at which the rotating headset 53 or the display device 51 rotates.
其中,所述第一角度传感器611以及所述第二角度传感器612可采用陀螺仪传感器。可以理解,在本实施方式中,当所述头戴装置53与所述显示装置51叠合时,所述实际角度值a=0。在本实施方式中,可设定所述头戴装置53与所述显示装置51叠合时的状态为所述初始状态,所述第一角度传感器611以及所述第二角度传感器612在所述初始状态下的状态值是一致的。The first angle sensor 611 and the second angle sensor 612 may employ a gyro sensor. It can be understood that, in the present embodiment, when the wearing device 53 is overlapped with the display device 51, the actual angle value a=0. In the present embodiment, the state in which the wearing device 53 overlaps with the display device 51 can be set to the initial state, and the first angle sensor 611 and the second angle sensor 612 are in the The status values in the initial state are consistent.
步骤104,在所述实际角度值不等于所述预设角度值且侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述原始坐标系中的实际坐标数据。Step 104: Acquire real coordinate data of the touch point corresponding to the touch operation in the original coordinate system when the actual angle value is not equal to the preset angle value and a touch operation is detected.
如上所述,所述预设角度值为在所述标准佩戴状态下所述显示装置51所在的平面与所述头戴装置53所在的平面之间的角度值。As described above, the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
步骤105,依据所述坐标转换公式、实际角度值、预设角度值以及实际坐标数据,计算出 所述触摸操作对应的触摸点在所述原始坐标系中的校准坐标数据。Step 105: Calculate according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data. The calibration coordinate data of the touch point corresponding to the touch operation in the original coordinate system.
可以理解的是,所述触摸操作包括单点触摸操作,所述实际坐标数据和所述校准坐标数据均包括一个坐标值。It can be understood that the touch operation includes a single touch operation, and the actual coordinate data and the calibration coordinate data each include a coordinate value.
可选地,所述触摸操作也可包括多点触摸操作,所述实际坐标数据和所述校准坐标数据均包括一组坐标值。Optionally, the touch operation may also include a multi-touch operation, and the actual coordinate data and the calibration coordinate data each include a set of coordinate values.
步骤106,依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。Step 106: Generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
例如,当所述触摸操作为单击时,可生成控制播放或暂停当前所播放的音视频文件的触控指令。或者,当所述触摸动作为双击时,可生成控制唤出菜单的触控指令。或者,当所述触摸操作为滑动触摸时,可生成控制调节播放音量的触控指令。或者,当所述触摸操作为双指张开或并拢操作时,可生成放大或缩小所述显示装置显示的显示界面的触控指令等。可以理解的是,此处关于触摸操作的相关内容仅为示例性阐述,并不用于限定本申请的保护范围。For example, when the touch operation is a click, a touch instruction for controlling playing or pausing the currently played audio and video file may be generated. Alternatively, when the touch action is a double tap, a touch command for controlling the call menu may be generated. Alternatively, when the touch operation is a sliding touch, a touch instruction for controlling the adjustment of the playback volume may be generated. Alternatively, when the touch operation is a two-finger open or close operation, a touch instruction or the like for enlarging or reducing the display interface displayed by the display device may be generated. It is to be understood that the related content of the touch operation herein is merely illustrative and is not intended to limit the scope of the application.
本申请的触摸装置的自动校准方法能够在触摸装置的位置偏离标准佩戴状态下对应的位置时,自动将触摸点的实际坐标值转换为校准坐标值,从而能够准确地识别触摸操作,有效避免了实际触摸操作与用户期望的触摸操作不一致的情况,并使用户具有较佳的使用体验。The automatic calibration method of the touch device of the present application can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device deviates from the corresponding position in the standard wearing state, thereby accurately recognizing the touch operation, effectively avoiding The actual touch operation is inconsistent with the touch operation desired by the user, and the user has a better use experience.
请参阅图8,为本申请第二实施方式的触摸装置的自动校准方法的流程图。所述的第二实施方式与第一实施方式的主要区别在于,第二实施方式中包括根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系,以及对所述原始坐标系中的各个有效触摸点的坐标值进行坐标转换,以获得所述各个有效触摸点在校准坐标系中的坐标值等步骤。需要说明的是,在本申请的精神或基本特征的范围内,适用于第一实施方式中的各具体方案也可以相应的适用于第二实施方式中,为节省篇幅及避免重复起见,在此就不再赘述。Please refer to FIG. 8 , which is a flowchart of an automatic calibration method of a touch device according to a second embodiment of the present application. The main difference between the second embodiment and the first embodiment is that the second embodiment includes setting the calibration coordinates of the touch device according to the difference between the actual angle value and the preset angle value. And performing coordinate transformation on coordinate values of respective effective touch points in the original coordinate system to obtain coordinate values of the respective effective touch points in the calibration coordinate system. It should be noted that, within the scope of the spirit or the basic features of the present application, the specific solutions applicable to the first embodiment may also be correspondingly applied to the second embodiment, in order to save space and avoid repetition, here I won't go into details.
如图8所示,所述自动校准方法包括如下步骤:As shown in FIG. 8, the automatic calibration method includes the following steps:
步骤201,预设所述触摸装置的原始坐标系(如图9中的点画线所示)。Step 201: preset an original coordinate system of the touch device (as indicated by a dotted line in FIG. 9).
步骤202,预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式。Step 202: Predetermine a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value.
下面以所述触摸装置54跟随所述头戴装置53的旋转而转动为例对上述的坐标转换公式进行详细说明。The coordinate conversion formula described above will be described in detail below by taking the touch device 54 following the rotation of the head device 53 as an example.
如图9所示,在本实施方式中,所述触摸装置54的有效触摸区域为以所述原点O为圆心,以预设值R为半径的圆。As shown in FIG. 9 , in the present embodiment, the effective touch area of the touch device 54 is a circle having the origin O as a center and a preset value R as a radius.
假设原点O的坐标值为O(x0,y0),假设触摸点为A点,且经过所述触摸点A和所述原始坐标系的原点O的直线与所述原始坐标系的横坐标轴之间的夹角为b,并假设所述触摸装置54检测到的所述触摸点A在所述原始坐标系中的实际坐标值为A(x1,y1)。Suppose the coordinate value of the origin O is O(x0, y0), assuming that the touch point is point A, and the straight line passing through the touch point A and the origin O of the original coordinate system and the abscissa axis of the original coordinate system The angle between the two is b, and it is assumed that the actual coordinate value of the touch point A detected by the touch device 54 in the original coordinate system is A (x1, y1).
当所述角度值a大于或小于a0时,可确定所述头戴装置53以及所述触摸装置54的位置相对于在所述标准佩戴状态下的位置发生了偏转,从而所述原始坐标系也跟随所述触摸装置54发生了偏转,因此,所述触摸装置54的坐标系需要校准。其中,所述头戴装置53的偏转 角度可确定为(a-a0),所述原始坐标系也以其原点为中心,跟随所述头戴装置53偏转了(a-a0)的角度,需要将原始坐标系以其原点为中心,往相反方向偏转(a-a0)的角度,以得到校准坐标系(如图9中的实线所示)。When the angle value a is greater than or less than a0, it may be determined that the position of the headset 53 and the touch device 54 is deflected relative to the position in the standard wearing state, so that the original coordinate system is also Deflection occurs following the touch device 54, so the coordinate system of the touch device 54 needs to be calibrated. Wherein the deflection of the headset 53 The angle can be determined as (a-a0), the original coordinate system is also centered on its origin, and the angle of (a-a0) is deflected following the wearing device 53, and the original coordinate system needs to be centered on its origin. The angle of (a-a0) is deflected in the opposite direction to obtain a calibration coordinate system (shown by the solid line in Fig. 9).
假设触摸点A在所述校准坐标系中的坐标值为A’(x,y),则所述坐标值A’(x,y)即为所述触摸点A的校准坐标值。其中,所述原始坐标系的横坐标轴与所述校准坐标系的横坐标轴之间的夹角可确定为(a-a0),则经过所述触摸点A以及所述校准坐标系的原点O的直线与所述校准坐标系的横坐标轴之间的夹角为(b+a-a0)。Assuming that the coordinate value of the touch point A in the calibration coordinate system is A'(x, y), the coordinate value A'(x, y) is the calibration coordinate value of the touch point A. Wherein the angle between the abscissa axis of the original coordinate system and the abscissa axis of the calibration coordinate system may be determined as (a-a0), then the touch point A and the origin of the calibration coordinate system The angle between the straight line of O and the abscissa axis of the calibration coordinate system is (b+a-a0).
利用下面的三角函数公式可计算出所述触摸点A在所述原始坐标系中的坐标值以及在所述校准坐标系中的坐标值之间的转换关系:The coordinate relationship between the coordinate values of the touch point A in the original coordinate system and the coordinate values in the calibration coordinate system can be calculated by using the following trigonometric function formula:
Sin(b)=(y1-y0)/R,Sin(b)=(y1-y0)/R,
Cos(b)=(x0-x1)/R,Cos(b)=(x0-x1)/R,
Sin(b+a-a0)=(y-y0)/R,Sin(b+a-a0)=(y-y0)/R,
Cos(b+a-a0)=(x0-x)/R。Cos(b+a-a0)=(x0-x)/R.
在本实施方式中,所述校准坐标系的原点的坐标值与所述原始坐标系的原点的坐标值相同,均设为O(x0,y0)。可以理解的是,在其他实施方式中,所述校准坐标系的原点的坐标值与所述原始坐标系的原点的坐标值也可以不相同。In the present embodiment, the coordinate value of the origin of the calibration coordinate system is the same as the coordinate value of the origin of the original coordinate system, and is set to O(x0, y0). It can be understood that, in other embodiments, the coordinate value of the origin of the calibration coordinate system and the coordinate value of the origin of the original coordinate system may also be different.
经过数学关系换算之后,可得到所述坐标转换公式:After the mathematical relationship is converted, the coordinate conversion formula can be obtained:
x=(x1-x0)*cos(a0-a)-(y-y0)*sin(a0-a)+x0,x=(x1-x0)*cos(a0-a)-(y-y0)*sin(a0-a)+x0,
y=(x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0。y=(x1-x0)*sin(a0-a)+(y-y0)*cos(a0-a)+y0.
可以理解的是,在其他实施方式中,所述触摸装置54的有效触摸区域也可以为其他的形状,例如方形、多边形等。在其他实施方式中,所述触摸装置54也可以跟随所述显示装置51的旋转而转动。在所述其他实施方式中,所述坐标转换公式的设定与上述的举例类似,在此不重复赘述。It can be understood that in other embodiments, the effective touch area of the touch device 54 may also be other shapes, such as a square, a polygon, or the like. In other embodiments, the touch device 54 can also rotate following the rotation of the display device 51. In the other embodiments, the setting of the coordinate conversion formula is similar to the above example, and details are not repeated herein.
步骤203,在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值。Step 203: Acquire an actual angle value between a plane where the display device is located and a plane where the headset is located when relative rotation occurs between the display device and the headset.
步骤204,在所述实际角度值不等于所述预设角度值,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系。Step 204: Set the calibration coordinate system of the touch device according to a difference between the actual angle value and the preset angle value, where the actual angle value is not equal to the preset angle value.
如上所述,所述预设角度值为在所述标准佩戴状态下所述显示装置所在的平面与所述头戴装置所在的平面之间的角度值。As described above, the preset angle value is an angle value between a plane in which the display device is located and a plane in which the headwear device is located in the standard wearing state.
在本实施方式中,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系的步骤具体包括:In this embodiment, the step of setting the calibration coordinate system of the touch device according to the difference between the actual angle value and the preset angle value specifically includes:
计算所述实际角度值与所述预设角度值的差值;Calculating a difference between the actual angle value and the preset angle value;
若所述差值大于零,即所述实际角度值大于所述预设角度值,则以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置靠近所述显示装置的方向旋转第一角度,以得到所 述触摸装置的校准坐标系,其中,所述第一角度等于所述差值;If the difference is greater than zero, that is, the actual angle value is greater than the preset angle value, the original coordinate system is placed along the wearing device near the display centering on the origin of the original coordinate system Rotating the first angle of the device to get the a calibration coordinate system of the touch device, wherein the first angle is equal to the difference;
若所述差值小于零,即所述实际角度值小于所述预设角度值,则以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置远离所述显示装置的方向旋转第二角度,以得到所述触摸装置的校准坐标系,其中,所述第二角度等于所述差值的绝对值。If the difference is less than zero, that is, the actual angle value is less than the preset angle value, the original coordinate system is moved away from the display along the wearing device centering on the origin of the original coordinate system The direction of the device is rotated a second angle to obtain a calibration coordinate system of the touch device, wherein the second angle is equal to the absolute value of the difference.
步骤205,依据所述坐标转换公式、实际角度值、预设角度值对所述触摸装置的各个有效触摸点在所述原始坐标系中的坐标值进行坐标转换,以获得所述各个有效触摸点在所述校准坐标系中的坐标值。Step 205: Perform coordinate conversion on coordinate values of the effective touch points of the touch device in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value to obtain the effective touch points. Coordinate values in the calibration coordinate system.
步骤206,在侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述校准坐标系中的校准坐标数据。Step 206: Acquire calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected.
步骤207,依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。Step 207: Generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
本申请的触摸装置的自动校准方法能够在触摸装置的位置偏离标准佩戴状态下对应的位置时,自动设定所述触摸装置的校准坐标系,并将所述触摸装置的各个有效触摸点在原始坐标系中的坐标值转换为在所述校准坐标系中的校准坐标值,以及在触摸操作产生时直接获取触摸点在所述校准坐标系中的校准坐标值,从而能够准确地识别触摸操作,有效避免了实际触摸操作与用户期望的触摸操作不一致的情况,并使用户具有较佳的使用体验。The automatic calibration method of the touch device of the present application can automatically set the calibration coordinate system of the touch device when the position of the touch device deviates from the corresponding position in the standard wearing state, and the effective touch points of the touch device are original The coordinate values in the coordinate system are converted into calibration coordinate values in the calibration coordinate system, and the calibration coordinate values of the touch points in the calibration coordinate system are directly acquired when the touch operation is generated, so that the touch operation can be accurately recognized. The situation that the actual touch operation is inconsistent with the touch operation desired by the user is effectively avoided, and the user has a better use experience.
请参阅图10,为本申请一实施方式的触摸装置的自动校准装置10的结构示意图,所述自动校准装置10应用于具有所述触摸装置的头戴式显示设备中。所述自动校准装置10可以包括一个或多个模块,所述一个或多个模块被储存在所述头戴式显示设备的存储器中并被配置成由一个或多个处理器(本实施方式为一个处理器)执行,以完成本申请。例如,参阅图10所示,所述自动校准装置10可以包括设置模块111、角度检测模块112、坐标检测模块113、坐标转换模块114以及控制模块115。本申请实施例所称的模块可以是完成一特定功能的程序段,比程序更适合于描述软件在处理器中的执行过程。可以理解的是,对应于上述自动校准方法中的各实施方式,所述自动校准装置10可以包括图10中所示的各功能模块中的一部分或全部,各模块的功能将在下面具体介绍。Please refer to FIG. 10 , which is a schematic structural diagram of an automatic calibration apparatus 10 of a touch device according to an embodiment of the present application. The automatic calibration apparatus 10 is applied to a head mounted display device having the touch device. The automatic calibration device 10 can include one or more modules that are stored in a memory of the head mounted display device and configured to be comprised by one or more processors (this embodiment is A processor) is executed to complete the application. For example, referring to FIG. 10, the automatic calibration apparatus 10 may include a setting module 111, an angle detecting module 112, a coordinate detecting module 113, a coordinate conversion module 114, and a control module 115. The module referred to in the embodiment of the present application may be a program segment that completes a specific function, and is more suitable than the program to describe the execution process of the software in the processor. It can be understood that, corresponding to each of the above-described automatic calibration methods, the automatic calibration apparatus 10 may include some or all of the functional modules shown in FIG. 10, and the functions of each module will be specifically described below.
在本实施方式中,所述设置模块111用于预设所述触摸装置54的原始坐标系,以及预设所述触摸装置54的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式。In this embodiment, the setting module 111 is configured to preset an original coordinate system of the touch device 54 and preset an actual coordinate value and calibration of an effective touch point of the touch device 54 in the original coordinate system. The coordinate conversion formula between coordinate values.
其中,关于所述原始坐标系以及坐标转换公式的设定的详细介绍请参阅前面的相关具体描述,为节省篇幅及避免重复起见,在此就不再赘述。For a detailed description of the setting of the original coordinate system and the coordinate conversion formula, please refer to the related detailed description above. To save space and avoid duplication, it will not be repeated here.
所述角度检测模块112用于在所述显示装置51与所述头戴装置53之间发生相对旋转时,获取所述显示装置51所在的平面与所述头戴装置53所在的平面之间的实际角度值。The angle detecting module 112 is configured to acquire a plane between the plane where the display device 51 is located and the plane where the head device 53 is located when the relative rotation between the display device 51 and the headset 53 occurs. Actual angle value.
具体地,如前面所述,所述头戴式显示设备100还包括设置于所述头戴装置53上的第一角度传感器611,以及设置于所述显示装置51上的第二角度传感器612,其中,所述第一角度传感器611用于检测所述头戴装置53发生旋转的角度值,所述第二角度传感器612用于检测 所述显示装置51发生旋转的角度值。Specifically, as described above, the head mounted display device 100 further includes a first angle sensor 611 disposed on the headset 53 and a second angle sensor 612 disposed on the display device 51. The first angle sensor 611 is configured to detect an angle value at which the headset device 53 rotates, and the second angle sensor 612 is configured to detect The angle value at which the display device 51 rotates.
所述角度检测模块112用于分别获取所述第一角度传感器611以及第二角度传感器612感测到的角度数据,并根据获取到的角度数据计算出所述显示装置51所在的平面与所述头戴装置53所在的平面之间的实际角度值。The angle detecting module 112 is configured to respectively acquire angle data sensed by the first angle sensor 611 and the second angle sensor 612, and calculate a plane where the display device 51 is located according to the acquired angle data. The actual angular value between the planes in which the headgear 53 is located.
其中,关于所述实际角度值的计算的详细介绍请参阅前面的相关具体描述,为节省篇幅及避免重复起见,在此就不再赘述。For a detailed description of the calculation of the actual angle value, please refer to the related detailed description above. To save space and avoid duplication, no further details are provided here.
在一种实施方式中,所述坐标检测模块113用于在所述实际角度值不等于所述预设角度值且侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述原始坐标系中的实际坐标数据。In an embodiment, the coordinate detecting module 113 is configured to acquire a touch point corresponding to the touch operation in the original when the actual angle value is not equal to the preset angle value and a touch operation is detected. Actual coordinate data in the coordinate system.
如上所述,所述预设角度值为在所述标准佩戴状态下所述显示装置51所在的平面与所述头戴装置53所在的平面之间的角度值。As described above, the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
所述坐标转换模块114用于依据所述坐标转换公式、实际角度值、预设角度值以及实际坐标数据,计算出所述触摸操作对应的触摸点在所述原始坐标系中的校准坐标数据。The coordinate conversion module 114 is configured to calculate calibration coordinate data of the touch point corresponding to the touch operation in the original coordinate system according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data.
可以理解的是,所述触摸操作包括单点触摸操作,所述实际坐标数据和所述校准坐标数据均包括一个坐标值。It can be understood that the touch operation includes a single touch operation, and the actual coordinate data and the calibration coordinate data each include a coordinate value.
可选地,所述触摸操作也可包括多点触摸操作,所述实际坐标数据和所述校准坐标数据均包括一组坐标值。Optionally, the touch operation may also include a multi-touch operation, and the actual coordinate data and the calibration coordinate data each include a set of coordinate values.
所述控制模块115用于依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。The control module 115 is configured to generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
例如,当所述触摸操作为单击时,可生成控制播放或暂停当前所播放的音视频文件的触控指令。或者,当所述触摸动作为双击时,可生成控制唤出菜单的触控指令。或者,当所述触摸操作为滑动触摸时,可生成控制调节播放音量的触控指令。或者,当所述触摸操作为双指张开或并拢操作时,可生成放大或缩小所述显示装置51显示的显示界面的触控指令等。可以理解的是,此处关于触摸操作的相关内容仅为示例性阐述,并不用于限定本申请的保护范围。For example, when the touch operation is a click, a touch instruction for controlling playing or pausing the currently played audio and video file may be generated. Alternatively, when the touch action is a double tap, a touch command for controlling the call menu may be generated. Alternatively, when the touch operation is a sliding touch, a touch instruction for controlling the adjustment of the playback volume may be generated. Alternatively, when the touch operation is a two-finger open or close operation, a touch instruction or the like for enlarging or reducing the display interface displayed by the display device 51 may be generated. It is to be understood that the related content of the touch operation herein is merely illustrative and is not intended to limit the scope of the application.
所述一种实施方式提供的触摸装置54的自动校准装置能够在触摸装置54的位置偏离标准佩戴状态下对应的位置时,自动将触摸点的实际坐标值转换为校准坐标值,从而能够准确地识别触摸操作,有效避免了实际触摸操作与用户期望的触摸操作不一致的情况,并使用户具有较佳的使用体验。The automatic calibration device of the touch device 54 provided by the one embodiment can automatically convert the actual coordinate value of the touched point into a calibration coordinate value when the position of the touch device 54 deviates from the corresponding position in the standard wearing state, thereby being able to accurately Recognizing the touch operation effectively avoids the situation where the actual touch operation is inconsistent with the touch operation desired by the user, and enables the user to have a better use experience.
在另一实施方式中,所述设置模块111还用于在所述实际角度值不等于所述预设角度值,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置54的校准坐标系。In another embodiment, the setting module 111 is further configured to: according to the difference between the actual angle value and the preset angle value, the actual angle value is not equal to the preset angle value. A calibration coordinate system of the touch device 54.
如上所述,所述预设角度值为在所述标准佩戴状态下所述显示装置51所在的平面与所述头戴装置53所在的平面之间的角度值。As described above, the preset angle value is an angle value between a plane in which the display device 51 is located and a plane in which the head gear 53 is located in the standard wearing state.
在所述另一实施方式中,所述校准坐标系的原点的位置与所述原始坐标系的原点的位置相同。In the other embodiment, the position of the origin of the calibration coordinate system is the same as the position of the origin of the original coordinate system.
在所述另一实施方式中,所述角度检测模块112还用于计算所述实际角度值与所述预设角 度值的差值。In the other embodiment, the angle detecting module 112 is further configured to calculate the actual angle value and the preset angle. The difference in degrees.
所述设置模块111具体用于在所述差值大于零,即所述实际角度值大于所述预设角度值时,以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置53靠近所述显示装置51的方向旋转第一角度,以得到所述触摸装置54的校准坐标系,其中,所述第一角度等于所述差值。The setting module 111 is specifically configured to: when the difference is greater than zero, that is, the actual angle value is greater than the preset angle value, centering on an origin of the original coordinate system, and the original coordinate system is along the The headset 53 is rotated a first angle in the direction of the display device 51 to obtain a calibration coordinate system of the touch device 54, wherein the first angle is equal to the difference.
所述设置模块111具体还用于在所述差值小于零,即所述实际角度值小于所述预设角度值时,以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置53远离所述显示装置51的方向旋转第二角度,以得到所述触摸装置54的校准坐标系,其中,所述第二角度等于所述差值的绝对值。The setting module 111 is further configured to: when the difference is less than zero, that is, when the actual angle value is less than the preset angle value, the original coordinate system is centered on an origin of the original coordinate system The headset 53 is rotated a second angle away from the direction of the display device 51 to obtain a calibration coordinate system of the touch device 54, wherein the second angle is equal to the absolute value of the difference.
所述坐标转换模块114用于依据所述坐标转换公式、实际角度值、预设角度值对所述触摸装置54的各个有效触摸点在所述原始坐标系中的坐标值进行坐标转换,以获得所述各个有效触摸点在所述校准坐标系中的坐标值。The coordinate conversion module 114 is configured to perform coordinate conversion on coordinate values of the effective touch points of the touch device 54 in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value to obtain Coordinate values of the respective effective touch points in the calibration coordinate system.
所述坐标检测模块113用于在侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述校准坐标系中的校准坐标数据。The coordinate detecting module 113 is configured to acquire calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected.
所述控制模块115用于依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。The control module 115 is configured to generate a touch instruction according to the calibration coordinate data to trigger a corresponding touch control operation.
所述另一实施方式提供的触摸装置的自动校准方法能够在触摸装置的位置偏离标准佩戴状态下对应的位置时,自动设定所述触摸装置的校准坐标系,并将所述触摸装置的各个有效触摸点在原始坐标系中的坐标值转换为在所述校准坐标系中的校准坐标值,以及在触摸操作产生时直接获取触摸点在所述校准坐标系中的校准坐标值,从而能够准确地识别触摸操作,有效避免了实际触摸操作与用户期望的触摸操作不一致的情况,并使用户具有较佳的使用体验。The automatic calibration method of the touch device provided by the other embodiment can automatically set the calibration coordinate system of the touch device when the position of the touch device deviates from the corresponding position in the standard wearing state, and each of the touch devices The coordinate value of the effective touch point in the original coordinate system is converted into the calibration coordinate value in the calibration coordinate system, and the calibration coordinate value of the touch point in the calibration coordinate system is directly acquired when the touch operation is generated, thereby being accurate The touch operation is recognized to effectively avoid the situation that the actual touch operation is inconsistent with the touch operation desired by the user, and the user has a better use experience.
本申请实施例还提供一种头戴式显示设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述实施方式中所述的触摸装置的自动校准方法的步骤。The embodiment of the present application further provides a head mounted display device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor executes the program to implement the foregoing embodiment. The steps of the automatic calibration method of the touch device.
图11为本申请第一实施方式的头戴式显示设备100的结构示意图。如图11所示,所述头戴式显示设备100至少包括处理器20、存储器30、存储在所述存储器30中并可在所述处理器20上运行的计算机程序40(例如拍摄程序)、显示装置51、耳机装置52、头戴装置53以及触摸装置54。FIG. 11 is a schematic structural diagram of a head mounted display device 100 according to a first embodiment of the present application. As shown in FIG. 11, the head mounted display device 100 includes at least a processor 20, a memory 30, a computer program 40 (eg, a photographing program) stored in the memory 30 and operable on the processor 20, The display device 51, the earphone device 52, the head device 53, and the touch device 54 are provided.
其中,所述头戴式显示设备100可以是一个头戴式的视频播放器、游戏装置、导航装置等。关于所述显示装置51、耳机装置52、头戴装置53以及触摸装置54的详细介绍请参阅前面的相关具体描述,为节省篇幅及避免重复起见,在此就不再赘述。The head mounted display device 100 may be a head mounted video player, a game device, a navigation device, or the like. For a detailed description of the display device 51, the earphone device 52, the headset 53 and the touch device 54, please refer to the related detailed description above, and for the sake of saving space and avoiding repetition, no further description is provided here.
本领域技术人员可以理解,所述示意图11仅仅是本申请用于实现触摸装置54的自动校准方法的头戴式显示设备100的示例,并不构成对所述头戴式显示设备100的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述头戴式显示设备100 还可以包括输入输出设备、网络接入设备、无线传输设备等。It can be understood by those skilled in the art that the schematic diagram 11 is only an example of the head mounted display device 100 used in the present application for implementing the automatic calibration method of the touch device 54 and does not constitute a limitation on the head mounted display device 100. More or fewer components may be included, or some components may be combined, or different components, such as the head mounted display device 100. Input and output devices, network access devices, wireless transmission devices, and the like can also be included.
所述处理器20执行所述计算机程序40时实现上述各个自动校准方法实施方式中的步骤,例如图3所示的步骤101~106,或者图8所示的步骤201~207。或者,所述处理器20执行所述计算机程序40时实现上述自动校准装置10实施方式中各模块/单元,例如模块111~115的功能。When the processor 20 executes the computer program 40, the steps in the above embodiments of the various automatic calibration methods are implemented, such as steps 101-106 shown in FIG. 3 or steps 201-207 shown in FIG. Alternatively, when the processor 20 executes the computer program 40, the functions of the modules/units, such as the modules 111-115, in the embodiment of the automatic calibration device 10 described above are implemented.
示例性的,所述计算机程序40可以被分割成一个或多个模块/单元,所述一个或多个模块/单元被存储在所述存储器30中,并由所述处理器20执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序40指令段,所述指令段用于描述所述计算机程序40在所述头戴式显示设备100中的执行过程。例如,所述计算机程序40可以被分割成图10中的设置模块111、角度检测模块112、坐标检测模块113、坐标转换模块114以及控制模块115,各模块111~115的具体功能请参见前面的具体介绍,为节省篇幅及避免重复起见,在此就不再赘述。Illustratively, the computer program 40 can be partitioned into one or more modules/units that are stored in the memory 30 and executed by the processor 20 to complete This application. The one or more modules/units may be a series of computer program 40 instruction segments capable of performing a particular function for describing the execution of the computer program 40 in the head mounted display device 100. For example, the computer program 40 can be divided into the setting module 111, the angle detecting module 112, the coordinate detecting module 113, the coordinate conversion module 114, and the control module 115 in FIG. 10, and the specific functions of the modules 111-115 are as described above. For details, in order to save space and avoid duplication, we will not repeat them here.
所称处理器20可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器20是所述头戴式显示设备100的控制中心,利用各种接口和线路连接整个自动校准装置10/头戴式显示设备100的各个部分。The processor 20 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 20 is a control center of the head mounted display device 100, and the entire automatic calibration is connected by using various interfaces and lines. Device 10 / various portions of head mounted display device 100.
所述存储器30可用于存储所述计算机程序40和/或模块/单元,所述处理器20通过运行或执行存储在所述存储器30内的计算机程序40和/或模块/单元,以及调用存储在存储器30内的数据,实现所述自动校准装置10/头戴式显示设备100的各种功能。所述存储器30可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(例如声音播放功能、图像播放功能等)等;存储数据区可存储根据头戴式显示设备100的使用所创建的数据(例如音频数据,应用上述自动校准方法而设置、获取的数据等)等。此外,存储器30可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 30 can be used to store the computer program 40 and/or modules/units by running or executing computer programs 40 and/or modules/units stored in the memory 30, and for invoking storage The data within the memory 30 enables various functions of the auto-calibration device 10/head-mounted display device 100. The memory 30 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (for example, a sound playing function, an image playing function, etc.), and the like; the storage data area may be Data created according to the use of the head mounted display device 100 (for example, audio data, data set and acquired by applying the above-described automatic calibration method, and the like) are stored. In addition, the memory 30 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD). Card, flash card, at least one disk storage device, flash device, or other volatile solid state storage device.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述实施方式中所述的自动校准方法的步骤。The present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the automatic calibration method described in the above embodiments.
本申请的所述自动校准装置10/头戴式显示设备100/计算机装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计 算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The automatic calibration device 10/head mounted display device 100/computer device integrated module/unit of the present application can be stored in a computer readable if it is implemented in the form of a software functional unit and sold or used as a standalone product. In the storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware. The computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor. Wherein the computer program includes The computer program code may be in the form of source code, an object code form, an executable file, or some intermediate form. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
在本申请所提供的几个具体实施方式中,应该理解到,所揭露的自动校准方法和装置,可以通过其它的方式实现。例如,以上描述的自动校准装置实施方式仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several specific embodiments provided by the present application, it should be understood that the disclosed automatic calibration method and apparatus may be implemented in other manners. For example, the above-described automatic calibration device implementation is merely illustrative. For example, the division of the module is only a logical function division, and the actual implementation may have another division manner.
另外,在本申请各个实施例中的各功能模块可以集成在相同处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在相同模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated in the same processing module, or each module may exist physically separately, or two or more modules may be integrated in the same module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由同一个单元或装置通过软件或者硬件来实现。It is obvious to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in this application. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the device claims may also be implemented by the same unit or device in software or hardware.
最后应说明的是,以上实施方式仅用以说明本申请的技术方案而非限制,尽管参照以上较佳实施方式对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换都不应脱离本申请技术方案的精神和范围。 It should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technology of the present application can be applied. Modifications or equivalents of the embodiments are not to be construed as a departure from the spirit and scope of the invention.

Claims (15)

  1. 一种触摸装置的自动校准方法,应用于具有所述触摸装置的头戴式显示设备中,所述头戴式显示设备还包括显示装置以及头戴装置,其特征在于,所述自动校准方法包括:An automatic calibration method for a touch device is applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a head device, wherein the automatic calibration method comprises :
    预设所述触摸装置的原始坐标系;Presetting the original coordinate system of the touch device;
    预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式;Presetting a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value;
    在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值;Obtaining an actual angle value between a plane in which the display device is located and a plane in which the head device is located when relative rotation occurs between the display device and the headwear device;
    在所述实际角度值不等于预设角度值且侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述原始坐标系中的实际坐标数据;Obtaining actual coordinate data of the touch point corresponding to the touch operation in the original coordinate system when the actual angle value is not equal to the preset angle value and the touch operation is detected;
    依据所述坐标转换公式、实际角度值、预设角度值以及实际坐标数据,计算出所述触摸操作对应的触摸点在所述原始坐标系中的校准坐标数据;Calculating calibration coordinate data of the touch point corresponding to the touch operation in the original coordinate system according to the coordinate conversion formula, the actual angle value, the preset angle value, and the actual coordinate data;
    依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。A touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
  2. 如权利要求1所述的自动校准方法,其特征在于,所述预设角度值为在标准佩戴状态下所述显示装置所在的平面与所述头戴装置所在的平面之间的角度值。The automatic calibration method according to claim 1, wherein the preset angle value is an angle value between a plane in which the display device is located and a plane in which the headwear device is located in a standard wearing state.
  3. 如权利要求2所述的自动校准方法,其特征在于,所述预设角度值为90度。The automatic calibration method according to claim 2, wherein the preset angle value is 90 degrees.
  4. 如权利要求1-3任一项所述的自动校准方法,其特征在于,所述原始坐标系的原点的位置设于所述显示装置与所述头戴装置之间的旋转中心在所述触摸装置表面的投影位置上。The automatic calibration method according to any one of claims 1 to 3, wherein a position of an origin of the original coordinate system is set at a center of rotation between the display device and the headwear at the touch The projected position of the surface of the device.
  5. 如权利要求4所述的自动校准方法,其特征在于,所述触摸装置跟随所述头戴装置的旋转而转动,所述原始坐标系的纵坐标轴设定为与所述头戴装置所在的平面平行。The automatic calibration method according to claim 4, wherein the touch device rotates following the rotation of the headset, and the ordinate axis of the original coordinate system is set to be the same as the headset The plane is parallel.
  6. 如权利要求1所述的自动校准方法,其特征在于,所述头戴式显示设备还包括设置于所述头戴装置上的第一角度传感器,以及设置于所述显示装置上的第二角度传感器;获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值的步骤包括:The automatic calibration method according to claim 1, wherein the head mounted display device further comprises a first angle sensor disposed on the headset, and a second angle disposed on the display device a sensor; the step of obtaining an actual angle value between a plane in which the display device is located and a plane in which the headset is located includes:
    分别获取所述第一角度传感器以及第二角度传感器感测到的角度数据;Acquiring the angle data sensed by the first angle sensor and the second angle sensor respectively;
    根据获取到的角度数据计算出所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值。Calculating an actual angle value between a plane where the display device is located and a plane where the head device is located according to the acquired angle data.
  7. 一种触摸装置的自动校准方法,应用于具有所述触摸装置的头戴式显示设备中,所述头戴式显示设备还包括显示装置以及头戴装置,其特征在于,所述自动校准方法包括:An automatic calibration method for a touch device is applied to a head mounted display device having the touch device, the head mounted display device further comprising a display device and a head device, wherein the automatic calibration method comprises :
    预设所述触摸装置的原始坐标系;Presetting the original coordinate system of the touch device;
    预设所述触摸装置的有效触摸点在所述原始坐标系中的实际坐标值与校准坐标值之间的坐标转换公式;Presetting a coordinate conversion formula between the actual coordinate value of the effective touch point of the touch device in the original coordinate system and the calibration coordinate value;
    在所述显示装置与所述头戴装置之间发生相对旋转时,获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值; Obtaining an actual angle value between a plane in which the display device is located and a plane in which the head device is located when relative rotation occurs between the display device and the headwear device;
    在所述实际角度值不等于所述预设角度值时,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系;When the actual angle value is not equal to the preset angle value, setting a calibration coordinate system of the touch device according to a difference between the actual angle value and the preset angle value;
    依据所述坐标转换公式、实际角度值、预设角度值对所述触摸装置的各个有效触摸点在所述原始坐标系中的坐标值进行坐标转换,以获得所述各个有效触摸点在所述校准坐标系中的坐标值;Performing coordinate conversion on coordinate values of the effective touch points of the touch device in the original coordinate system according to the coordinate conversion formula, the actual angle value, and the preset angle value, to obtain the respective effective touch points in the Calibrate the coordinate values in the coordinate system;
    在侦测到触摸操作时,获取所述触摸操作对应的触摸点在所述校准坐标系中的校准坐标数据;Obtaining calibration coordinate data of the touch point corresponding to the touch operation in the calibration coordinate system when a touch operation is detected;
    依据所述校准坐标数据生成触控指令,以触发相应的触摸控制操作。A touch command is generated according to the calibration coordinate data to trigger a corresponding touch control operation.
  8. 如权利要求7所述的自动校准方法,其特征在于,所述预设角度值为在标准佩戴状态下所述显示装置所在的平面与所述头戴装置所在的平面之间的角度值。The automatic calibration method according to claim 7, wherein the preset angle value is an angle value between a plane in which the display device is located and a plane in which the headwear device is located in a standard wearing state.
  9. 如权利要求8所述的自动校准方法,其特征在于,所述预设角度值为90度。The automatic calibration method according to claim 8, wherein the preset angle value is 90 degrees.
  10. 如权利要求7-9任一项所述的自动校准方法,其特征在于,所述原始坐标系的原点的位置设于所述显示装置与所述头戴装置之间的旋转中心在所述触摸装置表面的投影位置上。The automatic calibration method according to any one of claims 7 to 9, wherein a position of an origin of the original coordinate system is set at a center of rotation between the display device and the headwear at the touch The projected position of the surface of the device.
  11. 如权利要求10所述的自动校准方法,其特征在于,所述触摸装置跟随所述头戴装置的旋转而转动,所述原始坐标系的纵坐标轴设定为与所述头戴装置所在的平面平行。The automatic calibration method according to claim 10, wherein the touch device rotates following the rotation of the headset, and the ordinate axis of the original coordinate system is set to be the same as the headset The plane is parallel.
  12. 如权利要求11所述的自动校准方法,其特征在于,所述校准坐标系的原点的位置与所述原始坐标系的原点的位置相同,根据所述实际角度值与所述预设角度值之间的差值设定所述触摸装置的校准坐标系包括:The automatic calibration method according to claim 11, wherein the position of the origin of the calibration coordinate system is the same as the position of the origin of the original coordinate system, according to the actual angle value and the preset angle value. The difference between the setting of the calibration coordinate system of the touch device includes:
    计算所述实际角度值与所述预设角度值的差值;Calculating a difference between the actual angle value and the preset angle value;
    若所述差值大于零,则以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置靠近所述显示装置的方向旋转第一角度,以得到所述触摸装置的校准坐标系,其中,所述第一角度等于所述差值;If the difference is greater than zero, the original coordinate system is rotated at a first angle along a direction of the wearing device near the display device, with the origin of the original coordinate system as a center, to obtain the touch device. a calibration coordinate system, wherein the first angle is equal to the difference;
    若所述差值小于零,则以所述原始坐标系的原点为中心,将所述原始坐标系沿所述头戴装置远离所述显示装置的方向旋转第二角度,以得到所述触摸装置的校准坐标系,其中,所述第二角度等于所述差值的绝对值。If the difference is less than zero, the original coordinate system is rotated at a second angle along a direction away from the display device by the origin of the original coordinate system to obtain the touch device. a calibration coordinate system, wherein the second angle is equal to an absolute value of the difference.
  13. 如权利要求7所述的自动校准方法,其特征在于,所述头戴式显示设备还包括设置于所述头戴装置上的第一角度传感器,以及设置于所述显示装置上的第二角度传感器;获取所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值的步骤包括:The automatic calibration method according to claim 7, wherein the head mounted display device further comprises a first angle sensor disposed on the headset, and a second angle disposed on the display device a sensor; the step of obtaining an actual angle value between a plane in which the display device is located and a plane in which the headset is located includes:
    分别获取所述第一角度传感器以及第二角度传感器感测到的角度数据;Acquiring the angle data sensed by the first angle sensor and the second angle sensor respectively;
    根据获取到的角度数据计算出所述显示装置所在的平面与所述头戴装置所在的平面之间的实际角度值。Calculating an actual angle value between a plane where the display device is located and a plane where the head device is located according to the acquired angle data.
  14. 一种头戴式显示设备,其特征在于,所述头戴式显示设备包括处理器,所述处理器用于执行存储器中的存储的计算机程序时实现如权利要求1-13中任意一项所述的触摸装置的自动校准方法的步骤。 A head mounted display device, characterized in that the head mounted display device comprises a processor for implementing a stored computer program in a memory, as claimed in any one of claims 1-13 The steps of the automatic calibration method of the touch device.
  15. 一种计算机可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现如权利要求1-13中任意一项所述的触摸装置的自动校准方法的步骤。 A computer readable storage medium having stored thereon computer instructions, wherein the step of implementing the automatic calibration method of the touch device of any one of claims 1-13 when the computer instructions are executed by the processor .
PCT/CN2017/112725 2017-11-23 2017-11-23 Head-mounted display apparatus and automatic calibration method of touch device thereof WO2019100299A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780095849.3A CN111316207A (en) 2017-11-23 2017-11-23 Head-mounted display equipment and automatic calibration method of touch device of head-mounted display equipment
PCT/CN2017/112725 WO2019100299A1 (en) 2017-11-23 2017-11-23 Head-mounted display apparatus and automatic calibration method of touch device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/112725 WO2019100299A1 (en) 2017-11-23 2017-11-23 Head-mounted display apparatus and automatic calibration method of touch device thereof

Publications (1)

Publication Number Publication Date
WO2019100299A1 true WO2019100299A1 (en) 2019-05-31

Family

ID=66630468

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112725 WO2019100299A1 (en) 2017-11-23 2017-11-23 Head-mounted display apparatus and automatic calibration method of touch device thereof

Country Status (2)

Country Link
CN (1) CN111316207A (en)
WO (1) WO2019100299A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023184084A1 (en) * 2022-03-28 2023-10-05 深圳市大疆创新科技有限公司 Control method and apparatus for head-mounted display apparatus, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190164A (en) * 2021-05-14 2021-07-30 歌尔股份有限公司 Operation method, system and equipment of equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1267855A (en) * 1999-03-17 2000-09-27 夏普公司 Touch plate inputting electronic apparatus
CN101382858A (en) * 2008-10-21 2009-03-11 广东威创视讯科技股份有限公司 Calibrating method and apparatus for touch screen equipment
KR20120025336A (en) * 2010-09-07 2012-03-15 최도현 Infrared touch screen devices
CN103135860A (en) * 2011-12-02 2013-06-05 纬创资通股份有限公司 Method for correcting rotation angle of optical touch module and optical touch module
CN104391603A (en) * 2014-12-08 2015-03-04 京东方科技集团股份有限公司 Method, device and system for calibrating touch screen
CN105031918A (en) * 2015-08-19 2015-11-11 深圳游视虚拟现实技术有限公司 Man-machine interaction system based on virtual reality technology

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105929958B (en) * 2016-04-26 2019-03-01 华为技术有限公司 A kind of gesture identification method, device and wear-type visual device
CN107092433B (en) * 2017-04-12 2021-03-02 海信视像科技股份有限公司 Touch control method and device of touch control all-in-one machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1267855A (en) * 1999-03-17 2000-09-27 夏普公司 Touch plate inputting electronic apparatus
CN101382858A (en) * 2008-10-21 2009-03-11 广东威创视讯科技股份有限公司 Calibrating method and apparatus for touch screen equipment
KR20120025336A (en) * 2010-09-07 2012-03-15 최도현 Infrared touch screen devices
CN103135860A (en) * 2011-12-02 2013-06-05 纬创资通股份有限公司 Method for correcting rotation angle of optical touch module and optical touch module
CN104391603A (en) * 2014-12-08 2015-03-04 京东方科技集团股份有限公司 Method, device and system for calibrating touch screen
CN105031918A (en) * 2015-08-19 2015-11-11 深圳游视虚拟现实技术有限公司 Man-machine interaction system based on virtual reality technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023184084A1 (en) * 2022-03-28 2023-10-05 深圳市大疆创新科技有限公司 Control method and apparatus for head-mounted display apparatus, and storage medium

Also Published As

Publication number Publication date
CN111316207A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US11087538B2 (en) Presentation of augmented reality images at display locations that do not obstruct user's view
US8398246B2 (en) Real-time projection management
US10761721B2 (en) Systems and methods for interactive image caricaturing by an electronic device
JP2019042509A (en) Visual method and apparatus for compensating sound information, program, storage medium, and electronic device
WO2019205744A1 (en) Image distortion correction method and apparatus, display device, computer readable medium, and electronic device
US10649615B2 (en) Control interface for a three-dimensional graphical object
US20150370350A1 (en) Determining a stylus orientation to provide input to a touch enabled device
WO2018126922A1 (en) Method and apparatus for rendering panoramic video and electronic device
CN110693618B (en) Method and device for determining cutting direction of shell-shaped tooth appliance and electronic equipment
CN111833243B (en) Data display method, mobile terminal and storage medium
US10403238B2 (en) Presentation of representations of input with contours having a width based on the size of the input
WO2019100299A1 (en) Head-mounted display apparatus and automatic calibration method of touch device thereof
US11057549B2 (en) Techniques for presenting video stream next to camera
US20170169546A1 (en) Method and electronic device for adjusting panoramic video
WO2019071398A1 (en) Method and device for adjusting screen scaling, terminal and computer readable storage medium
US20210043109A1 (en) Alteration of accessibility settings of device based on characteristics of users
US20220108000A1 (en) Permitting device use based on location recognized from camera input
US20190302896A1 (en) Input tool
US9860452B2 (en) Usage of first camera to determine parameter for action associated with second camera
US9817490B2 (en) Presenting user interface based on location of input from body part
US10845842B2 (en) Systems and methods for presentation of input elements based on direction to a user
US10248307B2 (en) Virtual reality headset device with front touch screen
US10469947B2 (en) Method and apparatus for rendering an audio source having a modified virtual position
US20210096737A1 (en) Use of hover height for controlling device
US10282082B2 (en) Altering presentation of an element presented on a device based on input from a motion sensor

Legal Events

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

Ref document number: 17932721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17932721

Country of ref document: EP

Kind code of ref document: A1