Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. %matplotlib inline
  2. def visualize(img, detect):
  3.     img = gray2rgb(img)
  4.     plt.figure()
  5.     fig,ax = plt.subplots(1)
  6.     ax.imshow(img)
  7.     for i in range(len(detect1)):
  8.         rect = patches.Rectangle((detect[i][1], detect[i][0]), 100, 40, linewidth=1, edgecolor='r', facecolor='none')
  9.  
  10.     ax.add_patch(rect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement