Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import cv2
- def imRGB(X, Y):
- img = np.zeros((X, Y, 3), np.uint8)
- cv2.line(img,(10, 0), (250, 128), (0, 255, 0), 3)
- cv2.circle(img,(447,63), 63, (0,0,255), -1)
- N = img
- N.save("imRGB.jpg")
- import numpy as np
- import cv2
- def imRGB(X, Y):
- img = np.zeros((X, Y, 3), np.uint8)
- cv2.line(img,(10, 0), (250, 128), (0, 255, 0), 3)
- cv2.circle(img,(447,63), 63, (0,0,255), -1)
- N = img
- cv2.imwrite('imRGB.jpg', img)
Add Comment
Please, Sign In to add comment