Skip to content

๐Ÿง ๐Ÿ–ผ๏ธ๐Ÿ A Python wrapper around the BrainFrame REST API

License

Notifications You must be signed in to change notification settings

aotuai/brainframe-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

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

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:

pip3 install brainframe-api

Documentation

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

Languages