Migrate NNM Settings to SQLITE (#1894)

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
This commit is contained in:
Sam Freund
2025-06-30 22:02:44 -05:00
committed by GitHub
parent cc7923eeb4
commit 4a648b302a
30 changed files with 1443 additions and 495 deletions

View File

@@ -1,4 +1,5 @@
import type { WebsocketNumberPair } from "@/types/WebsocketDataTypes";
import type { ObjectDetectionModelProperties } from "@/types/SettingTypes";
export enum PipelineType {
DriverMode = 1,
@@ -296,8 +297,9 @@ export interface ObjectDetectionPipelineSettings extends PipelineSettings {
confidence: number;
nms: number;
box_thresh: number;
model: string;
model: ObjectDetectionModelProperties;
}
export type ConfigurableObjectDetectionPipelineSettings = Partial<
Omit<ObjectDetectionPipelineSettings, "pipelineType">
> &
@@ -313,7 +315,7 @@ export const DefaultObjectDetectionPipelineSettings: ObjectDetectionPipelineSett
confidence: 0.9,
nms: 0.45,
box_thresh: 0.25,
model: ""
model: {} as ObjectDetectionModelProperties
};
export interface Calibration3dPipelineSettings extends PipelineSettings {

View File

@@ -8,10 +8,20 @@ export interface GeneralSettings {
hardwareModel?: string;
hardwarePlatform?: string;
mrCalWorking: boolean;
availableModels: Record<string, string[]>;
availableModels: ObjectDetectionModelProperties[];
supportedBackends: string[];
}
export interface ObjectDetectionModelProperties {
modelPath: string;
nickname: string;
labels: string[];
resolutionWidth: number;
resolutionHeight: number;
family: "RKNN";
version: "YOLOV5" | "YOLOV8" | "YOLOV11";
}
export interface MetricData {
cpuTemp?: string;
cpuUtil?: string;