Untitled
Guest 1,612 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
- Always favorable prices for services such assensual massag in New Yourk
Java | 1 | 14 minutes ago
- Untitled
Markup | 6 | 7 hours ago
- bakus
Python | 6 | 7 hours ago
- brak balansu
Markup | 7 | 8 hours ago
- Fallout Shelter
SQL | 11 | 16 hours ago
- Untitled
Markup | 13 | 19 hours ago
- Керамзит 5 10
Elixir | 12 | 20 hours ago