Spaces:
Runtime error
Runtime error
File size: 1,049 Bytes
c9d8964 3ecc90b 0258951 3ecc90b e00d95c 3ecc90b 0ea447e f5bd0b4 5daecc1 dedbcc6 b04e88b dedbcc6 8d32ec4 6b6234f 37ed013 0a6df52 f084c46 37ed013 4a63c9e 83a45ce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
FROM jjanzic/docker-python3-opencv
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
git \
libgl1-mesa-glx \
libglib2.0-0 \
wget \
&& \
rm -rf /var/lib/apt/lists/*
RUN pip install Cython==0.29.36
RUN git clone https://github.com/Li-Zhaoxi/AAMED.git && \
cd AAMED/python && \
python setup.py build_ext --inplace && \
python setup.py install
COPY . .
RUN pip install -r requirements.txt
RUN mkdir examples && \
cd examples && \
for i in `seq 1 12`; do wget "https://raw.githubusercontent.com/memory-overflow/standard-ellipse-detection/master/images/test$i.jpg"; done && \
for file in 13.jpg 27.jpg 35.jpg 43.jpg 666.jpg 666_negative.jpg 666_positive.jpg different-polarity-detection_all.jpg im9933.jpg; \
do wget "https://raw.githubusercontent.com/AlanLuSun/High-quality-ellipse-detection/master/pics/$file"; done
COPY test.py /opt/build/AAMED/python/
RUN cd /opt/build/AAMED/python && python test.py
CMD ["python", "/opt/build/app.py"] |