From 5f5a04c13c0d61008e7be0b649e84d47a810f8b5 Mon Sep 17 00:00:00 2001 From: mmattmcw Date: Sun, 19 Feb 2023 22:46:26 -0500 Subject: [PATCH] Run tests on affine_poc scripts --- fourcell/notes/affine_poc2.py | 1 + fourcell/notes/identify.sh | 17 +++++++++++++++++ fourcell/notes/opencv_version.py | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 fourcell/notes/identify.sh create mode 100644 fourcell/notes/opencv_version.py diff --git a/fourcell/notes/affine_poc2.py b/fourcell/notes/affine_poc2.py index faa2afd..ad293c1 100644 --- a/fourcell/notes/affine_poc2.py +++ b/fourcell/notes/affine_poc2.py @@ -4,6 +4,7 @@ import numpy as np #outer template outer = cv2.imread("../../../../Desktop/running/shot1-scans/image-2-normal.png") #inner image + inner = cv2.imread("../../../../Desktop/frame.jpg") rows, cols, ch = outer.shape diff --git a/fourcell/notes/identify.sh b/fourcell/notes/identify.sh new file mode 100644 index 0000000..22311d8 --- /dev/null +++ b/fourcell/notes/identify.sh @@ -0,0 +1,17 @@ +#/bin/bash + +platform () { + if [ "$(uname)" == "Darwin" ]; then + echo "Mac" + elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then + echo "Linux" + elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then + echo "Windows (32bit)" + elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then + echo "Windows" + fi +} + +echo "PLATFORM: $(platform)" +echo "PYTHON: $(python3 --version)" +echo "OPENCV: $(python3 ./notes/opencv_version.py)" diff --git a/fourcell/notes/opencv_version.py b/fourcell/notes/opencv_version.py new file mode 100644 index 0000000..840426a --- /dev/null +++ b/fourcell/notes/opencv_version.py @@ -0,0 +1,2 @@ +import cv2 +print(cv2.__version__) \ No newline at end of file