One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import numpy as np | |
| import cv2 | |
| cap = cv2.VideoCapture('vtest.avi') | |
| while(cap.isOpened()): | |
| ret, frame = cap.read() | |
| gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) |
| """ | |
| This is the test script; | |
| """ | |
| import os | |
| os.environ['CUDA_VISIBLE_DEVICES'] = '-1' | |
| import sys | |
| sys.path.append('.') | |
| import unittest |
| def extract_features_multiple(images_list, detector, extractor, workers=8): | |
| """This is a function to extract features from multiple images in multithreads way""" | |
| feature_hash = dict() | |
| with ThreadPoolExecutor(max_workers=workers) as executor: | |
| futures = [executor.submit(extract_feature_one, x, detector, extractor) for x in images_list] | |
| for task in concurrent.futures.as_completed(futures): | |
| r = task.result() | |
| if r[0]: | |
| feature_hash[r[1]] = r[2] | |
| return feature_hash |
This project is to use advanced technologies to solve lane detection problem.
The steps of this project are the following:
camera_cal. Then I save the amera calibration matrix [mtx] and distortion coefficients [dist] to a pickle file wide_dist_pickle.p