In theory, the same way as a policeman - assessing the situation and the context, and then making a decision not to issue the fine.
But in practice, I don't think it can, without having total surveillance capabilities - not to mention essentially sci-fi quantities of AI advancement.
But in practice, I don't think it can, without having total surveillance capabilities - not to mention essentially sci-fi quantities of AI advancement.