Commit aae252b6 authored by I.K Seneviratne's avatar I.K Seneviratne

Committing the modification in saving the processed files in activity, emotion...

Committing the modification in saving the processed files in activity, emotion and gaze estimation components (1)
.
parent 0f479a6f
...@@ -167,6 +167,9 @@ def activity_recognition(video_path): ...@@ -167,6 +167,9 @@ def activity_recognition(video_path):
# increment the frame count # increment the frame count
frame_count += 1 frame_count += 1
# resize the image
image = cv2.resize(image, (224, 224))
# write the frame to the video writer # write the frame to the video writer
output.write(image) output.write(image)
......
...@@ -241,7 +241,8 @@ ...@@ -241,7 +241,8 @@
//to handle the 'integrate' modal //to handle the 'integrate' modal
$('#integrate_activity').click(function () { $('#integrate_activity').click(function () {
//define the student video src //define the student video src
let video_src = "{% static '' %}FirstApp/videos/" + global_video_name; {#let video_src = "{% static '' %}FirstApp/videos/" + global_video_name;#}
let video_src = "{% static '' %}FirstApp/activity/" + global_video_name;
//assign the video src //assign the video src
$('#student_video').attr('src', video_src); $('#student_video').attr('src', video_src);
......
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