Questions tagged [vndocumentcameraviewcontroller]

13 questions
11
votes
3 answers

iOS 13 - VNDocumentCameraViewController maximum number of Scans

Exporing the new VNDocumentCameraViewController I cannot find any delegate or property to set the maximum number of scans. Does anybody have a workaround or any idea I can implement to limit the number of scans in one go?
Hassy
  • 5,068
  • 5
  • 38
  • 63
4
votes
1 answer

VNRecognizeTextRequest unable to recognise text scanned in landscape mode

I'm using VNDocumentCameraViewController to scan document and VNRecognizeTextRequest to detect the text. It works only if the document is scanned in portrait mode. It landscape mode it fails. I could pass the orientation in VNImageRequestHandler but…
3
votes
0 answers

Swift App: "VNDocumentCameraViewController" How to free memory by dismissing a ViewController?

I have a problem and I really don't know how to solve it. I'm developing an app which uses Vision/VisionKit and every time I push on the button to run the camera in order to take a picture and scan the text, it takes memory. So, every time I press…
3
votes
2 answers

Save Pressed Action for VNDocumentCameraViewController Swift

Just wondering if anyone knows how to add an action for when the user presses the save button in a VNDocumentCameraViewController. I just want the user to only be able to scan one document, then the view should dismiss itself. I've got this function…
Jordan
  • 61
  • 7
2
votes
1 answer

Safe area issue with VNDocumentCameraViewController using UIViewControllerRepresentable

How can I extend camera scanning view to safa area while using VNDocumentCameraViewController in UIViewControllerRepresentable? here is the code struct ScanDocumentView: UIViewControllerRepresentable { func makeCoordinator() -> Coordinator…
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…
2
votes
0 answers

Camera controller dismiss is not working in iOS Swift?

I trying to dismiss camera view after document scanned but it does not work. I tried to dismiss using present method, camera dismissed successfully but the image scanned is not printed. If i use removefromsuperview then camera view got struct or…
1
vote
1 answer

How to make VNDocumentCameraViewController forget previous scans?

By displaying the VNDocumentCameraViewController on iOS it automatically stores previous scans. This can be problematic for users who don't realize they are adding already scanned documents to their current scan. Looking at the official VisionKit…
svprdga
  • 2,171
  • 1
  • 28
  • 51
1
vote
1 answer

VNDocumentCameraViewController disable Auto Scan

VNDocumentCameraViewController scans the documents automatically. I want to scan documents only when user taps shutter button. Is there any way to accomplish this?
1
vote
1 answer

VNDocumentCameraViewController in Xamarin Forms freezes

I would like to use the new VNDocumentCameraViewController from iOS 13 in my Xamarin Forms App with a custom renderer. It works, but sometimes after a few seconds the preview from the camera freezes and I have no chance to do anything on the view…
1
vote
1 answer

Change the wording of VNdocumentCameraViewController

I'd like to update the wordings shown in the view by presenting the VNDocumentCameraViewController. For example, In this picture, I'd like to change, Position the document in view -> Hello world Cancel -> Stop Auto -> Delete the button I'm not…
Yuki Tanaka
  • 215
  • 2
  • 9
0
votes
1 answer

crash (iOs16) when present VNDocumentCameraViewController

With iOS 16, I have fatal error when I launch VNDocumentCameraViewController (iPad or iPhone) On my project, with older operating system (like iOS 14, iOS 15) I haven't got this error. info.plist --> NSCameraUsageDescription is present with…
0
votes
1 answer

How to dismiss camera controller from framework in iOS Swift?

I have implemented vision document scanner inside framework. When camera view controller is called and document captured. While save button tapped it should dismiss and return to viewController. Here is the code inside framework: public func…
PvUIDev
  • 95
  • 1
  • 9
  • 38