Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pathC = './cityscape/'
- dirs = os.listdir(pathC)
- #Resize para o pathC np.array
- def resize():
- path = pathC
- os.path.exists(path)
- orig = cv2.imread('./cityscape/')
- for img in dirs:
- if os.path.isfile(path+img):
- img = cv2.imread(path+img)
- img2 = np.array(cv2.resize(img,(512,512)))
- gray = cv2.cvtColor(img, cv2.COLOR_BRG2GRAY)
- resize()
- AttributeError: module 'cv2.cv2' has no attribute 'COLOR_BRG2GRAY'
Add Comment
Please, Sign In to add comment