You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it's time to upgrade our OpenCV dependency from opencv-python==4.1.2.30, for the following reasons:
Allow PeekingDuck to run on M1 Mac
Address behavioural differences with newer opencv versions, such as cv2.resizeWindow() and input arg types for coordinates when using draw functions
We should upgrade to version 4.5 and newer, as there are some issues with the prior versions as documented below. As of now, the latest opencv-python==4.5.4.60 still works with Python 3.6, which is the lowest version of Python supported by PeekingDuck.
Version
Comments
4.1.2.30
Recommended openCV version for PeekingDuck as of 15 Dec 2021. Doesn't work for M1 Mac.
Works with M1 Mac and the issues from earlier versions have been fixed by dropping QT support for Mac. Different behaviour for cv2.resize() and cv2.resize_window() when compared to 4.1.2.30.
4.5.2.52
Coordinates need to be int instead of float for drawing
One correction: the int instead of float coordinates changes began with version 4.5.1.
The key difference between 4.5.1 and 4.5.2 is that the former auto typecast numpy.float32 (but not python float) into int while the latter does not. This is why PeekingDuck "works" with 4.5.1, but on 4.5.2 it shows the error for drawing coordinates to be int instead of float.
leeping-ng
changed the title
OpenCV version compatibility
Upgrade OpenCV Version
Dec 15, 2021
It looks like it's time to upgrade our OpenCV dependency from
opencv-python==4.1.2.30
, for the following reasons:cv2.resizeWindow()
and input arg types for coordinates when using draw functionsWe should upgrade to version 4.5 and newer, as there are some issues with the prior versions as documented below. As of now, the latest
opencv-python==4.5.4.60
still works with Python 3.6, which is the lowest version of Python supported by PeekingDuck.imshow()
not showing, or segmentation fault, or QT error in MacOScv2.resize()
andcv2.resize_window()
when compared to4.1.2.30
.int
instead offloat
for drawingDefinition of done:
requirements.txt
andsetup.cfg
with the new versiondraw
nodes to take inint
coordinates.The text was updated successfully, but these errors were encountered: