Nona -z LZW -r ldr -m TIFF_m -o 21_21–2-pano -i 0. Written output to /opt/Pano/test1/tmp/project.pto Simply download this script on StereoPi and run it: installer.sh This script needs us to input parameters - namely, the file names of the fisheye photos to be stitched to equirectangular projection.īut first, we need to install all the required software for StereoPi. We also copy our script, stereopi-stich.sh. We take this file (in our case it’s called stereopi-template.pto) and copy it over to StereoPi. For this, we will need to use our project file, saved at step 6. To up our efficiency, we need to make this process automatic. Ok, so all of this is great- but do we really want to bother with each captured photo? This is exactly what we needed- an equirectangular projection of our spherical panorama! In the end, we get something that looks like this: After this, several windows appear, one of which will show the progress log.ĩ. This time around, we don’t tinker with“Corrections” and instead press “Save”.Ĩ. The image quality is at your discretion the default for this is 90. The LDR format (resulting picture format) should then be set to JPEG. A new window appears, in which we set a height of 1944, to which the width adjusts automatically. Then, we go back to the “Assistant” tab (if we happened to go out of it) and press “3. To save, go to“File” -> “Save as…” -> filename “stereopi-template.pto”ħ. And now for the most important step - saving the project for later use in the automatic stitching of all consecutive panoramas captured by our 2 fisheye cameras. At this step, our panorama is already starting to look like a panorama.Ħ. This begins the search for control points, which should find around 10–13 points. In the “Projection” tab, check that “Field of view” is set to 360x180 and “Equirectangular”. “Focal Length” should be set to 1,2 mm, and “Focal length multiplier” to 7,6x. Press “Load images…” and add two our files (21.jpg и 21–2.jpg).Ĥ. Now, we need to choose “Simple” in the “Interface” menu.ģ. So, we’ve downloaded, set up, and started up the software.Ģ. For this, we used Hugin, which is open-source and can be downloaded here: ġ. However, to start stitching, we would have to start with a desktop panoramic application, to prepare a template for future transformations. Here, a question arose: how could we combine these two images into one with an equirectangular projection, such as is supported by almost all panorama viewing software?Īfter a long investigation, we found a 360-camera project, which was used as a reference for our future code. Then, we capture a photo with each camera, and get these two pictures using raspistill: …and two wide-angle RPi (M) WaveShare cameras: …with Raspberry Pi Compute Module 3 Lite inside… Let’s start at the end: here’s our resulting creation - basically, a panorama. Today, we will use an inverted approach: cameras pointed in opposite directions, but equipped with wide-angle fisheye optics, each with a 200 degree field of view. In our last experiments, we installed cameras side-by-side with parallel axes and worked with stereoscopic effect. This time, we will create a 360 degree panoramic photo! In this article we will continue our experiments with the StereoPi stereoscopic camera based on the Raspberry Pi Compute Module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |