Using Open CV JS to detect pixelated images

did you understand the algorithm behind it ?
also, what made you think, this is a good idea in the 1st place ?

(read the comments, about ref images and general suitability for this problem)