![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1394554/image.png)
Extract orientation data from geotagged images in Matlab
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to read/extract yaw pitch roll values from metadata stores at aerial images. The images were taken by DJI drones. It seems that imfinfo, rawinfo functions cannot do it. What I can get is GPS infromation only, no orientation data is available. Some one knows any function from Matlab work for this? Thanks
댓글 수: 0
답변 (1개)
Suraj
2023년 5월 26일
Hi Kuzan
I understand that you're trying to read yaw, pitch, roll values from images captured by a DJI drone.
Starting with R2023a, you can use the "imfinfo" function to read XMP metadata from JPEG files which includes gimbal and flight speed metadata that is present in images taken by a DJI drone.
You can use the following code snippet to extract the mentioned data -
metadata = imfinfo('filename.jpg');
metadata.XMPData.drone_dji
Here's the output from a sample image I tried:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1394554/image.png)
Useful links -
Hope this helps.
Regards,
Suraj.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!