This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
full_path_to_images = 'dosya yolu' | |
c = 0 | |
with open(full_path_to_images + '/' + 'classes.names', 'w') as names, \ | |
open(full_path_to_images + '/' + 'classes.txt', 'r') as txt: | |
for line in txt: | |
names.write(line) # Copying all info from file txt to names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
full_path_to_images = '/DOSYAYOLU' | |
os.chdir(full_path_to_images) | |
p = [] | |
for current_dir, dirs, files in os.walk('.'): | |
for f in files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun May 2 23:37:07 2021 | |
@author: batuhan | |
""" | |
#Tenserflow ve Gerekli Kütüphanelerin eklenmesi | |
import tensorflow as tf | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 22:26:17 2021 | |
@author: batuhan | |
""" | |
from sklearn import datasets | |
import pandas as pd | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
rng=np.random.RandomState(1) | |
x=np.dot(rng.rand(2,2),rng.randn(2,200)).T | |
print(x.shape) | |
import matplotlib.pyplot as plt | |
plt.scatter(x[:,0],x[:,1]) | |
plt.show() | |
from sklearn.decomposition import PCA | |
pca = PCA(n_components= 2) | |
pca.fit(x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 22:18:16 2021 | |
@author: batuhan | |
""" | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 22:14:11 2021 | |
@author: batuhan | |
""" | |
from skimage.io import imread | |
from skimage.transform import resize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 21:59:14 2021 | |
@author: batuhan | |
""" | |
#kütüphanler eklenir | |
from skimage.io import imread, imshow | |
from skimage.transform import resize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 21:56:30 2021 | |
@author: batuhan | |
""" | |
import matplotlib.pyplot as plt | |
from skimage.feature import hog | |
from skimage import data, exposure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Mar 25 21:39:02 2021 | |
@author: batuhan | |
""" | |
#kütüphaneler eklenir | |
import cv2 | |
#görsel alınır ve gri formata çevirilir |
NewerOlder