I use OpenNI 2 to read depth and color (RGB) images from a Primesense camera. Sometimes when my program does not work as expected, I like to enable the logging that is built into OpenNI 2.
- To change the logging settings, the file that needs to be edited is
Log messages can be printed to the console by setting
LogToConsoleto 1. If you run your program after this is enabled, it prints log messages on the console.
Log messages can be written to a log file by setting
LogToFileto 1. If you run your program after this is enabled, it prints log messages to files in a
Logsubdirectory. One log file is created for every invocation of your program. The log filename is a timestamp, for example:
Four levels of verbosity is available for log messages. In increasing verbosity these are: error (3), warning (2), info (1) and verbose (0).
Tried with: OpenNI 2.2, Primesense RD1.09 and Ubuntu 14.04