Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-073
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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
2022-073
2022-073
Commits
0c80c53d
Commit
0c80c53d
authored
Oct 11, 2022
by
Nilan Meegoda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attention_new_screen
parent
38ec133f
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
400 additions
and
40 deletions
+400
-40
web-app/backend/server.py
web-app/backend/server.py
+6
-0
web-app/frontend/public/Videos/attentionTest.mp4
web-app/frontend/public/Videos/attentionTest.mp4
+0
-0
web-app/frontend/src/assets/32243.jpg
web-app/frontend/src/assets/32243.jpg
+0
-0
web-app/frontend/src/assets/36006.jpg
web-app/frontend/src/assets/36006.jpg
+0
-0
web-app/frontend/src/assets/439.jpg
web-app/frontend/src/assets/439.jpg
+0
-0
web-app/frontend/src/assets/dsd.jpg
web-app/frontend/src/assets/dsd.jpg
+0
-0
web-app/frontend/src/pages/attention_demo/attentionspan.css
web-app/frontend/src/pages/attention_demo/attentionspan.css
+6
-0
web-app/frontend/src/pages/attention_demo/attentionspan.jsx
web-app/frontend/src/pages/attention_demo/attentionspan.jsx
+388
-40
No files found.
web-app/backend/server.py
View file @
0c80c53d
...
@@ -46,11 +46,17 @@ def predictAttention():
...
@@ -46,11 +46,17 @@ def predictAttention():
if
not
os
.
path
.
isdir
(
target
):
if
not
os
.
path
.
isdir
(
target
):
os
.
mkdir
(
target
)
os
.
mkdir
(
target
)
file
=
request
.
files
[
'file'
]
file
=
request
.
files
[
'file'
]
testNo
=
request
.
form
.
get
(
'questionIndex'
)
filename
=
secure_filename
(
"Testing_vid"
)
filename
=
secure_filename
(
"Testing_vid"
)
destination
=
"/"
.
join
([
target
,
filename
])
destination
=
"/"
.
join
([
target
,
filename
])
file
.
save
(
destination
)
file
.
save
(
destination
)
session
[
'uploadFilePath'
]
=
destination
session
[
'uploadFilePath'
]
=
destination
scoreLst
=
captureImage
(
destination
,
10
)
scoreLst
=
captureImage
(
destination
,
10
)
db
.
db
[
'attentionlevelScore'
]
.
insert_one
({
"activityName"
:
"Manual_Attention_Test"
,
"questionIndex"
:
testNo
,
"attentionLevelScore"
:
scoreLst
,
})
print
(
"Prediction"
,
scoreLst
)
print
(
"Prediction"
,
scoreLst
)
return
scoreLst
return
scoreLst
...
...
web-app/frontend/public/Videos/attentionTest.mp4
0 → 100644
View file @
0c80c53d
File added
web-app/frontend/src/assets/32243.jpg
0 → 100644
View file @
0c80c53d
2.53 MB
web-app/frontend/src/assets/36006.jpg
0 → 100644
View file @
0c80c53d
2.59 MB
web-app/frontend/src/assets/439.jpg
0 → 100644
View file @
0c80c53d
1020 KB
web-app/frontend/src/assets/dsd.jpg
0 → 100644
View file @
0c80c53d
2.23 MB
web-app/frontend/src/pages/attention_demo/attentionspan.css
View file @
0c80c53d
html
,
html
,
.container
{
padding-top
:
2%
;
}
.img3
{
height
:
59vh
;
}
body
{
body
{
font-size
:
16px
;
font-size
:
16px
;
font-family
:
Arial
,
Helvetica
,
sans-serif
;
font-family
:
Arial
,
Helvetica
,
sans-serif
;
...
...
web-app/frontend/src/pages/attention_demo/attentionspan.jsx
View file @
0c80c53d
This diff is collapsed.
Click to expand it.
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