zensvi.cv.DepthEstimator¶
- class zensvi.cv.DepthEstimator(device: str | None = None, task: str = 'relative', encoder: str = 'vitl', max_depth: float = 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) None¶
Estimates depth in the images and saves the depth maps.