brainframe-api-0.30.0
توضیحات
Provides a Python wrapper around the BrainFrame REST API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | brainframe-api-0.30.0 |
| نام | brainframe-api |
| نسخه کتابخانه | 0.30.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aotu |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/aotuai/brainframe_python |
| آدرس اینترنتی | https://pypi.org/project/brainframe-api/ |
| مجوز | BSD-3-Clause |
=====================
BrainFrame Python API
=====================
.. image:: https://readthedocs.org/projects/brainframe-python-api/badge/?version=latest
:target: https://brainframe-python-api.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://circleci.com/gh/aotuai/brainframe-python.svg?style=svg
:target: https://circleci.com/gh/aotuai/brainframe-python
:alt: Publish Packages CI Status
This library is a Python wrapper around the BrainFrame REST API. It allows for
easy interaction with a BrainFrame server.
.. code-block:: python
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()
Installation
------------
The BrainFrame Python API is available on PyPI and can be installed with pip.
Install the version of the library that matches the version of BrainFrame that
you are using. For example, if you are using BrainFrame version 0.26.1:
.. code-block:: bash
pip3 install brainframe-api
Documentation
-------------
Documentation for this library is available on `ReadTheDocs`_.
.. _`ReadTheDocs`:
https://brainframe-python-api.readthedocs.io/en/latest/
نیازمندی
| مقدار | نام |
|---|---|
| >=2.24.0,<3.0.0 | requests |
| ==8.3.2 | pillow |
| >=1.16,<2.0 | numpy |
| >=0.7,<0.8) | dataclasses |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl brainframe-api-0.30.0:
pip install brainframe-api-0.30.0.whl
نصب پکیج tar.gz brainframe-api-0.30.0:
pip install brainframe-api-0.30.0.tar.gz