Commit c6685bc9 authored by Alexander Mordvintsev's avatar Alexander Mordvintsev

improved recognition accuracy by better region normalization

parent 60dd599a
......@@ -42,7 +42,7 @@ def main():
#sub = ~cv2.equalizeHist(sub)
#_, sub_bin = cv2.threshold(sub, 0, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)
s = float(h)/SZ
s = 1.5*float(h)/SZ
m = cv2.moments(sub)
m00 = m['m00']
if m00/255 < 0.1*w*h or m00/255 > 0.9*w*h:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment