-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
region_of_interest issue with fillPoly() #35
Comments
Yep, the second argument is an array of array of points. The cpp interface has a proxy object called InputArrayOfArray. |
this should make a pull request |
Actually, it wants a numpy array of (arrays of) 32 bit integers, so it's more like:
|
The way this is demonstrated in the classroom quiz includes vertices as being an array of shapes already - What are your thoughts? Perhaps just editing the docstring to mention that |
Updated the docstring to clarify this further. |
Updated the docstring for `region_of_interest` to more clearly note what `vertices` should be. Related to [#35](udacity/CarND-LaneLines-P1#35)
Updated the docstring for `region_of_interest` to more clearly note what `vertices` should be. Related to [udacity#35](udacity#35)
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:
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
The text was updated successfully, but these errors were encountered: