jiang-cc commited on
Commit
a49aeae
·
verified ·
1 Parent(s): 5cc29ef

feat: replace capsule counting with screw_bag (2 screws + 3 nuts individually detected)

Browse files
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) — capsules
247
  [
248
  None,
249
- "examples/capsules_count.jpg",
250
- "Count the number of capsules in this image. Give the exact number.",
251
- 128,
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