2014104094
...@@ -57,6 +57,7 @@ while True: ...@@ -57,6 +57,7 @@ while True:
57 57
58 stack = np.hstack(frames) 58 stack = np.hstack(frames)
59 librosa.display.specshow(stack, fmax=4000) 59 librosa.display.specshow(stack, fmax=4000)
60 + # LOADED AT 'DB FOLDER' WHERE SPECTROGRAM IMAGE IS
60 plt.savefig('your save path' + '.jpg', dpi=300) 61 plt.savefig('your save path' + '.jpg', dpi=300)
61 prediction = model.predict([prepare('path where your image is')]) 62 prediction = model.predict([prepare('path where your image is')])
62 print(CATEGORES[int(prediction[0][0])]) 63 print(CATEGORES[int(prediction[0][0])])
......
1 -'''
2 -https://m.blog.naver.com/PostView.nhn?blogId=jiwon6928&logNo=221185628702&proxyReferer=https:%2F%2Fwww.google.com%2F
3 -'''
4 -
5 from PIL import Image, ImageDraw 1 from PIL import Image, ImageDraw
6 import hcluster 2 import hcluster
7 import numpy as np 3 import numpy as np
......
1 -'''
2 -https://m.blog.naver.com/PostView.nhn?blogId=jiwon6928&logNo=221185628702&proxyReferer=https:%2F%2Fwww.google.com%2F
3 -'''
4 -
5 -
6 from itertools import combinations 1 from itertools import combinations
7 import numpy as np 2 import numpy as np
8 import math 3 import math
......