# How to make the stylus more smooth and stable

**URL:** <https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862>\
**Category:** Support\
**Tags:** registration, surgical-navigation\
**Created:** [September 26, 2021, 9:26am UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862 "2021-09-26T09:26:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [September 26, 2021, 9:26am UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/1 "2021-09-26T09:26:13Z")

</div>

Dear friends,

when I use IGT and camera-based navigation simulation,

as this video shows, the movement of the stylus is always stuck and not smooth.

how to solve this problem？

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f5dca1f40fdc037779716ef6502fdb4323c740a.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f5dca1f40fdc037779716ef6502fdb4323c740a.mp4)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 27, 2021, 3:00am UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/2 "2021-09-27T03:00:58Z")

</div>

Do you use the aruco marker tracker? Unstable tracking is usually due to uncalibrated camera or markers printed in incorrect size, but may be due to using too small markers, low camera resolution, inadequate lighting, etc.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 27, 2021, 2:33pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/3 "2021-09-27T14:33:25Z")

</div>

5 posts were split to a new topic: [How to improve OptiTrack Duo tool tracking stability](https://discourse.slicer.org/t/how-to-improve-optitrack-duo-tool-tracking-stability/19882)

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [September 27, 2021, 12:26pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/8 "2021-09-27T12:26:11Z")

</div>

Trhank you !

Yes,it is aruco marker tracker.How to calibrated camera?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 27, 2021, 3:18pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/9 "2021-09-27T15:18:38Z")

</div>

Camera calibration procedure is described in [Plus Toolkit’s User manual](http://perk-software.cs.queensu.ca/plus/doc/nightly/user/DeviceOpticalMarkerTracker.html). See Calibration section.

---

<div class="post-metadata">

**Author:** ![J.vd.Zee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/j.vd.zee/32/15064_2.png) [@J.vd.Zee](https://discourse.slicer.org/u/J.vd.Zee)\
**Post date:** [June 14, 2022, 12:41pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/10 "2022-06-14T12:41:41Z")

</div>

@lassoan I am new to Cmake, C++, OpenCV etc. and i am not able to do the calibration procedure.  
Could you explain how the calibration needs to be performed?  
The aruco\_calibration.exe is not working.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 15, 2022, 3:17am UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/11 "2022-06-15T03:17:46Z")

</div>

Setup instructions are available [here](http://perk-software.cs.queensu.ca/plus/doc/nightly/user/DeviceOpticalMarkerTracker.html). If you run into any issues then please provide details.

> [@J.vd.Zee](#):
>
> The aruco\_calibration.exe is not working.

What did you do? How did you run it exactly? What camera do you use? What are the available image resolutions of the camera?

What did you expect to happen?  
What happened instead?

---

<div class="post-metadata">

**Author:** ![J.vd.Zee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/j.vd.zee/32/15064_2.png) [@J.vd.Zee](https://discourse.slicer.org/u/J.vd.Zee)\
**Post date:** [June 17, 2022, 2:37pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/12 "2022-06-17T14:37:58Z")

</div>

I managed!

I downloaded the CMake-gui software and was able to right click on the folder to start ‘git Bash Here’. With the CMake I was able to start the calibration procedure.

Thanks again for you help!

---

<div class="post-metadata">

**Author:** ![ChristophG123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/christophg123/32/15483_2.png) [@ChristophG123](https://discourse.slicer.org/u/ChristophG123)\
**Post date:** [July 19, 2022, 6:42pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/13 "2022-07-19T18:42:22Z")

</div>

Hi, how did you get this working? I am able to enter Git Bash and run the following command line without errors:  
`start aruco_calibration.exe live:0 camera_calibration.yml -size 0.03556`

But it doesn’t show any GUI and I can’t find any new files from it. How did you use CMake-gui to get this working? Thanks.

Update: I was able to get it working by installing a Qt5Test DLL file. When I tried running the executable, it said this was missing. Now the program works perfectly.

---

<div class="post-metadata">

**Author:** ![adamrankin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adamrankin/32/155_2.png) [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Post date:** [July 19, 2022, 7:05pm UTC](https://discourse.slicer.org/t/how-to-make-the-stylus-more-smooth-and-stable/19862/14 "2022-07-19T19:05:00Z")

</div>

Dependency Walker showed missing dependency: Qt5Test.dll

Copied from another Qt5.15 SDK installation and it ran as expected.

Missing from packaging in Plus?
