Skip to content

Commit

Permalink
Update test_image.py
Browse files Browse the repository at this point in the history
no bgr to rgb
  • Loading branch information
kuaikuaikim authored May 23, 2018
1 parent 5422e8f commit cd900fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
mtcnn_detector = MtcnnDetector(pnet=pnet, rnet=rnet, onet=onet, min_face_size=24)

img = cv2.imread("./test.jpg")
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img_bg = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
#b, g, r = cv2.split(img)
#img2 = cv2.merge([r, g, b])

bboxs, landmarks = mtcnn_detector.detect_face(img)
# print box_align

vision.vis_face(img2,bboxs,landmarks)
vision.vis_face(img_bg,bboxs,landmarks)

0 comments on commit cd900fc

Please sign in to comment.