FaceDetector icon indicating copy to clipboard operation
FaceDetector copied to clipboard

a misused of w,h in cv2.imread

Open JH-Lam opened this issue 3 years ago • 0 comments

Hi, against, I found there is a misused w.r.t. image w,h in mtcnn/train/gen_landmark.py#gen_landmark_data(): ` cv2.cvtColor(img, cv2.COLOR_RGB2BGR) # Do this for compatible with caffe model

img_w = img.shape[0]

img_h = img.shape[1] ` ie. w and h should be swapped above, right?

JH-Lam avatar Aug 02 '21 10:08 JH-Lam