DJICameraThermalAreaTemperatureAggregations min and max temperature points
Drone: Mavic 2 Enterprise Dual Mobile SDK: 4.14
I want to draw min and max temperature points inside an area and currently I do the following:
- call camera.setThermalMeasurementMode(.areaMetering)
- create view for measurement area and add it inside fpvViewController.fpvView
- call camera.setThermalMeteringArea(CGrect(x, y, width, height) where x = view.x / fpvView.width, y = view.y / fpvView.height, width = view.width / fpvView.width, height = view.height / fpvView.height
- Listen to func camera(_ camera: DJICamera, didUpdate temperatureAggregations: DJICameraThermalAreaTemperatureAggregations)
- Receive temperatureAggregations.minPoint and temperatureAggregations.maxPoint which have x and y between 0.0 and 1.0
I've tried this way, but always get an offset, when drawing points, so I have the following questions:
- Am i doing everything correct for setting measurement area?
- What coordinate system is used in DJICameraThermalAreaTemperatureAggregations min and max points? Is it relative to whole scene or just a measurement area?
- How to get an absolute position for max and min points inside fpvView?
Agent comment from Luce Luo in Zendesk ticket #48425:
Dear Customer,
Thank you for contacting DJI. I need to confirm it with the engineer first. It will cost some time and we will contact you again once any progress.
Thanks,
Luce Luo
DJI Developer Support
°°°
Agent comment from Luce Luo in Zendesk ticket #48425:
Dear Customer,
Thank you for contacting DJI.
The engineer reply that needs to use the below DJIVideoPreviewer's methods to convert the point.
Please check if any help for you.
Thanks,
Luce Luo
DJI Developer Support
inline-2017362368.png
°°°