I want to use opencv module but I can't import OpenCV. So how can I solve this problem? By the way, Pyodide supports OpenCV.
Is it possible to use OpenCV module in PyScript?
3.6k views Asked by Yılmaz ALACA At
2
There are 2 answers
1
On
OpenCV is not supported yet.
At this time, OpenCV requires pypi-json. Loading that package via Pyscript micropip throws a CORS error. Once that is fixed, I am not sure which other problems will surface.
This means some OpenCV dependencies must be corrected first.
[UPDATE]
This link infers that the Pyodide dev branch now supports openCV. I have not verified that information.
Have you loaded it as a module in your HTML?