c# - Comparing 2 bitmaps taken 1 second after another -
i thinking writing simple program compare 2 argb array pixel pixel. both images same resolution, taken same camera source.
since camera being hold still, expecting it's simple program compare bitmap source by
- convert every pixel gray scale pixel
- literally compare each pixel position 0 n.
- have isclose method approximate +/- 3.
the result have error bits. when taking jpeg out of , view naked eye, seem identical (which case).
why think seeing error when comparing them?
btw - trying write basic version of motion detection.
if tracking known object can pre-process images before compare them. example, if it's ball you're tracking , appears brighter surroundings, can threshold greyscale image produce image black or white. detect known "contours" (see opencv documentation). once contour after (the ball) in image, can compare location of in each successive image. there algorithms figure out moving object next helps finding in next frame. without knowing doing, it's hard give concrete.
, see you're c#...maybe help: .net (dotnet) wrappers opencv?
Comments
Post a Comment