Example of using JVM wrapper for Point Grey FlyCapture SDK.
Please address queries and questions to JavaCPP discussion group.
There are two example projects
examples
contains command line examplesexample_ui
an example of GUI application using ScalaFX toolkit.
Command line examples illustrate use of the C++ and C API:
- C++ API examples in
src/main/scala/flycapture/examples/cpp
:BusEventEx
- register for Bus Events such as Camera Arrival/Removal and Bus Resets.CameraPropertyInfoEx
- prints out property information from attached cameras.ExtendedShutterEx
- demonstrates how to enable and calculate extended integration times.FlyCapture2Test
- for each attached cameras, print info and capture a couple of images.GrabCallbackEx
- demonstrates how to set up an asynchronous image callback.SoftwareTriggerEx
- demonstrates use of basic asynchronous trigger capabilities.
- C API examples in
src/main/scala/flycapture/examples/c
:FlyCapture2Test_C
- for each attached cameras, print info and capture a couple of images.
The example_ui
project is a simple GUI application for showing live view and controlling camera settings is in directory src/main/scala/flycapture/examples/cpp/snap
Project check_macro
contains some convenience scala macros for handling produced by FlyCapture SDK. Error codes are converted to exceptions.
build.sbt
- the main SBT configuration file.project/build.properties
- version of SBT to use.project/plugins.sbt
- plugins used for creation of Eclipse projects.
-
Install Java JDK
-
Install SBT
-
To run examples, change to directory containing
flycapture-demo
. You can run UI example by typing on the command line:%> sbt example_ui/run
To run command line examples type on the command line:
%> sbt examples/run
SBT will download all needed dependencies, including OpenCV and flycapture, and run the selected example code.