Not sure if you are still checking out comments on this old video, but, it was Great, thanks! Also wanted to know if I could find lines on other than roads with painted lines, for instance determine edge of off road paths or dirt roads. Guess I could get copy this code then check it.
How can we detect object and lane both at the same time .for example the video u used to implement lane detection there is many objects infront of the car for example motor cycle .How can detect that too.????
Awesome video although there were a lot of errors with the explanation since in some points ur just reading outloud your code. There were also some optimizations that could be done and make ur code more clear
Sir.. I am working on cut detection in running surface having black color. How can I detect cut in black surface and I want to refuse few cuts/marks in detection.
hi, sir.i am working on a real-time image based herbicide applicator. I will have to detect green colour(weed) from soil background and apply herbicide. My problem is under varying lightning condition how can fix the threshold value to detect green colour. How can I make a robust system that can work under different conditions?
If you want to create a robus system to work with different lightening condition, using a threshold value of the green color is not a good approach. You should create a more advanced application using machine learning and train it with a lot of samples under different lightening conditions.
Yes, a yellow object in this case interferes with the lines detection. This is a really rough approach written with only a few lines of code, it still needs a lot of work and to be polished to be used in real applications.
import cv2 import numpy as np img = cv2.imread('cir.png',0) img = cv2.medianBlur(img,5) cimg = cv2.cvtColor(img,cv2.COLOR_GRAY2BGR) circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,20, param1=50,param2=30,minRadius=0,maxRadius=0) c = 0 #c = number_Of_circles circles = np.uint16(np.around(circles)) for i in circles[0,:]: # draw the outer circle cv2.circle(cimg,(i[0],i[1]),i[2],(0,255,0),2) # draw the center of the circle cv2.circle(cimg,(i[0],i[1]),2,(0,0,255),3) c = c+1 print (c) cv2.imshow('detected circles',cimg) cv2.waitKey(0) cv2.destroyAllWindows()
You can generate 6 trackbars in order to detect the object Because , there're 6 color in HSV then , you create a mask, change the colors until there's only your object appear on mask
►► You can Build a Computer Vision software to DETECT and TRACK any Object.
→ 4-Step FREE Workshop pysource.com/blueprint-workshop-signup/
You are a professional!
The simplest way to detect road lines i've seen, thanks man you the best !
Great! Simple and clear.
Thank you so much for this tutorial! It helped me a lot!
Awesome video and explanation. Thank you!
Not sure if you are still checking out comments on this old video, but, it was Great, thanks! Also wanted to know if I could find lines on other than roads with painted lines, for instance determine edge of off road paths or dirt roads. Guess I could get copy this code then check it.
Thank you sir, you help me:)
How can we detect object and lane both at the same time .for example the video u used to implement lane detection there is many objects infront of the car for example motor cycle .How can detect that too.????
Awesome video although there were a lot of errors with the explanation since in some points ur just reading outloud your code. There were also some optimizations that could be done and make ur code more clear
WOw nice thinking !. Great Tutorial! Thanks
thank you sir!!!
THANK YOU!
thank you
Fantastic video, now can you measure the distance between two lines and pick ether vertical or horizontal lines?
Use the Pythagoras theorym
c = sqrt(a² + b²)
great !!!
Cool project
i like your chanel .
thank you brother ;) gooood
Please make a video on traffic signal detection
How can I detect yellow as well as white lane lines?
Sir, i want to detect the radius of curvature of the road.i.e turning of road
try this one: github.com/OanaGaskey/Advanced-Lane-Detection
can u please tell how to apply tensor flow in it to detect cars too
Sir..
I am working on cut detection in running surface having black color.
How can I detect cut in black surface and I want to refuse few cuts/marks in detection.
can we use this method to detect walls in 2D floor plans?
Hi do you think it could be possible to detect lane lines colours with hough's transform?
hsv array for detecting black color lane, so please give me solution for this...?
That's fine!
white lines are hard to detect, right? as the sky is very bright too, not only the traffic lines will be drawn by our lines.
where you've been, god damn it, finally a useful youtube channel! sub += 1
what should be values if i want to detect white lines
which road dataset is used in this tutorial
I m getting an error while doing Hough circle transform....that no module name HOUGH_GRADIENT..can you tell me why?...using python 2.7 version
We need python to detect idiots before they make decide to turn into my lane
this is perfect, but it doesn't work on other videos. How can I make the same algorithm to work on multiple videos?
you need to ad some trackbars and play around with the values while the video is running
@@chris_sndw or build a deep learning model...
hi, sir.i am working on a real-time image based herbicide applicator. I will have to detect green colour(weed) from soil background and apply herbicide. My problem is under varying lightning condition how can fix the threshold value to detect green colour. How can I make a robust system that can work under different conditions?
If you want to create a robus system to work with different lightening condition, using a threshold value of the green color is not a good approach.
You should create a more advanced application using machine learning and train it with a lot of samples under different lightening conditions.
what does HoughLinesP return?
Thanks a lot!
Are you Italian?
Yes, I guess you found it out from my strong accent :)
@@pysource-com nono! from the elegant explanation!
If any object or car with yellow color came in the video, then this code is drawing lines over them.
can I refuse to draw these unwanted lines?
Yes, a yellow object in this case interferes with the lines detection. This is a really rough approach written with only a few lines of code, it still needs a lot of work and to be polished to be used in real applications.
sir i want circle count ....plz can you explain me
import cv2
import numpy as np
img = cv2.imread('cir.png',0)
img = cv2.medianBlur(img,5)
cimg = cv2.cvtColor(img,cv2.COLOR_GRAY2BGR)
circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,20,
param1=50,param2=30,minRadius=0,maxRadius=0)
c = 0 #c = number_Of_circles
circles = np.uint16(np.around(circles))
for i in circles[0,:]:
# draw the outer circle
cv2.circle(cimg,(i[0],i[1]),i[2],(0,255,0),2)
# draw the center of the circle
cv2.circle(cimg,(i[0],i[1]),2,(0,0,255),3)
c = c+1
print (c)
cv2.imshow('detected circles',cimg)
cv2.waitKey(0)
cv2.destroyAllWindows()
what about the curve???
f+
may I help to answer, better we slow down the car to get more smooth at curve
your frame rate decreased after lane detection i am facing similar issue
How can i get the rgb value of a line in an image?
You can generate 6 trackbars in order to detect the object
Because , there're 6 color in HSV
then , you create a mask, change the colors until there's only your object appear on mask