Commit 80753060 authored by Manoj Kumar's avatar Manoj Kumar

open cam

parent b7d7807a
......@@ -31,6 +31,7 @@ def home():
@app.route('/cam')
def openCam():
os.system('python dataq\detect.py')
return render_template('homePage.html')
# END DATAQ
......
......@@ -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>
......
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