python: handle errors in Rect conversions

This commit is contained in:
Alexander Alekhin
2021-01-23 01:58:45 +00:00
parent cd59516433
commit 7825abd540
3 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ class dnn_test(NewOpenCVTests):
cv.rectangle(frame, box, (0, 255, 0))
cv.rectangle(frame, np.array(box), (0, 255, 0))
cv.rectangle(frame, tuple(box), (0, 255, 0))
cv.rectangle(frame, list(box), (0, 255, 0))
# FIXIT never properly work: cv.rectangle(frame, list(box), (0, 255, 0))
def test_classification_model(self):