Update README.md
Browse files
README.md
CHANGED
@@ -8,9 +8,9 @@ Using with pipeline
|
|
8 |
```py
|
9 |
from PIL import Image
|
10 |
|
11 |
-
|
12 |
image = Image.open(img_path)
|
13 |
-
result =
|
14 |
```
|
15 |
|
16 |
|
|
|
8 |
```py
|
9 |
from PIL import Image
|
10 |
|
11 |
+
detector = pipeline("object-detection", model="Jl-wei/app-intro-img-cropper", device=0)
|
12 |
image = Image.open(img_path)
|
13 |
+
result = detector(image, threshold=0.5)
|
14 |
```
|
15 |
|
16 |
|