-
Notifications
You must be signed in to change notification settings - Fork 29
/
params.py
37 lines (31 loc) · 1.21 KB
/
params.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Set Parameters for the APP here...."""
import os
MAIN_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
"""General Parameters"""
# BROADCAST KNOWN FACE ENCODINGS OR PEOPLE TO FIND
TARGET_FACE_TOPIC = "target_face_topic"
# TOPIC USED TO PUBLISH ALL FRAME OBJECTS
FRAME_TOPIC = "raw_frame_topic"
# TOPIC USED TO PUBLISH ALL FRAME OBJECTS
PROCESSED_FRAME_TOPIC = "processed_frame_topic"
ORIGINAL_PREFIX = "predicted"
PREDICTED_PREFIX = "predicted"
# PREDICTION TOPIC PREFIX, EACH CAMERA GETS NEW TOPIC FOR PUBLISHED PREDICTIONS
PREDICTION_TOPIC_PREFIX = "{}_{}".format("predicted_object", FRAME_TOPIC)
"""Performance Parameters"""
# USE RAW CV2 STREAMING or FAST BUT LESS FRAMES
USE_RAW_CV2_STREAMING = False
# TOPIC PARTITIONS
SET_PARTITIONS = 16
# PARTITIONER
ROUND_ROBIN = False
"""Demo Specific Parameters"""
LOG_DIR = "logs"
CLEAR_PRE_PROCESS_TOPICS = True
# ENDPOINT FOR VIDEO STREAMS: URL WHERE VIDEOS ARE HOSTED
C_FRONT_ENDPOINT = "http://d3tj01z94i74qz.cloudfront.net/"
# CAMERA URL INDEXES: Videos are named as number.mp4 where number is in following list
CAMERAS = [0, 1, 2, 3, 4, 5]
# TOTAL CAMERAS TO BE USED --> USED FOR FULL URL
TOTAL_CAMERAS = len(CAMERAS)
HM_PROCESSESS = SET_PARTITIONS // 8