automated-planting-camera
跨平台摄像头枚举与管理模块,支持 Windows、Linux、macOS 系统。
功能特性
- 摄像头枚举与信息获取
- 单个摄像头操作(打开、读取、释放)
- 上下文管理器支持(with 语句)
- 摄像头测试与分辨率探测
- MJPEG 格式多分辨率兼容性测试
- 跨平台支持(Windows、Linux、macOS)
安装
pip install automated-planting-camera
依赖
- Python >= 3.8
- opencv-python >= 4.5.0
快速开始
from automated_planting_camera import list_cameras, CameraManager
# 列出所有可用摄像头
cameras = list_cameras()
for cam in cameras:
print(f"摄像头 {cam.index}: {cam.name}, {cam.width}x{cam.height} @ {cam.fps}fps")
# 使用 CameraManager 管理摄像头
manager = CameraManager()
# 测试摄像头
manager.test_camera(0, display=True, duration=5)
主要类和函数
CameraInfo: 摄像头信息数据类Camera: 单个摄像头操作类,支持上下文管理器CameraManager: 摄像头管理器类list_cameras(): 便捷函数,列出所有可用摄像头get_all_cameras(): 获取所有摄像头信息get_system_info(): 获取系统信息print_troubleshooting_guide(): 打印故障排查指南
许可证
MIT License
Metadata
Release files for automated-planting-camera 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| automated_planting_camera-1.0.3.tar.gz | 9.3 kB | Without provenance | Details for automated_planting_camera-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| automated_planting_camera-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for automated_planting_camera-1.0.3-py3-none-any.whl |
Total release size: 18.8 kB
Release files / automated_planting_camera-1.0.3.tar.gz
| Download URL | automated_planting_camera-1.0.3.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ca914893301704a3efc71c0e682f1b21f41e044548d30bd45b5b09b95524c6d
|
|
BLAKE2b-256 checksum How to use checksums |
a60170789a9bd28bfe48c83420dbf02511a72a9bf6682228a4080ce628ff336a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / automated_planting_camera-1.0.3-py3-none-any.whl
| Download URL | automated_planting_camera-1.0.3-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17ef82b8d0a4435fa8d25d18276de4380732c0eb1977a6f80c5f31cfd3afa5ff
|
|
BLAKE2b-256 checksum How to use checksums |
5440e720fbfd72c9968d050bb89fe1494642e202608aa1bf0de59beeb11f44e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for automated-planting-camera 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.