-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.js
executable file
·33 lines (28 loc) · 1.06 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const syncdb = require('./server/files/s3');
const cloudVision = require('./server/cloudvision/cloudvision');
var fs = require('fs');
let list = [];
syncdb.getAllFiles(list).then((data)=>{
fs.writeFile("files.txt", JSON.stringify(list), function(err) {
});
});
// cloudVision('https://s3.eu-central-1.amazonaws.com/gifrun/img/ac87510d1cbee632b87d3a988e98e53d.jpg')
// .then((data) => {
// console.log(data);
// })
// 683a4f51b62abd9a4563de4e144c74f9
// var fs = require('fs');
// let data = [];
// fs.readFile('tags.txt', 'utf8', function (err,list) {
// data = list;
// x = JSON.parse(data).filter((a)=> {
// return a.name === '005157a4fe997830c2c468abef20a0b7'
// });
// console.log(JSON.stringify(x));
// });
// {"name":"5c66ad9b0f95c850caaa1c518794f8b4",
// "tags":[ { desc: 'image', mid: '/m/0jg24', score: 90.214467 },
// { desc: 'furniture', mid: '/m/0c_jw', score: 75.198758 },
// { desc: 'cat', mid: '/m/01yrx', score: 72.08563099999999 },
// { desc: 'art', mid: '/m/0jjw', score: 67.85562 },
// { desc: 'bed', mid: '/m/03ssj5', score: 64.244878 } ]}