Guest User

Untitled

a guest
Feb 21st, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import numpy as np
  2. import cv2
  3.  
  4. def imRGB(X, Y):
  5. img = np.zeros((X, Y, 3), np.uint8)
  6. cv2.line(img,(10, 0), (250, 128), (0, 255, 0), 3)
  7. cv2.circle(img,(447,63), 63, (0,0,255), -1)
  8. N = img
  9. N.save("imRGB.jpg")
  10.  
  11. import numpy as np
  12. import cv2
  13.  
  14. def imRGB(X, Y):
  15. img = np.zeros((X, Y, 3), np.uint8)
  16. cv2.line(img,(10, 0), (250, 128), (0, 255, 0), 3)
  17. cv2.circle(img,(447,63), 63, (0,0,255), -1)
  18. N = img
  19. cv2.imwrite('imRGB.jpg', img)
Add Comment
Please, Sign In to add comment