-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
config.py
26 lines (17 loc) · 1.37 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# root directory that contain all vehicle images in nested subdirectories
root_data_vehicle = '../../../NANODEGREE/term_1/project_5_vehicle_detection/vehicles'
# root directory that contain all NON-vehicle images in nested subdirectories
root_data_non_vehicle = '../../../NANODEGREE/term_1/project_5_vehicle_detection/non-vehicles'
# parameters used in the phase of feature extraction
feat_extraction_params = {'resize_h': 64, # resize image height before feat extraction
'resize_w': 64, # resize image height before feat extraction
'color_space': 'YCrCb', # Can be RGB, HSV, LUV, HLS, YUV, YCrCb
'orient': 9, # HOG orientations
'pix_per_cell': 8, # HOG pixels per cell
'cell_per_block': 2, # HOG cells per block
'hog_channel': "ALL", # Can be 0, 1, 2, or "ALL"
'spatial_size': (32, 32), # Spatial binning dimensions
'hist_bins': 16, # Number of histogram bins
'spatial_feat': True, # Spatial features on or off
'hist_feat': True, # Histogram features on or off
'hog_feat': True} # HOG features on or off