sclass FaceFinderByPictures1 extends F1<RGBImage, Rect> { int width; L<RGBImage> pictures; float similarity = 0.8f; *() {} *(int *width, L<RGBImage> *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<RGBImage> getPlus(RGBImage img) { RGBImage img2 = rgbResize(img, width); FoundImgPlus<RGBImage> 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 + ")"; } }
Began life as a copy of #1019211
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019528 |
Snippet name: | FaceFinderByPictures1 - works on RGBImage, searches for patterns by raw scan |
Eternal ID of this version: | #1019528/10 |
Text MD5: | e4bc6aa7fc214e9a75214e653d5a9e36 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-25 12:39:15 |
Source code size: | 986 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 321 / 874 |
Version history: | 9 change(s) |
Referenced in: | #1019555 - EyebrowFinder1 #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |