Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
ML725
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SHREYANSH JAIN
ML725
Commits
3ff16728
Commit
3ff16728
authored
Nov 06, 2019
by
shreyansh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model added
parent
a2a4e0e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
sign-language/main.py
sign-language/main.py
+24
-0
sign-language/models/model.h5
sign-language/models/model.h5
+0
-0
No files found.
sign-language/main.py
0 → 100644
View file @
3ff16728
import
numpy
as
np
import
cv2
import
tensorflow
as
tf
cap
=
cv2
.
VideoCapture
(
0
)
model
=
tf
.
keras
.
models
.
load_model
(
"models/model.h5"
)
print
(
"Loaded model from disk"
)
while
(
True
):
# Capture frame-by-frame
ret
,
frame
=
cap
.
read
()
# Our operations on the frame come here
gray
=
cv2
.
cvtColor
(
frame
,
cv2
.
COLOR_BGR2GRAY
)
# Display the resulting frame
cv2
.
imshow
(
'frame'
,
gray
)
if
cv2
.
waitKey
(
1
)
&
0xFF
==
ord
(
'q'
):
break
# When everything done, release the capture
cap
.
release
()
cv2
.
destroyAllWindows
()
\ No newline at end of file
sign-language/models/model.h5
0 → 100644
View file @
3ff16728
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment