We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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!
The text was updated successfully, but these errors were encountered: