android-motion-detection
android-motion-detection copied to clipboard
Exception while using images instead of camera
An indexOutofBounds Exception is thrown if the detector is fed with continuous images instead of camera as the input source.
consume(bitmap,bitmap.width,bitmap.height)
results in an indexoutofbounds exception at
int y = (0xff & (yuv420sp[yp])) - 16; in decodeYUV420SPtoLuma method
Are the width and height related to camera instead of the bitmap.
@lokeshloke6 You ever figure this out?