This is what i made in my schools project. hack any radio-controlled medel car and put Raspberry Pi, camera,battery on it. and it will be self-driving-car!!
Since Raspberry Pi is slow for image processing, you need another computer(let's call it Main PC). These codes in this repositly is for the Main PC for image processing. Codes runs in Raspberry Pi is here
You need Python and opencv in Main PC. For Raspberry Pi you need Python. Also you need a way to transfer images from camera on car. I used mjpg-streamer. If you put smartphone, I think you have another way.
- print out stop sign in material/stop-sign.png 1.run mjpg-streamer (or something instead) to transfer video from raspi to Main PC
- run detectstopsign.py in raspi (run as super user to control GPIO)
- run detectstopsign.py in MainPC
- draw line on floor 1.run mjpg-streamer (or something instead) to transfer video from raspi to Main PC
- run detectline.py in raspi (run as super user to control GPIO)
- run detectline.py in MainPC