1 Star 0 Fork 0

irishcoffeeguo/smart-social-distancing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
amd64-usbtpu.Dockerfile 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
FROM amd64/debian:buster
RUN apt-get update && apt-get install -y wget gnupg usbutils \
&& rm -rf /var/lib/apt/lists \
&& wget -qO - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
# The `python3-opencv` package isn't built with gstreamer on Ubuntu. So we need to manually build opencv.
ARG OPENCV_VERSION=4.3.0
# http://amritamaz.net/blog/opencv-config
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
curl \
git \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-vaapi \
libavcodec-dev \
libavformat-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer1.0-dev \
libsm6 \
libswscale-dev \
libxext6 \
libxrender-dev \
mesa-va-drivers \
python3-dev \
python3-numpy \
&& rm -rf /var/lib/apt/lists/* \
&& cd /tmp/ \
&& curl -L https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.tar.gz -o opencv.tar.gz \
&& tar zxvf opencv.tar.gz && rm opencv.tar.gz \
&& cd /tmp/opencv-${OPENCV_VERSION} \
&& mkdir build \
&& cd build \
&& cmake \
-DBUILD_opencv_python3=yes \
-DPYTHON_EXECUTABLE=$(which python3) \
-DCMAKE_BUILD_TYPE=RELEASE \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DINSTALL_TESTS=OFF \
-DBUILD_opencv_apps=OFF \
-DBUILD_DOCS=OFF \
../ \
&& make -j$(nproc) \
&& make install \
&& cd /tmp \
&& rm -rf opencv-${OPENCV_VERSION} \
&& apt-get purge -y \
cmake \
git \
libgstreamer-plugins-base1.0-dev \
libgstreamer1.0-dev \
libxrender-dev \
python3-dev \
&& apt-get autoremove -y
# https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config \
python3-dev \
python3-numpy \
python3-pillow \
python3-pip \
python3-scipy \
python3-wget \
python3-pytest \
python3-requests \
build-essential \
libedgetpu1-std \
&& rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install --upgrade pip setuptools==41.0.0 wheel && pip install \
aiofiles \
fastapi \
uvicorn \
https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl \
&& apt-get purge -y \
build-essential \
python3-dev \
&& apt-get autoremove -y
ENV DEV_ALLOW_ALL_ORIGINS=true
COPY . /repo
WORKDIR /repo
ENTRYPOINT ["bash", "start_services.bash"]
CMD ["config-coral.ini"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/irishcoffeeguo/smart-social-distancing.git
git@gitee.com:irishcoffeeguo/smart-social-distancing.git
irishcoffeeguo
smart-social-distancing
smart-social-distancing
master

搜索帮助