Detection template update