Capturing and preprocessing photos from Ricoh Theta S for Mapillary

Ricoh Theta S camera has a two lens, and can make a 360×180 panoramic photos every 8 seconds.

Walking equipment

You need an anything selfie-stick and gpx logger in your mobile device.

Cycling equipment

  • Backpack with side straps and side pocket
  • Anything tripod. May be tripod for studio light, without side handle will be better.
  • Selfie-stick, mounted beetwen tripod and camera.
  • Software gpx logger in mobile device, or hardware gpx logger.
  • External USB battery
  • Optionally: Camera Thread Screw Rod for allow connect USB power cable while camera mounted at tripod.

Capturing

  1. Seal all LEDs at camera by duct tape, for your less visible.
  2. Make sure it gpx logger is on at maximum record frequency.
  3. Begin capture at timer mode, with shutter sound.
  4. Turn off WiFi at camera (middle side button), and in your mobile device too, for power save.
  5. Just go. Don’t think about the camera tilt, photos can be rotated at pre-processing.

Avoid tree branches while cycling! (i now have a scratches at lens, их можно заполировать пастой ГОИ?)

Avoid rain!

Pre-processing at PC

You need:

  • JOSM with plugins photo_geotagging, photo_adjust
  • Hugin (nona.exe from Hugin)
  • exiftool
  • Total Commander with exif plugin, GeoSetter, or some other program, where you can find photos with null “GPS Img Direction” tag

Camera produces a 360×180 frames with Google Photosphere tags in EXIF:

exiftool R0038875.JPG

Date/Time Original              : 2016:09:17 19:42:26
Accelerometer                   : 3 -4.5
Compass                         : 135
GPS Img Direction Ref           : True North
GPS Img Direction               : 135
Full Pano Height Pixels         : 2688
Full Pano Width Pixels          : 5376
Pose Heading Degrees            : 135
Pose Pitch Degrees              : -4.5
Pose Roll Degrees               : 3.0
Projection Type                 : equirectangular
Use Panorama Viewer             : True
GPS Position                    : 55 deg 48' 50.44" N, 37 deg 36' 6.91" E

So we have “Use Panorama Viewer” – describe it is a photosphere, GPS Position – it gets from smartphone, but we turn off WiFi for power save, GPS Img Direction (some times, after turn on camera it field is empty, so we need set it manually), and “Accelerometer” – value of this tag we can send to nona.exe, witch will rotate shot, even if the camera was tilted, or upside-down.

  1. Add gps coordinates into photos, using gps tracks and photo_geotagging plugin in JOSM. Also you can correct here position manually, if signal was bad. Save positions in EXIF.
  2. Find all photos with empty value in “GPS Img Direction” tag. I can’t find a Ubuntu software for this, so i use a exif.wdx plugin for Total Commander for MS Windows.
  3. Drag-and-drop these files in JOSM. Set direction (azimuth) for center of photos with Ctrl key, and save positions in EXIF.
  4. photo_adjust plugin may be produces a strange values for “GPS Img Direction” tag, so it not acceptable for Google Street View program (i want to upload photos to many sites, not just one). So i run all photos through

exiftool -overwrite_original -P -ProjectionType="equirectangular" -UsePanoramaViewer="True" -"GPSImgDirection<$exif:GPSImgDirection" -"PoseHeadingDegrees<$exif:GPSImgDirection" -"CroppedAreaImageWidthPixels<$ImageWidth" -"CroppedAreaImageHeightPixels<$ImageHeight" -"FullPanoWidthPixels<$ImageWidth" -"FullPanoHeightPixels<$ImageHeight" -CroppedAreaLeftPixels="0" -CroppedAreaTopPixels="0" "' + filepath + '"

  1. Correction of camera tilt. Ricoh Theta viewer and Google Street View rotate photos at client, we must rotate photos before uploading using nona.exe Try to rotate one picture in hugin, open a .pto file, and you must generate it for all photos, and run it through nona exe. Also you need reset “Accelerometer”, “Pose Pitch Degrees”, “Pose Roll Degrees” tags, using exiftool.
  2. That’s all, now you upload photos to Mapillary with web-uploader, or upload scripts.

Ricoh Theta S correction python scripts at github: https://github.com/trolleway/theta_tools

Саратов 2016

В статьях в интернете пишут, что в Саратове разруха, да и от Самары от не очень отличается В принципе с туристической точки зрения он мне понравился больше Самары.

Въезд в Саратов с моста.

Планировка города обусловлена наличием двух гор. На них можно залезть, на одной из них просто лес, на другой устроен парк Победы со смотровой площадкой и открытой экспозицией техники, как в Москве.

В парке летом 2016 года поставили в качестве памятника и троллейбус, но до него мы не дошли, потому что транспорт в тот парк ходит плохо, нужно закладывать в 2 раза больше времени, чем кажется по карте.

На Волге имеется большой городской пляж. Он на острове, через который идёт мост Саратов – Энгельс. С моста есть только пешеходные лестницы, поэтому на пляже нет ни одного автомобилиста. Очень удобно!

Речной вокзал порождает короткие прогулки на судах-катармаранах 1980-х годов Отдых-1 и Отдых-2, и 2 пригородных рейса вниз – утром туда, вечером – обратно.

Трамвай в городе убивают, но ещё не до конца. На одном, напряжённом коридоре из центра на северо-восток (маршрут 3) даже используются системы из 71-605.
На юге города несколько трамвайных линий, но маршруты там проложены так, что ведут из окраины к локальному центру (Орджоникидзе), а в основной центр люди ездят только на автобусах.
В центре было 2 линии, но их недавно закрыли, в 2009 я их ещё немного поснимал. На восточной окраине есть 2 “дачных” маршрута, оставшихся с дореволюционных времён – подвозка из дачного массива к магистральной трамвайной линии.

Интерес представляют 2 трамвайных перекрёстка с вынесенными стрелками. В СССР такое есть ещё только в Витебске, а вот в европейских системах такое решение используется чаще. За 1 цикл можно пропустить больше вагонов.

Узел у депо:

Путевое хозяйство убито как обычно, но скорости пока высокие.

Салон 71-608К

Троллейбусная линия по мосту в Энгельс убита окончательно. Остальной троллейбус убит не совсем, много Оптим, и интервалы хорошие.

Архитектуры интересующего меня периода – 1910-е и 1920-е в городе оказалось гораздо больше, чем все думают, вспоминая название этого города. Я сохранил координаты зданий в системе NextGIS, что бы смотреть их “в поле” на Android в NextGIS Mobile, и интересных мне зданий получилось около сотни. (данные веб-карта)

Интерьер Крытого Рынка, 1914.

1-й жилучасток завода “Комбайн”. Тут находятся интересные с точки зрения формы жилые дома в стиле конструктивизм, но очень сильно убитые. Несколько домов стоят с табличками “под снос”, другие уже снесены, но их обломки так и лежат на площадках.

Street view for Apsheronsk narrow gauge railway

In 2012 Google Maps was get huge promotion: they hired a special train at some of Swizerland mountain railway, and make a streetview from flatcar.

In 2016 i am repeat this technology stack with panoramic camera Ricoh Theta S at Apsheronsk narrow-gauge mountain railway.
Continue reading