Created
September 27, 2023 10:50
-
-
Save nikparmar/a0998864b7f0281e0cdbd4c63c8c273c to your computer and use it in GitHub Desktop.
VEHICLE Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
source_vehicle_zero_point_out: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-33fbd6b3-b721-4be6-8ac3-e652da8d4682 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=33fbd6b3-b721-4be6-8ac3-e652da8d4682 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_emp_waiting_area: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-1f8d9042-23af-4f65-bab4-d2207ad805d8 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=1f8d9042-23af-4f65-bab4-d2207ad805d8 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_1st_avenue_in: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-9f6272d9-361c-4b7a-bc14-68d63fd8857c | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=9f6272d9-361c-4b7a-bc14-68d63fd8857c | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_wtp_1_main_gate: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-a6a993dc-7cca-4472-81be-289bc148d269 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=a6a993dc-7cca-4472-81be-289bc148d269 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_wtp_2_main_gate: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-db6a3ac0-7de9-4776-b440-aeb17ccd1528 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=db6a3ac0-7de9-4776-b440-aeb17ccd1528 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_zeropoint_in: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-e324aab3-26fc-47f7-b58d-ddd4a38085d2 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=e324aab3-26fc-47f7-b58d-ddd4a38085d2 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped | |
source_vehicle_1st_avenue_out: | |
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest | |
container_name: source-vehicle-f0c1adea-d97f-4390-a529-e82f0621ea88 | |
entrypoint: /opt/savant/adapters/gst/sources/rtsp.sh | |
environment: | |
- SYNC_OUTPUT=True | |
- SOURCE_ID=f0c1adea-d97f-4390-a529-e82f0621ea88 | |
- RTSP_URI=rtsp://admin:[email protected]/Streaming/Channels/102 | |
- ZMQ_ENDPOINT=pub+connect:tcp://172.25.208.184:3337 | |
- RUST_LOG=info | |
- SOURCE_EVICTION_INTERVAL=20 | |
- SOURCE_TIMEOUT=120 | |
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
# module | |
module-vehicle: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
volumes: | |
- ../../models/vehicle_speed_detector:/models | |
- ../../downloads/vehicle_speed_detector:/downloads | |
- ..:/opt/savant/modules/vehicle_speed_detector | |
command: modules/vehicle_speed_detector/config/module.yml | |
environment: | |
- ZMQ_SRC_ENDPOINT=sub+bind:tcp://0.0.0.0:3337 | |
- ZMQ_SINK_ENDPOINT=pub+bind:tcp://0.0.0.0:3338 | |
- FPS_PERIOD=1000 | |
- LOGLEVEL=trace | |
# - RUST_LOG=DEBUG | |
# - RUST_BACKTRACE=full | |
- GST_DEBUG=default:4 | |
ports: | |
- "3337:3337" | |
- "3338:3338" | |
deploy: | |
resources: | |
reservations: | |
devices: | |
- driver: nvidia | |
device_ids: ['0'] | |
capabilities: [ gpu ] | |
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug: false | |
sources: | |
# ZERO POINT OUT | |
33fbd6b3-b721-4be6-8ac3-e652da8d4682: | |
line: | |
from: [573, 621, 1273, 186] | |
to: [604, 451, 1069, 147] | |
roi_area: [388, 384, 141, 1053, 1870, 1024, 1903, 133, 880, 69, 646, 126] | |
speed: | |
area: [624, 280, 576, 780, 1482, 234, 918, 97] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# WTP-1 Main gate | |
a6a993dc-7cca-4472-81be-289bc148d269: | |
line: | |
from: [138, 388, 1857, 475] | |
to: [333, 205, 1854, 187] | |
roi_area: | |
[ | |
372, | |
127, | |
12, | |
247, | |
30, | |
739, | |
160, | |
1018, | |
993, | |
1048, | |
1747, | |
1033, | |
1899, | |
724, | |
1899, | |
213, | |
1875, | |
60, | |
] | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# WTP-2 Main gate | |
db6a3ac0-7de9-4776-b440-aeb17ccd1528: | |
line: | |
from: [526, 306, 1530, 321] | |
to: [570, 184, 1458, 217] | |
roi_area: | |
[501, 124, 66, 175, 55, 912, 813, 1021, 1812, 1039, 1878, 349, 1545, 114] | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# EMP Waiting Area | |
1f8d9042-23af-4f65-bab4-d2207ad805d8: | |
line: | |
from: [184, 144, 1767, 195] | |
to: [99, 238, 1846, 307] | |
roi_area: | |
[ | |
618, | |
75, | |
234, | |
93, | |
33, | |
169, | |
36, | |
709, | |
36, | |
1033, | |
718, | |
1045, | |
1471, | |
1047, | |
1881, | |
1027, | |
1869, | |
748, | |
1878, | |
349, | |
1869, | |
199, | |
1689, | |
115, | |
] | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# Out To Chengalpet | |
3ab0efec-2260-41c5-be15-b8f4a03d4455: | |
line: | |
from: [109, 619, 685, 450] | |
to: [178, 714, 1002, 514] | |
crowd: | |
area: [10, 375, 25, 1060, 1885, 1047, 1719, 451, 438, 333] | |
max_crowded_duration: 10 | |
max_crowded_objects: 3 | |
roi_area: [10, 375, 25, 1060, 1885, 1047, 1719, 451, 438, 333] | |
speed: | |
area: [10, 375, 25, 1060, 1885, 1047, 1719, 451] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 15 | |
# CA OUT4th Av | |
c0685d88-5b5a-4192-b11c-ff43d4aedfc8: | |
line: | |
from: [1117, 468, 1726, 451] | |
to: [1113, 375, 1654, 381] | |
crowd: | |
area: [768, 141, 30, 450, 112, 997, 1887, 1045, 1822, 471, 1291, 153] | |
max_crowded_duration: 10 | |
max_crowded_objects: 3 | |
roi_area: [768, 141, 30, 450, 112, 997, 1887, 1045, 1822, 471, 1291, 153] | |
speed: | |
area: [1092, 270, 1087, 580, 1791, 579, 1443, 264] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# 1st avenue IN | |
9f6272d9-361c-4b7a-bc14-68d63fd8857c: | |
line: | |
from: [1035, 300, 1653, 300] | |
to: [1030, 376, 1750, 378] | |
crowd: | |
area: | |
[ | |
829, | |
109, | |
484, | |
241, | |
21, | |
360, | |
31, | |
1042, | |
1896, | |
1053, | |
1903, | |
408, | |
1620, | |
259, | |
1215, | |
106, | |
] | |
max_crowded_duration: 10 | |
max_crowded_objects: 3 | |
roi_area: | |
[ | |
829, | |
109, | |
484, | |
241, | |
21, | |
360, | |
31, | |
1042, | |
1896, | |
1053, | |
1903, | |
408, | |
1620, | |
259, | |
1215, | |
106, | |
] | |
speed: | |
area: [717, 165, 148, 684, 1860, 733, 1300, 150] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# STP TO IRIS | |
9dc531e6-2205-464b-b8e7-027cb012ee36: | |
roi_area: [273, 258, 289, 1041, 1888, 1042, 1900, 447, 814, 129] | |
speed: | |
area: [310, 315, 555, 972, 1873, 628, 697, 228] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [50, 60] # km/h | |
# STP TO CLUB | |
7b8be8cf-bd2b-4cd4-bda4-faedec61b1ae: | |
roi_area: [1519, 153, 99, 543, 1603, 1056, 1822, 610, 1813, 214] | |
speed: | |
area: [1485, 184, 348, 516, 1527, 945, 1794, 250] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [50, 60] # km/h | |
# SEZ IN | |
add1d1ee-a6d2-4d97-98e5-b5589be68933: | |
line: | |
from: [924, 402, 1525, 450] | |
to: [925, 478, 1554, 516] | |
roi_area: [643, 150, 16, 324, 37, 1038, 1905, 1053, 1876, 591, 1102, 189] | |
speed: | |
area: [537, 208, 82, 592, 1798, 657, 1189, 255] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# SEZ OUT | |
cd64c253-21a9-4f2c-8bde-6bceb1f97bd9: | |
line: | |
from: [784, 330, 1192, 370] | |
to: [622, 396, 1173, 475] | |
crowd: | |
area: | |
[ | |
994, | |
225, | |
423, | |
424, | |
25, | |
810, | |
753, | |
1060, | |
1891, | |
1057, | |
1860, | |
448, | |
1483, | |
258, | |
] | |
max_crowded_duration: 10 | |
max_crowded_objects: 3 | |
roi_area: | |
[994, 225, 423, 424, 25, 810, 753, 1060, 1891, 1057, 1860, 448, 1483, 258] | |
speed: | |
area: [858, 294, 406, 516, 1806, 589, 1534, 310] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# NOVA Out | |
a5261475-1795-4225-bdf7-1216efe6d832: | |
roi_area: | |
[298, 226, 145, 424, 25, 571, 106, 1038, 1897, 1050, 1836, 369, 651, 177] | |
speed: | |
area: [304, 249, 145, 982, 1872, 1014, 799, 219] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# Tochd area | |
caa0b43f-e106-4ee9-8ea1-556c5d86cf56: | |
roi_area: [493, 151, 43, 301, 15, 1054, 1875, 1047, 1906, 222, 1060, 70] | |
speed: | |
area: [525, 178, 58, 1008, 1854, 1009, 1161, 103] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# Near h&c out | |
3e41b16c-b835-4536-9ecc-4f336f41453e: | |
roi_area: [118, 216, 28, 1054, 1785, 1041, 1516, 160, 940, 117] | |
speed: | |
area: [133, 460, 1278, 1011, 1515, 256, 1023, 156] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# Near h&c in | |
e52586cb-e8c2-432a-be95-13346af90669: | |
roi_area: [147, 172, 42, 1026, 1884, 1044, 1900, 462, 868, 85] | |
speed: | |
area: [217, 199, 133, 999, 1837, 1006, 889, 120] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# !st Main In | |
97d75c07-b6c5-4a1f-babe-47e02740e727: | |
roi_area: [1255, 157, 136, 477, 259, 999, 1828, 1042, 1666, 114] | |
speed: | |
area: [1230, 192, 207, 526, 1555, 1009, 1630, 171] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# 1st avenue Out | |
f0c1adea-d97f-4390-a529-e82f0621ea88: | |
line: | |
from: [739, 477, 1252, 411] | |
to: [724, 381, 1137, 352] | |
crowd: | |
area: [633, 226, 564, 972, 1806, 879, 1453, 153, 961, 99] | |
max_crowded_duration: 10 | |
max_crowded_objects: 3 | |
roi_area: [468, 244, 39, 472, 244, 1006, 1899, 1029, 1858, 661, 931, 213] | |
idle: | |
idle_time_threshold: 10 | |
idle_distance_threshold: 10 | |
# 1st AVENUE VIEW | |
ca82f48a-ce14-4e12-aa9c-0bb506fe53be: | |
roi_area: [879, 121, 157, 372, 34, 1018, 1873, 1015, 1887, 330, 1603, 105] | |
speed: | |
area: [886, 168, 118, 931, 1818, 955, 1597, 175] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# Lakewoods Front | |
b8b05f75-95ea-4961-88ca-16bca23ee740: | |
roi_area: [45, 357, 54, 1023, 1840, 1005, 1887, 345, 1719, 93, 1318, 85] | |
speed: | |
area: [100, 450, 1261, 954, 1777, 249, 1308, 124] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# towards school | |
74867d16-65ef-4884-b37d-a5273644cb0a: | |
roi_area: | |
[46, 172, 619, 126, 1249, 93, 1842, 144, 1864, 975, 1072, 1044, 46, 1038] | |
speed: | |
area: [91, 211, 438, 984, 1750, 948, 1780, 195] | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# emp pickup area | |
be44b164-a9c0-4e07-a502-e81ea1f87070: | |
roi_area: [393, 129, 378, 1050, 1875, 1047, 1666, 420, 990, 90] | |
speed: | |
area: [427, 196, 451, 979, 1801, 964, 958, 177] # tl, bl, br, tr | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# CA In3rd Ave | |
c08e0171-4280-4cd1-b171-a73e44579781: | |
roi_area: [216, 183, 13, 480, 12, 1030, 1897, 1026, 1902, 264, 1009, 81] | |
speed: | |
area: [258, 226, 82, 976, 1849, 952, 1395, 189] | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# ca in 4th ave | |
bba2f935-18a2-4c7e-b225-b6a6cb9eac6d: | |
roi_area: | |
[ | |
604, | |
129, | |
108, | |
303, | |
30, | |
987, | |
1062, | |
1033, | |
1897, | |
1033, | |
1899, | |
247, | |
1255, | |
100, | |
] | |
speed: | |
area: [648, 166, 96, 909, 1843, 942, 1401, 145] | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
# school road | |
f8792673-536c-4f35-abe7-3113c68f5815: | |
roi_area: [166, 142, 15, 1047, 1872, 1053, 1897, 429, 1326, 169, 988, 81] | |
speed: | |
area: [226, 186, 106, 927, 1801, 946, 1368, 208] | |
real_width: 10 # in meters | |
real_height: 10 # in meters | |
overspeeding_range: [20, 60] # km/h | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment