Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code does not build #1

Open
ktadimeti2 opened this issue Apr 12, 2017 · 0 comments
Open

Code does not build #1

ktadimeti2 opened this issue Apr 12, 2017 · 0 comments

Comments

@ktadimeti2
Copy link

Hi Thomas,

I recently cloned and tried building your lane-tracking code, but the Python code doesn't compile and run. The error I run into is as follows:

"""
Calibrating camera...
Traceback (most recent call last):
File "project04.py", line 489, in
cam_mtx, cam_dist = camera_setup('camera_cal/calibration*.jpg')
File "project04.py", line 48, in camera_setup
cam_mtx, cam_dist = calibrate_camera(cal_images, nx, ny)
File "project04.py", line 41, in calibrate_camera
re, mtx, dist, rvecs, tvecs = cv2.calibrateCamrea(objpoints, imgpoints, gray.shape[::-1],None,None)
UnboundLocalError: local variable 'gray' referenced before assignment.

"""

Could you fix this issue or give some explanation of how to circumvent this error? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant