Skip to content
This repository was archived by the owner on Nov 4, 2019. It is now read-only.

Commit d909d5c

Browse files
author
Ashley Walker
committed
Readme documentation updated with how to run. Dockerfile 2nd commit
1 parent 75dc9ea commit d909d5c

2 files changed

Lines changed: 28 additions & 7 deletions

File tree

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# Builds an environment that runs the
1+
# Builds an environment that runs the image analysis direct georeferecing tool set.
22

33
FROM continuumio/anaconda3:latest
4-
LABEL Name=directgeoref Version=0.0.1
5-
EXPOSE 3000
4+
LABEL Name=imageanalysis Version=0.1
65

76
ENV PATH /opt/conda/bin/
87
SHELL ["/bin/bash", "-c"]
@@ -16,8 +15,8 @@ VOLUME [ "/data" ]
1615
RUN conda update conda
1716

1817
# Install all the required packages
19-
RUN conda install -c conda-forge opencv && \
20-
pip install navpy piexif geojson panda3d opencv-contrib-python pylint rope matplotlib
18+
RUN pip install opencv-python opencv-utils opencv-contrib-python==3.4.2.17 && \
19+
pip install navpy piexif geojson panda3d pylint rope matplotlib
2120

2221
# Download the required props package
2322
ADD https://github.com/AuraUAS/aura-props/archive/master.zip /app/
@@ -35,4 +34,8 @@ CMD cd /app
3534

3635
# To run, use the following commands:
3736
# docker run -d --name imageanalysis -v location/on/your/computer:/data imageanalysis
38-
# docker exec -it imageanalysis /bin/bash
37+
# docker exec -it imageanalysis /bin/bash
38+
39+
# When in the container, you can navigate to the project runner dir and run with the following:
40+
# cd scripts
41+
# python project_runner.py --project /data --camera /app/cameras/DJI_FC330.json --pix4d /data/pix4d.csv

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,22 @@ Wish list items:
162162
## installation hints
163163

164164
- sudo pip3 install opencv-contrib-python
165-
- sudo pip3 install --pre --extra-index-url https://archive.panda3d.org/ panda3d
165+
- sudo pip3 install --pre --extra-index-url https://archive.panda3d.org/ panda3d
166+
167+
## Run with Docker
168+
169+
When you clone the repo, you can then build the docker image and run from inside of the docker image with the following commands:
170+
171+
````{.shell}
172+
docker run -d --name imageanalysis -v location/on/your/computer:/data imageanalysis
173+
docker exec -it imageanalysis /bin/bash
174+
````
175+
176+
Ensure that you change ```location/on/your/computer``` to a location that holds all of your images, and the pix4d.csv file
177+
178+
When in the container, you can navigate to the project runner dir and run with the following:
179+
180+
````{.shell}
181+
cd scripts
182+
python project_runner.py --project /data --camera /app/cameras/DJI_FC330.json --pix4d /data/pix4d.csv
183+
````

0 commit comments

Comments
 (0)