Spaces:
Runtime error
Runtime error
File size: 779 Bytes
34acdd0 |
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 |
from typing_extensions import TypedDict
class Threshold(TypedDict):
"""Represents a hearing threshold (measurement).
"""
frequency: int
threshold: int
ear: str
masking: bool
conduction: str
class BoundingBox(TypedDict):
"""Represents the dictionary holding the minimum information
for a bounding box.
"""
x: int
y: int
width: int
height: int
class LabelDict(TypedDict):
"""Represents the dictionary for a label as extracted
by the Yolo model.
"""
boundingBox: BoundingBox
text: str
confidence: float
class SymbolDict(TypedDict):
"""Represents the dictionary for a symbol as extracted
by the Yolo model.
"""
boundingBox: BoundingBox
measurementType: str
confidence: float
|