chore: culvert addition
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
export const DETECTION_COLORS: Record<string, string> = {
|
||||
pothole: '#ef4444',
|
||||
defected_sign_board: '#3b82f6',
|
||||
road_crack: '#f59e0b',
|
||||
damaged_road_marking: '#6366f1',
|
||||
good_sign_board: '#10b981',
|
||||
};
|
||||
import { DETECTION_TYPES } from '@/constants/detectionModeConfig';
|
||||
|
||||
export const DETECTION_COLORS: Record<string, string> = Object.keys(DETECTION_TYPES).reduce(
|
||||
(acc, key) => {
|
||||
acc[key] = DETECTION_TYPES[key].color;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
);
|
||||
|
||||
export const drawBoundingBoxes = (
|
||||
ctx: CanvasRenderingContext2D,
|
||||
|
||||
Reference in New Issue
Block a user