Wrong coloring when passing YUV Data to jpeg in MSDK-v5.6.0

Completed

Comments

7 comments

  • Xaooo

    The drone used was Mavic 3E

    0
    Comment actions Permalink
  • DJI Developer Support
    Our engineers will be on holiday for the Chinese New Year(2-06~ 2-17), which may cause some delays in responding to your ticket. We appreciate your patience and apologize for the inconvenience this may cause you. You can first search for related articles in our knowledge base https://djisdksupport.zendesk.com/hc/en-us. We will answer your ticket as quickly as possible when the holiday is over.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you confirm if the YUV data corresponding to the photos in question also exhibit the same color issues?
    0
    Comment actions Permalink
  • Xaooo

    I corrected this by starting YuvDataListener only when i want to get the bitmaps and then, removing it. Furthermore, i wait receive 10 frames and then, i return the last one 

    0
    Comment actions Permalink
  • DJI Developer Support
    Understood. However, the method you are using does not directly fix the issue of different colors in the photos. Have you conducted further investigation in this regard? For example, is the abnormality in the YUV data itself causing the incorrect display? Or is there an issue occurring during the conversion to JPEG? I have tested on the sample code and have not replicated a similar issue so far, also waiting for 30 seconds.
    0
    Comment actions Permalink
  • Xaooo

    I didn't do a deep analysis, but I believe that the YUV data was coming with abnormalities. How do I check if they are abnormal? I still don't understand the YUV data structure very well.

    0
    Comment actions Permalink
  • DJI Developer Support
    If you have YUV data saved when there are color abnormalities, we can try to analyze it. However, you are using version 5.6, and YUV data has been optimized in version 5.8. If it is causing you significant trouble, you may consider updating to version 5.8. If you would like to conduct further analysis, I can provide you with an upload link for you to send us the YUV data.
    0
    Comment actions Permalink

Please sign in to leave a comment.