This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opencv_storage> | |
<calibration_time>"Thu Apr 21 10:10:51 2016"</calibration_time> | |
<image_width>4000</image_width> | |
<image_height>3000</image_height> | |
<flags>4</flags> | |
<camera_matrix type_id="opencv-matrix"> | |
<rows>3</rows> | |
<cols>3</cols> | |
<dt>d</dt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import numpy as np | |
import Image | |
import sys | |
def from_pil(pimg): | |
pimg = pimg.convert(mode='RGB') | |
nimg = np.asarray(pimg) | |
nimg.flags.writeable = True | |
return nimg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
### JP Stoermer | |
### DroneMapper.com | |
### | |
### Clean up | |
rm -rf ./*._tif | |
rm -rf ./mosaic.tif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
### DroneMapper.com | |
### Jon-Pierre Stoermer 04-01-2012 | |
### | |
### Cleanup | |
rm ./project_*.tif | |
rm ./project.pto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/* | |
* Change date_default_timezone_set to your flight timezone, you will also | |
* need to add a -geosync offset for exiftool on the command line if the | |
* time (hour) field doesn't match. | |
*/ | |
date_default_timezone_set('Europe/Berlin'); | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Python code found on web to convert LAT1 LON1 / LAT2 LON2 to a bearing/course. | |
# | |
from math import * | |
import sys | |
lat1 = float(sys.argv[1]) | |
lat2 = float(sys.argv[2]) | |
lon1 = float(sys.argv[3]) | |
lon2 = float(sys.argv[4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Uses CURL to return the elevation of a point via USGS Elevation Web Service. | |
*/ | |
$lat = 41.9816730; | |
$lon = -106.0949550; | |
function checkEle($lat, $lon) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "http://gisdata.usgs.gov/xmlwebservices2/elevation_service.asmx/getElevation?X_Value=" . $lon . "&Y_Value=" . $lat . "&Elevation_Units=METERS&Source_Layer=-1&Elevation_Only=true"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/* | |
* DroneMapper.com | |
* Quick EC2 Integration Script | |
* 2012-04-14 | |
* | |
* This script works from the command line and allows you to spin up an AWS EC2 | |
* instance that you have already created via the AWS console. | |
* |