Hello people, i would like to give you an advice, working with the code i realized that the video used in this program is a little ideal, and when you start working with the code too you have to do some modifications for to contemplate those unprecitions, so it's normal if you try ths code and it doesn't work at the first, this is a very good video to undestand and the code works, you have only to do the adaptations, sorry for my english, thanks.
the road.jpg is not available in the given sample and any random pic of road lane from the google doesn't contain channel no. in image.shape.......any solution??
every colored image will have 3 as channel count.I think u have converted the image to grayscale that's why its not showing uh channel count and would be throwing out of bound exception...
I was also getting error because fillPoly method gave me this error: " Traceback (most recent call last): File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 50, in masked_img = region_of_interest(img, np.array([region_of_interest_vertices], np.uint32),) File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 21, in region_of_interest cv.fillPoly(img, vertices, match_mask_color) cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'fillPoly' > Overload resolution failed: > - Can't parse 'pts'. Sequence item with index 0 has a wrong type > - Can't parse 'pts'. Sequence item with index 0 has a wrong type " Later I noticed that I used np.uint32 instead of np.int32 when I use region_of_interest function. That way I solved the problem
The line just creates a BGR channel where each channel has a value of 255 i.e (255,255,255)...this is because channel_count has a value of 3...I hope this helps
Your programming style has changed in this video. You usually use poor variable names, but this time you are using clear self explanatory variable names. That's a bit weird all of a sudden.
cv2.fillPoly(mask,vertices,match_mask_color) This line is showing below error error: (-215:Assertion failed) p.checkVector(2, CV_32S) >= 0 in function 'cv::fillPoly', anyone knows what is this error ??
Hello people, i would like to give you an advice, working with the code i realized that the video used in this program is a little ideal, and when you start working with the code too you have to do some modifications for to contemplate those unprecitions, so it's normal if you try ths code and it doesn't work at the first, this is a very good video to undestand and the code works, you have only to do the adaptations, sorry for my english, thanks.
Hey, can you please make a video on mask rcnn, from training the data to creating an application
Because u r one of the best tutor
Please, CNNs: YOLOv3, SSD, etc. I support this motion. Thank you.
Please
Thanks for the video. Your explanation is very clear.
the road.jpg is not available in the given sample and any random pic of road lane from the google doesn't contain channel no. in image.shape.......any solution??
every colored image will have 3 as channel count.I think u have converted the image to grayscale that's why its not showing uh channel count and would be throwing out of bound exception...
Excuse me, what is the reason behind putting a comma after 255 in this statement:
match_mask_color = (255,) * channels
thanks>
Congrat sir #1M Milestone
Excellent tutorial sir. how do we detect lane on left side .. ??
just try changing the coordinates
Thank you for this video :)
Wonderful video.
Thank you . : )
match_mask_color = (255, ) * channel_count ..........just gives (255, 255, 255) as output
try x = (255, ) * 3 in python
output : (255, 255, 255)
np.int32 containing line..shows an error
i.e setting an array element with a sequence
I was also getting error because fillPoly method gave me this error:
" Traceback (most recent call last):
File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 50, in
masked_img = region_of_interest(img, np.array([region_of_interest_vertices], np.uint32),)
File "/home/quantumcx/Documents/Belgeler-2022/OpenCV/Tutorial/ProgrammingKnowledge/codes/road_lane_line_detection.py", line 21, in region_of_interest
cv.fillPoly(img, vertices, match_mask_color)
cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'fillPoly'
> Overload resolution failed:
> - Can't parse 'pts'. Sequence item with index 0 has a wrong type
> - Can't parse 'pts'. Sequence item with index 0 has a wrong type
"
Later I noticed that I used np.uint32 instead of np.int32 when I use region_of_interest function. That way I solved the problem
Thanks.
Those who want to try out with same image can download the image here
media.geeksforgeeks.org/wp-content/uploads/20191130171921/test_image.png
Can anyone xplain the 21st line in detail. why is it like (255,)*channel_count
The line just creates a BGR channel where each channel has a value of 255 i.e (255,255,255)...this is because channel_count has a value of 3...I hope this helps
How can get work poly line detect.i have experience
How to count the number of horizontal lines which is present in a table using opencv python
Hello, I'm getting a error of nonetype object has no attribute 'shape' can anyone help me out from this error please
sab kuch python mai kyu krna hai? c++ mai kya dikkat hai
How can get work website etc????????
Please make a video on mnist!!
Awesome !
thank you sir
thanks bro.....
how can I set up Matplotlib
click on file>settings>under project go to python interpreter>click on the + icon >type matplotlib>click on install package
Your programming style has changed in this video. You usually use poor variable names, but this time you are using clear self explanatory variable names. That's a bit weird all of a sudden.
i think this tutorial series is an abridged version of one found here opencv-python-tutroals.readthedocs.io
Please introduce next part ASAP. Thank you
cv2.fillPoly(mask,vertices,match_mask_color)
This line is showing below error
error: (-215:Assertion failed) p.checkVector(2, CV_32S) >= 0 in function 'cv::fillPoly',
anyone knows what is this error ??
self-driving car from scratch>
Parallel lines never merges. That's why they are called parallel!!!
You stole this content from ProgrammingKnowledge
?
? This is literally programmingknowledge's channel
@@humbertoperinni haha
@@humbertoperinni HAHAHAHAHAHAAHHAH
Pointing spiderman meme
@@humbertoperinni 😂 lol
Can anyone xplain the 21st line in detail. why is it like (255,)*channel_count
because we have created an array of shape similar to input image, so if just put 255 instead of 255*channel_count then it will give an error