March 2020
Intermediate to advanced
366 pages
9h 8m
English
Once the hand is placed roughly in the center of the screen, we can start finding all image pixels that lie on the same depth plane as the hand. This is done by following these steps:
width, height = depth.shape center_pixel_depth = depth[width/2, height/2]
import numpy as np depth_mask = np.where(depth == center_pixel_depth, 255, 0).astype(np.uint8)
However, this ...
Read now
Unlock full access