cognitivexr / CogStream

CogStream: a platform for distributed real-time AI-based video analytics 🧠 🤖
Apache License 2.0
7 stars 1 forks source link

Mediator should be able to start python engines #33

Closed thrau closed 2 years ago

thrau commented 3 years ago

Currently the python engines start the server socket and engines using a main.py, which takes a --host and --port argument to bind the server socket.

We need some way of starting a python engine from the mediator in go.

This will require:

thrau commented 2 years ago

last point became obsolete by allowing users to specify multiple plugin directories when starting the mediator

for example:

make dist
dist/mediator -plugins dist/engines/ -plugins engines/engines-py

obviously you need to prepare the individual engines in engines-py first by creating a .venv directory and installing the necessary requirements.