added new Camera class for opencv video processing (currently does not work with Pi-Camera)

changed logging a bit
This commit is contained in:
Joel Klimont 2022-11-05 21:18:24 +01:00
parent b87e830ac3
commit de9b671f29
5 changed files with 244 additions and 10 deletions

View file

@ -0,0 +1,7 @@
import logging
import os
if os.getenv("DEBUG", "0") != "0":
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG)
else:
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)