UPDATE Vision 保存图片和点云
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user