Visual Servoing Platform
version 3.4.0
|
We assume that you have already followed the previous tutorial Tutorial: First java application with ViSP. It could be also useful to follow Tutorial: Markerless generic model-based tracking using a color camera to get an overview on model-based tracking in ViSP.
In this tutorial, you will see how to develop an application that allows to load a sequence of images and run model-based tracking in java using ViSP library in Eclipse.
To create the project corresponding to this tutorial:
"File \> New \> Java Project"
menu."New Java Project"
dialog write the name of your project (let say visp-java-mbt-generic
). In JRE section, select the appropriate execution environment (JavaSE-11 if you install JDK 11, or JavaSE-13 if you install JDK 13). Then press "Finish"
button."Don't Create"
button.If you followed Tutorial: Installing ViSP for Java, you should already have ViSP library set in your workspace’s user libraries; if not please check out Tutorial: Installing ViSP for Java. Now you should be ready to add ViSP library to your project.
"Build Path \> Add Libraries..."
."User Library"
and click on "Next"
:"Finish"
button.GenericTracker.java
file in your project, pointing your mouse on src
folder and with a right click entering "Import"
menu."General \> File System"
and press Next
button.$VISP_WS/visp/tutorial/java/mbt-generic
folder, enable mbt-generic
check box and press Finish
button.src
you should see something similar to:We can now run this application entering"Run \> Run"
menu.
Install ViSP data set, press "Open ViSP Input Image"
button, browse to select $ViSP_WS/visp-images
folder that contains ViSP dataset, and press "open"
button as shown in the next image.
"Track"
button to run the tracker on a sequence that is part of ViSP dataset.
This application allows to select features (edges alone, keypoints alone, or edges and keypoints together in the same scheme) that are used by the tracker. Just try it...