Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-101
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
Sachith Fernando
2020-101
Commits
9ab5c758
Commit
9ab5c758
authored
Oct 22, 2020
by
I.K Seneviratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing the removal of unnecessary components in activity, emotion and gaze frontend pages.
parent
e0f4843e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
486 additions
and
1817 deletions
+486
-1817
FirstApp/api.py
FirstApp/api.py
+0
-6
FirstApp/templates/FirstApp/activity.html
FirstApp/templates/FirstApp/activity.html
+141
-662
FirstApp/templates/FirstApp/emotion.html
FirstApp/templates/FirstApp/emotion.html
+216
-728
FirstApp/templates/FirstApp/gaze.html
FirstApp/templates/FirstApp/gaze.html
+128
-421
FirstApp/urls.py
FirstApp/urls.py
+1
-0
No files found.
FirstApp/api.py
View file @
9ab5c758
...
...
@@ -512,8 +512,6 @@ class GetLectureEmotionReportViewSet(APIView):
def
get
(
self
,
request
):
lecture_video_id
=
request
.
query_params
.
get
(
'lecture_video_id'
)
lecture_video_name
=
request
.
query_params
.
get
(
'lecture_video_name'
)
# retrieve the extracted frames
extracted
=
ar
.
getExtractedFrames
(
lecture_video_name
)
lecture_emotions
=
LectureEmotionReport
.
objects
.
filter
(
lecture_video_id__lecture_video_id
=
lecture_video_id
)
serializer
=
LectureEmotionSerializer
(
lecture_emotions
,
many
=
True
)
...
...
@@ -522,7 +520,6 @@ class GetLectureEmotionReportViewSet(APIView):
return
Response
({
"response"
:
serializer
.
data
,
"extracted"
:
extracted
})
...
...
@@ -729,8 +726,6 @@ class GetLectureGazeEstimationViewSet(APIView):
def
get
(
self
,
request
):
lecture_video_id
=
request
.
query_params
.
get
(
'lecture_video_id'
)
lecture_video_name
=
request
.
query_params
.
get
(
'lecture_video_name'
)
# retrieve the extracted frames
# extracted = hge.getExtractedFrames(lecture_video_name)
lecture_gaze_estimations
=
LectureGazeEstimation
.
objects
.
filter
(
lecture_video_id__lecture_video_id
=
lecture_video_id
)
...
...
@@ -738,7 +733,6 @@ class GetLectureGazeEstimationViewSet(APIView):
return
Response
({
"response"
:
serializer
.
data
,
# "extracted": extracted
})
...
...
FirstApp/templates/FirstApp/activity.html
View file @
9ab5c758
This diff is collapsed.
Click to expand it.
FirstApp/templates/FirstApp/emotion.html
View file @
9ab5c758
This diff is collapsed.
Click to expand it.
FirstApp/templates/FirstApp/gaze.html
View file @
9ab5c758
This diff is collapsed.
Click to expand it.
FirstApp/urls.py
View file @
9ab5c758
...
...
@@ -155,6 +155,7 @@ urlpatterns = [
# lecture emotion detection for frames API (to retrieve detections for each frame in lecture video)
url
(
r'^get-lecture-emotion-for-frame/$'
,
api
.
GetLectureEmotionRecognitionsForFrames
.
as_view
()),
###### POSE Section #####
# lecture video API (for Pose estimation)
url
(
r'^get-lecture-video-for-pose/$'
,
api
.
GetLectureVideoForPose
.
as_view
()),
...
...
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