y2kbug icon

Untitled

y2kbug | PRO | 01/30/22 10:17:56 AM UTC (Edited) | 0 ⭐ | 465 👁️ | Never ⏰ | []
text |

1.78 KB

|

None

|

0 👍

/

0 👎

FROM ubuntu:20.04
 RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
 RUN apt-get install -y software-properties-common
RUN add-apt-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main"
RUN apt-get update
 RUN apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get install -y python3-dev python3-pip python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
RUN apt-get install -y freeglut3-dev mesa-common-dev  libgtkglext1 libgtkglext1-dev
RUN apt-get install -y checkinstall yasm libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libv4l-dev libtbb-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils
 RUN cd /lib \
    && git clone --branch 4.5.5 --depth 1  https://github.com/opencv/opencv.git \
    && git clone --branch 4.5.5 --depth 1  https://github.com/opencv/opencv_contrib.git
 RUN pip install numpy \
    && mkdir /lib/opencv/build \
    && cd /lib/opencv/build \
    && cmake \
        -D CMAKE_BUILD_TYPE=RELEASE \
        -D CMAKE_INSTALL_PREFIX=/usr/local \
        -D WITH_CUDA=ON \
        -D WITH_CUBLAS=ON \
        -D CUDA_FAST_MATH=ON \
        -D WITH_CUFFT=ON \
        -D WITH_NVCUVID=ON \
        -D WITH_V4L=ON \
        -D WITH_LIBV4L=ON \
        -D WITH_OPENGL=ON \
        -D WITH_FFMPEG=ON \
        -D OPENCV_ENABLE_NONFREE=ON \
        -D OPENCV_EXTRA_MODULES_PATH=/lib/opencv_contrib/modules \
        .. \
    && make -j8 \
    && make install
 RUN pip3 install flask[async]
RUN pip3 install flask-sqlalchemy
RUN pip3 install mediapipe
RUN pip3 install paho-mqtt
RUN pip3 install pymysql
RUN pip3 install pytz
RUN pip3 install requests
 

Comments