Kierans-Working-Branch #3
BIN
EVMProject/__pycache__/eulerian.cpython-311.pyc
Normal file
BIN
EVMProject/__pycache__/eulerian.cpython-311.pyc
Normal file
Binary file not shown.
BIN
EVMProject/__pycache__/heartrate.cpython-311.pyc
Normal file
BIN
EVMProject/__pycache__/heartrate.cpython-311.pyc
Normal file
Binary file not shown.
BIN
EVMProject/__pycache__/preprocessing.cpython-311.pyc
Normal file
BIN
EVMProject/__pycache__/preprocessing.cpython-311.pyc
Normal file
Binary file not shown.
BIN
EVMProject/__pycache__/pyramids.cpython-311.pyc
Normal file
BIN
EVMProject/__pycache__/pyramids.cpython-311.pyc
Normal file
Binary file not shown.
15452
EVMProject/haarcascades/haarcascade_eye1.xml
Normal file
15452
EVMProject/haarcascades/haarcascade_eye1.xml
Normal file
File diff suppressed because it is too large
Load Diff
12213
EVMProject/haarcascades/haarcascade_eye2.xml
Normal file
12213
EVMProject/haarcascades/haarcascade_eye2.xml
Normal file
File diff suppressed because it is too large
Load Diff
22619
EVMProject/haarcascades/haarcascade_eye_tree_eyeglasses.xml
Normal file
22619
EVMProject/haarcascades/haarcascade_eye_tree_eyeglasses.xml
Normal file
File diff suppressed because it is too large
Load Diff
14382
EVMProject/haarcascades/haarcascade_frontalcatface.xml
Normal file
14382
EVMProject/haarcascades/haarcascade_frontalcatface.xml
Normal file
File diff suppressed because it is too large
Load Diff
13394
EVMProject/haarcascades/haarcascade_frontalcatface_extended.xml
Normal file
13394
EVMProject/haarcascades/haarcascade_frontalcatface_extended.xml
Normal file
File diff suppressed because it is too large
Load Diff
26161
EVMProject/haarcascades/haarcascade_frontalface_alt0.xml
Normal file
26161
EVMProject/haarcascades/haarcascade_frontalface_alt0.xml
Normal file
File diff suppressed because it is too large
Load Diff
24350
EVMProject/haarcascades/haarcascade_frontalface_alt1.xml
Normal file
24350
EVMProject/haarcascades/haarcascade_frontalface_alt1.xml
Normal file
File diff suppressed because it is too large
Load Diff
20719
EVMProject/haarcascades/haarcascade_frontalface_alt2.xml
Normal file
20719
EVMProject/haarcascades/haarcascade_frontalface_alt2.xml
Normal file
File diff suppressed because it is too large
Load Diff
96484
EVMProject/haarcascades/haarcascade_frontalface_alt_tree.xml
Normal file
96484
EVMProject/haarcascades/haarcascade_frontalface_alt_tree.xml
Normal file
File diff suppressed because it is too large
Load Diff
33314
EVMProject/haarcascades/haarcascade_frontalface_default.xml
Normal file
33314
EVMProject/haarcascades/haarcascade_frontalface_default.xml
Normal file
File diff suppressed because it is too large
Load Diff
17030
EVMProject/haarcascades/haarcascade_fullbody.xml
Normal file
17030
EVMProject/haarcascades/haarcascade_fullbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
7390
EVMProject/haarcascades/haarcascade_lefteye_2splits.xml
Normal file
7390
EVMProject/haarcascades/haarcascade_lefteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
1404
EVMProject/haarcascades/haarcascade_licence_plate_rus_16stages.xml
Normal file
1404
EVMProject/haarcascades/haarcascade_licence_plate_rus_16stages.xml
Normal file
File diff suppressed because it is too large
Load Diff
14056
EVMProject/haarcascades/haarcascade_lowerbody.xml
Normal file
14056
EVMProject/haarcascades/haarcascade_lowerbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
9322
EVMProject/haarcascades/haarcascade_mcs_leftear.xml
Normal file
9322
EVMProject/haarcascades/haarcascade_mcs_leftear.xml
Normal file
File diff suppressed because it is too large
Load Diff
21991
EVMProject/haarcascades/haarcascade_mcs_mouth.xml
Normal file
21991
EVMProject/haarcascades/haarcascade_mcs_mouth.xml
Normal file
File diff suppressed because it is too large
Load Diff
48433
EVMProject/haarcascades/haarcascade_mcs_nose.xml
Normal file
48433
EVMProject/haarcascades/haarcascade_mcs_nose.xml
Normal file
File diff suppressed because it is too large
Load Diff
9671
EVMProject/haarcascades/haarcascade_mcs_rightear.xml
Normal file
9671
EVMProject/haarcascades/haarcascade_mcs_rightear.xml
Normal file
File diff suppressed because it is too large
Load Diff
29690
EVMProject/haarcascades/haarcascade_profileface.xml
Normal file
29690
EVMProject/haarcascades/haarcascade_profileface.xml
Normal file
File diff suppressed because it is too large
Load Diff
7407
EVMProject/haarcascades/haarcascade_righteye_2splits.xml
Normal file
7407
EVMProject/haarcascades/haarcascade_righteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
2656
EVMProject/haarcascades/haarcascade_russian_plate_number.xml
Normal file
2656
EVMProject/haarcascades/haarcascade_russian_plate_number.xml
Normal file
File diff suppressed because it is too large
Load Diff
6729
EVMProject/haarcascades/haarcascade_smile.xml
Normal file
6729
EVMProject/haarcascades/haarcascade_smile.xml
Normal file
File diff suppressed because it is too large
Load Diff
28134
EVMProject/haarcascades/haarcascade_upperbody.xml
Normal file
28134
EVMProject/haarcascades/haarcascade_upperbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -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)
|
@ -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)
|
32
test.py
32
test.py
@ -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…
x
Reference in New Issue
Block a user