Open jreedy-riis opened 1 month ago
Agent comment from yating.liao in Zendesk ticket #107571:
Thank you for providing the photos, but the color differences don't seem to be significant, and they won't affect the recognition of the image. What are you trying to achieve with NV21?
Thank you.
°°°
While working with the MSDK 5.8.0, we have noticed an issue present in the frame formats for the
cameraStreamManager.addFrameListener()
. It seems that theFrameFormat.YUV420_888
,FrameFormat.YUV444_888
,FrameFormat.YUY2
, andFrameFormat.NV21
produce a frame with incorrect colors. The only format that currently doesn't isFrameFormat.RGBA_8888
. In my testing, this became present in the very first alpha version of 5.8.0 and is still present in 5.9.0.I have attached sample images to show the issue. The first image is a screenshot from the
putCameraStreamSurface
, the second image is from theaddFrameListener
with the format ofRGBA_8888
and the last image is ofNV21
. As you can see, the image from the controller and theRGBA_8888
look very similar, however, when you compare it to the image taken fromNV21
, the image has colors that appear much darker, almost as if a filter is being applied on top. In addition, during my testing I have noticed details in darker areas of the image have become lost when usingNV21
.Because of this issue, I cannot use the
NV21
frame format directly, I must first convert theRGBA_8888
byte array to an NV21 byte array in order to get the correct format.In my further testing, it also looks like the deprececated
.addYuvDataListener
also experiences this same issue on 5.8.0, but not on 5.7.0.Image Pulled from DJI RC Plus
Frame with
RGBA_8888
Frame with
NV21