fix(cli): syntax error

This commit is contained in:
Cyrille Nofficial 2022-01-18 18:25:56 +01:00
parent 17730a4994
commit 9ca77f526a
2 changed files with 1 additions and 19 deletions

View File

@ -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:

View File

@ -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")