Questions tagged [visionkit]

Visionkit is an ios framework, which helps to scan using the camera, process and use the result using corresponding callbacks or delegates.

As per apple, Vision kit helps to use the iOS camera to scan documents like those you capture in the Notes app.

SDKs Available - iOS 13.0+ - Mac Catalyst 13.0+

Main features derived implemented/defined as following

  1. Class
    • VNDocumentCameraViewController
    • VNDocumentCameraScan
  2. Delegate protocol
    • VNDocumentCameraViewControllerDelegate

For more details VisionKit

54 questions
1
vote
0 answers

Issues compiling a Tensorflow Graph with the Google Vision Kit compiler

I'm (unsuccessfully) trying to compile a model with the Aiy Vision Kit Compiler so that I can use it on a Google Vision Kit, but I always get an error regarding the frozen graph. I'm using Keras with Tensorflow 1.15. I froze and saved my graph in a…
0
votes
0 answers

Coordinate System of the BoundingBoxes reported in VNFaceObservation by Apple's Vision framework

I'm trying to use Apple's Vision framework to detect Face BoundingBoxes using ARKit's Front-Facing Camera in Device's Portrait mode(ARFaceTrackingConfiguration). Its unclear to me if the reported Face BoundingBoxes are in the coordinate space of the…
etrnllrnr
  • 13
  • 2
0
votes
0 answers

Swiftui DataScannerViewController config guide

I'm implementing a DataScannerViewController view but I need to change the user guide view or text. Can I achieve this with DataScannerViewController or do I have to switch back to Vision and AVFoundation Thank You For Your Help
0
votes
0 answers

Cannot find 'VNDetectDocumentRectanglesRequest' in scope

I have been trying to copy some of the features of the Apple Notes App,i.e., the scanning feature. I have managed to implement almost everything. However, I can't just overcome this Error: Cannot find 'VNDetectDocumentRectanglesRequest' in scope. I…
0
votes
0 answers

VNRectangleObservation drawing in incorrect location when preview layer size changed

I am using the code below to draw a rect around an image using Apple VNRectangleObservation. This is detecting the rect, but when I have resized the AVCaptureVideoPreviewLayer view size, the rect isn't showing in the correct position. Please see…
Tom Coomer
  • 6,227
  • 12
  • 45
  • 82
0
votes
0 answers

App not responding/hang without any reason

Our app load feeds from server server send us 10 records per page. App is working fine but when records greater than 100 it hang randomly (some time it hang on 10th page and some time it hang 25th page) without any crash and error in debug…
waseemIOS
  • 1
  • 2
0
votes
0 answers

How to get selected text on an image with live text enabled?

I implemented live text on images with the following code let config = ImageAnalyzer.Configuration([.text, .machineReadableCode]) Task { do { let analysis = try await analyzer.analyze(image, configuration: config) …
Joses
  • 29
  • 3
0
votes
1 answer

Value of type 'CapturedImage' has no member 'append'

I'm trying to evolve my app to save an array of images in Core Data instead of pre-defined attributes of an Entity. Today, my Entity has 4 image attributes, and the user saves 4 images as 4 separate actions within the app. It works. Now I'm trying…
phiredrop
  • 182
  • 1
  • 11
0
votes
0 answers

VisionKit Barcode Scanner Enabling Highlights Using Swift

I am learning how to create a barcode scanner and would like to add highlighting (the yellow square that goes around the numbers when the camera recognizes it) I believe I should use isHighlightingEnabled: true But I am not sure what line to put it…
Summer
  • 69
  • 7
0
votes
1 answer

Vistion Kit: VNRecognizeTextRequest minimumTextHeight Has No Effect

I have a function to do VNRecognizeTextRequest on images from documentCameraViewController Im passing in the minimumTextHeight to the function but no matter what value i set it to, either 0.9 or .1 it always finds the same amount of text (big and…
CraigH
  • 2,041
  • 3
  • 30
  • 48
0
votes
1 answer

Transform boundingBox according to angle and rotation

I am trying to implement a plastic cards detector using Vision ML Model which was trained on a custom data set. I am drawing rectangles according to bounding boxes coordinates over the camera view and it works like a charm. BUT. It doesn't react to…
0
votes
1 answer

Convert from VisonKit RecognizedItem bounds to view bounds

I'm trying to implement custom highlight views for iOS 16 DataScannerViewController. So far I can add the subviews to the overlayContainerView but I'm struggling with converting from the item bounds to the view bounds. func dataScanner(_…
Nico S.
  • 3,056
  • 1
  • 30
  • 64
0
votes
1 answer

How to use ARKit and vision kit without camera delay iOS Swift

I am using ARKit for Face landmark position and vision kit framework for the hand pose position. I am successfully able to open the camera when the user clicks the ARKit button and I am able switch to visionKit framework. But the problem it's slow…
HariKarthick
  • 1,369
  • 1
  • 19
  • 47
0
votes
1 answer

Blur face in face detection in vision kit

I'm using Apple tutorial about face detection in vision kit in a live camera feed, not an image. https://developer.apple.com/documentation/vision/tracking_the_user_s_face_in_real_time It detects the face and adds some lines using CAShapeLayer to…
0
votes
1 answer

Cannot load module 'visionKit' as 'VisionKit'

Im trying to build a simple app to scan documents, but faced this error when trying to import VisionKit module, how can i solve this error ? My code: import UIKit import VisionKit class ViewController: UIViewController { override func…