Most of the time, the police could care less if you photograph other people's cars, or even patrol vehicles.    Unless it's conflicting with any of the above — or preventing the officers from doing their work.    During the confrontation, it's advised to film the whole encounter (on mobile) to protect your civil rights and to document the interaction.    Be calm, friendly, and cooperative. Know your rights, and do not get bullied around.