Commit 0c80c53d authored by Nilan Meegoda's avatar Nilan Meegoda

attention_new_screen

parent 38ec133f
......@@ -46,11 +46,17 @@ def predictAttention():
if not os.path.isdir(target):
os.mkdir(target)
file = request.files['file']
testNo = request.form.get('questionIndex')
filename = secure_filename("Testing_vid")
destination = "/".join([target, filename])
file.save(destination)
session['uploadFilePath'] = destination
scoreLst = captureImage(destination, 10)
db.db['attentionlevelScore'].insert_one({
"activityName": "Manual_Attention_Test",
"questionIndex": testNo,
"attentionLevelScore": scoreLst,
})
print("Prediction", scoreLst)
return scoreLst
......
html,
.container {
padding-top: 2%;
}
.img3 {
height: 59vh;
}
body {
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
......
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