您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ### Goal
  2. There are a lot of bird-perspective greyscale FLIR-images made by a drone, which don't get stitched well together automatically.
  3. But we have geo-coordinates as metadata.
  4. It will be manual work, but maybe we can semi-automatize it.
  5. ### How it works
  6. The process has three steps:
  7. 1. Putting the tiles onto an SVG-canvas using the `gis-svg-stitcher.py` script.
  8. You may want to try around with the settings (scaling, rotation, etc) of the CLI tool until you get a useful SVG.
  9. 2. Manual Editing of the SVG.
  10. There are errors in the GPS data and FLIR data.
  11. Correct them manually using Inkscape or similar Vector Graphics software.
  12. 3. Converting the SVG canvas into a GeoTIFF using the `convert-svg-to-geotiff.py` script.
  13. The script produces 16-bit greyscale PNG-Files, representing the temperature, and exports the SVG into a big PNG image.
  14. This PNG image gets then projected and converted into a GeoTIFF, using temperature information from the grey-scale value of the PNG
  15. #### The two python scripts:
  16. * `gis-svg-stitcher.py` for putting the tiles onto an SVG canvas
  17. Example usage:
  18. ```
  19. python3 gis-svg-stitcher.py relative_path/to/the/image_files --scale=15 --base_rotation=115 --rotation_corr_left=28
  20. ```
  21. It produces a file called `map.svg`
  22. * `convert-svg-to-geotiff.py` for converting the (edited) SVG canvas
  23. Example usage:
  24. ```
  25. python3 convert-svg-to-geotiff.py relative_path/to/the/image_files/map.svg output.tiff
  26. ```
  27. ### Requirements
  28. * python3 + pip
  29. * inkscape
  30. * firefox
  31. ### Installation
  32. Install Python3, Inkscape and Firefox.
  33. Then clone repo and install script dependencies:
  34. ```
  35. git clone https://git.notice.at/redplanet/deep-crop.git
  36. cd deep-crop
  37. pip3 install -r requirements.txt
  38. ```
  39. ### How to use
  40. Use the scripts. Use the `--help` flag for more information:
  41. ```
  42. python3 gis-svg-stitcher.py --help
  43. ```
  44. and
  45. ```
  46. python3 convert-svg-to-geotiff.py --help
  47. ```
  48. ### Licence
  49. This work is licenced under GPLv3+.
  50. However, the scripts are built upon libraries and programs with some different licences:
  51. * lxml - BSD
  52. * wand - MIT
  53. * PyExifTool - GPLv3+/BSD
  54. * argparse - Python Software Foundation License
  55. * pyproj - MIT
  56. * flirimageextractor - MIT
  57. * opencv-contrib-python - MIT
  58. * numpy - BSD
  59. * pathlib - MIT
  60. * selenium - Apache 2.0
  61. * rasterio - BSD
  62. * Mozilla Firefox - MPL
  63. * Inkscape - GPLv2