From 9ca77f526ae2abf40afa14138c1d150396e9910f Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Tue, 18 Jan 2022 18:25:56 +0100 Subject: [PATCH] fix(cli): syntax error --- camera/cli.py | 2 +- camera/depthai.py | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/camera/cli.py b/camera/cli.py index 0c21af8..70bcdc7 100644 --- a/camera/cli.py +++ b/camera/cli.py @@ -1,7 +1,7 @@ """ Publish data from oak-lite device -Usage: rc-oak-robocar-oak-camera [-u USERNAME | --mqtt-username=USERNAME] [--mqtt-password=PASSWORD] [--mqtt-broker=HOSTNAME] +Usage: rc-oak-camera [-u USERNAME | --mqtt-username=USERNAME] [--mqtt-password=PASSWORD] [--mqtt-broker=HOSTNAME] [--mqtt-topic-robocar-oak-camera="TOPIC_CAMERA"] [--mqtt-client-id=CLIENT_ID] Options: diff --git a/camera/depthai.py b/camera/depthai.py index f2de637..1cf200d 100644 --- a/camera/depthai.py +++ b/camera/depthai.py @@ -7,26 +7,10 @@ from google.protobuf.timestamp_pb2 import Timestamp import depthai as dai import cv2 - from threading import Thread logger = logging.getLogger(__name__) -""" -This example shows usage of Camera Control message as well as ColorCamera configInput to change crop x and y -Uses 'WASD' controls to move the crop window, 'C' to capture a still image, 'T' to trigger autofocus, 'IOKL,.[]' -for manual exposure/focus/white-balance: - Control: key[dec/inc] min..max - exposure time: I O 1..33000 [us] - sensitivity iso: K L 100..1600 - focus: , . 0..255 [far..near] - white balance: [ ] 1000..12000 (light color temperature K) -To go back to auto controls: - 'E' - autoexposure - 'F' - autofocus (continuous) - 'B' - auto white-balance -""" - class FramePublisher(Thread): def __init__(self, mqtt_client: mqtt.Client, frame_topic: str, img_width: int, img_height: int): @@ -94,5 +78,3 @@ class FramePublisher(Thread): except Exception as e: logger.exception("unexpected error") - -