Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

🧠🖼️🐍 A Python wrapper around the BrainFrame REST API

License

Notifications You must be signed in to change notification settings

aotuai/brainframe-python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainFrame Python API

Documentation Status Publish Packages CI Status

This library is a Python wrapper around the BrainFrame REST API. It allows for easy interaction with a BrainFrame server.

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()

# Build brainframe-api wheel

poetry build

The output will be in dist/. Check the README format if it is updated,

pip install readme-renderer
python -m readme_renderer README.rst

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.

pip3 install brainframe-api

Or local build,

pip3 install dist/{file name.whl}

Documentation

pip install sphinx sphinx-rtd-theme
cd docs
make html

Read the generated docs,

firefox _build/html/index.html

Documentation for this library is available on ReadTheDocs.

About

🧠🖼️🐍 A Python wrapper around the BrainFrame REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.