Comments (4)
Agent comment from William Wong in Zendesk ticket #34039:
Dear Client
Thank you for contacting DJI.
Hi, Could you confirm that your model is Mavic 2 Enterprise or Mavic 2 Enterprise Dual? Only Mavic 2 Enterprise Dual has thermal camera. To access the thermal camera, you can call getCameras function.
Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support
from android-fpvdemo.
First of all, thank you very much for your quick response.
I have the Mavic 2 Enterprise Dual. I try to change between thermal or visual cameras basing on this stack overflow response;
But instead of use the "fetchCamera()" function i'm using the "getCameraInstance()" of your example. When I change to thermal mode, using the method setDisplayMode with parameter THERMAL_ONLY, the DJIerror tolds me "not supported":
Camera camera = FPVDemoApplication.getCameraInstance();
camera.setDisplayMode(SettingsDefinitions.DisplayMode.THERMAL_ONLY, new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError error) {
if (error == null) {
showToast("Switch to thermal Succeeded");
} else {
showToast(error.getDescription());
}
}
});
The goal is to be able to switch between the cameras and access each callback.
Thank you very much for your time !!
Best regards.
from android-fpvdemo.
Hi !
I have already managed to successfully change cameras by getting the camera with index 1, that is the thermal :
BaseProduct base = FPVDemoApplication.getProductInstance();
Camera camera = base.getCameras().get(1);
And using the above method switch between msx, visual or thermal.
Best regards!
from android-fpvdemo.
Agent comment from William Wong in Zendesk ticket #34039:
Dear Client
Thank you for contacting DJI.
Yes, you are correct. You get un support initially because you use getCamera function. That will give you the optical camera which does not support thermal functions. For Enterprise Dual, there are 2 cameras. So you have to use getCameras function to get the postion 1 camera which is the thermal camera and everything start working. Good luck for your further development and feel free to come to us if you have any queries.
Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support
from android-fpvdemo.
Related Issues (20)
- why I can't find the capture photo in my device(可以进preview界面,拍照也显示成功,但是在本地手机上找不到对应照片) HOT 2
- getCamera() returns null HOT 1
- Can't start the app in AVD [com.dji.FPVDem: No implementation found for java.lang.Object[] com.secneo.sdk.Helper.makeInMemoryDexElements]
- 手机root和关闭selinux权限,运行demo,闪退 ,手机root和关闭selinux权限有影响么
- Nothing really useful happens HOT 1
- Q: yuv decoding and preview - mutually exclusive?
- Problem with dji.sdk.sdkmanager.DJIGlobalService HOT 7
- an error in the example
- 4.11 build crashing randomly. HOT 1
- Error when capturing from camera on Mavic 2 Enterprise HOT 2
- Display Image in OpenCV HOT 2
- Question about Thermal Image reference frame HOT 2
- 4.13.1
- Android-FPVDemo HOT 3
- Failing to install due to USB accessory dependency HOT 1
- 能否更改实时视频数据的分辨率? HOT 2
- Camera is busy or the command is not supported in the Camera's current state HOT 3
- 安卓设备用usb连接遥控器后没有视频流
- App crashes on start - "Unable to create application com.dji.FPVDemo.MApplication: java.lang.NullPointerException"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-fpvdemo.