Image Comparing and return Percentage

前端 未结 2 1915
南笙
南笙 2021-01-01 07:53
int DiferentPixels = 0;
Bitmap first = new Bitmap(\"First.jpg\");
Bitmap second = new Bitmap(\"Second.jpg\");
Bitmap container = new Bitmap(first.Width, first.Height         


        
2条回答
  •  青春惊慌失措
    2021-01-01 08:20

    For speed, resize the images to something very small (16x12, for example) and do the pixel comparison. If it is a near match, then try it at higher resolution.

提交回复
热议问题