开发者

succesive onPreviewFrame byte[]

开发者 https://www.devze.com 2023-02-25 10:40 出处:网络
开发者_JAVA百科I am capturing the onPreviewFrame in a byte[] and then saving this to compare with the next captured frame.Although the camera is pointed to an area with no change happening and I can s
开发者_JAVA百科

I am capturing the onPreviewFrame in a byte[] and then saving this to compare with the next captured frame. Although the camera is pointed to an area with no change happening and I can see on the display that there is no change succesive frames element by elemnet are different. Any suggestion why this should be so? Also I only want the grayscale and I understand that the first height * width bytes are grayscale data, is this correct>


Statistically, there cannot be an exact match. Check out Image comparison - fast algorithm for a way of comparing images.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号