From d79b76ff1f8cb58c09194d8fa3b50d36c38324af Mon Sep 17 00:00:00 2001 From: wonder Date: Sun, 2 Nov 2025 10:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=20=E2=9C=85Test:=20[Lab-1]=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=B5=8B=E8=AF=95=20numpy=20+=20cv2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Lab-1/verify_env.py | 15 +++++++++++++++ README.md | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Lab-1/verify_env.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/Lab-1/verify_env.py b/Lab-1/verify_env.py new file mode 100644 index 0000000..18e1566 --- /dev/null +++ b/Lab-1/verify_env.py @@ -0,0 +1,15 @@ +import unittest +import cv2 +import numpy as np + + +class MyTestCase(unittest.TestCase): + def test_verify_env(self): + self.assertIsNotNone(cv2.__version__) + self.assertIsNotNone(np.__version__) + print("== Env test pass ==\n" + f"[cv2] {cv2.__version__}\n" + f"[numpy] {np.__version__}\n") + +if __name__ == '__main__': + unittest.main() diff --git a/README.md b/README.md index 1864ea0..921dc5a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # computer-vision -🧐 2025 秋季 计算机视觉实验 \ No newline at end of file +🧐 2025 秋季 计算机视觉实验 + +- **实验一** 基于 Python 的 opencv 数字图像处理的函数 \ No newline at end of file