How can i add effects to data(grayscale) before send for detect function?
B4X:
Sub Camera1_Preview (data() As Byte)
'i should apply grayscale effect here
Dim bb As JavaObject
bb = bb.InitializeStatic("java.nio.ByteBuffer").RunMethod("wrap", Array(data))