Kayıtlar

Ekim, 2017 tarihine ait yayınlar gösteriliyor

Ders Çalışması - 31 Ekim

Resim
import matplotlib.pyplot as plt import numpy as np img_1 = plt . imread( "b1.jpg" ) img_1 . ndim img_1 . shape plt . imshow(img_1) plt . show() import os lista = [] listb = [] listc = [] listd = [] for i in os . listdir(): #parantez içine dosya uzantısı yazmayınca varsayılan dizinde işlem    yapar -kubra da     if i . endswith( '.jpg' ):         if i[ 0 ] == 'a' :            lista . append(i)             #print(i)         if i[ 0 ] == 'b' :            listb . append(i)             #print(i)         if i[ 0 ] == 'c' :            listc . append(i)  ...