updated opencv documentation (camera module)

added enabling of legacy support for the camera module to the postinstall script
This commit is contained in:
Joel Klimont 2022-11-18 17:19:40 +01:00
parent ee4f6a516d
commit f03df1b3b3
4 changed files with 17 additions and 3 deletions

View file

@ -1,7 +1,5 @@
import sys
from typing import Tuple, Any
import numpy as np
from typing import Any
# build image is somehow different from raspberry image? opencv-python is installed to a directory which is not in the pythonpath by default....
sys.path.append("/usr/lib/python3.9/site-packages")

View file

@ -0,0 +1,13 @@
.. _lib_camera:
Camera und OpenCV
*******************
Dokumentation des Camera Moduls
================================
.. autoclass:: compLib.Camera.Marker
:members:
.. autoclass:: compLib.Camera.Camera
:members:

View file

@ -9,3 +9,4 @@ compLib
classes/IRSensor
classes/Seeding
classes/DoubleElimination
classes/Opencv

View file

@ -9,6 +9,8 @@ pip3 install requests flask
echo "Setting up nginx rtmp server"
sudo /etc/init.d/nginx start
sudo raspi-config nonint do_legacy 0
{
echo 'load_module "modules/ngx_rtmp_module.so";'
echo 'worker_processes auto;'