forked from kcwongjoe/directshow_camera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.cpp
More file actions
69 lines (66 loc) · 1.78 KB
/
example.cpp
File metadata and controls
69 lines (66 loc) · 1.78 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "eg1_capture.h"
#include "eg2_properties.h"
#include "eg3_camera_looper.h"
#include "eg4_exposure_fusion.h"
#include "eg5_disconnect_process.h"
#include "eg6_stub.h"
#include "eg7_arpara_camera.h"
#include "eg8_direct_arpara_camera.h"
#include "eg9_direct_arpara_camera.h"
#include "eg10_dual_arpara_camera.h"
#include <iostream>
int main(int argc, char *argv[])
{
std::cout << "Example 1: Capture Image." << std::endl;
std::cout << "Example 2: Properties." << std::endl;
std::cout << "Example 3: Camera Looper." << std::endl;
std::cout << "Example 4: Exposure Fusion." << std::endl;
std::cout << "Example 5: Disconnect Process." << std::endl;
std::cout << "Example 6: Stub." << std::endl;
std::cout << "Example 7: ArparaCamera." << std::endl;
std::cout << "Example 8: Direct ArparaCamera." << std::endl;
std::cout << "Example 9: Direct ArparaCamera without opencv enable" << std::endl;
std::cout << "Example 10: Dual ArparaCamera." << std::endl;
std::cout << "Enter the example number: ";
int example_index;
std::cin >> example_index;
if (example_index == 1)
{
eg1_capture();
}
else if (example_index == 2)
{
eg2_properties();
}
else if (example_index == 3)
{
eg3_camera_looper();
}
else if (example_index == 4)
{
eg4_exposure_fusion();
}
else if (example_index == 5)
{
eg5_disconnect_process();
}
else if (example_index == 6)
{
eg6_stub();
}
else if (example_index == 7)
{
eg7_arpara_camera();
}
else if (example_index == 8)
{
eg8_arpara_camera();
}
else if ( example_index == 9)
{
eg9_arpara_camera();
}else if (example_index == 10)
{
eg10_dual_camera();
}
}