简单易用的摄像头工具包,支持本地和Web显示,Jupyter优化版
Project description
AIToolkit Camera 0.4.0 - Jupyter优化版
简单易用的摄像头工具包,完美支持 Jupyter Notebook 和教育编程场景。
🎯 核心特性
- 🚀 开箱即用:
Camera()一行代码启动摄像头 - 🎓 Jupyter优化:默认500帧自动停止,无需手动释放资源
- 🌐 网页显示:自动启动本地Web服务器
- ⚡ 智能简写:
Camera(1000)直接指定显示帧数 - 🔧 自动资源管理:解决Jupyter中摄像头占用问题
📦 快速安装
pip install aitoolkit-cam
🚀 快速开始
最简使用(推荐)
from aitoolkit_cam import Camera
# 默认显示500帧后自动停止
cam = Camera()
url = cam.start()
print(f"请访问: {url}")
自定义帧数
from aitoolkit_cam import Camera
# 显示1000帧后自动停止
cam = Camera(1000)
url = cam.start()
print(f"请访问: {url}")
传统循环方式
from aitoolkit_cam import Camera
cam = Camera()
url = cam.start()
print(f"请访问: {url}")
for frame in cam:
# 自动在500帧后停止
pass
🎯 主要优势
- 教育友好:适合编程教学和Jupyter演示
- 资源安全:自动释放摄像头,避免占用问题
- 简化API:最少代码实现最多功能
- 向后兼容:支持所有原有功能
📚 完整文档
访问我们的完整文档了解更多功能。
🆕 v0.4.0 新功能
- 默认500帧自动停止
- 智能参数解析
- Jupyter专用优化
- 自动资源管理
- 积木化编程支持
适用于 Python 3.7+ | 支持 Windows, macOS, Linux | 兼容 Jupyter Notebook
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aitoolkit_cam-0.4.0.tar.gz
(35.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aitoolkit_cam-0.4.0.tar.gz.
File metadata
- Download URL: aitoolkit_cam-0.4.0.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0b9ab09c0bff92f8f032a5ba03f488090b1aadb83471b24fda5cc27a94a19c9
|
|
| MD5 |
b15690075d0bcbc200779394cbb71f98
|
|
| BLAKE2b-256 |
c6e91eae1c67ffeab2fddf5e2760a9c8f9a7f1642b083fff96d1247de692cb3f
|
File details
Details for the file aitoolkit_cam-0.4.0-py3-none-any.whl.
File metadata
- Download URL: aitoolkit_cam-0.4.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0146ffe40653b167e018d2d28cb1c8296c3e2f9a5bbc83990c5d89a60f30e2b
|
|
| MD5 |
a2b8276036dbab4d1412994b99664095
|
|
| BLAKE2b-256 |
6e6247e5c24a57ed27703d854266b06acb64e9215ee57d10225cb28b28008610
|