Skip to content

Any built-in way to map a (Latitude, Longitude, Altitude) onto a (x, y) pixel-position in the video-display? #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
petered opened this issue Mar 20, 2025 · 1 comment

Comments

@petered
Copy link

petered commented Mar 20, 2025

I want to get the (x, y) pixel location of a point on the video-display from the (latitude, longitude, altitude) of the point in space.

I know this is possible because DJI Pilot 2 has a pretty accurate display of the home location overlaid onto the video.

My question is: Is there some easy way to do this with SDK-5, or do I have to calculate it myself from gimbal pitch, yaw, bearing, camera zoom, etc?

Thank you,


我想从一个空间点的(纬度、经度、高度),获取它在视频画面上的 (x, y) 像素位置。

我知道这是能做到的,因为 DJI Pilot 2 就能很准确地把返航点叠加显示在视频画面里。

所以我想问一下:用 SDK-5 有没有比较简单直接的方法可以实现,还是说我必须自己用云台的俯仰角、偏航角、飞行朝向和镜头变焦等参数计算出来?

谢谢!

@petered petered changed the title Any built-in way to map a (Latitude, Latitude, Altitude) onto a display pixel? Any built-in way to map a (Latitude, Longitude, Altitude) onto a (x, y) pixel-position in the video-display? Mar 20, 2025
@dji-dev
Copy link
Contributor

dji-dev commented Mar 20, 2025

Agent comment from YIGUI LIU in Zendesk ticket #135735:

Dear Developer,

I'm sorry, MSDK v5 currently does not provide a method to obtain the (x, y) pixel location on the video display from the (latitude, longitude, altitude) of a point in space. You will need to implement it on your own.

Best Regards,
DJI Innovations SDK Technical Support Team

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants