Initial commit: Momentry Core v0.1
- Rust-based digital asset management system - Video analysis: ASR, OCR, YOLO, Face, Pose - RAG capabilities with Qdrant vector database - Multi-database support: PostgreSQL, Redis, MongoDB - Monitoring system with launchd plists - n8n workflow automation integration
This commit is contained in:
3
src/core/overlay/mod.rs
Normal file
3
src/core/overlay/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
pub mod types;
|
||||
|
||||
pub use types::OverlayFlags;
|
||||
41
src/core/overlay/types.rs
Normal file
41
src/core/overlay/types.rs
Normal file
@@ -0,0 +1,41 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
|
||||
pub struct OverlayFlags {
|
||||
pub asr: bool,
|
||||
pub asrx: bool,
|
||||
pub ocr: bool,
|
||||
pub yolo: bool,
|
||||
pub face: bool,
|
||||
pub pose: bool,
|
||||
pub status: bool,
|
||||
}
|
||||
|
||||
impl Default for OverlayFlags {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
asr: false,
|
||||
asrx: false,
|
||||
ocr: false,
|
||||
yolo: false,
|
||||
face: false,
|
||||
pose: false,
|
||||
status: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl OverlayFlags {
|
||||
pub fn toggle(&mut self, layer: char) {
|
||||
match layer {
|
||||
'a' => self.asr = !self.asr,
|
||||
'x' => self.asrx = !self.asrx,
|
||||
'o' => self.ocr = !self.ocr,
|
||||
'y' => self.yolo = !self.yolo,
|
||||
'f' => self.face = !self.face,
|
||||
'p' => self.pose = !self.pose,
|
||||
'b' => self.status = !self.status,
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user