feat: implement drain issue

This commit is contained in:
2026-03-19 13:12:02 +05:30
parent 8510bd9f32
commit 32b2c3c6ab
8 changed files with 122 additions and 90 deletions

View File

@@ -58,6 +58,14 @@ export const DETECTION_TYPES: Record<string, DetectionTypeConfig> = {
listKey: 'good_sign_board_list',
frameCountKey: 'good_sign_board',
},
drain_issue: {
id: 'drain_issue',
label: 'Drain Issue',
color: '#a855f7',
countKey: 'unique_drain_issue',
listKey: 'drain_issue_list',
frameCountKey: 'drain_issue',
},
good_culvert: {
id: 'good_culvert',
label: 'Good Culvert',
@@ -77,10 +85,34 @@ export const DETECTION_TYPES: Record<string, DetectionTypeConfig> = {
};
export const DETECTION_MODES: Record<string, DetectionModeConfig> = {
yolo: {
id: 'yolo',
label: 'YOLO Detection',
enabledTypes: [
'pothole',
'defected_sign_board',
'road_crack',
'damaged_road_marking',
'good_sign_board',
'drain_issue',
],
},
yolo_vl: {
id: 'yolo_vl',
label: 'YOLO-VL Detection',
enabledTypes: [
'pothole',
'defected_sign_board',
'road_crack',
'damaged_road_marking',
'good_sign_board',
'drain_issue',
],
},
'pothole-detection': {
id: 'pothole-detection',
label: 'Pothole Detection',
enabledTypes: ['pothole', 'road_crack', 'damaged_road_marking'],
enabledTypes: ['pothole', 'road_crack', 'damaged_road_marking', 'drain_issue'],
},
'sign-board-detection': {
id: 'sign-board-detection',
@@ -96,6 +128,7 @@ export const DETECTION_MODES: Record<string, DetectionModeConfig> = {
'road_crack',
'damaged_road_marking',
'good_sign_board',
'drain_issue',
],
},
culvert_detection: {