fix(cli): syntax error
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user