ProjectSettings

class ProjectSettings(multiview_enabled=False, multiview_tag_name=None, multiview_tag_id=None, multiview_is_synced=False, labeling_interface=None, spectrogram=None)[source]

Bases: JsonSerializable

Project settings: multi-view mode, labeling interface, etc.

Parameters:
multiview_enabled : bool

Enable multi-view mode.

multiview_tag_name : str, optional

Name of the tag used as group tag for multi-window mode.

multiview_tag_id : int, optional

Id of the tag used as group tag for multi-window mode.

multiview_is_synced : bool

Enable synchronization of views for multi-view mode.

labeling_interface : str, optional

Labeling interface of the project, one of LabelingInterface values.

spectrogram : dict, optional

Audio projects only: the spectrogram settings every recording in the project is analysed under, as stored by the platform. See SpectrogramSettings.

Raises:

ValidationError – if settings schema is invalid.

Usage Example:
import supervisely as sly
settings_json = {"multiView": {"enabled": True, "tagName": "group_tag", "tagId": None, "isSynced": False}}
settings = sly.ProjectSettings.from_json(settings_json)

Methods

clone

from_json

to_json

validate