Skip to content

Commit

Permalink
OpenCV 4.8.0 (#371)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] committed Jul 22, 2023
2 parents c4f67d6 + d022f37 commit 891639f
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .ci_support/migrations/harfbuzz7.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
MACOSX_SDK_VERSION:
- '10.12'
c_compiler:
- clang
c_compiler_version:
Expand Down
10 changes: 5 additions & 5 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ cmake -LAH -G "Ninja"
-DWITH_OPENCLAMDFFT=0 ^
-DWITH_OPENCLAMDBLAS=0 ^
-DWITH_OPENCL_D3D11_NV=0 ^
-DWITH_OPENVINO=1 ^
-DWITH_1394=0 ^
-DWITH_OPENNI=0 ^
-DWITH_HDF5=1 ^
Expand Down
3 changes: 3 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ln -s $PREFIX/include/libpng16 $PREFIX/include/libpng

QT="5"
V4L="1"
OPENVINO="1"

if [[ "${target_platform}" == linux-* ]]; then
# Looks like there's a bug in Opencv 3.2.0 for building with FFMPEG
Expand All @@ -20,6 +21,7 @@ if [[ "${target_platform}" == osx-* ]]; then
V4L="0"
elif [[ "${target_platform}" == linux-ppc64le ]]; then
QT="0"
OPENVINO="0"
fi


Expand Down Expand Up @@ -84,6 +86,7 @@ cmake -LAH -G "Ninja" \
-DWITH_OPENCLAMDFFT=0 \
-DWITH_OPENCLAMDBLAS=0 \
-DWITH_OPENCL_D3D11_NV=0 \
-DWITH_OPENVINO=$OPENVINO \
-DWITH_1394=0 \
-DWITH_OPENNI=0 \
-DWITH_HDF5=1 \
Expand Down
2 changes: 2 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MACOSX_SDK_VERSION: # [osx and x86_64]
- 10.12 # [osx and x86_64]
12 changes: 7 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
# By putting all the generated files in 1 package, this makes the build process
# much easier, at the expense of a few MBs in the 'lib' package.
{% set version = "4.7.0" %}
{% set version = "4.8.0" %}
{% set major_version = version.split('.')[0] %}
{% set PY_VER_MAJOR = PY_VER.split('.')[0] %}
{% set PY_VER_MINOR = PY_VER.split('.')[1] %}
Expand All @@ -31,7 +31,7 @@ package:
source:
- url: https://github.com/opencv/opencv/archive/{{ version }}.tar.gz
fn: opencv-{{ version }}.tar.gz
sha256: 8df0079cdbe179748a18d44731af62a245a45ebf5085223dc03133954c662973
sha256: cbf47ecc336d2bff36b0dcd7d6c179a9bb59e805136af6b9670ca944aef889bd
patches:
# backport https://github.com/opencv/opencv/pull/21611 (unmerged as of 06/2023)
- patches_opencv/0001-Add-installation-of-pip-metadata-from-cmake.patch
Expand All @@ -40,7 +40,7 @@ source:
- patches_opencv/0004-fix-detection-for-protobuf-23.x.patch
- url: https://github.com/opencv/opencv_contrib/archive/{{ version }}.tar.gz
fn: opencv_contrib-{{ version }}.tar.gz
sha256: 42df840cf9055e59d0e22c249cfb19f04743e1bdad113d31b1573d3934d62584
sha256: b4aef0f25a22edcd7305df830fa926ca304ea9db65de6ccd02f6cfa5f3357dbb
folder: opencv_contrib
patches:
# Allow attempt to find HDF5 on cross-compile
Expand All @@ -50,7 +50,7 @@ source:
sha256: 78884f64b564a3b06dc6ee731ed33b60c6d8cd864cea07f21d94ba0f90c7b310

build:
number: 6
number: 0
string: py{{ PY_VER_MAJOR }}{{ PY_VER_MINOR }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
run_exports:
# https://abi-laboratory.pro/index.php?view=timeline&l=opencv
Expand Down Expand Up @@ -85,7 +85,7 @@ requirements:
host:
- python
- numpy
- eigen
- eigen =3.4.0
# Specify lgpl version of ffmpeg so that there are
# no quesitons about the license of the resulting opencv
# binary
Expand All @@ -106,6 +106,7 @@ requirements:
- libwebp
- qt-main # [not osx and not ppc64le]
- zlib
- openvino # [not ppc64le]

test:
requires:
Expand Down Expand Up @@ -254,6 +255,7 @@ outputs:
- if [[ $($PYTHON -c 'import cv2; print(cv2.__version__)') != $PKG_VERSION ]]; then exit 1; fi # [unix]
- python -c "import cv2; assert 'Unknown' not in cv2.videoio_registry.getBackendName(cv2.CAP_V4L)" # [linux]
- python -c "import cv2, re; assert re.search('Lapack:\s+YES', cv2.getBuildInformation())"
- pip check
- pip list
- test $(pip list | grep opencv-python | wc -l) -eq 1 # [unix]
requires:
Expand Down

0 comments on commit 891639f

Please sign in to comment.