generalizing detector summary construction