Compare commits
2 Commits
main
...
img_extrac
| Author | SHA1 | Date |
|---|---|---|
|
|
5af3b50f26 | |
|
|
2b4e5edecf |
10
README.md
|
|
@ -1,3 +1,11 @@
|
|||
# heatrateestimation
|
||||
|
||||
This file contains our work of the heart rate estimation of a person from a video.
|
||||
This file contains our work of the heart rate estimation of a person from a video.
|
||||
|
||||
## Python
|
||||
|
||||
The python will deal with the image extraction and will have to be run each time for new videos.
|
||||
|
||||
## Octave
|
||||
|
||||
The octave file will work on the bulk of the project to process the data.
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
############
|
||||
# frame extraction
|
||||
#
|
||||
# Task:
|
||||
|
|
@ -16,4 +15,21 @@
|
|||
# Author: Thomas Périn
|
||||
# Date: 17/02/2023
|
||||
#
|
||||
# Note: check video name when extracting a new one
|
||||
############
|
||||
|
||||
import cv2
|
||||
|
||||
#Select video by name
|
||||
vidcap = cv2.VideoCapture('face_video.mp4')
|
||||
success,image = vidcap.read()
|
||||
|
||||
#Counter to number the images
|
||||
count = 0
|
||||
|
||||
#Extraction loop for all images
|
||||
while success:
|
||||
cv2.imwrite("img%d.png" % count, image) # save frame as JPEG file
|
||||
success,image = vidcap.read()
|
||||
print('Read a new frame: ', success)
|
||||
count += 1
|
||||
|
After Width: | Height: | Size: 731 KiB |
|
After Width: | Height: | Size: 733 KiB |
|
After Width: | Height: | Size: 736 KiB |
|
After Width: | Height: | Size: 739 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 737 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 744 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 746 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 744 KiB |
|
After Width: | Height: | Size: 746 KiB |
|
After Width: | Height: | Size: 656 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 766 KiB |
|
After Width: | Height: | Size: 776 KiB |
|
After Width: | Height: | Size: 782 KiB |
|
After Width: | Height: | Size: 780 KiB |
|
After Width: | Height: | Size: 780 KiB |
|
After Width: | Height: | Size: 784 KiB |
|
After Width: | Height: | Size: 785 KiB |
|
After Width: | Height: | Size: 782 KiB |
|
After Width: | Height: | Size: 782 KiB |
|
After Width: | Height: | Size: 782 KiB |
|
After Width: | Height: | Size: 786 KiB |
|
After Width: | Height: | Size: 784 KiB |
|
After Width: | Height: | Size: 786 KiB |
|
After Width: | Height: | Size: 783 KiB |
|
After Width: | Height: | Size: 734 KiB |
|
After Width: | Height: | Size: 733 KiB |
|
After Width: | Height: | Size: 739 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 744 KiB |
|
After Width: | Height: | Size: 745 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 744 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 739 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 657 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 714 KiB |
|
After Width: | Height: | Size: 724 KiB |
|
After Width: | Height: | Size: 733 KiB |
|
After Width: | Height: | Size: 736 KiB |
|
After Width: | Height: | Size: 737 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 741 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 744 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 739 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 739 KiB |
|
After Width: | Height: | Size: 743 KiB |
|
After Width: | Height: | Size: 742 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 654 KiB |
|
After Width: | Height: | Size: 738 KiB |
|
After Width: | Height: | Size: 763 KiB |
|
After Width: | Height: | Size: 775 KiB |
|
After Width: | Height: | Size: 779 KiB |
|
After Width: | Height: | Size: 779 KiB |
|
After Width: | Height: | Size: 780 KiB |