General purpose and interactive video analytics