Guest User

Untitled

a guest
Apr 1st, 2016
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import os
  4. import cv2
  5. import numpy as np
  6.  
  7. img = cv2.imread('withframe.bmp')
  8.  
  9.  
  10.  
  11. rect = np.ones(img.shape[:2], dtype = "uint8") * 255
  12. rect = cv2.rectangle(rect, (0,0),(img.shape[1],img.shape[0]),0,1)
  13. subdiv  = cv2.Subdiv2D(rect)
RAW Paste Data