From f974d1d3e4c89cf1d89f86e50170ebfb93a6445a Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期三, 23 三月 2022 15:56:01 +0800
Subject: [PATCH] default return -1 not 0

---
 debug/3_using_template.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debug/3_using_template.py b/debug/3_using_template.py
index f3313c3..8ff4770 100644
--- a/debug/3_using_template.py
+++ b/debug/3_using_template.py
@@ -58,7 +58,7 @@
         max_val = cv2.minMaxLoc(res)[1]
         source.append(max_val)
     #print(max(source))
-    if max(source) > 0.5 :
+    if max(source) > 0.3 :
         return str(digits[source.index(max(source))][1])
     else:
     	return "@"

--
Gitblit v1.9.1