Open kaisark opened 6 years ago
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)
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)