penut85420 commited on
Commit
d0f39fb
1 Parent(s): ba0dd03

remove unused images

Browse files
Files changed (2) hide show
  1. bg.png +0 -0
  2. ocr.py +0 -1
bg.png DELETED
Binary file (2.54 kB)
 
ocr.py CHANGED
@@ -85,7 +85,6 @@ class Recognizer:
85
  def preprocess(self, image, height, width, invert=False):
86
  src: np.ndarray = cv2.cvtColor(image, cv2.COLOR_RGBA2GRAY)
87
  src = (255 - src) if invert else src
88
- cv2.imwrite("a.png", src)
89
 
90
  ratio = float(src.shape[1]) / float(src.shape[0])
91
  tw = int(height * ratio)
 
85
  def preprocess(self, image, height, width, invert=False):
86
  src: np.ndarray = cv2.cvtColor(image, cv2.COLOR_RGBA2GRAY)
87
  src = (255 - src) if invert else src
 
88
 
89
  ratio = float(src.shape[1]) / float(src.shape[0])
90
  tw = int(height * ratio)