From 0b9035d5d4ea5252d88ff3ec5cf66191f68e96ca Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 25 Apr 2025 08:29:54 +0100 Subject: [PATCH] drop histo.py --- requirements.txt | 1 - scripts/histo.py | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 scripts/histo.py diff --git a/requirements.txt b/requirements.txt index d95dec9..23cf22e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ django-cors-headers django-tastypie django<5 gunicorn -matplotlib==3.5.1 opencv-contrib-python==4.5.5.62 opencv-python==4.5.5.62 oss2 diff --git a/scripts/histo.py b/scripts/histo.py deleted file mode 100644 index 84e504e..0000000 --- a/scripts/histo.py +++ /dev/null @@ -1,16 +0,0 @@ -import cv2 -import sys -import numpy as np -import matplotlib.pyplot as plt - -# 读取图像 -print(sys.argv[1]) -image = cv2.imread(sys.argv[1], cv2.IMREAD_COLOR) - -# 计算直方图 -hist = cv2.calcHist([image], [0], None, [256], [0, 256]) - -# 显示直方图 -plt.plot(hist) -plt.xlim([0, 256]) -plt.show()