1
1
Fork
You've already forked Map_Plot_Picture
0
A shell script that turns any picutres to routes plotted on map.
  • Shell 100%
2026年03月15日 22:23:40 +08:00
demo first commit 2026年03月15日 22:23:40 +08:00
desmos_plot.sh first commit 2026年03月15日 22:23:40 +08:00
plot.kml first commit 2026年03月15日 22:23:40 +08:00
README.md first commit 2026年03月15日 22:23:40 +08:00

Desmos Plot Picture

Getting started

Installation

You will need two pieces of software, ImageMagick, and Potrace. These are available in most of the official repository.

Preparation

Download a picture you like (preferably cartoonish), and put it in the same directory as desmos_plot.sh.

Usage

Run the following command.

sh desmos_plot.sh

After this, the file plot.kml will be generated. Import plot.kml into any map to see the result!

More tweaks

If your plot contains too much, or too little detail, you may need to change the value in line 3 to 6 of desmos_plot.sh.

radius=0 #Imagemagick will choose the right radius for you
sigma=1.5 #Gaussian blur applied to the input image to reduce noise and smooth the edges
lower=5 #If lower is increased but upper is the same, the same number of edge components will be detected but their lengths will be shorter
upper=10 #If upper is increased but lower remains the same, less edge will be detected, but their lengths will be the same

You can also adjust the size and position of your image


scale=1000 # Adjust the size of the image
start_lat=10 # Coordinate of the bottom left corner
start_lon=20 # Coordinate of the bottom left corner

Result

Original Image Organic map plot