Spaces:
Build error
Build error
feat: replace capsule counting with screw_bag (2 screws + 3 nuts individually detected)
Browse files- app.py +4 -4
- examples/candle_count.jpg +0 -0
- examples/screw_bag_count.jpg +0 -0
app.py
CHANGED
|
@@ -243,12 +243,12 @@ EXAMPLES = [
|
|
| 243 |
"The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
|
| 244 |
256,
|
| 245 |
],
|
| 246 |
-
# 6. Object Counting (single image) —
|
| 247 |
[
|
| 248 |
None,
|
| 249 |
-
"examples/
|
| 250 |
-
"
|
| 251 |
-
|
| 252 |
],
|
| 253 |
# 7. Industrial OCR (single image) — drink bottle
|
| 254 |
[
|
|
|
|
| 243 |
"The first image is a normal sample. Please locate the defects within the second image with bounding box in JSON format.",
|
| 244 |
256,
|
| 245 |
],
|
| 246 |
+
# 6. Object Counting + Detection (single image) — screw bag
|
| 247 |
[
|
| 248 |
None,
|
| 249 |
+
"examples/screw_bag_count.jpg",
|
| 250 |
+
"How many screws and nuts are in this image? For each one, give its bounding box as {\"bbox_2d\": [x1,y1,x2,y2], \"label\": \"type_N\"}.",
|
| 251 |
+
512,
|
| 252 |
],
|
| 253 |
# 7. Industrial OCR (single image) — drink bottle
|
| 254 |
[
|
examples/candle_count.jpg
ADDED
|
examples/screw_bag_count.jpg
ADDED
|