From 1aa71685ce7b05cb72c30fd524b62fe9d71d7622 Mon Sep 17 00:00:00 2001 From: 283375 Date: Mon, 9 Oct 2023 00:16:54 +0800 Subject: [PATCH] fix: what is this shit --- src/arcaea_offline_ocr/phash_db.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/arcaea_offline_ocr/phash_db.py b/src/arcaea_offline_ocr/phash_db.py index 7ffa94e..4d0d954 100644 --- a/src/arcaea_offline_ocr/phash_db.py +++ b/src/arcaea_offline_ocr/phash_db.py @@ -21,7 +21,6 @@ def phash_opencv(img_gray, hash_size=8, highfreq_factor=4): img_size = hash_size * highfreq_factor image = cv2.resize(img_gray, (img_size, img_size), interpolation=cv2.INTER_LANCZOS4) image = np.float32(image) - dct = cv2.dct(image, flags=cv2.DCT_ROWS) dct = cv2.dct(image) dctlowfreq = dct[:hash_size, :hash_size] med = np.median(dctlowfreq)