crop_img = imgcv[y:y+h, x:x+w]

h-高度 w-宽度

参考 paddle https://github.com/PaddlePaddle/PaddleX/blob/develop/dygraph/deploy/cpp/docs/apis/model.md

更多推荐