orbbec / OrbbecSDK

Orbbec SDK v1&v2 Pre-Compiled Repo
https://www.orbbec3d.com/
Other
124 stars 16 forks source link

请问如何能够关掉默认输出在终端的各种信息 #109

Closed biosbeta closed 2 months ago

zhonghong322 commented 4 months ago

If you want to disable logging, you can set the log level.

typedef enum { OB_LOG_SEVERITY_DEBUG, /< debug */ OB_LOG_SEVERITY_INFO, /*< information / OB_LOG_SEVERITY_WARN, /< warning */ OB_LOG_SEVERITY_ERROR, /< error */ OB_LOG_SEVERITY_FATAL, /*< fatal error / OB_LOG_SEVERITY_OFF /< off (close LOG) */ } OBLogSeverity ob::Context context; // Set the error level of Log output. context.setLoggerSeverity(OB_LOG_SEVERITY_OFF)

biosbeta commented 4 months ago

If you want to disable logging, you can set the log level.

typedef enum { OB_LOG_SEVERITY_DEBUG, /< debug */ OB_LOG_SEVERITY_INFO, /*< information / OB_LOG_SEVERITY_WARN, /< warning */ OB_LOG_SEVERITY_ERROR, /< error */ OB_LOG_SEVERITY_FATAL, /*< fatal error / OB_LOG_SEVERITY_OFF /< off (close LOG) */ } OBLogSeverity ob::Context context; // Set the error level of Log output. context.setLoggerSeverity(OB_LOG_SEVERITY_OFF)

我用的是pyorbbecsdk包来完成读取,请问可以用什么python代码来实现关闭日志呢

jian-dong commented 4 months ago

参考一下这一行https://github.com/orbbec/pyorbbecsdk/blob/main/test/test_context.py#L32

biosbeta commented 4 months ago

好的,谢谢。我还有一个问题,目前使用的mega相机,设置的彩色图像分辨率为1280x720,保存后的图像大小只有200多KB,看着也不是很清晰。在不改变分辨率的情况下,有没有什么可以提高图像质量的参数设置呢?

zhonghong322 commented 4 months ago

你可以使用 YUY2格式,但是带宽会大些。