'dlib.rectangle' object is not subscriptable
dets.left() = detect_rect.x;
dets.top() = detect_rect.y;
dets.right() = detect_rect.x + detect_rect.width;
dets.bottom() = detect_rect.y + detect_rect.height;
其中detect_rect是opencv类型,dets是dlib类型
[(73, 73) (445, 445)]
rect = dlib.rectangle(startX, startY, endX, endY)