Upload 4 files
Browse files- cv2/LICENSE-3RD-PARTY.txt +0 -0
- cv2/LICENSE.txt +21 -0
- cv2/load_config_py2.py +6 -0
- cv2/load_config_py3.py +9 -0
cv2/LICENSE-3RD-PARTY.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
cv2/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) Olli-Pekka Heinisuo
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
cv2/load_config_py2.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# flake8: noqa
|
2 |
+
import sys
|
3 |
+
|
4 |
+
if sys.version_info[:2] < (3, 0):
|
5 |
+
def exec_file_wrapper(fpath, g_vars, l_vars):
|
6 |
+
execfile(fpath, g_vars, l_vars)
|
cv2/load_config_py3.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# flake8: noqa
|
2 |
+
import os
|
3 |
+
import sys
|
4 |
+
|
5 |
+
if sys.version_info[:2] >= (3, 0):
|
6 |
+
def exec_file_wrapper(fpath, g_vars, l_vars):
|
7 |
+
with open(fpath) as f:
|
8 |
+
code = compile(f.read(), os.path.basename(fpath), 'exec')
|
9 |
+
exec(code, g_vars, l_vars)
|