Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design2
/
2014104094
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
2014104094
2020-06-18 20:33:43 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
1b08153bdd6725b82b36229b6aee875b5bc3748f
1b08153b
2 parents
1f4c0f0e
471ff203
Merge branch 'master' of
http://khuhub.khu.ac.kr/2020-1-capstone-design2/2014104094
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
9 deletions
소스코드/Demo.py
소스코드/Preprocess/clustering_images.py
소스코드/Preprocess/hcluster.py
소스코드/Demo.py
View file @
1b08153
...
...
@@ -57,6 +57,7 @@ while True:
stack
=
np
.
hstack
(
frames
)
librosa
.
display
.
specshow
(
stack
,
fmax
=
4000
)
# LOADED AT 'DB FOLDER' WHERE SPECTROGRAM IMAGE IS
plt
.
savefig
(
'your save path'
+
'.jpg'
,
dpi
=
300
)
prediction
=
model
.
predict
([
prepare
(
'path where your image is'
)])
print
(
CATEGORES
[
int
(
prediction
[
0
][
0
])])
...
...
소스코드/Preprocess/clustering_images.py
View file @
1b08153
'''
https://m.blog.naver.com/PostView.nhn?blogId=jiwon6928&logNo=221185628702&proxyReferer=https:
%2
F
%2
Fwww.google.com
%2
F
'''
from
PIL
import
Image
,
ImageDraw
import
hcluster
import
numpy
as
np
...
...
소스코드/Preprocess/hcluster.py
View file @
1b08153
'''
https://m.blog.naver.com/PostView.nhn?blogId=jiwon6928&logNo=221185628702&proxyReferer=https:
%2
F
%2
Fwww.google.com
%2
F
'''
from
itertools
import
combinations
import
numpy
as
np
import
math
...
...
Please
register
or
login
to post a comment