Detection and incremental object learning in videos