Projet C IG (1A)

IHM (2A)


VR/AR/Post-WIMP (3A)


Projet image (2A)


HCI (MoSIG 2)


Test Logiciel


Projects Docs

Video acquisition (grabber)

These examples are meant to get images from cameras into computer memory.

Getting the libraries and sample code

Execute the following command in the directory where you want to work:

  svn co https://brouet.imag.fr/SVN/gilpw/

Compiling the "grabber_minimal" example

From where you executed the "svn co" command (see above), go to the grabber_minimal directory, create a new directory for building, go there, execute cmake to create the makefile and make to build the program:

 cd gilpw/examples/optitrack_minimal
 mkdir build
 cd build
 cmake ..
 make

Run the program

 ./grabber_minimal

If all goes well, you should see something like:

 % ./grabber_minimal
 Starting grabber minimal example.
   looking for a grabber.
 grabber_t::check_new_frame freq 0.000Hz dropped 0.000Hz empty 0.000Hz capture 0.000Hz
                              dequeue avg 26.572943 ms min 0.000000 ms max 26.572943 ms
  0.000000 grabbed image #0 (752x480)
  0.000000 grabbed image #1 (752x480)

  (...)

  0.937438 grabbed image #60 (752x480)
  0.953243 grabbed image #61 (752x480)
 grabber_t::check_new_frame freq 61.945Hz dropped 0.000Hz empty 0.000Hz capture 61.945Hz
                              dequeue avg 15.616467 ms min 14.835835 ms max 30.259132 ms
  0.969240 grabbed image #62 (752x480)

  (...)

  3.146184 grabbed image #199 (752x480)
  closing the grabber.
  %

Compiling the "grabber_osg" example

This example requires a working distribution of Open Scene Graph.

The example displays the live grabber image in a window (or fullscreen).

Go to the grabber_osg directory, create a new directory for building, go there, execute "cmake" to create the makefile and "make" to build the program:

 cd gilpw/examples/grabber_osg
 mkdir build
 cd build
 cmake ..
 make

Run the program

 ./grabber_osg

If all goes well, you should see something like the image below.

Edit - History - Upload - Print - Recent Changes - Search
Page last modified on November 08, 2016, at 08:08 AM