| 60 | } |
| 61 | |
| 62 | void help(void) |
| 63 | { |
| 64 | cout << "./evaluate [OPTIONS]" << endl; |
| 65 | cout << "-h : print usage help" << endl; |
| 66 | cout << "-a : directory for annotation files (default: /data/driving/eval_data/anno_label/)" << endl; |
| 67 | cout << "-d : directory for detection files (default: /data/driving/eval_data/predict_label/)" << endl; |
| 68 | cout << "-i : directory for image files (default: /data/driving/eval_data/img/)" << endl; |
| 69 | cout << "-l : list of images used for evaluation (default: /data/driving/eval_data/img/all.txt)" << endl; |
| 70 | cout << "-w : width of the lanes (default: 10)" << endl; |
| 71 | cout << "-t : threshold of iou (default: 0.4)" << endl; |
| 72 | cout << "-c : cols (max image width) (default: 1920)" << endl; |
| 73 | cout << "-r : rows (max image height) (default: 1280)" << endl; |
| 74 | cout << "-s : show visualization" << endl; |
| 75 | cout << "-f : start frame in the test set (default: 1)" << endl; |
| 76 | cout << "-e : name of current exp (default: exp)" << endl; |
| 77 | } |
| 78 | |
| 79 | void read_lane_file(const string &file_name, vector<vector<Point2f>> &lanes, vector<uint8_t> &lane_flags); |
| 80 | void visualize(string &full_im_name, vector<vector<Point2f>> &anno_lanes, vector<vector<Point2f>> &detect_lanes, vector<int> anno_match, int width_lane, string visualize_path); |