-
Notifications
You must be signed in to change notification settings - Fork 57
/
constants.ts
83 lines (77 loc) · 2.09 KB
/
constants.ts
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { dirs } from './dirs';
export const OPENCV_CONTRIB_ARCHIVE = 'https://github.com/opencv/opencv_contrib/archive/3.4.6.tar.gz'
export const opencvRepoUrl = 'https://github.com/opencv/opencv.git'
export const opencvContribRepoUrl = 'https://github.com/opencv/opencv_contrib.git'
export const opencvModules = [
'core',
'highgui',
'imgcodecs',
'imgproc',
'features2d',
'calib3d',
'photo',
'objdetect',
'ml',
'video',
'videoio',
'videostab',
'dnn',
'face',
'text',
'tracking',
'xfeatures2d',
'ximgproc'
]
export const cmakeVsCompilers = {
'10': 'Visual Studio 10 2010',
'11': 'Visual Studio 11 2012',
'12': 'Visual Studio 12 2013',
'14': 'Visual Studio 14 2015',
'15': 'Visual Studio 15 2017'
}
export const cmakeArchs = {
'x64': ' Win64',
'ia32': '',
'arm': ' ARM'
}
export const defaultCmakeFlags = [
`-DCMAKE_INSTALL_PREFIX=${dirs.opencvBuild}`,
'-DCMAKE_BUILD_TYPE=Release',
'-DBUILD_EXAMPLES=OFF',
'-DBUILD_DOCS=OFF',
'-DBUILD_TESTS=OFF',
'-DBUILD_PERF_TESTS=OFF',
'-DBUILD_JAVA=OFF',
'-DCUDA_NVCC_FLAGS=--expt-relaxed-constexpr',
'-DBUILD_opencv_apps=OFF',
'-DBUILD_opencv_aruco=OFF',
'-DBUILD_opencv_bgsegm=OFF',
'-DBUILD_opencv_bioinspired=OFF',
'-DBUILD_opencv_ccalib=OFF',
'-DBUILD_opencv_datasets=OFF',
'-DBUILD_opencv_dnn_objdetect=OFF',
'-DBUILD_opencv_dpm=OFF',
'-DBUILD_opencv_fuzzy=OFF',
'-DBUILD_opencv_hfs=OFF',
'-DBUILD_opencv_java_bindings_generator=OFF',
'-DBUILD_opencv_js=OFF',
'-DBUILD_opencv_img_hash=OFF',
'-DBUILD_opencv_line_descriptor=OFF',
'-DBUILD_opencv_optflow=OFF',
'-DBUILD_opencv_phase_unwrapping=OFF',
'-DBUILD_opencv_python3=OFF',
'-DBUILD_opencv_python_bindings_generator=OFF',
'-DBUILD_opencv_reg=OFF',
'-DBUILD_opencv_rgbd=OFF',
'-DBUILD_opencv_saliency=OFF',
'-DBUILD_opencv_shape=OFF',
'-DBUILD_opencv_stereo=OFF',
'-DBUILD_opencv_stitching=OFF',
'-DBUILD_opencv_structured_light=OFF',
'-DBUILD_opencv_superres=OFF',
'-DBUILD_opencv_surface_matching=OFF',
'-DBUILD_opencv_ts=OFF',
'-DBUILD_opencv_xobjdetect=OFF',
'-DBUILD_opencv_xphoto=OFF',
'-DWITH_VTK=OFF'
]