Skip to content

Getting Started

Introduction

The BrainFrame ecosystem includes a BrainFrame server for video encoding and decoding, AI inference, and computer vision algorithm processing; a BrainFrame web client to view the live results, configure the server, and fine-tune algorithms; and BrainFrame applications, including camera device management, the VisionCapsules® AI Marketplace to download and package AI models, the Use Case Library application to manage and collect video datasets, system and developer tools to monitor compute pipeline latency and inference FPS, the developer documentation, and more.

The server requires a Linux machine. It is possible to install and run BrainFrame on Linux variants other than Ubuntu. However, the continuous integration of releases is tested only on Ubuntu, and only x86 architectures are available in the general public releases.

Prerequisite: Docker

BrainFrame Server requires Docker. Ensure Docker is installed on your system. If it is not, you can install it using the following commands

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

After installation, add your user to the Docker group to manage Docker as a non-root user:

sudo usermod -aG docker $USER
newgrp docker

Install BrainFrame Server

BrainFrame CLI

For this guide, we will use brainframe-cli (Command Line Interface) to download and install BrainFrame. Ubuntu is the tested Linux distribution.

Download the CLI executable for Linux x86_64:

curl -fL https://aotu.ai/releases/brainframe-cli/brainframe -o brainframe
chmod +x brainframe
sudo install -m 0755 brainframe /usr/local/bin/brainframe

The CLI needs Docker with Docker Compose. Either the docker compose plugin or the docker-compose command works.

To update the CLI later, see self-update.

To install brainframe-cli using pip instead, see Install with pip.

Starting the BrainFrame Server

With the tool installed, view available commands by running:

brainframe --help

Now, install BrainFrame by running the below command and following the directions:

sudo brainframe install

Info

If you are in mainland China and downloading the BrainFrame Docker images is taking a long time, consider using a Docker mirror by following these instructions.

Once BrainFrame is downloaded, the BrainFrame CLI will ask you if you want to start BrainFrame server now or not. You can either start BrainFrame server now, or with the following command later:

sudo brainframe compose up -d

To view the logs or stop the server, see the compose command.

To install or update to a specific BrainFrame release, see the install and update commands in the BrainFrame CLI reference.

BrainFrame Client

The BrainFrame Web Client runs in a browser on Linux, Windows, or Mac, and needs no installation. Type the IP address of the BrainFrame server in a browser to access it:

http://<your-server-ip>

For more information, see Web Client.

Obsolete

The BrainFrame Linux QT Client is obsolete and not recommended for new deployments. Use the BrainFrame Web Client instead. If you still need it, see Linux QT Client.

Getting a License

The client will now request a license be uploaded to the server, like such:

To get a license:

  1. Go to the website.
  2. Click the Sign In button located near the top of the page.
  3. Either sign in with your existing account or click Sign Up to create a new account.
  4. On the Account Page, under the License Key section, click Create a New Key. The key then shows next to the button, like ..........XXXXXXXX. Click it to download the key.

Now on the client, select Configure and then License Config. Drag in the downloaded license_file into the window, then select Update License. It should complete looking like this:

Close the license config and the server config windows, and the client will open!

Next Steps

Now with the BrainFrame server and client installed, you can go on to use the ecosystem to your full advantage.

Alternative Methods

You can also accomplish the tasks above using either of the following:

Info

The BrainFrame Client (GUI) and the BrainFrame CLI are completely powered by the REST API. As a result, you can integrate BrainFrame OS directly into your own applications with a custom interface. For more details, view the architecture diagram