Update README.md
Browse files
README.md
CHANGED
@@ -4,6 +4,16 @@ tags:
|
|
4 |
- object-detection
|
5 |
---
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
This is the app introduction image cropper of the following paper:
|
8 |
```bibtex
|
9 |
@misc{wei2024guing,
|
|
|
4 |
- object-detection
|
5 |
---
|
6 |
|
7 |
+
Using with pipeline
|
8 |
+
```
|
9 |
+
from PIL import Image
|
10 |
+
|
11 |
+
classifier = pipeline("image-classification", model="Jl-wei/app-intro-img-cropper", device=0)
|
12 |
+
image = Image.open(img_path)
|
13 |
+
result = classifier(image)
|
14 |
+
```
|
15 |
+
|
16 |
+
|
17 |
This is the app introduction image cropper of the following paper:
|
18 |
```bibtex
|
19 |
@misc{wei2024guing,
|