Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %matplotlib inline
- def visualize(img, detect):
- img = gray2rgb(img)
- plt.figure()
- fig,ax = plt.subplots(1)
- ax.imshow(img)
- for i in range(len(detect1)):
- rect = patches.Rectangle((detect[i][1], detect[i][0]), 100, 40, linewidth=1, edgecolor='r', facecolor='none')
- ax.add_patch(rect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement