Code Documentation

The following is autogenerated from the doc strings in the Python code. This section is not going to be useful if you are simply working with Benthic Photo Survey as a user. This documentation will be of use to those who want understand how the code works. ...or it might be of use if I get around to finishing it. Much of the code is poorly documented at the moment.

class photo_tagging.image_directory(dir_path)[source]
depth_plot()[source]

Create a plot of the depth profile with photo times and depths marked.

depth_temp_tag(verbose=False)[source]

Depth tag all the photos in the directory.

class photo_tagging.image_file(img_path)[source]

An object to make accessing image files and metadata easier.

datetime[source]

Try to get a datetime object for the image’s creation from the Exif.Photo.DateTimeOriginal value via pyexiv2.

depth_temp_tag(verbose=False)[source]

Get the depth and temp readings out of the db that match the photo’s origination time (considering that the photo’s time stamp is in the local timezone and the logs are in UTC) and write those values to the image’s exif data.

exif_dict(exclude_panasonic_keys=True)[source]

Return a dict with all exif and xmp keys and values.

geotag(verbose=True)[source]

Get a position that matches the time of creation for the image out of the database and set the exif data accordingly. We assume that the photo timestamp is local and the gps position is utc.

logger_depth[source]

Get the logged depth out of the db that matches the photo’s timestamp.

logger_temp[source]

Get the logged temperature out of the db that matches the photo’s timestamp.

position[source]

Look at the exif data and return a position object (as defined in gps_log_io). Return None if there’s no GPSInfo in the exif.

remove_all_tagging()[source]

You probably won’t need to do this but I did a few times during testing.

remove_depthtagging()[source]

You probably won’t need to do this but I did a few times during testing.

remove_geotagging()[source]

You probably won’t need to do this but I did a few times during testing.

remove_substratetagging()[source]

You probably won’t need to do this but I did a few times during testing.

remove_temptagging()[source]

You probably won’t need to do this but I did a few times during testing.

Indices and tables

Table Of Contents

Previous topic

Tutorial

This Page