I am a mobile application developer.
I tried to use Flutter’s MLKit plugin and camera plugin for facial recognition, but it only worked well on certain devices.
I did some research and it seems that when using the MLKit and camera plugin together, you need to specify the NV21 format when using the camera plugin. I actually tried using NV21 and it worked fine.
(Reference) https://github.com/flutter-ml/google_ml_kit_flutter/issues/287#issuecomment-1549828057
However, I have a question.
**Why do some devices work with YUV420 (can recognize faces) and others do not?
**
- Confirmation that a terminal that does not work with YUV420 works with NV21.
- Verified that the terminal that was working with YUV420 also works with NV21.