I'm using this vuforia code
if (imageRGB565 != null) {
int imageWidth = imageRGB565.getWidth();
int imageHeight = imageRGB565.getHeight();
int stride = imageRGB565.getStride();
ByteBuffer pixels = imageRGB565.getPixels();
byte[] pixelArray = new byte[pixels.remaining()];
pixels.get(pixelArray, 0, pixelArray.length);
saveCapturedImage(pixelArray, imageWidth, imageHeight);
}
here I get byte[] (pixelArray) and the frame format is set to RGB565. So I converted it to bitmap and used RGBLuminance for bitmap version. I tried pixel version too but it didn't detect but bitmap version detected. The problem is the performance is poor and is there any way to improve it.
Thanks for your help.