Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ViaResto-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aymeric Chaumont
ViaResto-website
Merge requests
!60
Changed all occurrences of eatfast into ViaResto
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Changed all occurrences of eatfast into ViaResto
change-eatfast-viaresto
into
main
Overview
0
Commits
4
Pipelines
8
Changes
5
Merged
Louis Dewilde
requested to merge
change-eatfast-viaresto
into
main
2 years ago
Overview
0
Commits
4
Pipelines
8
Changes
1
Changes all visible occurrences of eatfast in ViaResto (mainly for the CI and HTML pages).
0
0
Merge request reports
Compare
version 1
version 3
72aeca7d
2 years ago
version 2
24b06d81
2 years ago
version 1
cfee398b
2 years ago
main (base)
and
version 3
latest version
70c170aa
4 commits,
2 years ago
version 3
72aeca7d
3 commits,
2 years ago
version 2
24b06d81
2 commits,
2 years ago
version 1
cfee398b
1 commit,
2 years ago
Show latest version
1 file
+
52
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
backend/cameras.py
0 → 100644
+
52
−
0
View file @ 72aeca7d
Edit in single-file editor
Open in Web IDE
restaurants
=
[
{
"
restaurant
"
:
"
local
"
,
# 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
],
[
1280
,
250
],
[
930
,
215
],
[
450
,
550
],
[
130
,
350
]
]
],
# 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
,
"
y1
"
:
740
,
"
y2
"
:
780
},
{
"
x1
"
:
300
,
"
x2
"
:
350
,
"
y1
"
:
830
,
"
y2
"
:
880
}
]
}
]
}
]
Loading