forked from Ralphive/b1ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.js
43 lines (37 loc) · 1.29 KB
/
global.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
34
35
36
37
38
39
40
41
42
43
var namespace = 'b1ml' //Namesspace for every artefact created
var imgDir = './files/imgs/' //Dir hosting images to be used for comparison
var encoding = 'utf8' //Default Enconding
var faceBucket ='auth-faces' //AWS S3 Bucket name
var faceColl = 'face-collection' //AWS Rekognition Face Collection Name
var faceMatch = 80 //%s Threshold for face matching
var serverPort = 8080 // NodeServer Port
module.exports = {
//Puts file in a given bucket
namespace : function (){
return namespace;
},
imgDir: function(){
return imgDir;
},
encoding: function (){
return encoding;
},
userNs: function(user){
return addNS(user);
},
faceBucket: function(){
return addNS(faceBucket);
},
faceCollection: function(){
return addNS(faceColl);
},
faceMatch: function(){
return faceMatch;
},
serverPort: function(){
return serverPort;
}
}
function addNS(name){
return namespace+'-'+name;
}