Skip to content

Commit 2f9d51c

Browse files
authored
Merge pull request #261 from luxonis/getMaxDisparity
getMaxDisp fixes
2 parents c4550f0 + 143cb7e commit 2f9d51c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

depthai-core

examples/03_depth_preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
inDepth = q.get() # blocking call, will wait until a new data has arrived
6262
frame = inDepth.getFrame()
6363
# Normalization for better visualization
64-
frame = (frame * 255 / depth.getMaxDisparity()).astype(np.uint8)
64+
frame = (frame * (255 / depth.getMaxDisparity())).astype(np.uint8)
6565
# Available color maps: https://docs.opencv.org/3.4/d3/d50/group__imgproc__colormap.html
6666
frame = cv2.applyColorMap(frame, cv2.COLORMAP_JET)
6767

0 commit comments

Comments
 (0)