CN112433628A - Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment - Google Patents

Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment Download PDF

Info

Publication number
CN112433628A
CN112433628A CN202110115558.4A CN202110115558A CN112433628A CN 112433628 A CN112433628 A CN 112433628A CN 202110115558 A CN202110115558 A CN 202110115558A CN 112433628 A CN112433628 A CN 112433628A
Authority
CN
China
Prior art keywords
current
pose
photosphere
coordinate
double
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110115558.4A
Other languages
Chinese (zh)
Other versions
CN112433628B (en
Inventor
洪智慧
许秋子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Realis Multimedia Technology Co Ltd
Original Assignee
Shenzhen Realis Multimedia Technology Co Ltd
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 Shenzhen Realis Multimedia Technology Co Ltd filed Critical Shenzhen Realis Multimedia Technology Co Ltd
Priority to CN202110115558.4A priority Critical patent/CN112433628B/en
Priority to CN202110520993.5A priority patent/CN113268149B/en
Publication of CN112433628A publication Critical patent/CN112433628A/en
Application granted granted Critical
Publication of CN112433628B publication Critical patent/CN112433628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0386Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry for light pen

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention relates to a method and a device for determining a rigid body pose of a double-photosphere interactive pen, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a conversion relation between the rotation attitude of an inertial sensor of the double-photosphere interactive pen and the rotation attitude of a rigid body of the double-photosphere interactive pen; acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen, and acquiring a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose; and according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball, and in combination with the current second rotation pose, obtaining the translation pose of the rigid body of the double-photosphere interactive pen. The method can accurately obtain the rigid body pose of the interactive pen of the double-photosphere inertial sensor based on the rotation data in the double-photosphere interactive pen relative to the IMU coordinate system and the rotation data in the rigid body coordinate system.

Description

Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment
Technical Field
The invention relates to the technical field of interactive pen posture processing, in particular to a method and a device for determining a rigid body posture of a double-photosphere interactive pen, computer equipment and a storage medium.
Background
An interactive pen with double photosphere inertial sensors is a holographic 3D desktop interactive pen with a pen head and a pen tail embedded with an infrared reflective ball respectively and a pen body internally provided with an inertial sensor as a core chip. In an optical motion capture system, in order to realize the solution of the pose of a rigid body, the rigid body is generally required to have at least 3 mark points, otherwise, the SVD solution for solving the rotation pose has singularity, namely, the obtained result is not unique and uncertain. The interactive pen only has two mark points, and at the moment, an inertial sensor can be adopted to supplement other mark points so as to meet the calculation requirements of 3 mark points. However, the rotation data of the mark points supplemented by the inertial sensor is actually rotation data relative to the IMU coordinate system, and the rotation data of the rigid body of the interactive pen is rotation data relative to the rigid body coordinate system. How to solve the rigid body pose of the interactive pen of the double-photosphere inertial sensor is still a technical problem which needs to be solved urgently at present.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for determining the rigid body pose of a double-photosphere interactive pen, computer equipment and a storage medium, which can accurately obtain the rigid body pose of the interactive pen of the double-photosphere inertial sensor based on the rotation data in the double-photosphere interactive pen relative to an IMU coordinate system and the rotation data in a rigid body coordinate system.
In order to solve at least one technical problem, an embodiment of the present invention provides a method for determining a rigid body pose of a dual-photosphere interactive pen, where a pen head of the dual-photosphere interactive pen is provided with a first infrared reflective ball, a pen tail of the dual-photosphere interactive pen is provided with a second infrared reflective ball, and an inertial sensor is assembled in a pen body of the dual-photosphere interactive pen, and the method includes:
acquiring a conversion relation between the rotation posture of an inertial sensor of the double-photosphere interactive pen and the rotation posture of a rigid body of the double-photosphere interactive pen;
acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen, and acquiring a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose;
and according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball, combining the current second rotation pose to obtain the translation pose of the rigid body of the double-photosphere interactive pen.
In one embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes:
averaging the initial coordinates of the first infrared reflective ball and the initial coordinates of the second infrared reflective ball to obtain a first average coordinate;
averaging the current coordinates of the first infrared reflective ball and the current coordinates of the second infrared reflective ball to obtain a second average coordinate;
and according to the first average coordinate and the second average coordinate, combining the current second rotation pose to obtain the translation pose of the rigid body of the double-photosphere interactive pen.
In one embodiment, the obtaining, according to the first average coordinate and the second average coordinate and in combination with the current second rotation pose, a translation pose of the rigid body of the dual-photosphere interactive pen includes:
obtaining a product of the first average coordinate and the current second rotation pose to obtain a first product result;
and acquiring a difference value between the second average coordinate and the first product result, and taking the acquired first difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
In one embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes:
obtaining a product of the initial coordinate of the first infrared reflective ball and the current second rotation pose to obtain a second product result;
and acquiring a difference value between the current coordinate of the first infrared reflective sphere and the second product result, and taking the obtained second difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
In one embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes:
obtaining a product of the initial coordinate of the second infrared reflective ball and the current second rotation pose to obtain a third product result;
and acquiring a difference value between the current coordinate of the second infrared reflective sphere and the third product result, and taking the obtained third difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
In one embodiment, the method further comprises:
and calculating the initial coordinate and the current coordinate of the first infrared reflective sphere and the initial coordinate and the current coordinate of the second infrared reflective sphere by adopting a triangulation method.
In one embodiment, the method further comprises:
acquiring a previous frame coordinate of a first infrared reflective ball in previous frame data and a previous frame coordinate of a second infrared reflective ball in the previous frame data;
acquiring an increment value of a translation pose in the previous frame data;
calculating the current coordinate of the current frame of the first infrared reflective sphere according to the previous frame coordinate of the first infrared reflective sphere and the increment value;
and calculating the current coordinate of the current frame of the second infrared reflective sphere according to the last frame coordinate of the second infrared reflective sphere and the increment value.
The utility model provides a two light ball interactive pen's rigid body position appearance determination device, two light ball interactive pen's nib is provided with first infrared reflection of light ball, two light ball interactive pen's tail is provided with the infrared reflection of light ball of second, two light ball interactive pen's the internal inertial sensor that is equipped with of handwriting, the device includes:
the acquisition module is used for acquiring the conversion relation between the rotation posture of the inertial sensor of the double-photosphere interactive pen and the rotation posture of the rigid body of the double-photosphere interactive pen;
the first calculation module is used for acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen and obtaining a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose;
and the second calculation module is used for obtaining the translation pose of the rigid body of the double-photosphere interactive pen by combining the current second rotation pose according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball.
In addition, an embodiment of the present invention further provides a computer device, including: the system comprises a memory, a processor and an application program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method of any embodiment when executing the application program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an application program is stored, and when the application program is executed by a processor, the steps of any one of the above-mentioned embodiments of the method are implemented.
In the embodiment of the invention, by implementing the method, when the conversion relation between the rotation posture of the inertial sensor of the double-photosphere interactive pen and the rotation posture of the rigid body of the double-photosphere interactive pen is determined, the rotation posture in the rigid body posture of the double-photosphere interactive pen can be obtained by using the conversion relation and the first current rotation posture of the inertial sensor of the double-photosphere interactive pen. Meanwhile, the initial coordinate and the current coordinate of the first infrared reflective ball in the double-photosphere interactive pen and/or the initial coordinate and the current coordinate of the second infrared reflective ball in the double-photosphere interactive pen are combined to obtain the rotation pose in the rigid body pose of the double-photosphere interactive pen, and the translation pose in the rigid body pose of the double-photosphere interactive pen is obtained. Therefore, the rigid body pose of the interactive pen of the double-photosphere inertial sensor can be accurately obtained based on the rotation data of the double-photosphere interactive pen relative to the IMU coordinate system and the rotation data of the double-photosphere interactive pen relative to the rigid body coordinate system.
Drawings
FIG. 1 is a schematic flow chart of a method for determining a rigid body pose of a dual-photosphere interactive pen according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a dual-photosphere interactive pen according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a rigid body pose determination apparatus for a dual-photosphere interactive pen according to an embodiment of the present invention;
fig. 4 is a schematic structural composition diagram of a computer device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a rigid body pose determination method of a double-photosphere interactive pen. The pen point of the double-light-ball interactive pen is provided with a first infrared reflective ball, the pen tail of the double-light-ball interactive pen is provided with a second infrared reflective ball, and an inertial sensor is assembled in the pen body of the double-light-ball interactive pen. As shown in fig. 1, the method for determining the rigid body pose of the dual-photosphere interactive pen includes the following steps:
and S102, acquiring a conversion relation between the rotation posture of the inertial sensor of the double-photosphere interactive pen and the rotation posture of the rigid body of the double-photosphere interactive pen.
In particular, the two-point rigid body pose of the dual-photosphere interactive pen generally comprises a rotation pose
Figure 248178DEST_PATH_IMAGE002
And translational position and attitude
Figure 457443DEST_PATH_IMAGE004
. It should be noted that it is preferable that,
Figure 564070DEST_PATH_IMAGE002
and
Figure 276811DEST_PATH_IMAGE004
respectively, the rotation and translation of the current time relative to the initial time, wherein the 3D coordinates of two points of a two-point rigid body at the initial time are assumed to be
Figure 338920DEST_PATH_IMAGE006
Figure 769902DEST_PATH_IMAGE008
As shown in FIG. 2, the conversion relationship between the rotational posture of the inertial sensor of the two-ball interactive pen and the rotational posture of the rigid body of the two-ball interactive pen, i.e., the conversion relationship between the rotational posture of the IMU and the rotational posture of the rigid body, is thus solved
Figure 883482DEST_PATH_IMAGE010
And S104, acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen, and acquiring a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose.
Specifically, the first current rotation pose of the inertial sensor IMU, that is, the current-time rotation pose
Figure 981888DEST_PATH_IMAGE012
By transforming relationships
Figure DEST_PATH_IMAGE013
To find outThe current second rotation pose of the rigid body of the double-photosphere interactive pen is the current time rotation pose of the rigid body of two points
Figure 421091DEST_PATH_IMAGE014
. And obtaining the current second rotation pose of the rigid body of the double-light-ball interactive pen according to the following calculation formula:
Figure 339369DEST_PATH_IMAGE016
wherein the content of the first and second substances,
Figure 505908DEST_PATH_IMAGE002
for the current second rotational pose,
Figure 678394DEST_PATH_IMAGE010
in order to convert the relationship between the two,
Figure DEST_PATH_IMAGE017
is the first current rotation pose.
In an embodiment, after S104, the method further includes: and calculating the initial coordinate and the current coordinate of the first infrared reflective sphere and the initial coordinate and the current coordinate of the second infrared reflective sphere by adopting a triangulation method.
Specifically, as shown in fig. 2, the initial coordinates and the current coordinates of the first infrared reflective sphere and the initial coordinates and the current coordinates of the second infrared reflective sphere may be obtained by a triangulation method. Specifically, all 3D points in the coordinate system can be found by triangulation.
In an embodiment, after S104, the method further includes: acquiring a previous frame coordinate of a first infrared reflective ball in previous frame data and a previous frame coordinate of a second infrared reflective ball in the previous frame data; acquiring an increment value of a translation pose in the previous frame data; calculating the current coordinate of the current frame of the first infrared reflective sphere according to the previous frame coordinate of the first infrared reflective sphere and the increment value; and calculating the current coordinate of the current frame of the second infrared reflective sphere according to the last frame coordinate of the second infrared reflective sphere and the increment value.
Specifically, two points of a two-point rigid body of the two-light ball interactive pen are one visible point or all invisible points for the motion capture camera at the current moment, possibly due to occlusion and the like. In this case, all the 3D points may not be found by the triangulation method. One solution here is to use a prediction method based on the 3D positions of the first ir reflector and the second ir reflector of the previous frame
Figure DEST_PATH_IMAGE019
Figure DEST_PATH_IMAGE021
Superimpose a frame
Figure DEST_PATH_IMAGE023
Increment value of
Figure DEST_PATH_IMAGE025
To approximately solve the 3D positions of two points of the double-photosphere interactive pen at the current moment
Figure DEST_PATH_IMAGE027
Figure DEST_PATH_IMAGE029
Namely:
Figure DEST_PATH_IMAGE031
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE033
Figure 653214DEST_PATH_IMAGE034
the translation pose of the last frame is represented,
Figure 58787DEST_PATH_IMAGE036
relative to
Figure 514171DEST_PATH_IMAGE023
The translation pose of the previous frame.
Therefore, when the coordinates of two points of the double-photosphere interactive pen can be collected, the coordinates of the two points of the double-photosphere interactive pen can be rapidly obtained by adopting a triangulation method. When the coordinates of two points of the double-photosphere interactive pen cannot be acquired, the coordinates of the two points of the double-photosphere interactive pen can be obtained by adopting a prediction method, and the problem of determining the coordinates of the two points of the double-photosphere interactive pen is solved.
And S106, obtaining the translation pose of the rigid body of the double-photosphere interactive pen by combining the current second rotation pose according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball.
In an embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes: averaging the initial coordinates of the first infrared reflective ball and the initial coordinates of the second infrared reflective ball to obtain a first average coordinate; averaging the current coordinates of the first infrared reflective ball and the current coordinates of the second infrared reflective ball to obtain a second average coordinate; and according to the first average coordinate and the second average coordinate, combining the current second rotation pose to obtain the translation pose of the rigid body of the double-photosphere interactive pen.
Wherein, the obtaining of the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotation pose according to the first average coordinate and the second average coordinate comprises: obtaining a product of the first average coordinate and the current second rotation pose to obtain a first product result; and acquiring a difference value between the second average coordinate and the first product result, and taking the acquired first difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
In particular, in generalSolving by using average value of two points of double-photosphere interactive pen
Figure 321590DEST_PATH_IMAGE004
Namely:
Figure 820704DEST_PATH_IMAGE038
wherein the content of the first and second substances,
Figure 461376DEST_PATH_IMAGE040
Figure 704139DEST_PATH_IMAGE042
and mean values of two points at the current time and the initial time are respectively shown.
Therefore, the influence of calculation errors and other interferences can be solved, and the calculation accuracy of the translation pose of the dual-photosphere interactive pen is improved.
In an embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes: obtaining a product of the initial coordinate of the first infrared reflective ball and the current second rotation pose to obtain a second product result; and acquiring a difference value between the current coordinate of the first infrared reflective sphere and the second product result, and taking the obtained second difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
In an embodiment, the obtaining, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, the translational pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotational pose includes: obtaining a product of the initial coordinate of the second infrared reflective ball and the current second rotation pose to obtain a third product result; and acquiring a difference value between the current coordinate of the second infrared reflective sphere and the third product result, and taking the obtained third difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
See, in particular, fig. 2. In order to solve the translation pose of the double-photosphere interactive pen, one method is to firstly calculate the 3D coordinates of two points of two-point rigid body at the current moment by methods such as triangulation and the like
Figure 366064DEST_PATH_IMAGE027
Figure 583550DEST_PATH_IMAGE029
Then, according to the property of the transition from the initial time to the current time, the following formula can be obtained:
Figure 963716DEST_PATH_IMAGE044
it is obvious that
Figure 744590DEST_PATH_IMAGE046
Or
Figure DEST_PATH_IMAGE048
It can be known that only one point is needed to calculate the translational poses of two rigid bodies.
Therefore, the overall pose of the rigid body of the double-photosphere interactive pen is finally obtained
Figure 808492DEST_PATH_IMAGE002
Figure 914989DEST_PATH_IMAGE004
According to the method for determining the rigid body pose of the double-photosphere interactive pen, the rotation poses of the two rigid bodies are obtained through the conversion relation according to the rotation poses of the IMU. And further obtaining the translation pose of the rigid body according to the solved rotation pose of the two rigid bodies and the solved 3D coordinates of the two points of the two rigid bodies, and finally completing the solution of the overall pose of the rigid body of the double-photosphere interactive pen.
The invention also provides a rigid body pose determination device of the double-photosphere interactive pen, wherein a pen head of the double-photosphere interactive pen is provided with a first infrared reflective ball, a pen tail of the double-photosphere interactive pen is provided with a second infrared reflective ball, and an inertial sensor is assembled in a pen body of the double-photosphere interactive pen. As shown in fig. 3, the apparatus includes an acquisition module 12, a first calculation module 14, and a second calculation module 16.
The obtaining module 12 is configured to obtain a conversion relationship between a rotation posture of an inertial sensor of the dual-photosphere interactive pen and a rotation posture of a rigid body of the dual-photosphere interactive pen;
the first calculation module 14 is configured to obtain a first current rotation pose of an inertial sensor of the dual-photosphere interactive pen, and obtain a current second rotation pose of a rigid body of the dual-photosphere interactive pen according to the conversion relationship and the first current rotation pose;
and the second calculation module 16 is configured to obtain, according to the initial coordinate and the current coordinate of the first infrared reflective sphere and/or the initial coordinate and the current coordinate of the second infrared reflective sphere, a translation pose of the rigid body of the dual-photosphere interactive pen by combining the current second rotation pose.
For specific limitations of a rigid body pose determination device of a dual photosphere interactive pen, refer to the above limitations of a rigid body pose determination method of a dual photosphere interactive pen, and are not described herein again. All modules in the rigid body pose determination device of the double-photosphere interactive pen can be completely or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment of the present invention, an application program is stored on a computer-readable storage medium, and when the application program is executed by a processor, the method for determining a rigid body pose of a dual-photosphere interactive pen according to any one of the embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the rigid body pose determination method of the double-photosphere interactive pen in any one of the embodiments.
Fig. 4 is a schematic structural diagram of a computer device in the embodiment of the present invention.
An embodiment of the present invention further provides a computer device, as shown in fig. 4. The computer device comprises a processor 402, a memory 403, an input unit 404, and a display unit 405. Those skilled in the art will appreciate that the device configuration means shown in fig. 4 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 403 may be used to store the application 401 and various functional modules, and the processor 402 executes the application 401 stored in the memory 403, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 404 is used for receiving input of signals and receiving keywords input by a user. The input unit 404 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 405 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 405 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 402 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by running or executing software programs and/or modules stored in the memory 403 and calling data stored in the memory.
As one embodiment, the computer device includes: one or more processors 402, a memory 403, one or more applications 401, wherein the one or more applications 401 are stored in the memory 403 and configured to be executed by the one or more processors 402, the one or more applications 401 being configured to perform a rigid body pose determination method of a dual photosphere interactive pen in any of the above embodiments.
In addition, the method, the apparatus, the computer device and the storage medium for determining the rigid body pose of the dual-photosphere interactive pen provided by the embodiment of the present invention are described in detail above, a specific example should be adopted herein to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for determining the rigid body pose of a double-photosphere interactive pen is characterized in that a first infrared light-reflecting ball is arranged at the pen point of the double-photosphere interactive pen, a second infrared light-reflecting ball is arranged at the pen tail of the double-photosphere interactive pen, an inertial sensor is assembled in the pen body of the double-photosphere interactive pen, and the method comprises the following steps:
acquiring a conversion relation between the rotation posture of an inertial sensor of the double-photosphere interactive pen and the rotation posture of a rigid body of the double-photosphere interactive pen;
acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen, and acquiring a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose;
and according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball, combining the current second rotation pose to obtain the translation pose of the rigid body of the double-photosphere interactive pen.
2. The method according to claim 1, wherein the obtaining the translational pose of the rigid body of the dual-photosphere interactive pen according to the initial coordinates and the current coordinates of the first infrared reflective sphere and/or the initial coordinates and the current coordinates of the second infrared reflective sphere in combination with the current second rotational pose comprises:
averaging the initial coordinates of the first infrared reflective ball and the initial coordinates of the second infrared reflective ball to obtain a first average coordinate;
averaging the current coordinates of the first infrared reflective ball and the current coordinates of the second infrared reflective ball to obtain a second average coordinate;
and according to the first average coordinate and the second average coordinate, combining the current second rotation pose to obtain the translation pose of the rigid body of the double-photosphere interactive pen.
3. The method of claim 2, wherein the obtaining the translational pose of the rigid body of the dual-photosphere interactive pen from the first average coordinate and the second average coordinate in combination with the current second rotational pose comprises:
obtaining a product of the first average coordinate and the current second rotation pose to obtain a first product result;
and acquiring a difference value between the second average coordinate and the first product result, and taking the acquired first difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
4. The method according to claim 1, wherein the obtaining the translational pose of the rigid body of the dual-photosphere interactive pen according to the initial coordinates and the current coordinates of the first infrared reflective sphere and/or the initial coordinates and the current coordinates of the second infrared reflective sphere in combination with the current second rotational pose comprises:
obtaining a product of the initial coordinate of the first infrared reflective ball and the current second rotation pose to obtain a second product result;
and acquiring a difference value between the current coordinate of the first infrared reflective sphere and the second product result, and taking the obtained second difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
5. The method according to claim 1, wherein the obtaining the translational pose of the rigid body of the dual-photosphere interactive pen according to the initial coordinates and the current coordinates of the first infrared reflective sphere and/or the initial coordinates and the current coordinates of the second infrared reflective sphere in combination with the current second rotational pose comprises:
obtaining a product of the initial coordinate of the second infrared reflective ball and the current second rotation pose to obtain a third product result;
and acquiring a difference value between the current coordinate of the second infrared reflective sphere and the third product result, and taking the obtained third difference value result as the translation pose of the rigid body of the double-photosphere interactive pen.
6. The method of claim 1, further comprising:
and calculating the initial coordinate and the current coordinate of the first infrared reflective sphere and the initial coordinate and the current coordinate of the second infrared reflective sphere by adopting a triangulation method.
7. The method of claim 1, further comprising:
acquiring a previous frame coordinate of a first infrared reflective ball in previous frame data and a previous frame coordinate of a second infrared reflective ball in the previous frame data;
acquiring an increment value of a translation pose in the previous frame data;
calculating the current coordinate of the current frame of the first infrared reflective sphere according to the previous frame coordinate of the first infrared reflective sphere and the increment value;
and calculating the current coordinate of the current frame of the second infrared reflective sphere according to the last frame coordinate of the second infrared reflective sphere and the increment value.
8. The utility model provides a two light ball interactive pen's rigid body position appearance determination device which characterized in that, two light ball interactive pen's nib is provided with first infrared reflection of light ball, two light ball interactive pen's tail is provided with the infrared reflection of light ball of second, two light ball interactive pen's the internal inertial sensor that is equipped with of handwriting, the device includes:
the acquisition module is used for acquiring the conversion relation between the rotation posture of the inertial sensor of the double-photosphere interactive pen and the rotation posture of the rigid body of the double-photosphere interactive pen;
the first calculation module is used for acquiring a first current rotation pose of an inertial sensor of the double-photosphere interactive pen and obtaining a current second rotation pose of a rigid body of the double-photosphere interactive pen according to the conversion relation and the first current rotation pose;
and the second calculation module is used for obtaining the translation pose of the rigid body of the double-photosphere interactive pen by combining the current second rotation pose according to the initial coordinate and the current coordinate of the first infrared reflective ball and/or the initial coordinate and the current coordinate of the second infrared reflective ball.
9. A computer device comprising a memory, a processor and an application program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 7 are implemented when the application program is executed by the processor.
10. A computer-readable storage medium, on which an application program is stored, which when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN202110115558.4A 2021-01-28 2021-01-28 Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment Active CN112433628B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110115558.4A CN112433628B (en) 2021-01-28 2021-01-28 Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment
CN202110520993.5A CN113268149B (en) 2021-01-28 2021-01-28 Rigid body pose determining method and device of double-light ball interactive pen and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110115558.4A CN112433628B (en) 2021-01-28 2021-01-28 Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110520993.5A Division CN113268149B (en) 2021-01-28 2021-01-28 Rigid body pose determining method and device of double-light ball interactive pen and computer equipment

Publications (2)

Publication Number Publication Date
CN112433628A true CN112433628A (en) 2021-03-02
CN112433628B CN112433628B (en) 2021-06-08

Family

ID=74697372

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110520993.5A Active CN113268149B (en) 2021-01-28 2021-01-28 Rigid body pose determining method and device of double-light ball interactive pen and computer equipment
CN202110115558.4A Active CN112433628B (en) 2021-01-28 2021-01-28 Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110520993.5A Active CN113268149B (en) 2021-01-28 2021-01-28 Rigid body pose determining method and device of double-light ball interactive pen and computer equipment

Country Status (1)

Country Link
CN (2) CN113268149B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102749A (en) * 2017-04-23 2017-08-29 吉林大学 A kind of three-dimensional pen type localization method based on ultrasonic wave and inertial sensor
CN108958483A (en) * 2018-06-29 2018-12-07 深圳市未来感知科技有限公司 Rigid body localization method, device, terminal device and storage medium based on interaction pen
CN109445599A (en) * 2018-11-13 2019-03-08 宁波视睿迪光电有限公司 Interaction pen detection method and 3D interactive system
US20190094996A1 (en) * 2017-09-26 2019-03-28 Yong Bum Kim Systems and related methods for facilitating pen input in a virtual reality environment
US10664069B1 (en) * 2017-08-30 2020-05-26 Apple Inc. Stylus with input adapter
CN112041789A (en) * 2018-05-21 2020-12-04 株式会社和冠 Position indicating device and spatial position indicating system
CN112132080A (en) * 2020-09-29 2020-12-25 深圳棒棒帮科技有限公司 Method and device for solving pen point image coordinates of intelligent pen, medium and intelligent pen

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130034765A (en) * 2011-09-29 2013-04-08 삼성전자주식회사 Method and device for inputting of mobile terminal using a pen
US20170185141A1 (en) * 2015-12-29 2017-06-29 Microsoft Technology Licensing, Llc Hand tracking for interaction feedback
CN106980368B (en) * 2017-02-28 2024-05-28 深圳市未来感知科技有限公司 Virtual reality interaction equipment based on vision calculation and inertia measurement unit
CN109445620B (en) * 2018-11-13 2021-10-01 宁波视睿迪光电有限公司 Automatic interactive pen identification method
US10573050B1 (en) * 2018-11-20 2020-02-25 Sony Corporation Marker-based pose estimation
JP7300304B2 (en) * 2019-04-22 2023-06-29 株式会社ワコム PEN STATE DETECTION CIRCUIT AND PEN STATE DETECTION METHOD
CN110276242B (en) * 2019-05-06 2022-03-25 联想(上海)信息技术有限公司 Image processing method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102749A (en) * 2017-04-23 2017-08-29 吉林大学 A kind of three-dimensional pen type localization method based on ultrasonic wave and inertial sensor
US10664069B1 (en) * 2017-08-30 2020-05-26 Apple Inc. Stylus with input adapter
US20190094996A1 (en) * 2017-09-26 2019-03-28 Yong Bum Kim Systems and related methods for facilitating pen input in a virtual reality environment
CN112041789A (en) * 2018-05-21 2020-12-04 株式会社和冠 Position indicating device and spatial position indicating system
CN108958483A (en) * 2018-06-29 2018-12-07 深圳市未来感知科技有限公司 Rigid body localization method, device, terminal device and storage medium based on interaction pen
CN109445599A (en) * 2018-11-13 2019-03-08 宁波视睿迪光电有限公司 Interaction pen detection method and 3D interactive system
CN112132080A (en) * 2020-09-29 2020-12-25 深圳棒棒帮科技有限公司 Method and device for solving pen point image coordinates of intelligent pen, medium and intelligent pen

Also Published As

Publication number Publication date
CN112433628B (en) 2021-06-08
CN113268149A (en) 2021-08-17
CN113268149B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
US9645693B2 (en) Determining user handedness and orientation using a touchscreen device
US8593402B2 (en) Spatial-input-based cursor projection systems and methods
EP3707584B1 (en) Method for tracking hand pose and electronic device thereof
JP4608326B2 (en) Instruction motion recognition device and instruction motion recognition program
US20130222381A1 (en) Augmented reality writing system and method thereof
CN112926423B (en) Pinch gesture detection and recognition method, device and system
EP3035164A1 (en) Wearable sensor for tracking articulated body-parts
KR101343748B1 (en) Transparent display virtual touch apparatus without pointer
CN111240469B (en) Calibration method and device for hand motion capture, electronic equipment and storage medium
CN111240468B (en) Calibration method and device for hand motion capture, electronic equipment and storage medium
US20170131785A1 (en) Method and apparatus for providing interface interacting with user by means of nui device
CN205050078U (en) A wearable apparatus
US20160328088A1 (en) Controlling method for a sensing system
CN106598422B (en) hybrid control method, control system and electronic equipment
Hilman et al. Virtual hand: VR hand controller using IMU and flex sensor
CN106569716B (en) Single-hand control method and control system
CN112433628B (en) Rigid body pose determination method and device of double-light-ball interactive pen and computer equipment
CN111383332B (en) Three-dimensional scanning and reconstruction system, computer device and readable storage medium
CN109960404B (en) Data processing method and device
CN108073283B (en) Hand joint calculation method and glove
CN112433629B (en) Rigid body posture determination method and device of double-light-ball interactive pen and computer equipment
CN113867562B (en) Touch screen point reporting correction method and device and electronic equipment
CN111275769A (en) Monocular vision parameter correction method and device
CN115494938A (en) Non-contact interaction method and device
CN112947772B (en) Rotation gesture alignment method and device of double-light-ball interaction pen and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant