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

Aspect Ratio running infer script #5

Open
kaisark opened this issue Jul 31, 2018 · 0 comments
Open

Aspect Ratio running infer script #5

kaisark opened this issue Jul 31, 2018 · 0 comments
Labels
good to know Good for newcomers

Comments

@kaisark
Copy link

kaisark commented Jul 31, 2018

I ran into an aspect ratio issue (looked warped) running the latest infer script, so I installed (pip install imutils) the imutils python package and used imutils instead of the cv2.resize command. It seemed to work for me.

Issue Line:
"im = cv2.resize(im, (int(1280/1),int(720/1)))"

https://github.com/jrosebr1/imutils

Example:
import imutils

im = imutils.resize(im, width=1080)

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

No branches or pull requests

2 participants