Merge branch 'master' of http://khuhub.khu.ac.kr/2020-1-capstone-design2/2014104094
Showing
3 changed files
with
1 additions
and
9 deletions
... | @@ -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])]) | ... | ... |
-
Please register or login to post a comment