From 4872aef28e4090465f2b2ae9c5ed72f486b595b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pi=C5=82atowski?= Date: Wed, 6 Oct 2021 15:27:18 +0200 Subject: [PATCH] fix typo --- README.md | 4 ++-- depthai_demo.py | 4 ++-- depthai_helpers/arg_manager.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cc0b5619c..24008cc30 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ usage: depthai_demo.py [-h] [-cam {left,right,color}] [-vid VIDEO] [-dd] [-dnn] [-s {nnInput,color,left,right,depth,depthRaw,disparity,disparityColor,rectifiedLeft,rectifiedRight} [{nnInput,color,left,right,depth,depthRaw,disparity,disparityColor,rectifiedLeft,rectifiedRight} ...]] [--report {temp,cpu,memory} [{temp,cpu,memory} ...]] [--reportFile REPORTFILE] [-sync] [-monor {400,720,800}] [-monof MONOFPS] [-cb CALLBACK] [--openvinoVersion {2020_3,2020_4,2021_1,2021_2,2021_3,2021_4}] [--count COUNTLABEL] [-dev DEVICEID] [-bandw {auto,low,high}] [-usbs {usb2,usb3}] - [-enc ENCODE [ENCODE ...]] [-encout ENCODEOUTPUT] [-xls XLINKCHUNKSIZE] [-camo CAMERAORIENTATION [CAMERAORIENTATION ...]] [--cameraControls] + [-enc ENCODE [ENCODE ...]] [-encout ENCODEOUTPUT] [-xls XLINKCHUNKSIZE] [-camo CAMERAORIENTATION [CAMERAORIENTATION ...]] [--cameraControlls] [--cameraExposure CAMERAEXPOSURE] [--cameraSensitivity CAMERASENSITIVITY] [--cameraSaturation CAMERASATURATION] [--cameraContrast CAMERACONTRAST] [--cameraBrightness CAMERABRIGHTNESS] [--cameraSharpness CAMERASHARPNESS] @@ -129,7 +129,7 @@ optional arguments: Define cameras orientation (available: AUTO, NORMAL, HORIZONTAL_MIRROR, VERTICAL_FLIP, ROTATE_180_DEG) Format: camera_name,camera_orientation Example: -camo color,ROTATE_180_DEG right,ROTATE_180_DEG left,ROTATE_180_DEG - --cameraControls Show camera configuration options in GUI and controll them using keyboard + --cameraControlls Show camera configuration options in GUI and controll them using keyboard --cameraExposure CAMERAEXPOSURE Specify camera saturation --cameraSensitivity CAMERASENSITIVITY diff --git a/depthai_demo.py b/depthai_demo.py index 8d52754c7..f5452320e 100755 --- a/depthai_demo.py +++ b/depthai_demo.py @@ -320,7 +320,7 @@ def showFramesCallback(frame, name): text = "Median filter: {} [M]".format(pm._depthConfig.getMedianFilter().name.lstrip("KERNEL_").lstrip("MEDIAN_")) cv2.putText(frame, text, (10, h - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, 0, 4) cv2.putText(frame, text, (10, h - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, 255, 1) - elif conf.args.cameraControls and name in [Previews.color.name, Previews.left.name, Previews.right.name]: + elif conf.args.cameraControlls and name in [Previews.color.name, Previews.left.name, Previews.right.name]: text = "Exposure: {} T [+] [-] G".format(cameraConfig["exposure"] if cameraConfig["exposure"] is not None else "auto") label_width = cv2.getTextSize(text, cv2.FONT_HERSHEY_TRIPLEX, 0.5, 4)[0][0] cv2.putText(frame, text, (w - label_width, h - 110), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 4) @@ -367,7 +367,7 @@ def showFramesCallback(frame, name): nextFilter = next(medianFilters) pm.updateDepthConfig(device, median=nextFilter) - if conf.args.cameraControls: + if conf.args.cameraControlls: update = True if key == ord('t'): diff --git a/depthai_helpers/arg_manager.py b/depthai_helpers/arg_manager.py index 574013594..f398bdb48 100644 --- a/depthai_helpers/arg_manager.py +++ b/depthai_helpers/arg_manager.py @@ -136,7 +136,7 @@ def parseArgs(): "Format: camera_name,camera_orientation \n" "Example: -camo color,ROTATE_180_DEG right,ROTATE_180_DEG left,ROTATE_180_DEG").format(', '.join(orientationChoices)) ) - parser.add_argument("--cameraControls", action="store_true", help="Show camera configuration options in GUI and controll them using keyboard") + parser.add_argument("--cameraControlls", action="store_true", help="Show camera configuration options in GUI and control them using keyboard") parser.add_argument("--cameraExposure", type=int, help="Specify camera saturation") parser.add_argument("--cameraSensitivity", type=int, help="Specify camera sensitivity") parser.add_argument("--cameraSaturation", type=checkRange(-10, 10), help="Specify image saturation")