feat: implement drain issue
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user