To keep the calculation limited it's better to resize your image first (masks are allways fittet to the current image) Then you can compare one image to another using the compare method. You can now create a new image and subtract some mask of it in order to eliminate a background. So i tryed to tune it up a liddle bit.This is now a complete OOP implementation. In this calculation the background is ignored what leads to bigger difference in the avg color. I made a very simple approach, using img-resize and comparing the average color of the resized images.įor the used size and color-tolerance I get the expected result: Because this question is quite interesting, I moved the whole thing to GitHub where you can find the current implementation:ImageCompare
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |