Extract images from E57 with command line?

Feel free to ask any question here
hessel
Posts: 2
Joined: Fri Dec 20, 2019 3:46 pm

Extract images from E57 with command line?

Post 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!!
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extract images from E57 with command line?

Post by daniel »

Indeed I don't think this is possible currently.
Daniel, CloudCompare admin
rapper
Posts: 4
Joined: Mon Apr 30, 2018 2:55 pm

Re: Extract images from E57 with command line?

Post 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.
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extract images from E57 with command line?

Post 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!
Daniel, CloudCompare admin
rapper
Posts: 4
Joined: Mon Apr 30, 2018 2:55 pm

Re: Extract images from E57 with command line?

Post 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!
ep.survey
Posts: 1
Joined: Tue Sep 06, 2022 1:13 pm

Re: Extract images from E57 with command line?

Post by ep.survey »

Hi Rapper,
can you tell me how you extract panorama from e57 by GUI?
thanks
Thomas L.
Posts: 2
Joined: Wed Jun 22, 2022 2:34 pm

Re: Extract images from E57 with command line?

Post 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
SlavikusAstana
Posts: 1
Joined: Wed Sep 20, 2023 11:39 am

Re: Extract images from E57 with command line?

Post 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.
Darius_bd
Posts: 45
Joined: Fri Feb 08, 2019 10:28 am

Re: Extract images from E57 with command line?

Post 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.
vineg
Posts: 1
Joined: Mon Apr 22, 2024 4:07 pm

Re: Extract images from E57 with command line?

Post 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
Post Reply