Python script to stitch map images together?
Has anyone found or made a Python script that does a good job of stitching together images from a Dronelink map mission?
Simply stitching to a PNG would be sufficient.
I have about 120 images in my map mission, but could break it into sections if needed, and could shrink the images before stitching.
I tried this project but the results are poor and it breaks with a memory error if I have more than just a few images:
https://github.com/sachin-vs/UAV-Image-stitching
The memory error is probably fixable by shrinking the images but the quality of the successful stitches isn't good enough to bother trying I think.
Comments
7 comments
If all you want is to stitch the images together, you can't go wrong with Microsoft Image Composite Editor. Just for grins I threw 120 images from a mapping mission at it and it worked fine.
Setting up webodm on your system will provide a lot of benefits over a simple stitching though.
https://www.opendronemap.org/webodm/
Awesome, I'll check them out. And good point, I guess it doesn't need to be a Python script, looking for any method.
And I'd always be assembling the same mapping mission, so it could be something that stitches the images the same way every time.
Wow, Microsoft Image Composite Editor is surprisingly good. Does a perfect job stitching my map images together. If only I could run it from commandline for automation, it would be perfect.
I don't imagine anyone knows of a way to do this in an automated fashion? Ideally Python? I need to make a script to process a directory of map images then overlay a PNG on it and save it. I know I can do it manually but I'm trying to set up a system that will be repeated often in exactly the same way by someone who isn't very good with computers.
Well after a few times using it, looks like Image Composite Editor doesn't work for my purposes since it makes a completely different looking map with completely different orientation every time. So if I fly two identical map missions the resulting stitched image will be a different shape, orientation and even aspect ratio.
Try WebODM - that will do what you want and (depending how technically inclined you are) can be free or $57 for the installer.
I'll second this, and they have a great forum if you need any help or advise
You can also use this tool... it's very cheap and the results are great. The good thing is that there is no monthly fee, you pay for processing.
https://maps4me.com.br/
Please sign in to leave a comment.