Atualli commited on
Commit
2f4b7e8
·
1 Parent(s): e526360

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def execute_text_recognition_tflite( boxes, frame, interpreter, input_details, o
46
  return text,cv2.resize(save_frame,(94,24))
47
 
48
  def greet(image):
49
- resized = cv2.resize(image, (320,320), interpolation=cv2.INTER_CUBIC)
50
  input_data = resized.astype(np.float32) # Set as 3D RGB float array
51
  input_data /= 255. # Normalize
52
  input_data = np.expand_dims(input_data, axis=0) # Batch dimension (wrap in 4D)
 
46
  return text,cv2.resize(save_frame,(94,24))
47
 
48
  def greet(image):
49
+ resized = cv2.resize(image, (320,320), interpolation=cv2.INTER_LINEAR)
50
  input_data = resized.astype(np.float32) # Set as 3D RGB float array
51
  input_data /= 255. # Normalize
52
  input_data = np.expand_dims(input_data, axis=0) # Batch dimension (wrap in 4D)