graspnet / graspnetAPI

Toolbox for our GraspNet-1Billion dataset.
https://graspnet.net/index.html
203 stars 52 forks source link

how to translate the depth.png to depth.npy #36

Closed meiguiz closed 2 years ago

GouMinghao commented 2 years ago

By using cv2.imread, you can load the depth image to a numpy array.

import cv2
import numpy as np
depth = cv2.imread("depth.png", cv2.IMREAD_UNCHANGED)
np.save("depth.npy", depth)