remove depth and fix normal -> vnormal
This commit is contained in:
+2
-10
@@ -58,14 +58,12 @@ def main():
|
||||
# 其他:
|
||||
# - FPS: 当前帧率
|
||||
# - TIMESTAMP: 时间戳字符串
|
||||
# - DEPTH: 深度图(归一化 0-1)
|
||||
fps, fn, fx, fy, flow, depth = sensor.read_info(
|
||||
fps, fn, fx, fy, flow = sensor.read_info(
|
||||
sensor.info.FPS,
|
||||
sensor.info.FNORMAL,
|
||||
sensor.info.FSHEARX,
|
||||
sensor.info.FSHEARY,
|
||||
sensor.info.VRAW,
|
||||
sensor.info.DEPTH
|
||||
sensor.info.VRAW
|
||||
)
|
||||
|
||||
# 打印力的数值
|
||||
@@ -90,12 +88,6 @@ def main():
|
||||
)
|
||||
cv2.imshow("形变场 Deformation", arrows)
|
||||
|
||||
# 绘制深度图(热力图)
|
||||
depth_img = cv2.applyColorMap(
|
||||
(depth * 255.0).astype('uint8'),
|
||||
cv2.COLORMAP_HOT
|
||||
)
|
||||
cv2.imshow("深度图 Depth", depth_img)
|
||||
|
||||
# =====================================================================
|
||||
# 4. 键盘控制
|
||||
|
||||
Reference in New Issue
Block a user