vision module is not using rtmp stream anymore

jpeg webstream now runs with nearly zerolatency (currently limited to 640x480px)
This commit is contained in:
Joel 2021-02-04 16:02:45 +01:00
parent 6c579bb5fb
commit d4b577046e
No known key found for this signature in database
GPG key ID: BDDDBECD0808290E
5 changed files with 20 additions and 8 deletions

View file

@ -47,8 +47,9 @@ class __Streaming:
This is done implicitly when importing the vision module and will only fail if you would
create an object of this class. (There can (SHOULD!) only be one VideCapture)
"""
self.__camera_stream = cv2.VideoCapture(RTMP_SERVER)
# self.__camera_stream = cv2.VideoCapture(0)
Logging.get_logger().info("capturing rtmp stream is disabled in this version")
#self.__camera_stream = cv2.VideoCapture(RTMP_SERVER)
self.__camera_stream = cv2.VideoCapture(0)
self.__newest_frame = None
self.__lock = threading.Lock()
Logging.get_logger().info("Initialized vision")