16
Python and Java API / Add known Pitch/Roll/Yaw to Exif and Auto-Rotate Model
« on: December 29, 2017, 11:35:33 AM »
Hello Alexey,
I've been programming with python in the last 2 weeks and created some nice personal tools for Photoscan.
Now I want to write some code which should do the following:
I know some "correct" values of my cams orientation from my selfmade IMU. These are:
- yaw+pitch+roll [degrees]
- altitude [m]
- gps coordinates
- accuracy for each value
Of course I want to let PhotoScan process these values to have (pre-)scaled but well rotated model.
How can I import these values to my cams?
I don't know where to store Pitch,Roll,Yaw ...
To give you an example:
Please see the EXIF of a MavicPro-IMU attached. I guess the orientation PhotoScan reads from EXIF are not the ones it should read - am I right?
I can access Pitch_Value = chunk.cameras[camnum].photo.meta["DJI/GimbalPitchDegree"]) but I don't know where to store these values and how to tell PhotoScan to use them for alignment,
Please let me know if you can help me with that! Thank you!
All the best for the new year!
I've been programming with python in the last 2 weeks and created some nice personal tools for Photoscan.
Now I want to write some code which should do the following:
I know some "correct" values of my cams orientation from my selfmade IMU. These are:
- yaw+pitch+roll [degrees]
- altitude [m]
- gps coordinates
- accuracy for each value
Of course I want to let PhotoScan process these values to have (pre-)scaled but well rotated model.
How can I import these values to my cams?
I don't know where to store Pitch,Roll,Yaw ...
To give you an example:
Please see the EXIF of a MavicPro-IMU attached. I guess the orientation PhotoScan reads from EXIF are not the ones it should read - am I right?
I can access Pitch_Value = chunk.cameras[camnum].photo.meta["DJI/GimbalPitchDegree"]) but I don't know where to store these values and how to tell PhotoScan to use them for alignment,
Please let me know if you can help me with that! Thank you!
All the best for the new year!
