Forum

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
General / Re: Agisoft Viewer - Camera path file
« Last post by Alexey Pasumansky on April 17, 2019, 01:40:48 PM »
Hello TMG,

Can you please provide the generated path file? I'm not observing this issue with some random animation exported from Blender.

Also note that in the latest version of Metashape it is possible to create the animation track manually via interface by adding the current viewpoint to the track as a keyframe. To enable the display of the keyframes in the Model view turn on the Animation in the Model Menu -> Show/Hide Items section.
72
Hello harrytwomey,

Aren't these values loaded automatically to the Reference pane, if you enable "Load Camera Orientation Angles from XMP meta" and "Load Camera Location Accuracy from XMP meta" in the Advanced Preferences tab?
I think they were supported already in PhotoScan Pro 1.4.5.
73
General / Re: Dense Point Cloud generation // far slower in Metashape?
« Last post by Alexey Pasumansky on April 17, 2019, 01:32:43 PM »
Both in Standard and Professional editions of Metashape it is possible to create a new Tweak (via Advanced preferences tab -> Tweaks button) with the following name:
Code: [Select]
main/dense_cloud_max_neighborsThen set it's value to 60, for example. The default value is -1, which means that there's no limit.
74
Python Scripting / Re: Setting camera accuracy with Python
« Last post by harrytwomey on April 17, 2019, 01:08:09 PM »
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))
75
General / Re: Where to store Roll Pitch Yaw data in EXIF for import into PS
« Last post by harrytwomey on April 17, 2019, 01:07:35 PM »
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))
76
General / Re: Not all points are imported
« Last post by Alexey Pasumansky on April 17, 2019, 12:57:41 PM »
Hello mankoff,

Can you send the file that you are using for import to support@agisoft.com, so that we could check it on our side?
77
General / Re: Lens question
« Last post by Arie on April 17, 2019, 12:14:46 PM »
Hi pbourke,
the focal length of a lens can change when adjusting the focus. This is a well-known effect named "focus breathing".

In general, I usually use only manual focus, i.e. I stay at a constant distance to the object-of-interest. If I need some additional close-up shots, where I am required to refocus, I create a second calibration group for the images with the adjusted focus in Agisoft to compensate for the change in focal length.

Hope that helps.
All the best,
Arie.
78
General / Re: Where to store Roll Pitch Yaw data in EXIF for import into PS
« Last post by harrytwomey on April 17, 2019, 11:47:02 AM »
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
79
Feature Requests / Re: Latvia Geoid
« Last post by ginnnts on April 17, 2019, 11:39:27 AM »
Thank you a lot!
It works great!
80
Python Scripting / Re: Setting camera accuracy with Python
« Last post by harrytwomey 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
Pages: 1 ... 6 7 [8] 9 10