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
14
votes
1 answer

Is it possible to customize the iOS Visionkit VNDocumentCameraViewController

I am trying to scan a picture by using the controller VNDocumentCameraViewController from VisionKit. Is it possible to customize the controller by for example hiding the scan scan button and the flash option on the top? I just want to start scanning…
emanyal
  • 141
  • 3
5
votes
2 answers

VNRecognizeTextRequest iOS 15 problem recognizing text

I found a problem with the Vision framework in my app using iOS 15. I write recognized text in a string and under iOS 15 the result is not in the right order. Maybe an example would explain it better :-) Text to scan: Hello, my name is Michael and…
Michael
  • 616
  • 5
  • 20
4
votes
1 answer

Request to remove background on an unsupported device. Error Domain=com.apple.VisionKit.RemoveBackground Code=-8 "(null)"

was trying to create an app by wrapping an web app as webview for ios and after running that app, when i am in the app testing it after a while getting this error, also I am getting this error when as well as a white screen when trying to access a…
4
votes
0 answers

Disable Automated PDF Analysis in iOS 16 PDFKit

Since the upgrade to iPadOS 16, Xcode's console has been filled with messages such as [VKImageAnalyzer processRequest:] returned 0 or [VKImageAnalyzer processRequest:] block returned NULL analysis - this happens in the simulator, and on the physical…
Ron Regev
  • 459
  • 2
  • 18
4
votes
2 answers

Swift's Vision framework not recognizing Japanese characters

I would like to read Japanese characters from a scanned image using swift's Vision framework. However, when I attempt to set the recognition language of VNRecognizeTextRequest to Japanese using request.recognitionLanguages = ["ja", "en"] the output…
cbusch
  • 265
  • 2
  • 11
4
votes
0 answers

How to extract table data from an image using Vision Framework in iOS?

With iOS Vision Framework, I am able to perform OCR and fetch recognized text from an image using VNRecognizedTextObservation Now let say, I have an image in which there is some text paragraph along with a table. The table has many columns and…
Vidhya Sri
  • 1,773
  • 1
  • 17
  • 46
4
votes
1 answer

iOS Vision: VNRecognizedText boundingBox(for:) method returning identical bounding box for any range

I'm using the iOS Vision framework to perform OCR via a VNRecognizeTextRequest call, and I'm trying to locate each individual character in the resulting VNRecognizedText observations. However, when I call the boundingBox(for range:…
G.S.
  • 623
  • 6
  • 22
3
votes
1 answer

VNDocumentCameraScan to searchable PDF

I am currently trying to create a searchable PDFDocument after I have obtained a VNDocumentCameraScan with the help of the VNDocumentCameraViewController. Currently I only take the images of the scan and put them into a PDFDocument instance. func…
grahan
  • 2,148
  • 5
  • 29
  • 43
3
votes
1 answer

Improving the accuracy of text recognition when using iOS Vision Framework to scan a document

I am trying to build a document scanner that is able to read text off of any document/card. However, it sometimes has trouble identifying text correctly off of a credit card. The accuracy is decent, but there is definitely room for improvement. I…
Pranet
  • 31
  • 2
3
votes
1 answer

Swift - Visionkit How to edit the color of the buttons "Keep Scan" and "Retake"

I have a problem. I've implemented the visionkit framework in order to detect a text when the camera is used. The problem is that the colors of the buttons: "Keep Scan" and "Retake" are blue. I want them in black color. How can I fix this problem? I…
swishG
  • 61
  • 2
3
votes
1 answer

Multiple Custom Object Detection (Image processing) from a given Image in iOS

I would like to get the custom objects detected with its frame. I had checked regarding this, I was getting many as ARKit implementations - using that we can get live object detections(ie using the input stream as the camera stream), but my…
3
votes
1 answer

iOS App Crashing in VisionKit framework iOS 13

I am using VisionKit framework for document capture introduced in iOS 13. It's wonderfull framework for capturing document. But in this framework at one point there are two buttons on navigation bar (Retake and Done) on navigation bar. When I click…
Piyush Naredi
  • 159
  • 1
  • 10
2
votes
1 answer

Enable/Disable torch with DataScannerViewController

On iOS16, I try to use the DataScannerViewController (for barcode reading) to remplace old way with Vision but when I enable the torch, DataScannerViewController is freezing... The code to enable/disable torch : guard let device =…
2
votes
0 answers

Bounding Box from VNDetectRectangleRequest is being drawn in wrong place on ImageView

ImageView is set to "Scale to Fill". When trying to draw the bounding box on the image with no transformations, the box appears pixels above where it should, though correctly aligned on the x axis. Example image:…
Jack Gruber
  • 163
  • 1
  • 14
2
votes
1 answer

Clear the scanned images cache in VNDocumentCameraScan Swift

I have used vision kit for document scanning. I'm able to scan and save the documents, but the old scanned images are shown on the bottom left corner of the screen after coming back to this screen after dismissal. How to clear the scan array after…
1
2 3 4