From 3191c56fc9ac72c88bcf9cf74e0f3eac497d6ae8 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 8 Jun 2021 17:05:41 +0800 Subject: [PATCH] Update predict_system.py (#807) --- deploy/python/predict_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/python/predict_system.py b/deploy/python/predict_system.py index cf8b0a3f..a43b8f51 100644 --- a/deploy/python/predict_system.py +++ b/deploy/python/predict_system.py @@ -49,7 +49,7 @@ class SystemPredictor(object): for result in results: preds = {} xmin, ymin, xmax, ymax = result["bbox"].astype("int") - crop_img = img[xmin:xmax, ymin:ymax, :].copy() + crop_img = img[ymin:ymax, xmin:xmax, :].copy() rec_results = self.rec_predictor.predict(crop_img) #preds["feature"] = rec_results preds["bbox"] = [xmin, ymin, xmax, ymax] -- GitLab