Page 1 of 2
Extract images from E57 with command line?
Posted: Wed Jul 29, 2020 9:07 pm
by hessel
Is it possible to use CC in command line mode to extract images from E57 files?
(I'm able to do this successfully within the CC GUI, but I am looking for a command line solution?)
I can't seem to find a way to do it in the documentation..
Thank you!!
Re: Extract images from E57 with command line?
Posted: Wed Jul 29, 2020 9:33 pm
by daniel
Indeed I don't think this is possible currently.
Re: Extract images from E57 with command line?
Posted: Sun Nov 21, 2021 2:45 am
by rapper
Hi Daniel,
I also found myself needing to extract a lot of panorama images from e57. I was thrilled CC's UI allowed me to do it, so thanks much for that!
But indeed it was one at a time. And I will be doing much more of this in the future. So a -SAVE_IMAGES command would be useful. Any chance this is on the TODO list?
I code in an obscure language so can't be much help on that request. And I'd be willing to extract the files myself if I understood what I'm looking at.
The e57's XML gives all the info needed to extract the image's blob data (name, format, offset, length, etc). And I verified the head and tail bytes of the e57 blobs conform to jpeg files.
But when I extracted the bytes to a file and gave it a .jpg extension, I got a file that was about 3X the size of CC's and it displayed nothing but a green bar at the top.
I clearly know more about 3D things than 2D image files. :/ Any advice would be welcomed.
Re: Extract images from E57 with command line?
Posted: Mon Nov 22, 2021 8:23 pm
by daniel
I guess we can add it to the TODO list of course (
https://github.com/CloudCompare/CloudCo ... C/TODO.txt).
But as you can see, it's already pretty crowded!
Re: Extract images from E57 with command line?
Posted: Tue Nov 23, 2021 7:50 pm
by rapper
Thanks for adding it, Daniel. Yes, I can see the list is quite long, and includes requests I'd also like to see.
Near-term, I'll either extract them manually or endeavor to learn enough about how CC is doing it to duplicate the process in a small utility program.
Cheers!
Re: Extract images from E57 with command line?
Posted: Tue Sep 06, 2022 1:18 pm
by ep.survey
Hi Rapper,
can you tell me how you extract panorama from e57 by GUI?
thanks
Re: Extract images from E57 with command line?
Posted: Thu Jun 08, 2023 5:40 pm
by Thomas L.
Hello all,
A bit late I know, but there's a nice little program at
http://libe57.org/download.html called e57unpack.exe which can extract the pictures in a breeze alongside orientation parameters (translations and rotations). Make sure you use the --no-points option otherwise it will extract the point cloud data in a csv file which takes forever.
Thomas
Re: Extract images from E57 with command line?
Posted: Wed Sep 20, 2023 11:41 am
by SlavikusAstana
Thomas L. wrote: ↑Thu Jun 08, 2023 5:40 pm
Hello all,
A bit late I know, but there's a nice little program at
http://libe57.org/download.html called e57unpack.exe which can extract the pictures in a breeze alongside orientation parameters (translations and rotations). Make sure you use the --no-points option otherwise it will extract the point cloud data in a csv file which takes forever.
Thomas
Can you give me a sample of how exactly to write a command to convert a panorama to a JPG?
Thanks.
Re: Extract images from E57 with command line?
Posted: Fri Feb 23, 2024 3:08 pm
by Darius_bd
.
It might be a bit late, but for anyone who stumbles upon this thread the way is to download the libe57 software, and inside the "bin" folder one can find the e57unpack.exe. Then is just a matter of running via the command line the following command:
Code: Select all
e57unpack.exe source-file-name.e57 --no-points
This will create a folder of the same name as the source file and inside there will be the cube faces images of all scans inside the E57. This will only work if the E57 itself has images as panoramas, like it happens with pointclouds created with Leica scanners.
Re: Extract images from E57 with command line?
Posted: Mon Apr 22, 2024 4:15 pm
by vineg
Thanks, Darius_bd!
Just want to note, that libe57 V1.1.312 from the
http://www.libe57.org/ website seems to not have extracting images feature.
I've successfully used later 332 build from sourceforge
https://sourceforge.net/projects/e57-3d ... n/1.1.332/
Regards, Egor