Skip to content

Commit

Permalink
fix detectMultiScale
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Feb 28, 2024
1 parent 64661b1 commit 7fa1b64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coderbot/cv/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ def get_transform(cls, image_size_x):
return tx

def find_faces(self):
gray = cv2.cvtColor(self._data, cv2.COLOR_BGR2GRAY)
faces = self._face_cascade.detectMultiScale(gray)
faces = self._face_cascade.detectMultiScale(self._data)
return faces

def filter_color(self, color):
Expand Down

0 comments on commit 7fa1b64

Please sign in to comment.