samlab.dashboard.backend.documents module¶
Warning
module ‘samlab.dashboard.backend.documents’ undocumented
- class samlab.dashboard.backend.documents.Directory(*args: Any, **kwargs: Any)[source]¶
Bases:
DocumentCollection
,FileSystemEventHandler
Warning
class ‘samlab.dashboard.backend.documents.Directory’ undocumented
- get(index)[source]¶
Return a document by index.
- Parameters
index (int, required) – The index of the image to return.
- Returns
image – If
str
, the filesystem path of the image.- Return type
str
ornumpy.ndarray
- property name¶
Warning
property ‘samlab.dashboard.backend.documents.Directory.name’ undocumented
- class samlab.dashboard.backend.documents.DocumentCollection[source]¶
Bases:
ABC
Warning
class ‘samlab.dashboard.backend.documents.DocumentCollection’ undocumented
- abstract get(index)[source]¶
Return a document by index.
- Parameters
index (int, required) – The index of the image to return.
- Returns
image – If
str
, the filesystem path of the image.- Return type
str
ornumpy.ndarray
- abstract property name¶
Warning
property ‘samlab.dashboard.backend.documents.DocumentCollection.name’ undocumented
- property service¶
Warning
property ‘samlab.dashboard.backend.documents.DocumentCollection.service’ undocumented