mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 10:15:04 +02:00
Add camera image rotation option (#672)
Per-printer camera rotation (0°/90°/180°/270°) for cameras mounted in portrait or upside-down. CSS rotation for live views, Pillow rotation for notification snapshots. Setting visible in external camera config when enabled.
This commit is contained in:
@@ -99,6 +99,7 @@ export interface Printer {
|
||||
external_camera_url: string | null;
|
||||
external_camera_type: string | null; // "mjpeg", "rtsp", "snapshot"
|
||||
external_camera_enabled: boolean;
|
||||
camera_rotation: number; // 0, 90, 180, 270 degrees
|
||||
plate_detection_enabled: boolean; // Check plate before print
|
||||
plate_detection_roi?: PlateDetectionROI; // ROI for plate detection
|
||||
created_at: string;
|
||||
@@ -279,6 +280,7 @@ export interface PrinterCreate {
|
||||
external_camera_url?: string | null;
|
||||
external_camera_type?: string | null;
|
||||
external_camera_enabled?: boolean;
|
||||
camera_rotation?: number;
|
||||
plate_detection_enabled?: boolean;
|
||||
plate_detection_roi?: PlateDetectionROI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user