Jul 20, 2023 08:47 AM
问题现象说明解决过程方案 1. Update 4.8 Release fixs this issue.方案 2.For Mac OSFor WindowsAnd for Ubuntu总结遗留问题&思考
pip install opencv-opencv==184.108.40.206.
pip install opencv-contrib-python==220.127.116.11
Workaround: I got a workaround that works well on Mac and Windows with PyCharm.
Go to the ../site-packages/cv2 and copy the binary file from it to its parent folder.
Copy ../site-packages/cv2/cv2.abi3.so to ../site-packages/cv2.abi3.so enter image description here
Copy ../site-packages/cv2/cv2.pyd to ../site-packages/cv2.pyd enter image description here
we should do the same thing.
I have created an issue for it: https://github.com/opencv/opencv-python/issues/821
NOTE: when your update the opencv-python, don't forget to delete the old abi.so file and copy the new binary to the parent folder.