haarcascades & comments regarding image resizing
This commit is contained in:
parent
53778d1ce0
commit
5f6b3a1b52
15452
EVM ohne Buffer/haarcascades/haarcascade_eye1.xml
Normal file
15452
EVM ohne Buffer/haarcascades/haarcascade_eye1.xml
Normal file
File diff suppressed because it is too large
Load Diff
12213
EVM ohne Buffer/haarcascades/haarcascade_eye2.xml
Normal file
12213
EVM ohne Buffer/haarcascades/haarcascade_eye2.xml
Normal file
File diff suppressed because it is too large
Load Diff
22619
EVM ohne Buffer/haarcascades/haarcascade_eye_tree_eyeglasses.xml
Normal file
22619
EVM ohne Buffer/haarcascades/haarcascade_eye_tree_eyeglasses.xml
Normal file
File diff suppressed because it is too large
Load Diff
14382
EVM ohne Buffer/haarcascades/haarcascade_frontalcatface.xml
Normal file
14382
EVM ohne Buffer/haarcascades/haarcascade_frontalcatface.xml
Normal file
File diff suppressed because it is too large
Load Diff
13394
EVM ohne Buffer/haarcascades/haarcascade_frontalcatface_extended.xml
Normal file
13394
EVM ohne Buffer/haarcascades/haarcascade_frontalcatface_extended.xml
Normal file
File diff suppressed because it is too large
Load Diff
26161
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt0.xml
Normal file
26161
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt0.xml
Normal file
File diff suppressed because it is too large
Load Diff
24350
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt1.xml
Normal file
24350
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt1.xml
Normal file
File diff suppressed because it is too large
Load Diff
20719
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt2.xml
Normal file
20719
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt2.xml
Normal file
File diff suppressed because it is too large
Load Diff
96484
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt_tree.xml
Normal file
96484
EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt_tree.xml
Normal file
File diff suppressed because it is too large
Load Diff
33314
EVM ohne Buffer/haarcascades/haarcascade_frontalface_default.xml
Normal file
33314
EVM ohne Buffer/haarcascades/haarcascade_frontalface_default.xml
Normal file
File diff suppressed because it is too large
Load Diff
17030
EVM ohne Buffer/haarcascades/haarcascade_fullbody.xml
Normal file
17030
EVM ohne Buffer/haarcascades/haarcascade_fullbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
7390
EVM ohne Buffer/haarcascades/haarcascade_lefteye_2splits.xml
Normal file
7390
EVM ohne Buffer/haarcascades/haarcascade_lefteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
14056
EVM ohne Buffer/haarcascades/haarcascade_lowerbody.xml
Normal file
14056
EVM ohne Buffer/haarcascades/haarcascade_lowerbody.xml
Normal file
File diff suppressed because it is too large
Load Diff
9322
EVM ohne Buffer/haarcascades/haarcascade_mcs_leftear.xml
Normal file
9322
EVM ohne Buffer/haarcascades/haarcascade_mcs_leftear.xml
Normal file
File diff suppressed because it is too large
Load Diff
21991
EVM ohne Buffer/haarcascades/haarcascade_mcs_mouth.xml
Normal file
21991
EVM ohne Buffer/haarcascades/haarcascade_mcs_mouth.xml
Normal file
File diff suppressed because it is too large
Load Diff
48433
EVM ohne Buffer/haarcascades/haarcascade_mcs_nose.xml
Normal file
48433
EVM ohne Buffer/haarcascades/haarcascade_mcs_nose.xml
Normal file
File diff suppressed because it is too large
Load Diff
9671
EVM ohne Buffer/haarcascades/haarcascade_mcs_rightear.xml
Normal file
9671
EVM ohne Buffer/haarcascades/haarcascade_mcs_rightear.xml
Normal file
File diff suppressed because it is too large
Load Diff
29690
EVM ohne Buffer/haarcascades/haarcascade_profileface.xml
Normal file
29690
EVM ohne Buffer/haarcascades/haarcascade_profileface.xml
Normal file
File diff suppressed because it is too large
Load Diff
7407
EVM ohne Buffer/haarcascades/haarcascade_righteye_2splits.xml
Normal file
7407
EVM ohne Buffer/haarcascades/haarcascade_righteye_2splits.xml
Normal file
File diff suppressed because it is too large
Load Diff
2656
EVM ohne Buffer/haarcascades/haarcascade_russian_plate_number.xml
Normal file
2656
EVM ohne Buffer/haarcascades/haarcascade_russian_plate_number.xml
Normal file
File diff suppressed because it is too large
Load Diff
6729
EVM ohne Buffer/haarcascades/haarcascade_smile.xml
Normal file
6729
EVM ohne Buffer/haarcascades/haarcascade_smile.xml
Normal file
File diff suppressed because it is too large
Load Diff
28134
EVM ohne Buffer/haarcascades/haarcascade_upperbody.xml
Normal file
28134
EVM ohne Buffer/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):
|
def video(self):
|
||||||
cap = cv2.VideoCapture(0)
|
cap = cv2.VideoCapture(0)
|
||||||
|
print("VideoCapture")
|
||||||
while len(self.BUFFER) < self.BUFFER_LEN:
|
while len(self.BUFFER) < self.BUFFER_LEN:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
ret, frame = cap.read()
|
ret, frame = cap.read()
|
||||||
|
|
||||||
frame = cv2.resize(frame, (500, 500))
|
frame = cv2.resize(frame, (500, 500))
|
||||||
|
# why resize if we later call a pyramid?
|
||||||
self.BUFFER.append(frame)
|
self.BUFFER.append(frame)
|
||||||
stop_time = time.time()
|
stop_time = time.time()
|
||||||
self.FPS_BUFFER.append(stop_time-start_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:
|
for (x, y, w, h) in face_rects:
|
||||||
roi_frame = img[y:y + h, x:x + w]
|
roi_frame = img[y:y + h, x:x + w]
|
||||||
if roi_frame.size != img.size:
|
if roi_frame.size != img.size:
|
||||||
|
|
||||||
roi_frame = cv2.resize(roi_frame, (500, 500))
|
roi_frame = cv2.resize(roi_frame, (500, 500))
|
||||||
|
#duplicate resize
|
||||||
frame = np.ndarray(shape=roi_frame.shape, dtype="float")
|
frame = np.ndarray(shape=roi_frame.shape, dtype="float")
|
||||||
frame[:] = roi_frame * (1. / 255)
|
frame[:] = roi_frame * (1. / 255)
|
||||||
video_frames.append(frame)
|
video_frames.append(frame)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user