if (resize_image_) { pos_ = FloorPointScale(pos_, 0.5); target_sz_ = FloorSizeScale(target_sz_, 0.5); } Here pos_ is halfed but frame is not. This will lead to a wrong crop .
if (resize_image_) {
pos_ = FloorPointScale(pos_, 0.5);
target_sz_ = FloorSizeScale(target_sz_, 0.5);
}
Here pos_ is halfed but frame is not. This will lead to a wrong crop .