-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (29 loc) · 796 Bytes
/
main.cpp
File metadata and controls
35 lines (29 loc) · 796 Bytes
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
#include "header.h"
int __cdecl main(void) {
// directory management
fs::create_directories("Dataset");
string name = "User";
int no = 3;
if (no > 0) {
CreateDirectory(("Dataset/" + name).c_str(), NULL);
CreateDirectory(("Dataset/" + name + "/kinect").c_str(), NULL);
int i = 1;
while (i <= no) {
CreateDirectory(("Dataset/" + name + "/kinect/capture" + to_string(i)).c_str(), NULL);
i++;
}
}
else
return 1;
App app(name);
int i = 1;
while (i<=no) {
app.capture = i;
// function to receive data from Kinect
while(app.depthKinectImg.empty()) {
getKinectImage(app);
}
i++;
}
return 0;
}