mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
remove dead webcam dockerfile
old-commit-hash: 52acae579763a15510b6788b31c22de975d54271
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
FROM ghcr.io/commaai/openpilot-base:latest
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONPATH /tmp/openpilot:${PYTHONPATH}
|
||||
|
||||
# Install opencv
|
||||
ENV OPENCV_VERSION '4.2.0'
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libvtk6-dev \
|
||||
libdc1394-22-dev \
|
||||
libavcodec-dev \
|
||||
libavformat-dev \
|
||||
libswscale-dev \
|
||||
libtheora-dev \
|
||||
libvorbis-dev \
|
||||
libxvidcore-dev \
|
||||
libx264-dev \
|
||||
yasm \
|
||||
libopencore-amrnb-dev \
|
||||
libopencore-amrwb-dev \
|
||||
libv4l-dev \
|
||||
libxine2-dev \
|
||||
libtbb-dev \
|
||||
&& rm -rf /var/lib/apt/lists/* && \
|
||||
|
||||
mkdir /tmp/opencv_build && \
|
||||
cd /tmp/opencv_build && \
|
||||
|
||||
curl -L -O https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.tar.gz && \
|
||||
tar -xvf ${OPENCV_VERSION}.tar.gz && \
|
||||
mv opencv-${OPENCV_VERSION} OpenCV && \
|
||||
cd OpenCV && mkdir build && cd build && \
|
||||
cmake -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \
|
||||
-DWITH_XINE=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_TESTS=OFF \
|
||||
-DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_opencv_apps=OFF .. && \
|
||||
make -j8 && \
|
||||
make install && \
|
||||
ldconfig && \
|
||||
|
||||
cd / && rm -rf /tmp/*
|
||||
@@ -14,10 +14,7 @@ cd ~
|
||||
git clone https://github.com/commaai/openpilot.git
|
||||
```
|
||||
- Follow [this readme](https://github.com/commaai/openpilot/tree/master/tools) to install the requirements
|
||||
- Add line "export PYTHONPATH=$HOME/openpilot" to your ~/.bashrc
|
||||
- Install tensorflow 2.2 and nvidia drivers: nvidia-xxx/cuda10.0/cudnn7.6.5
|
||||
- Install [OpenCL Driver](https://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532/l_opencl_p_18.1.0.015.tgz)
|
||||
- Install [OpenCV4](https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/) (ignore the Python part)
|
||||
|
||||
## Build openpilot for webcam
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user