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

Commit 75dc9ea

Browse files
author
Ashley Walker
committed
Initial Dockerfile commit
1 parent 8da1096 commit 75dc9ea

6 files changed

Lines changed: 77 additions & 6 deletions

File tree

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
npm-debug.log
3+
Dockerfile*
4+
docker-compose*
5+
.dockerignore
6+
.git
7+
.gitignore
8+
.env
9+
*/bin
10+
*/obj
11+
README.md
12+
LICENSE
13+
.vscode
14+
*/aura-props

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Builds an environment that runs the
2+
3+
FROM continuumio/anaconda3:latest
4+
LABEL Name=directgeoref Version=0.0.1
5+
EXPOSE 3000
6+
7+
ENV PATH /opt/conda/bin/
8+
SHELL ["/bin/bash", "-c"]
9+
10+
# Define the working dir where to put all the source code
11+
WORKDIR /app
12+
# And the location of where to link the images when mounting the volume that holds the images, camera JSON and
13+
VOLUME [ "/data" ]
14+
15+
# Update conda if required
16+
RUN conda update conda
17+
18+
# 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
21+
22+
# Download the required props package
23+
ADD https://github.com/AuraUAS/aura-props/archive/master.zip /app/
24+
25+
# extract the compressed files and install
26+
RUN python -m zipfile -e /app/master.zip /app/ && \
27+
cd aura-props-master/python && \
28+
python setup.py install
29+
30+
# Add the source code last to ensure that the rebuild is as quick as possible
31+
ADD . /app
32+
33+
ENTRYPOINT ["/bin/bash", "-c"]
34+
CMD cd /app
35+
36+
# To run, use the following commands:
37+
# docker run -d --name imageanalysis -v location/on/your/computer:/data imageanalysis
38+
# docker exec -it imageanalysis /bin/bash

docker-compose.debug.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '2.1'
2+
3+
services:
4+
imageanalysis:
5+
image: imageanalysis
6+
build:
7+
context: .
8+
dockerfile: Dockerfile
9+
ports:
10+
- 3000:3000

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '2.1'
2+
3+
services:
4+
imageanalysis:
5+
image: imageanalysis
6+
build: .
7+
ports:
8+
- 3000:3000

environment.yml

2.25 KB
Binary file not shown.

scripts/project_runner.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,17 @@ def standard_project(project_dir, camera, max_camera_angle, detection_options, m
7575

7676
if __name__ == "__main__":
7777
parser = argparse.ArgumentParser(description='Create an empty project.')
78-
# parser.add_argument('--project', required=True, help='Directory with a set of aerial images.')
79-
parser.add_argument('--project', default = "D:\\test Project", help='project directory')
80-
# parser.add_argument('--camera', help='camera config file path')
81-
parser.add_argument('--camera', default = "C:\\Users\\Skywalker\\OneDrive - InFarm\\Repos\\ImageAnalysis\\cameras\\DJI_FC330.json", help='camera config file path')
78+
# Required parameters:
79+
parser.add_argument('--project', required=True, help='Directory with a set of aerial images.')
80+
parser.add_argument('--camera', required=True, help='camera config file path')
81+
parser.add_argument('--pix4d', required=True, help='use the specified pix4d csv file (lat,lon,alt,roll,pitch,yaw)')
82+
#
83+
# All other parameters are optional and will use the default provided:
84+
#
8285
parser.add_argument('--yaw-deg', type=float, default=0.0, help='camera yaw mounting offset from aircraft')
8386
parser.add_argument('--pitch-deg', type=float, default=-90.0, help='camera pitch mounting offset from aircraft')
8487
parser.add_argument('--roll-deg', type=float, default=0.0, help='camera roll mounting offset from aircraft')
8588
parser.add_argument('--meta', help='use the specified image-metadata.txt file (lat,lon,alt,yaw,pitch,roll)')
86-
# parser.add_argument('--pix4d', help='use the specified pix4d csv file (lat,lon,alt,roll,pitch,yaw)')
87-
parser.add_argument('--pix4d', default = "D:\\test Project\\pix4d.csv", help='use the specified pix4d csv file (lat,lon,alt,roll,pitch,yaw)')
8889
parser.add_argument('--max-angle', type=float, default=25.0, help='max pitch or roll angle for image inclusion')
8990
parser.add_argument('--scale', type=float, default=0.5, help='scale images before detecting features, this acts much like a noise filter')
9091
# detection options:

0 commit comments

Comments
 (0)