mlboydaisuke commited on
Commit
2db2408
·
verified ·
1 Parent(s): cd5d04d

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -43,7 +43,7 @@ swift run detect-cli --model rf-detr --image Resources/gate_image.jpg
43
  ```swift
44
  import CoreAIKitVision
45
 
46
- let detector = try await ObjectDetector(catalog: "rf-detr")
47
  let image = try ImageFile.load(imageURL) // any image file → CGImage + EXIF orientation
48
  let detections = try await detector.detect(in: image.cgImage)
49
  // detections: [Detection] — label, score, normalized box (top-left origin)
 
43
  ```swift
44
  import CoreAIKitVision
45
 
46
+ let detector = try await KitDetector(catalog: "rf-detr")
47
  let image = try ImageFile.load(imageURL) // any image file → CGImage + EXIF orientation
48
  let detections = try await detector.detect(in: image.cgImage)
49
  // detections: [Detection] — label, score, normalized box (top-left origin)