| 105 | } |
| 106 | |
| 107 | int main(int argc, char **argv) |
| 108 | { |
| 109 | // process params |
| 110 | string anno_dir = ""; |
| 111 | string detect_dir = "/data/driving/eval_data/predict_label/"; |
| 112 | string im_dir = "/data/driving/eval_data/img/"; |
| 113 | string list_im_file = "/data/driving/eval_data/img/all.txt"; |
| 114 | string output_folder = "./output"; |
| 115 | string exp = "exp"; |
| 116 | |
| 117 | int width_lane = 30; |
| 118 | double iou_threshold = 0.3; |
| 119 | int im_width = 1920; |
| 120 | int im_height = 1280; |
| 121 | int oc; |
| 122 | bool show = true; |
| 123 | int frame = 1; |
| 124 | bool category_flag = false; |
| 125 | while ((oc = getopt(argc, argv, "ha:d:i:l:w:t:c:r:sf:o:k:")) != -1) |
| 126 | { |
| 127 | switch (oc) |
| 128 | { |
| 129 | case 'h': |
| 130 | help(); |
| 131 | return 0; |
| 132 | case 'a': |
| 133 | anno_dir = optarg; |
| 134 | break; |
| 135 | case 'd': |
| 136 | detect_dir = optarg; |
| 137 | break; |
| 138 | case 'i': |
| 139 | im_dir = optarg; |
| 140 | break; |
| 141 | case 'l': |
| 142 | list_im_file = optarg; |
| 143 | break; |
| 144 | case 'w': |
| 145 | width_lane = atoi(optarg); |
| 146 | break; |
| 147 | case 't': |
| 148 | iou_threshold = atof(optarg); |
| 149 | break; |
| 150 | case 'c': |
| 151 | im_width = atoi(optarg); |
| 152 | break; |
| 153 | case 'r': |
| 154 | im_height = atoi(optarg); |
| 155 | break; |
| 156 | case 's': |
| 157 | show = true; |
| 158 | break; |
| 159 | case 'f': |
| 160 | frame = atoi(optarg); |
| 161 | break; |
| 162 | case 'o': |
| 163 | output_folder = optarg; |
| 164 | break; |
nothing calls this directly
no test coverage detected