Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - harrytwomey

Pages: 1 2 [3]
31
i think i did it

Code: [Select]
# Script to add exif for SODA Meta data for all cameras in the active chunk.

import PhotoScan

# Checking compatibility
compatible_major_version = "1.4"
found_major_version = ".".join(PhotoScan.app.version.split('.')[:2])
if found_major_version != compatible_major_version:
    raise Exception("Incompatible PhotoScan version: {} != {}".format(found_major_version, compatible_major_version))

def sodaADD():
"""
Reads Soda/accuracy/YPR
"""
doc = PhotoScan.app.document
if not len(doc.chunks):
raise Exception("No chunks!")
print("Script started...")
chunk = doc.chunk

for camera in chunk.cameras:
vect = PhotoScan.Vector((10, 10, 10))
locationAccuracy = PhotoScan.Vector((10, 10, 10))
if 'Sensefly/Yaw' in camera.photo.meta.keys():
vect[0] = float(camera.photo.meta["Sensefly/Yaw"])
if 'Sensefly/Pitch' in camera.photo.meta.keys():
vect[1] = float(camera.photo.meta["Sensefly/Pitch"])
if 'Sensefly/Roll' in camera.photo.meta.keys():
vect[2] = float(camera.photo.meta["Sensefly/Roll"])

print(vect)

if 'Sensefly/GPSXYAccuracy' in camera.photo.meta.keys():
locationAccuracy[0] = float(camera.photo.meta["Sensefly/GPSXYAccuracy"])
if 'Sensefly/GPSXYAccuracy' in camera.photo.meta.keys():
locationAccuracy[1] = float(camera.photo.meta["Sensefly/GPSXYAccuracy"])
if 'Sensefly/GPSZAccuracy' in camera.photo.meta.keys():
locationAccuracy[2] = float(camera.photo.meta["Sensefly/GPSZAccuracy"])

print(locationAccuracy)

camera.reference.rotation = vect
camera.reference.location_accuracy = locationAccuracy

chunk.updateTransform()
PhotoScan.app.update()
print("Script finished")

label = "Custom menu/Add S.O.D.A Exif Data"
PhotoScan.app.addMenuItem(label, sodaADD)
print("To execute this script press {}".format(label))

32
hi could you possible have an example script, thatwe could change the vairable to match the values in our exif, we would like to import yaw pitch roll, also xy accuracy and z accuracy

33
Python and Java API / Re: Setting camera accuracy with Python
« on: April 17, 2019, 11:23:03 AM »
Would it be possible to modify this to extract accuracy from exif of rtk-gps tagged photos and assign these values to each camera

We have a ebee drone with soda camera, example extracted exif using ExifTool by Phil Harvey http://owl.phy.queensu.ca/~phil/exiftool/
The images have all the useful info but photoscan does not read it in with the photos

I uploaded some images for reference
https://wetransfer.com/downloads/17fbb4c07ca291ea11c177ff3c3f178520190417082049/4bbe37c0487ce6e00e4c2dd0c714c82320190417082049/421c22

34
Thank paulo, is is a great help

35
Hello Paulo

It works

can you explain how you makes these grid to tiffs, is it in photoscan or something else. it would be helpful for everyone if you did a youtube video

thanks again.


36
So we checked it against GridInquest, which is the official app for doing transformations between wsg84 and Malin head(OSGM15).
We are getting results that's are very close to correct, yet there seem to be a error of between 10 to 14mm between the two transformations in the height field only, Easting and Northing coords match good


The error seem to be less as the data points are closer to the west of ireland, 5 - 7mm
The error seem to be less as the data points are closer to the east of ireland, 3 - 5mm

Do you have any idea where this error in coming from.


37
Hello Alexey Pasumansky

I am unsure what a undulation grid file is, as everywhere I searched it is mentioned in reference to the geoid goetiff. which is what I thought a undulation grid was??

I sending you the raw exif exports, which it the wgs84 from the drone. And a correct version transformed by the official the OSI application. And the Incorrect version transformed by photoscan using the default itm grid.
Also the .prj I tried to create after downloading the osgm14 geoid model from you site

Hopefully you can help

38
We have a DJI too, so this information is very useful

But we also have a SenseFly Ebee, with rtkppk, so we get exif cords that are in WGS84 that are sub 25mm accuracy
when we bring them into photoscan and translate to ITM the error in alignment is far worse than in before converted

39
We have tried and tried, downloaded the geoid, making .prj files, and we still have no solution

We have drones that geotag photos using rtk, accuracy less than 20mm, an we would like to transform the coordinates into the correct Irish Transverse Mercator, with Malin Head Datum, before aligning them

Even after the downloading of the goeid model osgb36_osgm15.tif there is no improvement, still the tranformed coordinates are off by maybe 50 meter in height

Can some help us please??

40
General / Re: Filter Images by Markers not working
« on: December 21, 2018, 07:32:18 PM »
photo viewer was off!

Is there a way to import the full exit, I am not getting yaw pitch roll, or the gps corrections

41
General / Filter Images by Markers not working
« on: December 21, 2018, 07:30:45 PM »
Using version 1.4.4.6848

Filter by marker does not work, I have tried all this http://www.agisoft.com/forum/index.php?topic=9569.0
Filter image by anything(point )

Pinning three of the markers by hand in 3 images each
and making a low poly mesh from sparse pointcloud

project contains 1480 images flown with Sensefly camera, image have gps data, image errors in excess of one meter using gps data, gps data was rtk linked for accuracy
, flow in high wind, missing or blurry images excluded from project


Sometimes when pinnigng gcps, coordnate system for markers woulf rest to wsg84, marker collected in itm(EPSG Code: 2157)

Any Ideas?


Pages: 1 2 [3]