diff --git a/detec/tutocalibration.py b/detec/tutocalibration.py index f7ca10d..0e499f9 100644 --- a/detec/tutocalibration.py +++ b/detec/tutocalibration.py @@ -10,7 +10,7 @@ objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2) objpoints = [] # 3d point in real world space imgpoints = [] # 2d points in image plane. # images = glob.glob('detec/foscam/*.png') -images = glob.glob('detec/foscam/*.jpg') +images = glob.glob('detec/data/*.jpg') for fname in images: @@ -32,6 +32,6 @@ for fname in images: ret, mtx, dist, rvecs, tvecs = cv.calibrateCamera(objpoints, imgpoints, gray.shape[::-1], None, None) -img = cv.imread('detec/foscam/1.jpg') +img = cv.imread('detec/data/1.jpg') h, w = img.shape[:2] newcameramtx, roi = cv.getOptimalNewCameraMatrix(mtx, dist, (w,h), 1, (w,h)) \ No newline at end of file diff --git a/test/phi(ww).py b/test/phi(ww).py index b3a258e..a02c533 100644 --- a/test/phi(ww).py +++ b/test/phi(ww).py @@ -16,4 +16,4 @@ plt.ylabel('vitesse en m.s-ยน') plt.plot(ww, phi(ww)) plt.savefig('test/phi(www).png') plt.draw() -plt.pause(4) \ No newline at end of file +plt.pause(10) \ No newline at end of file diff --git a/test/phi(www).png b/test/phi(www).png new file mode 100644 index 0000000..fa4a323 Binary files /dev/null and b/test/phi(www).png differ