|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import os
- class PARAMS(object):
- #change this pycharme-'../' ,cmd = './'
- _CMD_PMT_ = './' # '../'
- #Object Detection
- _YOLOV3_OD_WEIGHT = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_object_detection/yolov3.weights')
- _YOLOV3_OD_MODEL_CFG = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_object_detection/yolov3.cfg')
- _YOLOV3_OD_CLASS_NAMES = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_object_detection/coco-labels')
- _YOLOV3_OD_CONFIDENCE = 0.5
- _YOLOV3_OD_THRESHOLD = 0.3
- _YOLOV3_OD_INPUT_IMAGE_SIZE = (416,416) #(Width, Height)
- #_YOLOV3_OD_NUMBER_PLATE_OBJECT_LIST = ['car','bus','truck','motorbike']
- _YOLOV3_OD_NUMBER_PLATE_OBJECT_LIST = ['car']
- _OBJECT_DETECTION_PROCESS_CORES = 2
-
- # Number Plate Detection
- _YOLOV3_NP_WEIGHT = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_number_plate_detection/lapi.weights')
- _YOLOV3_NP_MODEL_CFG = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_number_plate_detection/darknet-yolov3.cfg')
- _YOLOV3_NP_CLASS_NAMES = os.path.join(_CMD_PMT_,'resources/trainedModels/yolov3_number_plate_detection/classes.names')
- _YOLOV3_NP_CONFIDENCE = 0.5
- _YOLOV3_NP_THRESHOLD = 0.4
- _YOLOV3_NP_INPUT_IMAGE_SIZE_DEFAULT = (608, 608) ##(Width, Height)
- _YOLOV3_NP_INPUT_IMAGE_SIZE_CONFIG1 = (256, 128) #(Width, Height)
- _YOLOV3_NP_INPUT_IMAGE_SIZE_CONFIG2 = (256, 256) #(Width, Height)
-
-
- #Lane Direction
- _TRAFFIC_DIRECTION = 'H-Increasing' #Decreasing' #H-Increasing
- # _TRAFFIC_DIRECTION = 'H-Decreasing' #Decreasing' #H-Increasing
- _ASSIGN_DIRECTION_HEIGHT_PERCENT = 0.20
- _DECIDE_DIRECTION_AFTER_FRAMES_TRACKERING = 5
- _DIRECTION_STRING_WRONG = 'Opposite Direction'
- _DIRECTION_STRING_RIGHT = 'Right Direction'
- _CAMERA_IMAGE_ORIGIN = 'H00' #H11 #H00- origing is top left corner
-
- _START_TRCAKER_MARGIN_PERCENT_HEIGHT = 0.15
- _NUM_FRAME_TRACKER_ALIVE_AFTER_MISS = 3
- #_TRACKER_OBJECT_LIST = ['car', 'bus', 'truck', 'motorbike']#'person']
- _TRACKER_OBJECT_LIST = ['car']#'person']
-
- #no-parking
- _NO_PARAKING_LINE_POINT_1_XY = (340,1080)
- _NO_PARAKING_LINE_POINT_2_XY = (1225,0)
- _NO_PARAKING_SIDE_OF_LINE = 'RIGHT'
- _PARKING_STRING = 'WRONG PARKING'
- #Algo mode
- _ALGO_MODE_PARKING = False
- _ALGO_MODE_NUMBER_PLATE = True
- _ALGO_MODE_KALMAN_TRCAKING = True
-
-
- #logo
- LOGO_FILE_PATH = os.path.join(_CMD_PMT_,'resources/logo.png')
|