forked from kubeedge/sedna
-
Notifications
You must be signed in to change notification settings - Fork 1
atlas 500 support #13
Copy link
Copy link
Open
Description
build opencv image
Dockerfile:
FROM arm64v8/debian
RUN apt-get update && apt-get upgrade -y
# https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html
RUN apt-get install -y unzip wget build-essential \
cmake git pkg-config libswscale-dev \
python3.6-dev python3-numpy \
libtbb2 libtbb-dev libjpeg-dev \
libpng-dev libtiff-dev
# option 1:
RUN apt-get install -y python3-opencv
# option 2: src installation
RUN version=3.3.1 && cd &&
wget https://github.com/opencv/opencv/archive/refs/tags/$version.zip --no-check \
&& unzip $version.zip \
&& cd opencv-$version && \
# opencv version=3.3.1 has the issue https://github.com/opencv/opencv/issues/19037, here patch the corresponding fix
wget https://github.com/opencv/opencv/pull/16369.patch --no-check && patch -p 1 < 16369.patch && \
# https://github.com/opencv/opencv/issues/14856
sed -i 's/ char* str = PyString_AsString(obj);/const &/' modules/python/src2/cv2.cpp && \
mkdir build && cd build \
&& cmake .. && make -j2 && make install \
&& cd && rm -rf opencv-$version && rm $version.zip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels