Skip to content

Latest commit

 

History

History
 
 

Spinnaker-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Spinnaker-demo

Example of using JVM wrapper for Point Grey Spinnaker SDK.

Please address queries and questions to JavaCPP discussion group.

Examples

C API examples in Java

  • Acquisition_C - how to enumerate cameras, start acquisition, and grab images.
  • Enumeration_C - how to enumerate interfaces and cameras.
  • Sequencer_C - shows how to use the sequencer to grab images with various settings.
  • Utils - helper functions that are reused by multiple examples. In original Spinnaker C examples corresponding C code is duplicated in each example. This reduces verbosity of the original C examples. Treat Utils is another source of example code.

To reduce verbosity of the original C examples some repeating code was moved to spinnaker_c4j.Utils

C API examples in Scala

  • Enumeration_C - how to enumerate interfaces and cameras.
  • EnumerationEvents_C - handling system and interface events, like camera disconnect.
  • SaveToAvi_C - shows how to create a video from a vector of images.
  • helpers - helper functions that are reused by multiple examples. In original Spinnaker C examples corresponding C code is duplicated in each example. This reduces verbosity of the original C examples. Treat helpers is another source of example code.

Build script

  • 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.

How to build and run using SBT

  1. Install Java JDK

  2. Install SBT

  3. To run examples, change to directory containing Spinnaker-demo. You can run examples by typing on the command line:

     %> sbt run
    

    SBT will download all needed dependencies, including OpenCV and spinnaker, and run the selected example code.