udacity / carnd-lanelines-p1 Goto Github PK
View Code? Open in Web Editor NEWLane Finding Project for Self-Driving Car ND
License: MIT License
Lane Finding Project for Self-Driving Car ND
License: MIT License
----> 8 white_clip = clip1.fl_image(process_image)
Name error.
I guess this line have a problem "clip1 = VideoFileClip("test_videos/solidWhiteRight.mp4")"
it was look like not finding solidWhileRight.mp4.
what is the solution about this complie error . not found solidWhiteRight.mp4
Thanks
There is a typo in the comment of following:
It shall be "test_images_output" instead of "test_images".
I was looking to use OpenCV with Cuda8. I have Cuda8, but have not been successful with getting openCV working with it. Is there any guidelines for that?
Hi @ryan-keenan, @andrewpaster,
Notice that our project doesn't have license, that's a little unprofessional for a open source project, especially there has much extends adoption and development in an online education project. "No license terms" means users don't know it can be used freely. Another reference is Can I call my program "Open Source" even if I don't use an approved license?.
So here I suggest the project add license, recommend we choose one of the below license, firstly because they're all Permissive Licenses, but they have different redistribution disclaimer:
Regards,
Brandon
in README.md:
exit python:
SyntaxError: invalid syntax
exit
Use exit() or Ctrl-Z plus Return to exit
^Z
right exit method is: Use exit() or Ctrl-Z plus Return to exit
Traceback (most recent call last):
File "C:\Users\Ali\Desktop\Lane Detection\Line_Fit\line_fit_video.py", line 114, in
annotate_video('project_video.mp4', 'out.mp4')
File "C:\Users\Ali\Desktop\Lane Detection\Line_Fit\line_fit_video.py", line 108, in annotate_video
annotated_video = video.fl_image(annotate_image)
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 533, in fl_image
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\Python27\lib\site-packages\moviepy\Clip.py", line 136, in fl
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "", line 2, in set_make_frame
File "C:\Python27\lib\site-packages\moviepy\decorators.py", line 14, in outplace
f(newclip, a, **k)
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 694, in set_make_frame
self.size = self.get_frame(0).shape[:2][::-1]
File "", line 2, in get_frame
File "C:\Python27\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(new_a, **new_kw)
File "C:\Python27\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "C:\Python27\lib\site-packages\moviepy\Clip.py", line 136, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 533, in
return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
File "C:\Users\Ali\Desktop\Lane Detection\Line_Fit\line_fit_video.py", line 66, in annotate_image
left_curve, right_curve = calc_curve(left_lane_inds, right_lane_inds, nonzerox, nonzeroy)
File "C:\Users\Ali\Desktop\Lane Detection\Line_Fit\line_fit.py", line 241, in calc_curve
left_fit_cr = np.polyfit(leftyym_per_pix, leftxxm_per_pix, 2)
File "C:\Python27\lib\site-packages\numpy\lib\polynomial.py", line 588, in polyfit
c, resids, rank, s = lstsq(lhs, rhs, rcond)
File "C:\Python27\lib\site-packages\numpy\linalg\linalg.py", line 1921, in lstsq
raise LinAlgError('SVD did not converge in Linear Least Squares')
LinAlgError: SVD did not converge in Linear Least Squares
With Windows 7 , after the condo install -c menpo opencv3=3.1.0 step,
I get UnsatisfiableError: The following specifications were found to be in conflict:
conda info opencv3=3.1.0 returns
NoPackagesFoundError: Package missing in current win-64 channels:
Using anaconda search -t conda opencv3, the menpo/opencv3 version 3.2.0 should have a win-64 version available. but changing the top statement to use opencv3=3.2.0 but that doesnt seem to work either. Does anyone have some insight on how to solve this issue I'm having with the included instructions?
The CarND Term1 Starter Kit Anaconda environment only has matplotlib 1.5.3. But matplotlib colors to_rgba requires matplotlib 2.0. Users should update manually.
' Cyrille Rossant's Basics of Jupyter Notebook and Python' link is broken.
Hello, I am a code reviewer, and I would like to make sure that the removal of the Reflection section was intentional (as shown in this commit).
Maybe the reviewers should be warned about this update. The section is still shown as a requirement in the Reviewer Dashboard,
There are several inconsistencies that make this project feel a bit messy:
I would be happy to clean this up in a PR (including update the ipython notebook) if you guys are comfortable with it.
The region_of_interest()
function says it takes vertices which it passes to cv2.fillPoly(), but it seems like what that function is supposed to take is an Array of shapes.
I think that function should be updated like so:
-cv2.fillPoly(mask, vertices, ignore_mask_color)
+# We need to pass in an array of shapes (each shape is an array of vertices)
+cv2.fillPoly(mask, [vertices], ignore_mask_color)
Causes error: error: /home/travis/miniconda/conda-bld/conda_1486587071158/work/opencv-3.1.0/modules/imgproc/src/drawing.cpp:2276: error: (-215) p.checkVector(2, CV_32S) >= 0 in function fillPoly
See related error http://stackoverflow.com/questions/17241830/opencv-polylines-function-in-python-throws-exception/18817152#18817152
In P1.ipynb, there are two places where you write: "plt.imshow(gray, cmap='gray')," what is gray (the variable, not the string)? Isn't that just an undefined variable? Did you mean to write "plt.imshow(image, cmap='gray')" in the first instance and "plt.imshow(img, cmap='gray')" in the second?
what should be modified in order to access my webcam?
So a few of the students that I am mentoring have mentioned that they're not sure where they should be putting their code for the first project. The section that asks students to test on images doesn't have a clear spot to put the code.
There's two reasonable solutions:
process_image
up to the "Test on Images" section and have students use that.The project description on udacity says to open test.ipynb but it is not present in this repository. Do we need to work with P1.ipynb?
Hello,
So while I was trying to work through this assignment I came across a weird issue, when I am trying to run the region_of_interest() function it is giving me an error message that is
error Traceback (most recent call last)
in
7
8 vertices = np.array([[0,0],[300,450],[530,230]],dtype=np.int32)
----> 9 img = region_of_interest(img,vertices)
10 img = gaussian_blur(img,3)
11
in region_of_interest(img, vertices)
39 #filling pixels inside the polygon defined by "vertices" with the fill color
40
---> 41 cv2.fillPoly(mask, vertices, ignore_mask_color)
42
43 #returning the image only where mask pixels are nonzero
error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\drawing.cpp:2403: error: (-215:Assertion failed) p.checkVector(2, CV_32S) >= 0 in function 'cv::fillPoly'
Initially I thought the issue is because of the datatype and not using correct datatype but as you can see that even after using the numpy int32 the issue still remains.
why do not you publish a paper
In that case, it would be convenient for others to cite
The way that you have laid this out is great and it is easy to get the docker container running, but there
are two improvements that would make things easier:
I created a fork with these two simple shell scripts, is this interesting for you guys. I can issue a PR if you like.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.