Update README.md
Browse files
README.md
CHANGED
|
@@ -24,8 +24,8 @@ from hezar.utils import draw_boxes
|
|
| 24 |
|
| 25 |
|
| 26 |
model = Model.load("hezarai/CRAFT", device="cuda")
|
| 27 |
-
outputs = model.predict("../assets/
|
| 28 |
-
image = cv2.imread("../assets/
|
| 29 |
result_image = draw_boxes(image, outputs[0]["boxes"])
|
| 30 |
cv2.imwrite("detected.png", result_image)
|
| 31 |
```
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
model = Model.load("hezarai/CRAFT", device="cuda")
|
| 27 |
+
outputs = model.predict("../assets/text_detection_example.png")
|
| 28 |
+
image = cv2.imread("../assets/text_detection_example.png")
|
| 29 |
result_image = draw_boxes(image, outputs[0]["boxes"])
|
| 30 |
cv2.imwrite("detected.png", result_image)
|
| 31 |
```
|