You can detect speed,ount and types ofcas with a pair of inductive loops (car length determines the type pretty well). I'd guess that putting such a pair some distance before the intersection would be a lot simpler (cars would obscure each other in the camera's view). That said, this would give you information about cars passing a single point on the road and would give you no information about pedestrians.