How l3p-cv/lost works
Main System Components
The system architecture should be divided into these major components:
a. Frontend Layer
• Single Page Application (React-based, located in /frontend/lost)
• Multiple annotation tools (SIA - Single Image Annotation, MIA - Multi Image Annotation)
• Administrative interfaces
• Statistics and monitoring components
b. Backend Layer
• REST API services (/backend/lost/api)
• Authentication and authorization system
• Pipeline execution engine
• Database access layer
• File management system
c. External Services Integration
• Storage systems (S3, Azure Blob, FTP)
• LDAP integration
• Email notification service
• JupyterLab integration
Component Relationships
a. Frontend to Backend Communication
• REST API calls between frontend components and corresponding backend endpoints
• WebSocket connections for real-time updates
• File upload/download streams
b. Backend Internal Communication
• Pipeline execution flow
• Database interactions
• File system operations
c. External Service Integration
• Storage system connectors
• Authentication service connections
• Email service integration
Specific Architectural Elements
Key architectural patterns:
a. API Layer Structure (/backend/lost/api)
• Annotation endpoints (anno_example, annotask, sia, mia)
• User management (user, group)
• Pipeline management (pipeline)
• File management (filebrowser)
• System configuration (config)
b. Pipeline System
• Pipeline template management
• Pipeline instance execution
• Worker distribution system
• Task scheduling
c. Data Management
• Database layer (/backend/lost/db)
• File storage abstraction
• Caching mechanisms
Specific Implementation Details
Important aspects:
a. Security Layer
• Login manager (/backend/lost/api/user/login_manager.py)
• Role-based access control
• API authentication
b. Annotation Tools
• SIA tool components
• MIA tool components
• Annotation export system
c. Pipeline Management
• Pipeline execution engine
• Worker distribution
• Task scheduling