cleanup and files added

This commit is contained in:
2025-08-26 13:24:53 -07:00
parent a379d7a063
commit 51a14cd61c
8968 changed files with 1292619 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
{
"desktop_app_config": {
"application_name": "Traffic Monitoring Desktop",
"scene_analytics": {
"enable_multi_camera": true,
"enable_roi_analytics": true,
"enable_vlm_integration": true
},
"camera_settings": {
"default_resolution": "1920x1080",
"default_fps": 30,
"max_cameras": 4,
"auto_calibration": false
},
"analytics_settings": {
"object_tracking": true,
"speed_estimation": true,
"direction_analysis": true,
"dwell_time_analysis": true,
"safety_monitoring": true
},
"performance_settings": {
"gpu_device": "AUTO",
"inference_threads": 4,
"batch_size": 1,
"memory_optimization": true
},
"ui_settings": {
"show_roi_overlay": true,
"show_tracking_lines": true,
"show_analytics_overlay": true,
"auto_refresh_rate": 30
}
},
"regions_of_interest": {
"crosswalks": [],
"traffic_lanes": [],
"safety_zones": [],
"monitoring_areas": []
},
"alert_settings": {
"enable_alerts": true,
"pedestrian_safety_alerts": true,
"traffic_anomaly_alerts": true,
"violation_alerts": true
}
}

View File

@@ -0,0 +1,482 @@
{
"intersection": {
"id": "desktop_smart_intersection_v1",
"name": "Desktop Smart Intersection Analytics",
"description": "4-camera intersection monitoring with advanced scene analytics",
"version": "1.0.0",
"cameras": {
"north": {
"id": "camera1",
"name": "North Camera",
"position": "north",
"angle": 0,
"enabled": true,
"stream_config": {
"resolution": "1920x1080",
"fps": 30,
"format": "BGR"
},
"detection_config": {
"confidence_threshold": 0.5,
"inference_interval": 1,
"model_instance_id": "detect1"
},
"calibration": {
"intrinsics": [1000, 1000, 960, 540],
"position": {"x": 0, "y": -100, "z": 500},
"rotation": {"pitch": -30, "yaw": 0, "roll": 0}
}
},
"east": {
"id": "camera2",
"name": "East Camera",
"position": "east",
"angle": 90,
"enabled": true,
"stream_config": {
"resolution": "1920x1080",
"fps": 30,
"format": "BGR"
},
"detection_config": {
"confidence_threshold": 0.5,
"inference_interval": 1,
"model_instance_id": "detect1"
},
"calibration": {
"intrinsics": [1000, 1000, 960, 540],
"position": {"x": 100, "y": 0, "z": 500},
"rotation": {"pitch": -30, "yaw": 90, "roll": 0}
}
},
"south": {
"id": "camera3",
"name": "South Camera",
"position": "south",
"angle": 180,
"enabled": true,
"stream_config": {
"resolution": "1920x1080",
"fps": 30,
"format": "BGR"
},
"detection_config": {
"confidence_threshold": 0.5,
"inference_interval": 1,
"model_instance_id": "detect1"
},
"calibration": {
"intrinsics": [1000, 1000, 960, 540],
"position": {"x": 0, "y": 100, "z": 500},
"rotation": {"pitch": -30, "yaw": 180, "roll": 0}
}
},
"west": {
"id": "camera4",
"name": "West Camera",
"position": "west",
"angle": 270,
"enabled": true,
"stream_config": {
"resolution": "1920x1080",
"fps": 30,
"format": "BGR"
},
"detection_config": {
"confidence_threshold": 0.5,
"inference_interval": 1,
"model_instance_id": "detect1"
},
"calibration": {
"intrinsics": [1000, 1000, 960, 540],
"position": {"x": -100, "y": 0, "z": 500},
"rotation": {"pitch": -30, "yaw": 270, "roll": 0}
}
}
},
"detection": {
"model_path": "models/intersection/openvino.xml",
"model_config": "models/intersection/config.json",
"label_schema": "models/intersection/label_schema.json",
"confidence_threshold": 0.5,
"device": "GPU",
"classes": {
"vehicle": {
"id": 0,
"name": "vehicle",
"color": [247, 218, 179],
"tracking_enabled": true,
"speed_estimation": true
},
"pedestrian": {
"id": 1,
"name": "pedestrian",
"color": [255, 86, 98],
"tracking_enabled": true,
"safety_monitoring": true
}
},
"inference_config": {
"batch_size": 1,
"inference_threads": 4,
"memory_optimization": true
}
},
"tracking": {
"max_unreliable_frames": 10,
"non_measurement_frames_dynamic": 8,
"non_measurement_frames_static": 16,
"baseline_frame_rate": 30,
"cross_camera_tracking": {
"enabled": true,
"similarity_threshold": 0.7,
"max_time_gap_seconds": 2.0,
"max_distance_pixels": 100
},
"reid_features": {
"enabled": false,
"model_path": null,
"feature_dimension": 256
}
},
"analytics": {
"enable_traffic_flow": true,
"enable_pedestrian_safety": true,
"enable_roi_analytics": true,
"enable_violation_detection": true,
"enable_speed_estimation": true,
"enable_direction_analysis": true,
"enable_congestion_detection": true,
"analytics_interval_ms": 100,
"history_retention_seconds": 3600
},
"roi_definitions": {
"crosswalks": [
{
"id": "crosswalk_north_south",
"name": "North-South Crosswalk",
"type": "rectangle",
"coordinates": {
"x": 350,
"y": 250,
"width": 100,
"height": 200
},
"monitoring": [
"pedestrian_safety",
"traffic_conflicts",
"crosswalk_violations"
],
"safety_rules": {
"vehicle_exclusion_when_pedestrian": true,
"pedestrian_right_of_way": true,
"max_vehicle_speed_kmh": 10
}
},
{
"id": "crosswalk_east_west",
"name": "East-West Crosswalk",
"type": "rectangle",
"coordinates": {
"x": 250,
"y": 350,
"width": 200,
"height": 100
},
"monitoring": [
"pedestrian_safety",
"traffic_conflicts",
"crosswalk_violations"
],
"safety_rules": {
"vehicle_exclusion_when_pedestrian": true,
"pedestrian_right_of_way": true,
"max_vehicle_speed_kmh": 10
}
}
],
"traffic_lanes": [
{
"id": "lane_north_incoming",
"name": "North Incoming Lane",
"direction": "incoming",
"coordinates": {
"x": 350,
"y": 0,
"width": 50,
"height": 250
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_north_outgoing",
"name": "North Outgoing Lane",
"direction": "outgoing",
"coordinates": {
"x": 400,
"y": 0,
"width": 50,
"height": 250
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_east_incoming",
"name": "East Incoming Lane",
"direction": "incoming",
"coordinates": {
"x": 450,
"y": 350,
"width": 250,
"height": 50
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_east_outgoing",
"name": "East Outgoing Lane",
"direction": "outgoing",
"coordinates": {
"x": 450,
"y": 400,
"width": 250,
"height": 50
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_south_incoming",
"name": "South Incoming Lane",
"direction": "incoming",
"coordinates": {
"x": 400,
"y": 450,
"width": 50,
"height": 250
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_south_outgoing",
"name": "South Outgoing Lane",
"direction": "outgoing",
"coordinates": {
"x": 350,
"y": 450,
"width": 50,
"height": 250
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_west_incoming",
"name": "West Incoming Lane",
"direction": "incoming",
"coordinates": {
"x": 0,
"y": 400,
"width": 250,
"height": 50
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
},
{
"id": "lane_west_outgoing",
"name": "West Outgoing Lane",
"direction": "outgoing",
"coordinates": {
"x": 0,
"y": 350,
"width": 250,
"height": 50
},
"monitoring": [
"traffic_flow",
"speed_detection",
"vehicle_counting"
],
"speed_limit_kmh": 50
}
],
"intersection_center": {
"id": "intersection_core",
"name": "Intersection Center",
"type": "rectangle",
"coordinates": {
"x": 250,
"y": 250,
"width": 200,
"height": 200
},
"monitoring": [
"traffic_conflicts",
"congestion_detection",
"intersection_violations",
"vehicle_pedestrian_conflicts"
],
"safety_rules": {
"max_occupancy": 10,
"max_dwell_time_seconds": 30,
"pedestrian_vehicle_separation_meters": 2.0
}
},
"safety_zones": [
{
"id": "pedestrian_waiting_north",
"name": "North Pedestrian Waiting Area",
"type": "rectangle",
"coordinates": {
"x": 325,
"y": 200,
"width": 150,
"height": 50
},
"monitoring": [
"pedestrian_counting",
"waiting_time_analysis"
]
},
{
"id": "pedestrian_waiting_south",
"name": "South Pedestrian Waiting Area",
"type": "rectangle",
"coordinates": {
"x": 325,
"y": 500,
"width": 150,
"height": 50
},
"monitoring": [
"pedestrian_counting",
"waiting_time_analysis"
]
},
{
"id": "pedestrian_waiting_east",
"name": "East Pedestrian Waiting Area",
"type": "rectangle",
"coordinates": {
"x": 500,
"y": 325,
"width": 50,
"height": 150
},
"monitoring": [
"pedestrian_counting",
"waiting_time_analysis"
]
},
{
"id": "pedestrian_waiting_west",
"name": "West Pedestrian Waiting Area",
"type": "rectangle",
"coordinates": {
"x": 200,
"y": 325,
"width": 50,
"height": 150
},
"monitoring": [
"pedestrian_counting",
"waiting_time_analysis"
]
}
]
},
"alerts": {
"pedestrian_safety": {
"enabled": true,
"severity_levels": ["low", "medium", "high", "critical"],
"vehicle_pedestrian_distance_threshold_meters": 3.0,
"crosswalk_violation_enabled": true,
"outside_crosswalk_alert_enabled": true
},
"traffic_violations": {
"enabled": true,
"speed_violations": true,
"red_light_violations": true,
"crosswalk_violations": true,
"intersection_blocking": true
},
"congestion": {
"enabled": true,
"vehicle_count_threshold": 15,
"avg_speed_threshold_kmh": 5,
"dwell_time_threshold_seconds": 60
}
},
"performance": {
"target_fps": 30,
"max_processing_latency_ms": 33,
"memory_limit_mb": 4096,
"gpu_utilization_target": 0.8,
"parallel_processing": {
"enabled": true,
"max_worker_threads": 4,
"camera_processing_parallel": true
}
},
"data_retention": {
"analytics_history_hours": 24,
"violation_records_days": 30,
"performance_metrics_hours": 12,
"object_tracks_minutes": 30
},
"ui_integration": {
"display_options": {
"show_roi_overlays": true,
"show_tracking_lines": true,
"show_analytics_overlay": true,
"show_camera_labels": true,
"show_performance_stats": true
},
"color_scheme": {
"vehicle_color": [0, 255, 0],
"pedestrian_color": [255, 0, 0],
"roi_color": [255, 255, 0],
"violation_color": [255, 0, 255],
"tracking_line_color": [0, 255, 255]
},
"refresh_rates": {
"display_fps": 30,
"analytics_update_hz": 10,
"performance_update_hz": 1
}
}
}
}

View File

@@ -0,0 +1,125 @@
{
"multi_camera_config": {
"enabled": true,
"max_cameras": 4,
"camera_positions": ["north", "east", "south", "west"],
"synchronized_processing": true,
"frame_rate": 15,
"resolution": "1920x1080"
},
"pipeline_server_config": {
"queue_maxsize": 50,
"auto_start": true,
"inference_interval": 1,
"detection_model": "intersection_optimized",
"metadata_policies": ["detectionPolicy", "reidPolicy", "classificationPolicy"]
},
"camera_definitions": {
"camera1": {
"id": "intersection-cam1",
"position": "north",
"video_source": "camera_north.mp4",
"metadata_policy": "detectionPolicy",
"calibration": {
"intrinsics": [],
"position": {"x": 0, "y": -50, "z": 10},
"rotation": {"pitch": -15, "yaw": 0, "roll": 0}
}
},
"camera2": {
"id": "intersection-cam2",
"position": "east",
"video_source": "camera_east.mp4",
"metadata_policy": "detectionPolicy",
"calibration": {
"intrinsics": [],
"position": {"x": 50, "y": 0, "z": 10},
"rotation": {"pitch": -15, "yaw": -90, "roll": 0}
}
},
"camera3": {
"id": "intersection-cam3",
"position": "south",
"video_source": "camera_south.mp4",
"metadata_policy": "detectionPolicy",
"calibration": {
"intrinsics": [],
"position": {"x": 0, "y": 50, "z": 10},
"rotation": {"pitch": -15, "yaw": 180, "roll": 0}
}
},
"camera4": {
"id": "intersection-cam4",
"position": "west",
"video_source": "camera_west.mp4",
"metadata_policy": "detectionPolicy",
"calibration": {
"intrinsics": [],
"position": {"x": -50, "y": 0, "z": 10},
"rotation": {"pitch": -15, "yaw": 90, "roll": 0}
}
}
},
"detection_config": {
"model_config": {
"batch_size": 1,
"inference_batch_size": 1,
"confidence_threshold": 0.5,
"nms_threshold": 0.4
},
"label_schema": {
"detection_labels": ["vehicle", "pedestrian"],
"vehicle_types": ["car", "truck", "bus", "motorcycle"],
"pedestrian_types": ["person", "cyclist"]
}
},
"scene_analytics": {
"object_tracking": {
"max_unreliable_frames": 10,
"non_measurement_frames_dynamic": 8,
"non_measurement_frames_static": 16,
"baseline_frame_rate": 30,
"tracking_threshold": 100
},
"roi_definitions": {
"crosswalk_north": {
"type": "rectangle",
"coordinates": {"x": 400, "y": 200, "width": 200, "height": 50},
"analytics": ["pedestrian_safety", "crossing_time"]
},
"crosswalk_south": {
"type": "rectangle",
"coordinates": {"x": 400, "y": 600, "width": 200, "height": 50},
"analytics": ["pedestrian_safety", "crossing_time"]
},
"lane_north_bound": {
"type": "rectangle",
"coordinates": {"x": 450, "y": 250, "width": 100, "height": 300},
"analytics": ["vehicle_count", "dwell_time", "speed_estimation"]
},
"lane_south_bound": {
"type": "rectangle",
"coordinates": {"x": 350, "y": 250, "width": 100, "height": 300},
"analytics": ["vehicle_count", "dwell_time", "speed_estimation"]
},
"intersection_center": {
"type": "rectangle",
"coordinates": {"x": 350, "y": 350, "width": 200, "height": 200},
"analytics": ["conflict_detection", "traffic_flow"]
}
}
},
"data_processing": {
"enable_real_time_analytics": true,
"enable_historical_data": true,
"analytics_refresh_rate": 1000,
"data_retention_hours": 24
},
"performance_optimization": {
"gpu_acceleration": true,
"parallel_processing": true,
"memory_optimization": true,
"target_fps": 30,
"max_processing_latency_ms": 100
}
}

View File

@@ -0,0 +1,64 @@
{
"services_config": {
"mqtt": {
"broker": "localhost",
"port": 1883,
"keepalive": 60,
"client_id_prefix": "smart_intersection_desktop",
"username": null,
"password": null,
"tls_enabled": false,
"auto_reconnect": true,
"max_retries": 3,
"retry_interval": 5
},
"influxdb": {
"url": "http://localhost:8086",
"token": "smart-intersection-super-secret-token",
"org": "smart-intersection-org",
"bucket": "traffic_monitoring",
"timeout": 30,
"enable_gzip": true,
"batch_size": 1000,
"flush_interval": 10000
},
"grafana": {
"url": "http://localhost:3000",
"username": "admin",
"password": "admin",
"api_key": null
},
"health_monitoring": {
"check_interval": 30,
"timeout": 5,
"enabled": true,
"services": ["mqtt", "influxdb", "grafana"]
},
"data_retention": {
"raw_data_days": 7,
"aggregated_data_days": 30,
"cleanup_enabled": true
},
"performance": {
"publish_interval": 5,
"batch_events": true,
"max_queue_size": 10000,
"compression_enabled": false
}
},
"desktop_integration": {
"enable_services": true,
"fallback_to_local": true,
"show_service_status": true,
"auto_start_services": false,
"service_startup_timeout": 30,
"graceful_degradation": true
},
"logging": {
"level": "INFO",
"enable_service_logs": true,
"log_file": "services_integration.log",
"max_log_size_mb": 10,
"backup_count": 3
}
}

View File

@@ -0,0 +1,21 @@
{
"max_unreliable_frames": 10,
"non_measurement_frames_dynamic": 8,
"non_measurement_frames_static": 16,
"baseline_frame_rate": 30,
"desktop_integration": {
"enable_scene_analytics": true,
"gpu_acceleration": true,
"local_processing_only": true,
"roi_analytics": {
"crosswalk_monitoring": true,
"lane_analysis": true,
"safety_zones": true
},
"performance": {
"max_concurrent_cameras": 4,
"target_fps": 30,
"gpu_memory_limit_mb": 2048
}
}
}