From 67e49a47d86c22b233dffaef65f3f970eac8a02c Mon Sep 17 00:00:00 2001 From: foefl Date: Thu, 9 Oct 2025 08:13:51 +0200 Subject: [PATCH] change array dtype of boxes to more explicit dtype --- src/dopt_sensor_anomalies/detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dopt_sensor_anomalies/detection.py b/src/dopt_sensor_anomalies/detection.py index ac97668..57fbcce 100644 --- a/src/dopt_sensor_anomalies/detection.py +++ b/src/dopt_sensor_anomalies/detection.py @@ -166,7 +166,7 @@ def measure_length( # !! should only be newer OpenCV versions # box = cv2.cv.BoxPoints(rbox) if is_cv2() else cv2.boxPoints(rbox) box = cv2.boxPoints(rbox) - box = np.array(box, dtype="int") + box = np.array(box, dtype=np.int32) # order the points in the contour in top-left, top-right, bottom-right, and bottom-left box = perspective.order_points(box)