def __init__(self, vector_source, extent=None):
        """Constructor.

        Args:
            vector_source: (VectorSource)
            extent: Box used to filter the labels by extent
        """
        self.labels = ObjectDetectionLabels.from_geojson(
            vector_source.get_geojson(), extent=extent)
 def get_labels(self):
     vector_source = GeoJSONVectorSourceConfig(uri=self.uri,
                                               default_class_id=None).build(
                                                   self.class_config,
                                                   self.crs_transformer)
     return ObjectDetectionLabels.from_geojson(vector_source.get_geojson())