zensvi.cv.DepthEstimator

class zensvi.cv.DepthEstimator(device=None, task='relative', encoder='vitl', max_depth=80.0)

A class for estimating depth in images using DepthAnythingV2.

estimate_depth(dir_input: str | pathlib.Path, dir_image_output: str | pathlib.Path, batch_size: int = 1, max_workers: int = 4)

Estimates depth in the images and saves the depth maps.