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 or numpy.ndarray

property name

Warning

property ‘samlab.dashboard.backend.documents.Directory.name’ undocumented

on_any_event(event)[source]

Warning

method ‘samlab.dashboard.backend.documents.Directory.on_any_event’ undocumented

reload()[source]

Warning

method ‘samlab.dashboard.backend.documents.Directory.reload’ 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 or numpy.ndarray

abstract property name

Warning

property ‘samlab.dashboard.backend.documents.DocumentCollection.name’ undocumented

property service

Warning

property ‘samlab.dashboard.backend.documents.DocumentCollection.service’ undocumented