File size: 723 Bytes
4346a4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from dataclasses import dataclass
from typing import List, Optional
from datetime import datetime

@dataclass
class TaughtObject:
    id: str
    name: str
    category: str
    description: str
    status: str = "active"
    created_at: str = ""
    image_count: int = 0
    embedding_count: int = 0

@dataclass
class ObjectImage:
    id: str
    object_id: str
    file_path: str
    image_hash: str
    created_at: str = ""

@dataclass
class ObjectEmbedding:
    id: str
    object_id: str
    model_name: str
    model_version: str
    embedding: List[float]
    created_at: str = ""

@dataclass
class DetectionLog:
    id: str
    object_name: str
    detection_type: str
    confidence: float
    timestamp: str = ""