对于一个项目,我正在使用 libfreenect2,因为我正在从控制台读取一些命令,所以我想隐藏 kinect 获取数据时 libfreenect2 输出的消息*。我怎么能那样做? *我的意思是所有关于跳过数据等的消息
最佳答案
Google 是您的 friend :https://openkinect.github.io/libfreenect2/group__logging.html
void libfreenect2::setGlobalLogger ( Logger * logger )
Set the logger for all log output in this library.
Parameters
logger Pointer to your logger, or NULL to disable logging. The memory will be freed automatically. You should not free the pointer.
所以只需使用 libfreenect2::setGlobalLogger(NULL);
关于c++ - 如何隐藏 libfreenect2 的输出消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35437186/