12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- Aroz Photo
- Image Classification Script
- Generate classification for the given image path
- */
- requirelib("filelib");
- requirelib("imagelib");
- includes("imagedb.js");
- function returnError(msg){
- sendJSONResp(JSON.stringify({"error": msg}));
- }
- function main(){
- var roots = getAllPossibleRoots();
- for (var i = 0; i < roots.length; i++){
- var thisVroot = roots[i];
- //Load all tags record for this vroot
- var tagsRecords = loadAllTagsRecord(thisVroot);
- //Clear up all images tags that no longer exists
- tagsRecords = matchAndClearNonExistsRecords(tagsRecords);
- //Do resummarize of tags info
- //Scan for new images that is not classified and add them to the root tag file
- //
- }
-
- }
- main();
|