I want to use CameraSource
to detect some visual code (which is not any kind of Barcode). I implements Detector
and its detect(Frame frame)
method. However, when I call frame.getBitmap()
in the detect
method, it always returns null
. I know Frame
has another method, getGrayscaleImageData()
, but detecting the code needs color information. It seems that CameraSource
only pass the gray-scale image data to its underlying detector.
So, is there a way to detect this code by CameraSource
? Or should I abandon CameraSource
and find another way?