gen-cards: regenerate Use-it block
Browse files
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
|
| 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)
|