I want to write code (python,opencv) for a line follower robot equipped with a camera and Raspberry Pi. I want to make to robot go has fast as possible
Asked
Active
Viewed 1,690 times
0
-
1I have a question, what did you do until now? – Felipe Augusto May 05 '19 at 22:46
-
I'm experimenting, I wrote a code that slices the input image from the camera (horizontal). On each slice I run threshold-> findcontours-> find the centeroid of the contour. I keep track on the line using a sliding window, because on the right to of the line (in some places) there are signaling lines and I need to filter them out. When I get close to a sharp turn, the sliding doesn't work well – RubZ May 05 '19 at 23:02
-
1By sharing that code we can help you better, see [here](https://stackoverflow.com/help/how-to-ask) – Felipe Augusto May 06 '19 at 10:50
1 Answers
0
I can recommend this awesome video on YouTube:
https://www.youtube.com/watch?v=tpwokAPiqfs&t=868s
It contains several episodes and teachs a lot of useful stuff. Good luck!!!

Michael Brown
- 137
- 2
- 13