Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import cv2
- import numpy as np
- img = cv2.imread('withframe.bmp')
- rect = np.ones(img.shape[:2], dtype = "uint8") * 255
- rect = cv2.rectangle(rect, (0,0),(img.shape[1],img.shape[0]),0,1)
- subdiv = cv2.Subdiv2D(rect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement