-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
49 lines (41 loc) · 945 Bytes
/
constants.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
44
45
46
47
48
49
// Debugging
const DEBUGPOSE = false;
const DEBUGVIDEO = true;
const ADDSEGMENTATION = false;
const LIVE = false;
const SENDDATA = LIVE;
// Constants
const CONFTHRESHOLD = 0.8;
// const PEERSERVERURL = ''; // needed to create a live peer connection. see readme
const VIDEOH = 480;
const VIDEOW = 640;
const DIVISOR = 1;
const CANVASH = VIDEOH / DIVISOR;
const CANVASW = VIDEOW / DIVISOR;
// 2D array
const VIDEOURLS = [
[
new URL('../media/s1_hanna.mp4', import.meta.url),
new URL('../media/s1_soledad.mp4', import.meta.url),
],
];
// import from JSON files
import * as POSES1DANCER0 from '../media/s1_hanna.json';
import * as POSES1DANCER1 from '../media/s1_soledad.json';
const VIDEOPOSEURLS = [[POSES1DANCER0, POSES1DANCER1]];
export {
CONFTHRESHOLD,
CANVASH,
CANVASW,
DEBUGPOSE,
DEBUGVIDEO,
DIVISOR,
LIVE,
PEERSERVERURL,
ADDSEGMENTATION,
SENDDATA,
VIDEOH,
VIDEOW,
VIDEOURLS,
VIDEOPOSEURLS,
};