Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
54076db734
|
|
@ -114,7 +114,7 @@ class Camera(Resource):
|
||||||
# provides th function used for the live streams
|
# provides th function used for the live streams
|
||||||
class VideoCamera(object):
|
class VideoCamera(object):
|
||||||
"""Video stream object"""
|
"""Video stream object"""
|
||||||
url = "http://131.95.3.162/mjpg/video.mjpg"
|
url = "https://webcam1.lpl.org/axis-cgi/mjpg/video.cgi"
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.video = cv2.VideoCapture(self.url)
|
self.video = cv2.VideoCapture(self.url)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ function renderValidate(){
|
||||||
string = `
|
string = `
|
||||||
<img src="${rootKontext + "/api/v1/camera/stream"}" id="image-left"> </img>
|
<img src="${rootKontext + "/api/v1/camera/stream"}" id="image-left"> </img>
|
||||||
|
|
||||||
<button onclick="validate()" class="btn btn-primary float-right middle-controls">Validate</button>
|
<button onclick="validate()" class="btn btn-primary float-right middle-controls">Verify</button>
|
||||||
<button onclick="renderValidate()" class="btn btn-warning float-right middle-controls">Retry</button>
|
<button onclick="renderValidate()" class="btn btn-warning float-right middle-controls">Retry</button>
|
||||||
`
|
`
|
||||||
ml.innerHTML = string;
|
ml.innerHTML = string;
|
||||||
|
|
@ -17,7 +17,9 @@ function renderValidate(){
|
||||||
|
|
||||||
function renderChange(){
|
function renderChange(){
|
||||||
clearMiddle()
|
clearMiddle()
|
||||||
|
$("#middle-right").removeClass("border-danger").removeClass("border-success")
|
||||||
console.log("change")
|
console.log("change")
|
||||||
|
|
||||||
}
|
}
|
||||||
function renderEnrole(){
|
function renderEnrole(){
|
||||||
clearMiddle()
|
clearMiddle()
|
||||||
|
|
@ -44,6 +46,7 @@ function renderEnrole(){
|
||||||
<button type="button" class="btn btn-success float-right" onclick="enrole()">Enrole</button>
|
<button type="button" class="btn btn-success float-right" onclick="enrole()">Enrole</button>
|
||||||
`
|
`
|
||||||
mr.innerHTML = string2;
|
mr.innerHTML = string2;
|
||||||
|
$("#middle-right").removeClass("border-danger").removeClass("border-success")
|
||||||
}
|
}
|
||||||
function renderIdentify(){
|
function renderIdentify(){
|
||||||
clearMiddle()
|
clearMiddle()
|
||||||
|
|
@ -54,4 +57,5 @@ function renderIdentify(){
|
||||||
<button onclick="renderIdentify()" class="btn btn-warning float-right middle-controls">Retry</button>
|
<button onclick="renderIdentify()" class="btn btn-warning float-right middle-controls">Retry</button>
|
||||||
`
|
`
|
||||||
ml.innerHTML = string;
|
ml.innerHTML = string;
|
||||||
|
$("#middle-right").removeClass("border-danger").removeClass("border-success")
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
<div class="navbar navbar-expand-lg navbar-dark bg-dark" id="switch">
|
<div class="navbar navbar-expand-lg navbar-dark bg-dark" id="switch">
|
||||||
<div class="btn-group btn-group-toggle" data-toggle="buttons">
|
<div class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||||
<button type="button" class="btn btn-primary navButton active" id="option1" onclick="focusNav('#option1'); renderIdentify()"> Identify
|
<button type="button" class="btn btn-primary navButton active" id="option1" onclick="focusNav('#option1'); renderIdentify()"> Identify
|
||||||
<button type="button" class="btn navButton" id="option2" onclick="focusNav('#option2'); renderValidate()"> Validate
|
<button type="button" class="btn navButton" id="option2" onclick="focusNav('#option2'); renderValidate()"> Verify
|
||||||
<button type="button" class="btn navButton" id="option3" onclick="focusNav('#option3'); renderEnrole()"> Enrole
|
<button type="button" class="btn navButton" id="option3" onclick="focusNav('#option3'); renderEnrole()"> Enrole
|
||||||
<button type="button" class="btn navButton" id="option4" onclick="focusNav('#option4'); renderChange()"> Change
|
<button type="button" class="btn navButton" id="option4" onclick="focusNav('#option4'); renderChange()"> Change
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
BIN
test.sqlite
BIN
test.sqlite
Binary file not shown.
Loading…
Reference in New Issue