Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
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)
|