Hello,
I recently got my new Apple M1 which is arm64 architecture and also the new OAK-D so I started getting the Software up and running. Meaning install opencv for python
I installed without issues
python 3.9.1 native
numpy 1.20.1 native
next was OpenCV where I took several approaches.
#1
install via PIP:
python -m pip install opencv-python
RESULT: ERROR could not build wheels for numpy; even when numpy 1.20.1 was already there but it seems that this version is not checked
#2
cmake build from source from 4.5.1 release
configure, make and make install
RESULT: no error, numpy 1.20.1 and python 3.9.1 was recognised. but the cv2.so was not to be found anywhere. ccmake showed that there are no options for BUILD_NEW_PYTHON_SUPPORT or BUILD_opencv_python so I expect they are activated by default. CPP works fine
#3
Build wheel from source
To avoid the problem in approach 1 I updated the pyproject.toml to include
“numpy==1.20.1; python_version>=‘3.9.1’ and platform_machine == ‘arm64’”
git clone https://github.com/opencv/opencv-python.git python -m pip wheel .
RESULT: ERROR could not build wheels for numpy.
I am out of options and thoughts here. is there anyone who can help. All the suggestions in other forums and blogs I followed did not help.