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.
Yes! This is it. I didn't like this as I was dealing with larger images, so I did something like this: dim_x, dim_y = gray.shape x1 = int(x0 + dim_x * (-b)) y1 = int(y0 + dim_y * (a)) x2 = int(x0 - dim_x * (-b)) y2 = int(y0 - dim_y * (a)) This is only valid if your intended lines are horizontal and vertical only!
that's what, he didn't explain that thing. Also x0, y0 is not same as (0, 0). (x0, y0) is basically the foot of perpendicular(rho) on the line. He has ruined his own concepts in this video.
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.
It depends on image, we should not directly use canny but if you want to detect something like only yellow or only green then we'll use inRange method to get mask and then we'll use canny to get better result maybe... As I've used the same image but image's quality was not good so my results were also not good as I expected, but when I used a 2D image produced using ms paint it worked like a charm...
Hi Friend I am also a TH-camr. 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
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.
Yes! This is it. I didn't like this as I was dealing with larger images, so I did something like this:
dim_x, dim_y = gray.shape
x1 = int(x0 + dim_x * (-b))
y1 = int(y0 + dim_y * (a))
x2 = int(x0 - dim_x * (-b))
y2 = int(y0 - dim_y * (a))
This is only valid if your intended lines are horizontal and vertical only!
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.
Thank you very much for the video! It was well done and I liked the use of graphs :)
How x1= int(x +1000 * -b) is giving the coordinates..? And why we are putting 1000 and -b...please help sir
what is x0 and y0 and how they are equal to a*rho and b*rho please explain
why we need 1000 and can you make a video on small matrix for more clear explaination
that's what, he didn't explain that thing. Also x0, y0 is not same as (0, 0). (x0, y0) is basically the foot of perpendicular(rho) on the line. He has ruined his own concepts in this video.
Great job .pls make video about handwriting recognition in image
It shows error 'object is not iterable' ??
Try decreasing number of objects in lines
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.
Bro did u get the code for this
Can u help me plzz
我也想知道这个数字1000是怎么来的?有点迷
随意给的一个较长长度, 这个示例中假定线无限长
My computer showing error
For line in lines
TypeError: nontype object is not iterable
same here
Hello Fariba Tasnia Khan. You need to decrease the minimum threshold value in the cv2.HoughLines function. Hope you find my answer helpful!
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.
TH-cam defaults this on, they have to go in and disable it after upload. TH-cam is doin sneaky stuff with ads now
Can you share the code to display the coordinates of the results of the Hough Transform Lines?
thanks bro........
tại sao lại chọn số 1000 vậy thầy?
Can you send me the code for if i were to use this for a video??
Why I got an error at the
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
Anyone can help? Please:(
what is the error?
did anyone get the same results by using the same algorithm?
It depends on image, we should not directly use canny but if you want to detect something like only yellow or only green then we'll use inRange method to get mask and then we'll use canny to get better result maybe... As I've used the same image but image's quality was not good so my results were also not good as I expected, but when I used a 2D image produced using ms paint it worked like a charm...
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.
Hi Friend
I am also a TH-camr. 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
you just read this
First one here
this is bad explanation
you actually explained NOTHING about the code