Commit 2fbb6e9d authored by Manoj Kumar's avatar Manoj Kumar

Merge branch 'manoj_dev' into 'master'

Manoj dev

See merge request !58
parents 41220a97 80904886
......@@ -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
......
......@@ -38,3 +38,5 @@ def myCam():
cv2.destroyAllWindows()
return
myCam()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment