Skip to content
Snippets Groups Projects

Documentation

2 files
+ 26
9
Compare changes
  • Side-by-side
  • Inline

Files

+ 13
4
restaurants = [
{
"restaurant": "local",
"a_factor": 30,
"b_factor": 120,
# the linear function estimating the waiting time t based on the number of people n and the number c of open checkouts is:
# t = a * n / c + b
"a_factor": 30 # slope
"b_factor": 120, # y-intercept
# list of all the cameras that correspond to a same restaurant
"cameras":
[
{
{
# the RTSP url will be: rtsp://user:password@IP:stream
"IP": "",
"user": "",
"password": "",
"stream": "stream1",
# list of the coordinates of the points which constitue the region that should be masked on the picture
"mask_points":
[
# polygon which should be part of the mask
[
# [x, y] coordinates of each vertex of the polygon (on a 1280*720 picture)
[70, 370],
[420, 720],
[1280, 720],
@@ -22,8 +29,10 @@ restaurants = [
[130, 350]
]
],
"caisses":
# list of the coordinates of each checkout
"checkouts":
[
# each checkout corresponds to a rectangle, indicated by two x and two y coordinates
{
"x1": 380,
"x2": 435,
Loading