android-motion-detection icon indicating copy to clipboard operation
android-motion-detection copied to clipboard

Exception while using images instead of camera

Open lokeshponnada opened this issue 5 years ago • 1 comments

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.

lokeshponnada avatar Jul 22 '19 06:07 lokeshponnada

@lokeshloke6 You ever figure this out?

victorcassone2 avatar Mar 26 '20 20:03 victorcassone2