OpenCV

/usr/share/opencv4
Download OpenCV for MacM1
% cd tensorflow_macos/arm64
% wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.0.zip
% wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.5.0.zip
% unzip opencv.zip
% unzip opencv_contrib.zip
% cd opencv-4.5.0
% mkdir build && cd build
cmake \
  -DCMAKE_SYSTEM_PROCESSOR=arm64 \
  -DCMAKE_OSX_ARCHITECTURES=arm64 \
  -DWITH_OPENJPEG=OFF \
  -DWITH_IPP=OFF \
  -D CMAKE_BUILD_TYPE=RELEASE \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D OPENCV_EXTRA_MODULES_PATH=/Users/csian/tensorflow_macos/arm64/opencv_contrib-4.5.0/modules \
  -D PYTHON3_EXECUTABLE=/opt/homebrew/Caskroom/miniforge/base/envs/tf_38/bin/python3 \
  -D BUILD_opencv_python2=OFF \
  -D BUILD_opencv_python3=ON \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D INSTALL_C_EXAMPLES=OFF \
  -D OPENCV_ENABLE_NONFREE=ON \
  -D BUILD_EXAMPLES=ON ..
% make -j8
% sudo make install
% mdfind cv2.cpython

/usr/local/lib/python3.8/site-packages/cv2/python-3.8/cv2.cpython-38-darwin.so

% cd /opt/homebrew/Caskroom/miniforge/base/envs/tf_38/lib/python3.8/
% ln -s /usr/local/lib/python3.8/site-packages/cv2/python-3.8/cv2.cpython-38-darwin.so