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
80753060
Commit
80753060
authored
Jan 09, 2021
by
Manoj Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open cam
parent
b7d7807a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
api.py
api.py
+1
-0
templates/signToText.html
templates/signToText.html
+10
-2
No files found.
api.py
View file @
80753060
...
...
@@ -31,6 +31,7 @@ def home():
@
app
.
route
(
'/cam'
)
def
openCam
():
os
.
system
(
'python dataq
\
detect.py'
)
return
render_template
(
'homePage.html'
)
# END DATAQ
...
...
templates/signToText.html
View file @
80753060
...
...
@@ -39,7 +39,15 @@
<!--Favicon-->
<link
rel=
"shortcut icon"
href=
"static/images/EasyTalkFavicon_v1.png"
type=
"image/x-icon"
>
<link
rel=
"icon"
href=
"static/images/EasyTalkFavicon_v1.png"
type=
"image/x-icon"
>
<script>
function
goPython
(){
$
.
ajax
({
url
:
""
}).
done
(
function
()
{
alert
(
'
finished python script
'
);;
});
}
</script>
</head>
<body>
...
...
@@ -107,7 +115,7 @@
<div
class=
"col-12"
>
<form
id=
"cameraForm"
class=
"justify-content-center"
>
<div
class=
"text-center"
>
<button
type=
"submit"
class=
"btn btn-primary mb-2"
id=
"userButtonInput"
style=
"height: 75%;"
>
Open My Webcamera
</button>
<button
type=
"submit"
class=
"btn btn-primary mb-2"
id=
"userButtonInput"
style=
"height: 75%;"
onclick=
"goPython()"
>
Open My Webcamera
</button>
</div>
</form>
</div>
...
...
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