Skip to main content
https://badge.fury.io/py/thetaexif.svg

thetaexif is a Python library for RICOH THETA image. It provides a EXIF reader class and a rectification tool.

Requirements

  • Python 2.7 (not support 3.x)

  • Pillow

  • Numpy

For rectification function:

  • Cython

  • Scipy or OpenCV Python bindings

Setup

$ pip install thetaexif

Usage

In Python

>>> from thetaexif import TagReader, tag
>>> reader = TagReader.load('image.jpg')
>>> reader[tag.FIRMWARE_VERSION]
'Rev0102'
>>> reader[tag.THETA_SUBDIR][tag.ZENITH_ES]
(20.0, -24.0)

In shell

$ python -m thetaexif image.jpg
RecordingFormat: 2
MakerNoteType: Rdc
FirmwareVersion: Rev0102
SerialNumber: 0000000000000000
RicohCameraType: 1
HDRType: 0
ZenithEs: (20.0, -24.0)
CompassEs: 22.5
AbnormalAcceleration: 0
FilmISO: (100, 0, 100, 0)
Aperture: (2.1, 2.1)
ExposureTime: (0.00025, 0.00025)
SensorSerial1: A0015348
SensorSerial2: A0015357

Rectification (requires Cython)

If you install thetaexif with Cython, theta-rectify command is available. It reads gyroscope and compass data and rotate images to rectify camera pose.

Rectify image.jpg and save to image_rectified.jpg:

$ theta-rectify image.jpg

Rectify image.jpg using compass data (rotate image to face the north):

$ theta-rectify -c image.jpg

Changelog

0.1 (2014-06-22)

  • Initial release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thetaexif-0.1.zip (12.3 kB view details)

Uploaded Source

File details

Details for the file thetaexif-0.1.zip.

File metadata

  • Download URL: thetaexif-0.1.zip
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for thetaexif-0.1.zip
Algorithm Hash digest
SHA256 cf017a415871c073e917cad14c4068911fffff7346db517c7dba8fb62cac56d5
MD5 36728f8acb11083a12cf8943ed66424d
BLAKE2b-256 6eb1a1dad2ec7dee09257b4422d51ac89e36275d614c46f460f94e466437c63d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page