Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-077
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-077
2020-077
Commits
2fbb6e9d
Commit
2fbb6e9d
authored
Dec 01, 2020
by
Manoj Kumar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'manoj_dev' into 'master'
Manoj dev See merge request
!58
parents
41220a97
80904886
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
dataq/detect.py
dataq/detect.py
+5
-2
translation/.gitkeep
translation/.gitkeep
+0
-0
translation/cam.py
translation/cam.py
+2
-0
No files found.
dataq/detect.py
View file @
2fbb6e9d
...
...
@@ -17,7 +17,8 @@ from distutils.version import StrictVersion
from
PIL
import
Image
from
tensorflow
import
keras
sys
.
path
.
append
(
'.'
)
from
translation.modelUp
import
sign_predict
#from translation.modelUp import sign_predict
from
translation.trans
import
sign_predict
from
object_detection.utils
import
label_map_util
from
object_detection.utils
import
visualization_utils
as
vis_util
...
...
@@ -82,7 +83,7 @@ def run_inference_for_single_image(image, graph):
#initialize camera
cap
=
cv2
.
VideoCapture
(
0
)
from
PIL
import
Image
try
:
with
detection_graph
.
as_default
():
with
tf
.
compat
.
v1
.
Session
()
as
sess
:
...
...
@@ -125,6 +126,8 @@ try:
# I will be sending a POST request to u. a hand picture
if
score
>
80
:
print
(
image_np_expanded
.
shape
)
img
=
Image
.
fromarray
(
image_np
,
'RGB'
)
sign_predict
(
img
)
# sign_predict(image_np) <-- still under development
#waiting for the API on that component to be built
# end send request
...
...
translation/.gitkeep
deleted
100644 → 0
View file @
41220a97
translation/cam.py
View file @
2fbb6e9d
...
...
@@ -38,3 +38,5 @@ def myCam():
cv2
.
destroyAllWindows
()
return
myCam
()
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