Have you guys seen the robots playing football on YouTube? They're not full size (shame), and it gets a little boring after 5 minutes, but it's something every football fan should watch for the amusement factor.
I really don't want to get deep into this; there are other forums for that but...
If you fall to the ground without being touched, that's a dive and that's something a computer could decide. "Collision detection" is something a student of video game programming learns early in their career. It's been sloved.
http://en.wikipedia.org/wiki/Collision_detection
You talk about cars being driven and Google is leading the way here. There's also their Project Glass project.
http://en.wikipedia.org/wiki/Project_Glass
Maybe the referee could wear these. The glasses could overlay a big red line showing the offside line, just like we see on our replays, but in real-time. He could even use them for video replays. We could get rid of linesmen altogether...
Todays dreams are tomorrow's future.