
Untitled
Guest 77 5th May, 2022
mask = np.zeros(img2.shape[:2], np.uint8)
backgroundModel = np.zeros((1, 65), np.float64)
foregroundModel = np.zeros((1, 65), np.float64)
rectangle = (220, 120, 850, 850)
cv2.grabCut(img2, mask, rectangle,
backgroundModel, foregroundModel,
10, cv2.GC_INIT_WITH_RECT)
mask2 = np.where((mask == 2)|(mask == 0), 0, 1).astype('uint8')
image = img2 * mask2[:, :, np.newaxis]
blur = cv2.GaussianBlur(image,(10,10),0)
plt.imshow(cv2.Canny(image,100,150))
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Look this free videos
AppleScript | 5 | 14 hours ago
- Elo
C | 15 | 14 hours ago
- Untitled
Markup | 15 | 16 hours ago
- pizdaogólna
Markup | 16 | 22 hours ago
- Untitled
Markup | 29 | 22 hours ago
- Untitled
Markup | 17 | 1 day ago
- Untitled
Markup | 21 | 2 days ago