ZoneMinder / pyzm

Python API, Log, Event Server and Memory wrapper for ZoneMinder
GNU General Public License v2.0
31 stars 20 forks source link

Fixes issue with OpenCV 4.5.4 changing API format #34

Closed pliablepixels closed 2 years ago

lucasnz commented 1 year ago

@pliablepixels this doesn't work for opencv 4.6.0 or greater. I think we need to change line 95 of yolo.py from if min_ver >= 45 and patch >=4: to if min_ver >= 46 or (min_ver >= 45 and patch >=4):

baudneo commented 1 year ago

https://github.com/baudneo/zmes_yolo_fix/blob/master/yolo.py