Skip to content

Commit 1187c39

Browse files
committed
Add .editorconfig file
1 parent e28d44d commit 1187c39

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

Diff for: .editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
indent_style = tab
9+
indent_size = tab
10+
tab_width = 4

Diff for: build.sh

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ cp -rf build/numpy/lib64/python2.7/site-packages/numpy lambda-package
1616
git clone https://github.com/Itseez/opencv.git
1717
cd opencv
1818
git checkout 3.1.0
19-
cmake \
20-
-D CMAKE_BUILD_TYPE=RELEASE \
21-
-D WITH_TBB=ON \
22-
-D WITH_IPP=ON \
23-
-D WITH_V4L=ON \
24-
-D ENABLE_AVX=ON \
25-
-D ENABLE_SSSE3=ON \
26-
-D ENABLE_SSE41=ON \
27-
-D ENABLE_SSE42=ON \
28-
-D ENABLE_POPCNT=ON \
29-
-D ENABLE_FAST_MATH=ON \
30-
-D BUILD_EXAMPLES=OFF \
19+
cmake \
20+
-D CMAKE_BUILD_TYPE=RELEASE \
21+
-D WITH_TBB=ON \
22+
-D WITH_IPP=ON \
23+
-D WITH_V4L=ON \
24+
-D ENABLE_AVX=ON \
25+
-D ENABLE_SSSE3=ON \
26+
-D ENABLE_SSE41=ON \
27+
-D ENABLE_SSE42=ON \
28+
-D ENABLE_POPCNT=ON \
29+
-D ENABLE_FAST_MATH=ON \
30+
-D BUILD_EXAMPLES=OFF \
3131
-D PYTHON2_NUMPY_INCLUDE_DIRS="$NUMPY" \
3232
.
3333
make

Diff for: template.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import cv2
22

33
def lambda_handler(event, context):
4-
print "OpenCV installed version:", cv2.__version__
5-
return "It works!"
4+
print "OpenCV installed version:", cv2.__version__
5+
return "It works!"
66

77
if __name__ == "__main__":
8-
lambda_handler(42, 42)
8+
lambda_handler(42, 42)

0 commit comments

Comments
 (0)