NyARToolkit can use various camera libraries such as JMF, WebCamCapture, QuickTime, etc., but there are many samples using JMF in the project. However, JMF is a legacy project that has stopped updating since 2003, and if you develop an application using it, it will take a lot of time to build the environment, and it will be heavily dependent on the development environment, making it difficult to distribute and reuse. There is a high possibility that you will fall into the situation of. Also, although it is a project distributed as an eclipse project, the Readme was a little difficult to understand, and I often stumbled upon the introduction. This section describes how to run the sample using WebCamCapture, which is included as standard in the library from NyARToolkit 4.1.1.
NyAR Toolkit is distributed as an eclipse project, so get eclipse.
Download NyAR Toolkit as Zip or git clone. https://github.com/nyatla/NyARToolkit
Import the lib, sample, utils directories with the import project from the File menu.
Open WebCamSample.java for your NyARToolkit.sample.jogl project.
Right-click on the NyARToolkit.sample.jogl project and select Configure Build Path from Build Path.
Remove NyARToolkit.utils.jmf from the Projects tab and jmf.jar from the Libraries tab.
Now you can run the program.
I'm addicted to mistakes such as importing as a project.
In my environment it took a long time to orbit the camera. That didn't happen with JMF, but I'm not sure what caused it to slow down.
Recommended Posts