c++ - 如何隐藏 libfreenect2 的输出消息?

标签 c++ openkinect

对于一个项目,我正在使用 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/

相关文章:

c++ - 从 Linux 中 TCP 套接字上接收到的数据包中获取 TOS 字段?

c++ - 您如何将该C++程序转换为C程序?

c++ - 在类中声明但未定义的虚拟方法

macos - 在 OS X 上使用 kinect 1520 和 libfreenect2 进行处理/Python 开发

kinect - Libfreenect VS OpenNI

macos - 如何在 OS X 上更改 RPATH

C++ lambda 函数访问写冲突

c++ - 空 vector 占用的空间是否与指向当前设置为 nullptr 的类型的指针一样多?

linux - kinect "unable to enumerate USB device on port"安装为常规集线器,但检测到 "Xbox NUI Camera"和 "Xbox NUI Audio"