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-17 17:48:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
471ff20375e3837bc9c4000ed02801ceafdfa506
471ff203
1 parent
53f9776d
Update Demo.py
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
소스코드/Demo.py
소스코드/Demo.py
View file @
471ff20
...
...
@@ -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
])])
...
...
Please
register
or
login
to post a comment