sclass EyebrowFinder1 extends F1 { F1 faceFinder; int width; LPair pictures; // with state *() {} *(F1 *faceFinder, int *width, LPair *pictures) {} public RectAndState get(RGBImage img) { Rect face = faceFinder.get(img); if (face == null) null; RGBImage faceImage = rgbClip(img, face); RGBImage img2 = rgbResize(faceImage, width); FoundImgPlus found = rgbRawSingleImageSearch_multiplePatterns_states(img2, pictures, 0.8f); //if (found != null) print("Found: " + found); if (found == null) null; ret RectAndState( translateRect(face.x, face.y, rescaleRect_imageToImage(foundImgToRect(found), img2, faceImage)), found.data); } toString { ret "EyebrowFinder1(" + faceFinder + ", " + width + ", " + n2(l(pictures), "image") + ")"; } }