Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
VanDavv committed Oct 6, 2021
1 parent cc414e0 commit 4872aef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions depthai_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'):
Expand Down
2 changes: 1 addition & 1 deletion depthai_helpers/arg_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4872aef

Please sign in to comment.