How to execute WebCamCapture sample of NyARToolkit for Java

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

How to execute WebCamCapture sample of NyARToolkit for Java
[Java] [Maven3] Summary of how to use Maven3
How to check for the contents of a java fixed-length string
[Java] How to test for null with JUnit
[java] Summary of how to handle character strings
[Java] Summary of how to abbreviate lambda expressions
[Java] (for MacOS) How to set the classpath
[Java] How to get the authority of the folder
How to specify index of JavaScript for statement
[Java] How to make multiple for loops single
[Java] How to use compareTo method of Date class
How to write Scala from the perspective of Java
[Java] Types of comments and how to write them
Initialization of for Try to make Java problem TypeScript 5-4
[Java] How to get the maximum value of HashMap
[For beginners] Minimum sample to display RecyclerView in Java
How to use Truth (assertion library for Java / Android)
As of April 2018 How to get Java 8 on Mac
[Java] How to execute tasks on a regular basis
Summary of Java communication API (1) How to use Socket
Summary of Java communication API (3) How to use SocketChannel
Summary of Java communication API (2) How to use HttpUrlConnection
Summary of how to implement default arguments in Java
How to loop Java Map (for Each / extended for statement)
[Java] How to use Map
How to lower java version
[Java] How to use Map
How to uninstall Java 8 (Mac)
Java --How to make JTable
How to write java comments
How to use java class
[Java] How to use Optional ②
[Java] How to use removeAll ()
[Java] How to display Wingdings
How to use Java Map
How to set Java constants
[Java] Summary of for statements
How to use Java variables
How to convert Java radix
[Java] How to implement multithreading
[Java] How to use Optional ①
How to initialize Java array
An unsupported Java version How to get rid of errors
How to use SAS tokens for Azure Event hubs (Java)
How to use trained model of tensorflow2.0 with Kotlin / Java
[Must-see for apprentice java engineer] How to use Stream API
Comparison of how to write Callback function (Java, JavaScript, Ruby)
How to derive the last day of the month in Java
For Java beginners: List, Map, Iterator / Array ... How to convert?
Reintroduction to Java for Humanities 0: Understanding the Act of Programming
Investigated how to call services with Watson SDK for Java
How to study Java Silver SE 8
How to use Java HttpClient (Get)
How to execute Postgresql copy command with column information on Java
How to specify validation for time_field
How to install JMeter for Mac
Studying Java # 6 (How to write blocks)
[Java] How to update Java on Windows
How to make a Java container
How to disassemble Java class files
How to use Java HttpClient (Post)