OpenCV Python Tutorial For Beginners 29 - Hough Line Transform using HoughLines method in OpenCV

preview_player
Показать описание
In this video on OpenCV Python Tutorial For Beginners, we are going to see Hough Line Transform using HoughLines method in OpenCV.
OpenCV implements two kind of Hough Line Transforms
The Standard Hough Transform (HoughLines method)
The Probabilistic Hough Line Transform (HoughLinesP method)

lines = cv.HoughLines(image, rho, theta, threshold)
image : source image.
lines : Output vector of lines. Each line is represented by a 2 or 3 element vector (ρ,θ) or (ρ,θ,votes) .
ρ is the distance from the coordinate origin (0,0) (top-left corner of the image). θ is the line rotation angle in radians . votes is the value of accumulator.
rho : Distance resolution of the accumulator in pixels.
theta : Angle resolution of the accumulator in radians.
threshold : Accumulator threshold parameter. Only those lines are returned that get enough votes ( greater then threshold ).

OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. opencv is available on Mac, Windows, Linux. Works in C, C++, and Python.
it is Open Source and free. opencv is easy to use and install.

Starting with an overview of what the course will be covering, we move on to discussing morphological operations and practically learn how they work on images. We will then learn contrast enhancement using equalization and contrast limiting. Finally we will learn 3 methods to subtract the background from the video and implement them using OpenCV.

At the end of this course, you will have a firm grasp of Computer Vision techniques using OpenCV libraries. This course will be your gateway to the world of data science.

Feel the real power of Python and programming! The course offers you a unique approach of learning how to code by solving real world problems.

References:

#ProgrammingKnowledge #ComputerVision #OpenCV
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

After looking, the best explanation I could find as to why it was necessary to add / subtract 1000 is to ensure that the line was drawn over the entire image. If the image was significantly larger the value would need to be increased proportionately.

shawnarmstrong
Автор

Im sorry but the code is not well explained. Why are we doing what we are doing is not explained at all. Its just said what to code.

tanmaybhayani
Автор

Thank you very much for the video! It was well done and I liked the use of graphs :)

tymothylim
Автор

It shows error 'object is not iterable' ??

amanrawat
Автор

How x1= int(x +1000 * -b) is giving the coordinates..? And why we are putting 1000 and -b...please help sir

farzanalam
Автор

My computer showing error
For line in lines
TypeError: nontype object is not iterable

FaribaTasniaKhan
Автор

what is x0 and y0 and how they are equal to a*rho and b*rho please explain

AdiVasuDevaRao
Автор

why we need 1000 and can you make a video on small matrix for more clear explaination

talhatariq
Автор

I typed the same exact code, but I am not getting the desired output. The lines are randomly drawn over the image. Please tell me what to do.

HM-cwim
Автор

Thanks for the great content. Please don't put advertisements in between the video it breaks the attention. If you need please add at starting or ending of the video.

moizkachwala
Автор

Great job .pls make video about handwriting recognition in image

muhammadwajid
Автор

Can you share the code to display the coordinates of the results of the Hough Transform Lines?

salmamoora
Автор

Why I got an error at the
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
Anyone can help? Please:(

lutfianovitasari
Автор

Can you send me the code for if i were to use this for a video??

vibhujayawardena
Автор

did anyone get the same results by using the same algorithm?

bemresolvido
Автор

Hi Bro, Can You make one on attendence sheet for count total,
E.g. 10Days attendence of 15 Students
I tried But not all boxes are Detected.

morningtarr
Автор

Hi Friend
I am also a YouTuber. I like to know one thing.
How did you monetized your blog. You monetized your Blog using Either the same adsense of youtube or its a different adsense account. Please reply me back

anoopjacob
Автор

you actually explained NOTHING about the code

jordiwang