static void aiConceptsImageGrabber_run(double delay) {
RemoteDB db = new RemoteDB(aiConceptsProgram());
repeat with sleep delay {
AIConcept c = findWhere(AIConcept, suggestedImage := null,
searchedForSuggestedImage := false, importedFrom := null);
if (c != null) {
cset(c, searchedForSuggestedImage := true);
S query = c.name;
print("Visualizing: " + c.name);
BufferedImage img = quickVisualize(query);
if (img != null)
db.xset(rc, suggestedImage := new PNGFile(quickVisualize_imagePath(query)), suggestedImageMD5 := md5OfBufferedImage(img));
} else
print("No image found");
}
}
}download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007552 |
| Snippet name: | aiConceptsImageGrabber [dev.] |
| Eternal ID of this version: | #1007552/2 |
| Text MD5: | 6865195a2c5ff9346dd74a3098fdf327 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-28 04:25:29 |
| Source code size: | 674 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 737 / 748 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |