This application is developed on windows 11 and haven't been tested on ubuntu There is no certainty that this code will execute without problems. Since computers have different specs.
Since this project uses some of the packages from the python eBUS SDK, we'll just install it into a Venv to easily link to these files. If its the first time running scripts in powershell you might need to change your ExecutionPolicy (needs admin privileges)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
First we create an env, then we activate it
python -m venv env
env\Scripts\activate.ps1
Download the correct version of eBUS python from our website: https://www.jai.com/support-software/jai-software
Then install it in the terminal that you activated the venv
pip install .\ebus_python-<EBUS VERSION>.whl opencv_python
pip install -r requirements.txt
Lastly run the code, both webapp.py and camera.py can be execute with different results. camera.py is a simple acquisition app using OpenCV to display webapp.py is a Flask based acquisition app with some amount of control to play around with
python web.py