Cars vs. humans

How do you make camera that’s set to humans only pick up cars in your driveway but not pick up cars in the road without using that blackout lines? On S40 solar camera