chore: culvert addition

This commit is contained in:
2026-03-19 10:22:49 +05:30
parent 7eb3d60932
commit 1065487046
14 changed files with 313 additions and 182 deletions

View File

@@ -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,