diff --git a/tools/infer/predict_det.py b/tools/infer/predict_det.py index 69db67db3588ec551b9e586ce439ddc96154b899..efda0e46cf37aec97b954fb829e8053573631825 100755 --- a/tools/infer/predict_det.py +++ b/tools/infer/predict_det.py @@ -174,7 +174,6 @@ if __name__ == "__main__": if img is None: logger.info("error in loading image:{}".format(image_file)) continue - img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) dt_boxes, elapse = text_detector(img) if count > 0: total_time += elapse