UPDATE Vision 保存图片和点云

This commit is contained in:
HJW
2024-09-14 14:41:08 +08:00
parent a058281441
commit 7517e9eac7
6 changed files with 83 additions and 13 deletions

View File

@ -10,7 +10,18 @@
import numpy as np
import cv2
import psutil
from psutil._common import bytes2human
def get_disk_space(path='C:'):
usage = psutil.disk_usage(path)
space_free = bytes2human(usage.free)
# space_total = bytes2human(usage.total)
# space_used = bytes2human(usage.used)
# space_free = bytes2human(usage.free)
# space_used_percent = bytes2human(usage.percent)
space_free = float(space_free[:-1])
return space_free
def find_position(Depth_Z, RegionalArea, RegionalArea_Threshold, first_depth=True):
if first_depth == True:
sorted_id = sorted(range(len(Depth_Z)), key=lambda k: Depth_Z[k], reverse=False)