How to determine if an image is 360 photo?

The place to discuss development topics.
Discussions on the RICOH THETA API and SDK, image processing of spherical images, other hardware related topics, introduction of useful libraries, etc.

How to determine if an image is 360 photo?

Postby superboonie88 » 14 Apr 2017, 17:54

What's the most efficient way to determine if a JPEG is a 360 photo? Do you look for the presence of Photosphere XMP metadata? Is there a library for doing this?
superboonie88
 
Posts: 4
Joined: 06 Apr 2017, 01:24

Re: How to determine if an image is 360 photo?

Postby codetricity » 15 Apr 2017, 00:51

I don't know about the best way, but you can probably grab the info you want from metadata.
You can look at the data with these tools:

exiftool

ExifToolGUI

Once you've found the data you're looking for, you should be able to find a library to handle this.

It appears that Facebook looks for Make of "RICOH" and Model of "RICOH THETA S" to get 360 treatment. You can also check for ProjectionType of equirectangular See this:

If you created your own 360 photo or don't happen to know the Make and Model of the camera used to capture your photo, can simply set ProjectionType to "equirectangular," or use an known 360 camera's values as a trigger.
For example, setting Make to "RICOH" and Model to "RICOH THETA S" will work to get 360 treatment in Facebook, as long as the image's aspect ratio is 2:1.


source: Facebook360

In this view of the XMP data, you can see the Projection Type as equirectangular.

Image
codetricity
 
Posts: 611
Joined: 31 Jul 2015, 01:56

Re: How to determine if an image is 360 photo?

Postby superboonie88 » 17 Apr 2017, 12:05

Great info, thank you!
superboonie88
 
Posts: 4
Joined: 06 Apr 2017, 01:24

Re: How to determine if an image is 360 photo?

Postby codetricity » 17 Apr 2017, 15:15

Great that it was useful. As Facebook appears to look for Projection and Maker, then it might be a pretty safe bet for your application to look for the same things.

In the case of RICOH THETA images, the ratio also needs to be 2:1.

There's a bunch of libraries to grab the data. I have not tested any of the libs below. If you successfully test an app with THETA images, please consider contributing a community code snippet to show the technique for data parsing.

codetricity
 
Posts: 611
Joined: 31 Jul 2015, 01:56

Re: How to determine if an image is 360 photo?

Postby Viktorlovesnake » 29 May 2018, 06:51

I think you need to update the prgoram content
Regards,
v
Viktorlovesnake
 
Posts: 3
Joined: 12 Mar 2018, 12:13


Return to Development



All times are UTC


cron