Spaces:
Runtime error
Runtime error
Stereo0001
commited on
Commit
•
7a24815
1
Parent(s):
bc3d87a
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ import cv2
|
|
79 |
import numpy as np
|
80 |
import tensorflow as tf
|
81 |
from tensorflow import keras
|
82 |
-
from
|
83 |
|
84 |
def detect_and_draw_lines(img, rho=1, theta=np.pi/180):
|
85 |
"""Detect lines in the image and draw them."""
|
|
|
79 |
import numpy as np
|
80 |
import tensorflow as tf
|
81 |
from tensorflow import keras
|
82 |
+
from keras_ocr import pipeline # 使用tf.keras_ocr
|
83 |
|
84 |
def detect_and_draw_lines(img, rho=1, theta=np.pi/180):
|
85 |
"""Detect lines in the image and draw them."""
|