sclass FaceFinderByPictures1 extends F1 { int width; L pictures; float similarity = 0.8f; *() {} *(int *width, L *pictures) {} public Rect get(RGBImage img) { RGBImage img2 = rgbResize(img, width); FoundImg found = rgbRawSingleImageSearch_multiplePatterns(img2, pictures, similarity); //if (found != null) print("Found: " + found); ret rescaleRect_imageToImage(foundImgToRect(found), img2, img); } public FoundImgPlus getPlus(RGBImage img) { RGBImage img2 = rgbResize(img, width); FoundImgPlus found = rgbRawSingleImageSearch_multiplePatterns_plusImage(img2, pictures, similarity); //if (found != null) print("Found: " + found); if (found != null) found.r = rescaleRect_imageToImage(found.r, img2, img); ret found; } toString { ret "FaceFinderByPictures1(" + width + ", " + n2(l(pictures), "image") + ", similarity=" + similarity + ")"; } }