1 | initial version |
Return value of onCameraFrame
call back must be RGBA(!), not BGRA image. You call cvtColor with COLOR_RGBA2BGRA conversion and swap color channels. Exclude this and colors will be ok. Most OpenCV algorithms expect BGR images, but in your case drawKeypoints will work with RGBA too. The only thing you need to do is to swap colors in redcolor
vector accordingly.