-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi John!

John McKerrell wrote:
> What I've been concentrating on is the
> storing and managing of the photos.

Ok :) I don't mind who does it ;) as long as it gets done.

> I had seen openstreetphoto and saw
> that you had looked at this but I thought you were concentrating more on
> the aerial imagery. 

Yes, we are a rather 'diverse' group; initially we also thought it would
be cool to set up a WMS server not only for the aerial stuff, but also
for this kind of stuff, so you could import your photos in Merkaartor or
JOSM trivially. And still have them referenced to locations, as kind of
a base mosaic layer with photos.

> The sign reading software should be cool so what I
> would be looking to do is to provide a large set of photos that someone
> could run this software on when it's written. 

Tijs currently requires proper photo's with good coverage of the concept
for training. Anyone that brings it in, is basically helping to get a
better classifier. If we join this effort there might be a way how te
can help the editors by providing autocompletion of names based on the
photo sign recognition close by.

> I've had a slightly better
> look at the wiki now but I don't actually see where people can upload
> photos, is this available yet as that was where I was going to focus my
> efforts?

I have just created a reasonable public 'secure' ftp upload. The idea is
that you claim a user directory; and start uploading. The images are
automatically chowned. I have attached my exif2kml.php code that I use
to create the file for the mashup layer.

As for FTP:
ftp://openstreetphoto.org/

...and do your thing :)


I am all for mirroring the data. So we might just discuss offlist a good
mirror initiative.


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkpQxEkACgkQYH1+F2Rqwn3V6wCfSkXi2ETgpOnfNTE7S394LHuv
vBQAn15JxXDKYFjD+ItW6ul62s324OIJ
=WuR6
-----END PGP SIGNATURE-----
'; foreach ($paths as $path) { if ($handle = opendir($diskbase.$path)) { while (false !== ($file = readdir($handle))) { if (substr(strtolower($file), -4) == '.jpg') { $pathfile = $path.'/'.$file; $photo = $diskbase.$pathfile; $ex...@exif_read_data($photo); if ($exif === false) { echo $photo; } else { $lat = ''; $lon = ''; switch (count($exif['GPSLatitude'])) { case 1: $lat = $exif['GPSLatitude']; break; case 3: $lat = (evalu($exif['GPSLatitude'][0]) + (evalu($exif['GPSLatitude'][1]) / 60) + (evalu($exif['GPSLatitude'][2]) / 3600)) * ($exif['GPSLatitudeRef'][0] == 'N' ? 1 : -1); break; } switch (count($exif['GPSLongitude'])) { case 1: $lon = $exif['GPSLongitude']; break; case 3: $lon = (evalu($exif['GPSLongitude'][0]) + (evalu($exif['GPSLongitude'][1]) / 60) + (evalu($exif['GPSLongitude'][2]) / 3600)) * ($exif['GPSLongitudeRef'][0] == 'E' ? 1 : -1); break; } if ($lat != '' && $lon != '') { $thumbfile = $diskthumbbase.$pathfile; if (!file_exists( $thumbfile )) { $thumbWidth = 150; @mkdir($diskthumbbase.$path, 0755, true); $img = imagecreatefromjpeg( $photo ); $width = imagesx( $img ); $height = imagesy( $img ); $new_width = $thumbWidth; $new_height = floor( $height * ( $thumbWidth / $width ) ); $tmp_img = imagecreatetruecolor( $new_width, $new_height ); imagecopyresized( $tmp_img, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height ); imagejpeg( $tmp_img, $thumbfile ); } echo ' '.$file.']]> '.$file.' '.$thumbbase.$pathfile.' '.$lon.','.$lat.' '; $i++; } } } } closedir($handle); } } echo ' '; ?>
_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to