-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconstants.py
30 lines (24 loc) · 1.4 KB
/
constants.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
# -*- coding: utf-8 -*-
"""
Title: Constants-File
Author: Anton ELmiger
Created: 2020-06-23
Information: all parameters of the whole image processing are stored in this module
and can be administrated and modified here
"""
######################### MODE CONSTS #########################
MODE = "video" # set mode: "camera" = live camera input, "video" = video input, "simulink" = simulink input
VISUALIZE = True # set to True or False to visualize lane detection
WRITE_VIDEO = True # Write Video File after Execution
PRINT_TIME_PER_FRAME = False # Print ms per loop in console
######################### PATH CONSTS #########################
PATH = "" # path of the current directory ("workspace")
VIDEO_FILE = PATH + "output.avi" # filename of video file
######################### IMG CONSTS #########################
IMAGE_WIDTH = 640
IMAGE_HEIGHT = 360
######################## LANE DETECTION #######################
LANE_WIDTH = 1.5 # specify lane width. no specific unit
BOUNDARY_THRESH = 1.8 # smaller value means a broader search area for boundary points
HORIZON = -40.1 # horizon in image pixel. NEEDS TO HAVE A DECIMAL PLACE TO AVOID DIVISION BY 0 (80 => 80.1)
FILTER_STRENGTH = 1 # number of frames where lane is smoothed with moving average