dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 126 forks source link

How to reset Sharpness and Noise to 0 via SDK 5? #346

Open brien-crean opened 1 month ago

brien-crean commented 1 month ago

When attempting to reset the Camera Sharpness and Noise levels to 0 I get the error: KEY_MISS_EXECUTION_FUNCTION

Code:

CameraKey.KeyDigitalDenoising.create().set(0, {
    Log.d("KeyDigitalDenoising", "KeyDigitalDenoising completed successfully")
}, { error ->
    Log.e("KeyDigitalDenoising",error.errorCode())
})

CameraKey.KeySharpness.create().set(0, {
    Log.d("KeySharpness", "KeySharpness completed successfully")
}, { error ->
    Log.e("KeySharpness",error.errorCode())
})

Is this the right way to reset these settings? These are the corresponding settings in DJI Fly:

Screenshot 2024-05-29 at 5 33 30 PM

Mini 3 Pro SDK Version: 5.8.0

brien-crean commented 4 weeks ago

I also tried resetting all camera parameters and the completion handler never runs. The command never completes.

CameraKey.KeyResetCameraSetting.create().set(null , {
    Log.d("KeyResetCameraSetting", "KeyResetCameraSetting COMPLETE")
}, {
    Log.d("KeyResetCameraSetting", "KeyResetCameraSetting ERROR ${it.errorCode()}")
})
dji-lyt commented 4 weeks ago

Please wait for a while for the sharpness and noise reduction settings, as we are currently confirming with the team. KeyResetCameraSetting is an action interface, so instead of using "set," you should use "performAction. image

brien-crean commented 3 weeks ago

Thank you @dji-lyt I will try that. We would prefer to just reset the sharpness and noise settings on their own if possible so I will wait for your reply on that question. Thank you

dji-dev commented 3 weeks ago

Agent comment from yating.liao in Zendesk ticket #108562:

KeySharpness is a Key for setting sharpness, but it is also an no open Key. I tested its effect on the DJI MINI 3 PRO and obtained the same results as the issue you described. I believe the current version of the SDK does not support settings for the DJI MINI 3 PRO.

In what scenarios would you use this feature? What purpose does it serve?

°°°