def parse_views(
        views_idp,
        default_width,
        default_height,
        add_depth_maps_as_point_cloud,
        op=None,
    ):
        """Parse the :code:`views` directory in the :code:`MVE` workspace."""
        cameras = []
        subdirs = get_subdirs(views_idp)
        for subdir in subdirs:
            folder_name = os.path.basename(subdir)
            # folder_name = view_0000.mve
            camera_name = folder_name.split("_")[1].split(".")[0]
            undistorted_img_ifp = os.path.join(subdir, "undistorted.png")
            success, width, height = ImageFileHandler.read_image_size(
                undistorted_img_ifp,
                default_width=default_width,
                default_height=default_height,
                op=op,
            )
            assert success

            meta_ifp = os.path.join(subdir, "meta.ini")
            camera = MVEFileHandler.parse_meta(
                meta_ifp, width, height, camera_name, op
            )

            if add_depth_maps_as_point_cloud:
                for level in range(9):
                    depth_ifp = os.path.join(
                        subdir, "depth-L" + str(level) + ".mvei"
                    )
                    if os.path.isfile(depth_ifp):
                        camera.set_depth_map_callback(
                            MVEFileHandler.read_depth_map,
                            depth_ifp,
                            Camera.DEPTH_MAP_WRT_UNIT_VECTORS,
                            shift_depth_map_to_pixel_center=True,
                        )
                        break
                if camera.get_depth_map_fp() is None:
                    log_report(
                        "WARNING", "No depth map found in " + subdir, op
                    )

            cameras.append(camera)
        return cameras
Parse the :code:`views` directory in the :code:`MVE` workspace.
photogrammetry_importer/file_handlers/mve_file_handler.py