提供了一个围绕BrainFrame REST API的Python包装器。
brainframe-api的Python项目详细描述
这个库是一个围绕着brainframerestapi的Python包装器。它允许 与BrainFrame服务器轻松互动。在
frombrainframe.apiimportBrainFrameAPI,bf_codecs# Connect to the serverapi=BrainFrameAPI("http://localhost")# Create a new IP camera streamstream_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 resultsanalysis_results=api.get_latest_zone_statuses()
安装
BrainFrame Python API在PyPI上可用,可以与pip一起安装。 安装与BrainFrame版本匹配的库版本 您正在使用。例如,如果您使用的是BrainFrame版本0.26.1:
^{pr2}$文件
此库的文档可在ReadTheDocs上找到。在
- 项目
标签: