Samuel Schmidt commited on
Commit
51420ee
·
1 Parent(s): 8cedd0a

Update src/LBP.py

Browse files
Files changed (1) hide show
  1. src/LBP.py +1 -1
src/LBP.py CHANGED
@@ -27,7 +27,7 @@ class LBPImageEncoder:
27
  return rects
28
 
29
  def preprocess_img(self, image):
30
- img = np.array(image)
31
  rects = self.face_detection(img)
32
  feature_vector = np.zeros((self.numPoints + 2) * 3)
33
 
 
27
  return rects
28
 
29
  def preprocess_img(self, image):
30
+ img = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
31
  rects = self.face_detection(img)
32
  feature_vector = np.zeros((self.numPoints + 2) * 3)
33