Protecting Privacy in Surveillance Video While Mining It for Data