Detect text, faces, barcodes, objects, and body poses in images and video using on-device computer vision. Patterns target iOS 26+ with Swift 6.2, backward-compatible where noted.
See references/vision-requests.md for complete code patterns and references/visionkit-scanner.md for DataScannerViewController integration.
Vision has two distinct API layers. Prefer the modern API for new code.
iOS 앱에서 텍스트 인식(OCR), 얼굴 인식, 바코드 스캐닝, 이미지 분할, 개체 추적, 문서 스캐닝 등의 컴퓨터 비전 기능을 구현합니다. 최신 Swift 네이티브 Vision API(iOS 16+) 및 레거시 VNRequest 패턴, 라이브 카메라 스캐닝을 위한 VisionKit DataScannerViewController 및 사용자 정의 모델 추론을 위한 VNCoreMLRequest를 모두 다룹니다. Vision을 통해 OCR, 바코드 스캐닝, 얼굴 감지 또는 사용자 지정 Core ML 모델 추론을 추가할 때 사용합니다. 출처: dpearson2699/swift-ios-skills.