Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a misused of w,h in cv2.imread #15

Open
JH-Lam opened this issue Aug 2, 2021 · 0 comments
Open

a misused of w,h in cv2.imread #15

JH-Lam opened this issue Aug 2, 2021 · 0 comments

Comments

@JH-Lam
Copy link

JH-Lam commented Aug 2, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant