Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mapillary_tools/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@

ANSI_BOLD = "\033[1m"
ANSI_RESET_ALL = "\033[0m"
# In meters
CUTOFF_DISTANCE = float(os.getenv(_ENV_PREFIX + "CUTOFF_DISTANCE", 600))
# In seconds
CUTOFF_TIME = float(os.getenv(_ENV_PREFIX + "CUTOFF_TIME", 60))
DUPLICATE_DISTANCE = float(os.getenv(_ENV_PREFIX + "DUPLICATE_DISTANCE", 0.1))
DUPLICATE_ANGLE = float(os.getenv(_ENV_PREFIX + "DUPLICATE_ANGLE", 5))
MAX_AVG_SPEED = float(
os.getenv(_ENV_PREFIX + "MAX_AVG_SPEED", 400_000 / 3600)
) # 400 KM/h
# in seconds
VIDEO_SAMPLE_INTERVAL = float(os.getenv(_ENV_PREFIX + "VIDEO_SAMPLE_INTERVAL", -1))
# in meters
Expand Down
12 changes: 12 additions & 0 deletions mapillary_tools/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,15 @@ class MapillaryUploadUnauthorizedError(MapillaryUserError):

class MapillaryMetadataValidationError(MapillaryUserError, MapillaryDescriptionError):
exit_code = 15


class MapillaryFileTooLargeError(MapillaryDescriptionError):
pass


class MapillaryCaptureSpeedTooFastError(MapillaryDescriptionError):
pass


class MapillaryNullIslandError(MapillaryDescriptionError):
pass
Loading
Loading