#3 Kierans-Working-Branch

Open
hedgeski79942 wants to merge 4 commits from Kierans-Working-Branch into master
  1. BIN
      EVMProject/__pycache__/eulerian.cpython-311.pyc
  2. BIN
      EVMProject/__pycache__/heartrate.cpython-311.pyc
  3. BIN
      EVMProject/__pycache__/preprocessing.cpython-311.pyc
  4. BIN
      EVMProject/__pycache__/pyramids.cpython-311.pyc
  5. 0
    0
      EVMProject/eulerian.py
  6. 15452
    0
      EVMProject/haarcascades/haarcascade_eye1.xml
  7. 12213
    0
      EVMProject/haarcascades/haarcascade_eye2.xml
  8. 22619
    0
      EVMProject/haarcascades/haarcascade_eye_tree_eyeglasses.xml
  9. 14382
    0
      EVMProject/haarcascades/haarcascade_frontalcatface.xml
  10. 13394
    0
      EVMProject/haarcascades/haarcascade_frontalcatface_extended.xml
  11. 26161
    0
      EVMProject/haarcascades/haarcascade_frontalface_alt0.xml
  12. 24350
    0
      EVMProject/haarcascades/haarcascade_frontalface_alt1.xml
  13. 20719
    0
      EVMProject/haarcascades/haarcascade_frontalface_alt2.xml
  14. 96484
    0
      EVMProject/haarcascades/haarcascade_frontalface_alt_tree.xml
  15. 33314
    0
      EVMProject/haarcascades/haarcascade_frontalface_default.xml
  16. 17030
    0
      EVMProject/haarcascades/haarcascade_fullbody.xml
  17. 7390
    0
      EVMProject/haarcascades/haarcascade_lefteye_2splits.xml
  18. 1404
    0
      EVMProject/haarcascades/haarcascade_licence_plate_rus_16stages.xml
  19. 14056
    0
      EVMProject/haarcascades/haarcascade_lowerbody.xml
  20. 9322
    0
      EVMProject/haarcascades/haarcascade_mcs_leftear.xml
  21. 21991
    0
      EVMProject/haarcascades/haarcascade_mcs_mouth.xml
  22. 48433
    0
      EVMProject/haarcascades/haarcascade_mcs_nose.xml
  23. 9671
    0
      EVMProject/haarcascades/haarcascade_mcs_rightear.xml
  24. 29690
    0
      EVMProject/haarcascades/haarcascade_profileface.xml
  25. 7407
    0
      EVMProject/haarcascades/haarcascade_righteye_2splits.xml
  26. 2656
    0
      EVMProject/haarcascades/haarcascade_russian_plate_number.xml
  27. 6729
    0
      EVMProject/haarcascades/haarcascade_smile.xml
  28. 28134
    0
      EVMProject/haarcascades/haarcascade_upperbody.xml
  29. 0
    0
      EVMProject/heartrate.py
  30. 3
    1
      EVMProject/main.py
  31. 2
    0
      EVMProject/preprocessing.py
  32. 0
    0
      EVMProject/pyramids.py
  33. 31
    1
      test.py

BIN
EVMProject/__pycache__/eulerian.cpython-311.pyc View File


BIN
EVMProject/__pycache__/heartrate.cpython-311.pyc View File


BIN
EVMProject/__pycache__/preprocessing.cpython-311.pyc View File


BIN
EVMProject/__pycache__/pyramids.cpython-311.pyc View File


EVM ohne Buffer/eulerian.py → EVMProject/eulerian.py View File


+ 15452
- 0
EVMProject/haarcascades/haarcascade_eye1.xml
File diff suppressed because it is too large
View File


+ 12213
- 0
EVMProject/haarcascades/haarcascade_eye2.xml
File diff suppressed because it is too large
View File


+ 22619
- 0
EVMProject/haarcascades/haarcascade_eye_tree_eyeglasses.xml
File diff suppressed because it is too large
View File


+ 14382
- 0
EVMProject/haarcascades/haarcascade_frontalcatface.xml
File diff suppressed because it is too large
View File


+ 13394
- 0
EVMProject/haarcascades/haarcascade_frontalcatface_extended.xml
File diff suppressed because it is too large
View File


+ 26161
- 0
EVMProject/haarcascades/haarcascade_frontalface_alt0.xml
File diff suppressed because it is too large
View File


+ 24350
- 0
EVMProject/haarcascades/haarcascade_frontalface_alt1.xml
File diff suppressed because it is too large
View File


+ 20719
- 0
EVMProject/haarcascades/haarcascade_frontalface_alt2.xml
File diff suppressed because it is too large
View File


+ 96484
- 0
EVMProject/haarcascades/haarcascade_frontalface_alt_tree.xml
File diff suppressed because it is too large
View File


+ 33314
- 0
EVMProject/haarcascades/haarcascade_frontalface_default.xml
File diff suppressed because it is too large
View File


+ 17030
- 0
EVMProject/haarcascades/haarcascade_fullbody.xml
File diff suppressed because it is too large
View File


+ 7390
- 0
EVMProject/haarcascades/haarcascade_lefteye_2splits.xml
File diff suppressed because it is too large
View File


+ 1404
- 0
EVMProject/haarcascades/haarcascade_licence_plate_rus_16stages.xml
File diff suppressed because it is too large
View File


+ 14056
- 0
EVMProject/haarcascades/haarcascade_lowerbody.xml
File diff suppressed because it is too large
View File


+ 9322
- 0
EVMProject/haarcascades/haarcascade_mcs_leftear.xml
File diff suppressed because it is too large
View File


+ 21991
- 0
EVMProject/haarcascades/haarcascade_mcs_mouth.xml
File diff suppressed because it is too large
View File


+ 48433
- 0
EVMProject/haarcascades/haarcascade_mcs_nose.xml
File diff suppressed because it is too large
View File


+ 9671
- 0
EVMProject/haarcascades/haarcascade_mcs_rightear.xml
File diff suppressed because it is too large
View File


+ 29690
- 0
EVMProject/haarcascades/haarcascade_profileface.xml
File diff suppressed because it is too large
View File


+ 7407
- 0
EVMProject/haarcascades/haarcascade_righteye_2splits.xml
File diff suppressed because it is too large
View File


+ 2656
- 0
EVMProject/haarcascades/haarcascade_russian_plate_number.xml
File diff suppressed because it is too large
View File


+ 6729
- 0
EVMProject/haarcascades/haarcascade_smile.xml
File diff suppressed because it is too large
View File


+ 28134
- 0
EVMProject/haarcascades/haarcascade_upperbody.xml
File diff suppressed because it is too large
View File


EVM ohne Buffer/heartrate.py → EVMProject/heartrate.py View File


EVM ohne Buffer/main.py → EVMProject/main.py View File

@@ -22,11 +22,13 @@ class main():

def video(self):
cap = cv2.VideoCapture(0)
print("VideoCapture")
while len(self.BUFFER) < self.BUFFER_LEN:
start_time = time.time()
ret, frame = cap.read()
frame = cv2.resize(frame, (500, 500))
# why resize if we later call a pyramid?
self.BUFFER.append(frame)
stop_time = time.time()
self.FPS_BUFFER.append(stop_time-start_time)

EVM ohne Buffer/preprocessing.py → EVMProject/preprocessing.py View File

@@ -27,7 +27,9 @@ def read_video(path):
for (x, y, w, h) in face_rects:
roi_frame = img[y:y + h, x:x + w]
if roi_frame.size != img.size:
roi_frame = cv2.resize(roi_frame, (500, 500))
#duplicate resize
frame = np.ndarray(shape=roi_frame.shape, dtype="float")
frame[:] = roi_frame * (1. / 255)
video_frames.append(frame)

EVM ohne Buffer/pyramids.py → EVMProject/pyramids.py View File


+ 31
- 1
test.py View File

@@ -1,2 +1,32 @@
"""
This File tests if a camera is connected and working
It should display a live stream in grayscale
"""

print("Hallo, Welt!")
print("Hallo, Welt 2 !")




import numpy as np
import cv2 as cv
cap = cv.VideoCapture(0)
if not cap.isOpened():
print("Cannot open camera")
exit()
while True:
# Capture frame-by-frame
ret, frame = cap.read()
# if frame is read correctly ret is True
if not ret:
print("Can't receive frame (stream end?). Exiting ...")
break
# Our operations on the frame come here
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
# Display the resulting frame
cv.imshow('frame', gray)
if cv.waitKey(1) == ord('q'):
break
# When everything done, release the capture
cap.release()
cv.destroyAllWindows()

Loading…
Cancel
Save