adafruit / adafruit/Adafruit_CircuitPython_PyCamera

Turn off debug output

未关闭
#14 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
24
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

At some point would be nice to turn off the debug output - or make optional. It's useful stuff, so not suggesting just deleting.

```python
>>> pycam = adafruit_pycamera.PyCamera()
FutureWarning: FourWire moved from displayio to fourwire
FutureWarning: Display moved from displayio to busdisplay
FutureWarning: Display renamed BusDisplay
reset camera
pre cam @ 0.333008
I2C addresses found: ['0x19', '0x58']
Found AW9523
sdcard done @ 0.399414
Initializing camera
Found camera OV5640 (240 x 176) at I2C address 3c
camera done @ 1.19922
['__class__', '__enter__', '__exit__', 'address', 'ae_level', 'aec2', 'aec_value', 'agc_gain', 'awb_gain', 'bpc', 'brightness', 'colorbar', 'contrast', 'dcw', 'deinit', 'denoise', 'exposure_ctrl', 'frame_available', 'frame_size', 'framebuffer_count', 'gain_ceiling', 'gain_ctrl', 'grab_mode', 'height', 'hmirror', 'lenc', 'max_frame_size', 'pixel_format', 'quality', 'raw_gma', 'reconfigure', 'saturation', 'sensor_name', 'sharpness', 'special_effect', 'supports_jpeg', 'take', 'vflip', 'wb_mode', 'whitebal', 'width', 'wpc']
colors 16777215
colors 16777215
init done @ 2.13428
>>>
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位负责显示初始化、计时、I2C 和颜色消息的 PyCamera 源代码;issue 中未指定文件或测试。确定如何在保留有用诊断信息的同时禁用调试输出或使其成为可选项,然后验证在关闭调试输出时正常的相机初始化仍能工作,并且在启用调试输出时仍可使用。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
embedded-iot
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。