We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae56e8 commit 64661b1Copy full SHA for 64661b1
coderbot/cv/image.py
@@ -84,7 +84,8 @@ def get_transform(cls, image_size_x):
84
return tx
85
86
def find_faces(self):
87
- faces = self._face_cascade.detectMultiScale(self._data)
+ gray = cv2.cvtColor(self._data, cv2.COLOR_BGR2GRAY)
88
+ faces = self._face_cascade.detectMultiScale(gray)
89
return faces
90
91
def filter_color(self, color):
0 commit comments