Skip to content

Commit cbd90c6

Browse files
authored
Merge pull request #48 from LukasBommes/upgrade_open_cv
Upgrade OpenCV from 4.5.5 to 4.10.0
2 parents fe4f088 + 5e3b861 commit cbd90c6

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,14 @@ ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/opencv/build/lib"
7373

7474
WORKDIR /home/video_cap
7575

76+
COPY pyproject.toml /home/video_cap
7677
COPY setup.py /home/video_cap
7778
COPY src /home/video_cap/src/
7879

7980
# Install Python package
80-
RUN python3.10 -m pip install --upgrade pip build && \
81-
python3.10 -m pip install 'pkgconfig>=1.5.1' 'numpy>=1.17.0,<2'
82-
8381
RUN python3.10 -m pip install .
8482

85-
# that is where the "extract_mvs" script is located
83+
# Location of the "extract_mvs" script
8684
ENV PATH="$PATH:/opt/_internal/cpython-3.10.15/bin"
8785

8886
CMD ["sh", "-c", "tail -f /dev/null"]

install_opencv.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yum install -y \
2121
yum clean all
2222

2323
# Download OpenCV and build from source
24-
OPENCV_VERSION="4.5.5"
24+
OPENCV_VERSION="4.10.0"
2525
echo "Downloading OpenCV source"
2626
cd "$INSTALL_BASE_DIR"
2727
wget -O "$INSTALL_BASE_DIR"/opencv.zip https://github.com/opencv/opencv/archive/"$OPENCV_VERSION".zip

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools",
4-
"pkgconfig",
5-
"numpy"
3+
"setuptools>=61.0",
4+
"pkgconfig>=1.5.1",
5+
"numpy>=1.17.0,<2"
66
]
77
build-backend = "setuptools.build_meta"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@
6363
],
6464
},
6565
python_requires='>=3.9, <4',
66-
install_requires=['pkgconfig>=1.5.1', 'numpy>=1.17.0,<2', 'opencv-python>=4.1.0.25,<4.6'])
66+
install_requires=['numpy>=1.17.0,<2', 'opencv-python>=4.1.0.25,<4.11'])

0 commit comments

Comments
 (0)