跳转到主要内容

为BrainFrame REST API提供Python包装器。

项目描述

Documentation Status Publish Packages CI Status

这个库是BrainFrame REST API的Python包装器。它允许轻松与BrainFrame服务器交互。

from brainframe.api import BrainFrameAPI, bf_codecs

# Connect to the server
api = BrainFrameAPI("http://localhost")
# Create a new IP camera stream
stream_config = api.set_stream_configuration(
    bf_codecs.StreamConfiguration(
        name="New Stream",
        connection_type=bf_codecs.ConnType.IP_CAMERA,
        connection_options={"url": "rtsp://192.168.1.100"},
        runtime_options={},
    ))
api.start_analyzing(stream_config.id)
# Get results
analysis_results = api.get_latest_zone_statuses()

安装

BrainFrame Python API可在PyPI上找到,并可以使用pip安装。安装与您使用的BrainFrame版本匹配的库版本。例如,如果您使用的是BrainFrame版本0.26.1

pip3 install brainframe-api

文档

该库的文档可在ReadTheDocs上找到。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

brainframe-api-0.30.0.tar.gz (29.7 kB 查看哈希值)

上传时间 源代码

构建分发

brainframe_api-0.30.0-py3-none-any.whl (45.3 kB 查看哈希值)

上传时间 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面