Skip to content

Commit 64eb1ac

Browse files
authored
fix opencv issue of tutorial
1 parent fb9cd24 commit 64eb1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorial/train_shape.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
"for i in range(len(ori_imgs)):\n",
601601
" if len(out[i]['rois']) == 0:\n",
602602
" continue\n",
603-
"\n",
603+
" ori_imgs[i] = ori_imgs[i].copy()\n",
604604
" for j in range(len(out[i]['rois'])):\n",
605605
" (x1, y1, x2, y2) = out[i]['rois'][j].astype(np.int)\n",
606606
" cv2.rectangle(ori_imgs[i], (x1, y1), (x2, y2), (255, 255, 0), 2)\n",
@@ -632,4 +632,4 @@
632632
]
633633
}
634634
]
635-
}
635+
}

0 commit comments

Comments
 (0)