Skip to main content

简单易用的摄像头工具包,支持本地显示和网页显示

Project description

AIToolkit Camera

一个简单易用的摄像头工具包,支持本地显示和网页显示。

功能特性

  • 支持摄像头图像的本地显示和网页显示
  • 支持多种图像处理效果(灰度、边缘检测、模糊、素描、卡通)
  • 支持使用for循环迭代获取摄像头帧
  • 简单易用的API接口

安装方法

pip install aitoolkit-cam

使用示例

from aitoolkit_cam import Camera, ProcessedCamera, cv_show

# 基本用法
cam = Camera(0)  # 使用索引为0的摄像头
for frame in cam:
    if cv_show(frame, "web"):  # 在网页中显示
        break

# 本地显示
cam = Camera(0)
for frame in cam:
    if cv_show(frame, "cv2"):  # 本地窗口显示
        break

# 使用图像处理效果
proc_cam = ProcessedCamera(0, effect_type="sketch")
for frame in proc_cam:
    if cv_show(frame, "web"):
        break

网页显示

使用网页显示模式时,打开浏览器访问:http://localhost:8000

许可证

MIT

Project details


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.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aitoolkit_cam-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file aitoolkit_cam-0.1.1.tar.gz.

File metadata

  • Download URL: aitoolkit_cam-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for aitoolkit_cam-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba1ab75912805e7e94cd80e93aaffb07dc5d8c84bd46e3d46f3430de67a7b772
MD5 56e7754a4b4a67efcec436cddbe4e03e
BLAKE2b-256 26428a942ea7a12ed555ccebd018b136b7ba01282535602c40ef2c377a31ac57

See more details on using hashes here.

File details

Details for the file aitoolkit_cam-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aitoolkit_cam-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for aitoolkit_cam-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f232765ed0ba4b261df8e23df7b7064483aa0f1fd27c41ed18cc4469b21076d5
MD5 f9b607a4af0d78b9e4795be15abea545
BLAKE2b-256 1e235c411743fd3aa4d5a8d0ec853d98c9c433be7eefdc3fd55d149b97666fb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page