1
Python and Java API / Import OPK from ASCII file and convert them to YPR
« on: September 19, 2016, 02:40:12 PM »
Hello,
Is it possible to import OPK from ASCII file, and then convert them to Yaw,Pitch, Roll using script below:
I have no idea how to import OPK from ASCII file (ID, X, Y, Z, omega, phi kappa) without numpy...
I count on your support
Is it possible to import OPK from ASCII file, and then convert them to Yaw,Pitch, Roll using script below:
Code: [Select]
#to convert opk into ypr
yaw, pitch, roll = PhotoScan.utils.mat2ypr(PhotoScan.utils.opk2mat(PhotoScan.Vector((omega, phi, kappa))).t())
I have no idea how to import OPK from ASCII file (ID, X, Y, Z, omega, phi kappa) without numpy...
I count on your support