SNAKES ON A CAR OR: Overengineering a Toy

Kat Cosgrove Developer Advocate @ JFrog Twitter: Dixie3Flatline Shownotes: bit.ly/DIDevOps

So, what’s this demo?

Building the Basic Car

Donkey Cars ● ● ● ● ● ● ● About $250 in Parts R/C Car Raspberry Pi 3B Pi Camera Battery Bank Train it Race it!

Swapping the Controls

The Driver’s Seat

● Managed by Intel NUC ● Sanic webserver ● VueJS frontend ● ZMQ Proxy ○ CI/CD ○ Racewheel data ○ Steering and Throttle ○ Image feed

Adding Virtual Scenery

Read frame Convert to HSV Define HSV range Create mask from range Crop background Merge them! But wait…

● Actually super disorienting with a static background ● Angle of steering used to calculate how far to move crop position vs previous frame ● scale variable to change perceived speed of panning

Automating Training

That’s it! Your Speaker Twitter Kat Cosgrove Dixie3Flatline Win a Switch bit.ly/DIDevOps Credits Freepik and Flaticon