That's already the premise of gated communities, now that gates can be remotely controlled.
For neighborhoods that don't like fences, calling the cops on "too poor looking to be from here" in the next best move, which to your point could be automated from camera subject detection.
For neighborhoods that don't like fences, calling the cops on "too poor looking to be from here" in the next best move, which to your point could be automated from camera subject detection.