These are usage examples for libapriltag.

apriltag_demo.c and opencv_demo.cc are the vanilla demos shipped with the
apriltag library. These require libapriltag-utils, and can be built like this:

  gcc -o /tmp/apriltag_demo -I/usr/include/apriltag apriltag_demo.c -lapriltag -lapriltag-utils

  g++ -o /tmp/opencv_demo -I/usr/include/apriltag opencv_demo.cc -lapriltag -lapriltag-utils `pkg-config --libs opencv`

Naturally, opencv_demo requires the libopencv-dev package to be installed.


A simpler example is available in simple_demo.c. This has the same core
functionality but

- Uses standard image input and option parsing, so does not need
  libapriltag-utils

- Uses libfreeimage, so it works with pure C, not C++

It can be built like this:

  gcc -o /tmp/simple_demo -I/usr/include/apriltag simple_demo.c -lapriltag -lfreeimage

Naturally, libfreeimage-dev needs to be installed for this to work
