crop_face #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "crop_face"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pierdoly
@ -8,14 +8,18 @@ import numpy as np
from source.cartoonize import Cartoonizer
Tutaj ta jedna linia powinna zostać - PEP mówi, że w global scope funkcje powinny być oddzielone dwoma pustymi liniami
PEP 8: E302 expected 2 blank lines, found 1
@ -19,0 +17,4 @@
face_cascade = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_default.xml')
face = face_cascade.detectMultiScale(data_gray, 1.3, 4)
face = max(face, key=len)
(x, y, w, h) = face
x, y, w, h = face
@ -24,3 +28,3 @@
def transfer_to_anime(ima: np.ndarray):
def transfer_to_anime(img: np.ndarray):
Not all heroes wear capes