mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-04 03:11:40 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user