ENH: Online detection of target with template database.