CascadeDetector skeleton