package: name: opencv-python version: 4.8.0.76 top-level: - cv2 about: home: https://github.com/skvark/opencv-python PyPI: https://pypi.org/project/opencv-python summary: Wrapper package for OpenCV python bindings. license: MIT source: url: https://files.pythonhosted.org/packages/32/72/03747a6820bc970aeb0b89e653d1084068ac1ed606a83d8b5ac6fc237c14/opencv-python-4.8.0.76.tar.gz sha256: 56d84c43ce800938b9b1ec74b33942b2edbcef3f70c2754eb9bfe5dff1ee3ace extras: - [extras/OpenCVFindLibsGrfmt.cmake, opencv/cmake/OpenCVFindLibsGrfmt.cmake] - [ extras/detect_ffmpeg.cmake, opencv/modules/videoio/cmake/detect_ffmpeg.cmake, ] patches: - patches/0001-Enable-file-system.patch requirements: run: - numpy host: - ffmpeg - libwebp - libtiff build: # RELOCATABLE flag is required because if affects how emscripten build ports. cxxflags: | -s RELOCATABLE=1 -s USE_ZLIB=1 -s USE_LIBJPEG=1 -s USE_LIBPNG=1 -DOPENCV_HAVE_FILESYSTEM_SUPPORT=1 ldflags: | -ljpeg -lz -lpng # Note on CMAKE_ARGS: # CMake args are adopted from OpenCV.js (https://github.com/opencv/opencv/blob/4.x/platforms/js/build_js.py) # But we support more modules than OpenCV.js. # # List of OpenCV modules can be found at: https://docs.opencv.org/4.x/ # Build configs can be found at: https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html script: | # export VERBOSE=1 export NUMPY_INCLUDE_DIR="$HOSTINSTALLDIR/lib/python$PYMAJOR.$PYMINOR/site-packages/numpy/core/include/" export FFMPEG_ROOT="$WASM_LIBRARY_DIR" source $PKGDIR/extras/build_args.sh