Browse Source

haarcascades & comments regarding image resizing

Kierans-Working-Branch
Kieran 11 months ago
parent
commit
5f6b3a1b52
25 changed files with 483006 additions and 1 deletions
  1. 15452
    0
      EVM ohne Buffer/haarcascades/haarcascade_eye1.xml
  2. 12213
    0
      EVM ohne Buffer/haarcascades/haarcascade_eye2.xml
  3. 22619
    0
      EVM ohne Buffer/haarcascades/haarcascade_eye_tree_eyeglasses.xml
  4. 14382
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalcatface.xml
  5. 13394
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalcatface_extended.xml
  6. 26161
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt0.xml
  7. 24350
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt1.xml
  8. 20719
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt2.xml
  9. 96484
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalface_alt_tree.xml
  10. 33314
    0
      EVM ohne Buffer/haarcascades/haarcascade_frontalface_default.xml
  11. 17030
    0
      EVM ohne Buffer/haarcascades/haarcascade_fullbody.xml
  12. 7390
    0
      EVM ohne Buffer/haarcascades/haarcascade_lefteye_2splits.xml
  13. 1404
    0
      EVM ohne Buffer/haarcascades/haarcascade_licence_plate_rus_16stages.xml
  14. 14056
    0
      EVM ohne Buffer/haarcascades/haarcascade_lowerbody.xml
  15. 9322
    0
      EVM ohne Buffer/haarcascades/haarcascade_mcs_leftear.xml
  16. 21991
    0
      EVM ohne Buffer/haarcascades/haarcascade_mcs_mouth.xml
  17. 48433
    0
      EVM ohne Buffer/haarcascades/haarcascade_mcs_nose.xml
  18. 9671
    0
      EVM ohne Buffer/haarcascades/haarcascade_mcs_rightear.xml
  19. 29690
    0
      EVM ohne Buffer/haarcascades/haarcascade_profileface.xml
  20. 7407
    0
      EVM ohne Buffer/haarcascades/haarcascade_righteye_2splits.xml
  21. 2656
    0
      EVM ohne Buffer/haarcascades/haarcascade_russian_plate_number.xml
  22. 6729
    0
      EVM ohne Buffer/haarcascades/haarcascade_smile.xml
  23. 28134
    0
      EVM ohne Buffer/haarcascades/haarcascade_upperbody.xml
  24. 3
    1
      EVM ohne Buffer/main.py
  25. 2
    0
      EVM ohne Buffer/preprocessing.py

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


+ 3
- 1
EVM ohne Buffer/main.py View File



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)

+ 2
- 0
EVM ohne Buffer/preprocessing.py View File

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…
Cancel
Save