File size: 2,329 Bytes
c97431f
 
 
 
 
 
 
 
b267904
c97431f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
"""Shared string enumerations for the floor-visualizer backend."""

from enum import StrEnum


class JobStatus(StrEnum):
    QUEUED = "QUEUED"
    PROCESSING = "PROCESSING"
    PREVIEW_READY = "PREVIEW_READY"
    COMPLETED = "COMPLETED"
    FAILED = "FAILED"


class PipelinePhase(StrEnum):
    SEGMENTATION = "segmentation"
    MASKING = "masking"
    GEOMETRY = "geometry"
    SURFACE_MAPPING = "surface-mapping"
    LIGHTING = "lighting"
    DIRECTION = "direction"
    PACKAGING = "packaging"


class TextureMappingMode(StrEnum):
    REGULARIZED_FLOOR_PLANE = "regularized-floor-plane"
    SURFACE_UV = "surface-uv"
    WALL_PLANE = "wall-plane"
    WALL_CONTOUR_HOMOGRAPHY = "wall-contour-homography"


class TextureMappingReason(StrEnum):
    SURFACE_UV_UNAVAILABLE = "surface-uv-unavailable"
    EMPTY_SURFACE = "empty-surface"
    INCOMPLETE_SURFACE_UV = "incomplete-surface-uv"
    INSUFFICIENT_UV_NEIGHBORS = "insufficient-uv-neighbors"
    NOISY_SURFACE_UV = "noisy-surface-uv"
    SURFACE_UV_QUALITY_OK = "surface-uv-quality-ok"
    MULTI_PLANE_SURFACE_UV_QUALITY_OK = "multi-plane-surface-uv-quality-ok"


class GeometryProvider(StrEnum):
    HOMOGRAPHY = "homography"
    MOGE_2 = "moge-2"
    RELATIVE_DEPTH = "relative-depth"
    DEPTH_ANYTHING_METRIC = "depth-anything-metric"
    DEPTH_ANYTHING = "depth-anything"
    METRIC_DEPTH = "metric-depth"
    WALL_DEPTH = "wall-depth"
    WALL_CONTOUR_HOMOGRAPHY = "wall-contour-homography"


class LightingSource(StrEnum):
    LUMINANCE = "luminance"
    INTRINSIC = "intrinsic"  # prefix, actual value is f"intrinsic-{version}"


class FloorMaskSource(StrEnum):
    PRIMARY_FLOOR = "primary-floor"
    FLOOR_SURFACE_FALLBACK = "floor-surface-fallback"


class PlaneFitMode(StrEnum):
    NORMAL_AWARE = "normal-aware"
    RANSAC = "ransac"


class IntrinsicAlignment(StrEnum):
    UNCHECKED = "intrinsic-unchecked"
    ALIGNED = "intrinsic-aligned"
    LOW_CONFIDENCE = "intrinsic-low-confidence"
    INVERTED_CORRECTED = "intrinsic-inverted-corrected"


class QaStatus(StrEnum):
    QUEUED = "queued"
    RUNNING = "running"
    COMPLETED = "completed"
    FAILED = "failed"
    CANCELLED = "cancelled"


class QaResult(StrEnum):
    PASSED = "passed"
    FAILED = "failed"
    SKIPPED = "skipped"


class SurfaceType(StrEnum):
    FLOOR = "floor"
    WALL = "wall"