18 lines
516 B
Python
18 lines
516 B
Python
import main
|
|
import os
|
|
from detector import MainDetector
|
|
|
|
os.environ["YOLO_VERBOSE"] = 'False'
|
|
login = os.environ.get('CAM_LOGIN')
|
|
password = os.environ.get('CAM_PASSWORD')
|
|
host = os.environ.get('CAM_HOST')
|
|
port = os.environ.get('CAM_PORT')
|
|
|
|
# rtsp = f"rtsp://{login}:{password}@{host}:{port}/view/sub"
|
|
'http://192.168.0.155/view/login.html'
|
|
rtsp = 'rtsp://admin:123456@192.168.0.155:554/live/sub'
|
|
|
|
url_post = os.environ.get('URL_POST', None)
|
|
|
|
detector1 = MainDetector(rtsp, url_post)
|
|
detector1.run() |