VisionKit

RSS for tag

Scan documents with the camera on iPhone and iPad devices using VisionKit.

Posts under VisionKit tag

169 Posts

Post

Replies

Boosts

Views

Activity

How to scan 1D Barcode in an image picked from device photos library in IOS?
I am not able to scan or read the 1D barcode present in the device photos library image, whereas the same I have achieved for QR code(2D barcode) image using the below code. CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}]; if (detector) { CIImage *img = [[CIImage alloc]initWithImage:image]; NSArray* imgFeatures = [detector featuresInImage:img]; NSString* contents; for (CIQRCodeFeature* imgFeature in imgFeatures) { DLog(@"decode %@ ",imgFeature.messageString); contents = imgFeature.messageString; if(contents){ DLog(@"Success"); }else{ DLog(@"Failure"); } return; } } As per my inference, the CIDetector has only the following types to detect from image CIDetectorTypeFace CIDetectorTypeRectange CIDetectorTypeQRCode CIDetectorTypeText https://developer.apple.com/documentation/coreimage/cidetector/detector_types?language=objc Please let me know how I can get my barcode images from the device photos library read/scanned.
1
0
1.7k
Oct ’21
Cameraview
Hi Everyone, I'm making a broadcast app. In this app I have an UIView and 3 buttons: 1 button for the ultra wide camera. 1 button for the wide camera. 1 button for the tele photo lens. How can I display the camera view in the UIView if I pressed one the buttons? Thanks, Robby Flockman
1
0
729
Oct ’21
VNRecognizeTextRequest doesn't recognize text in iOS 15
I'm using VNRecognizeTextRequest with: request.recognitionLevel = .accurate request.usesLanguageCorrection = false request.recognitionLanguages = ["en-US", "de-DE"] Basically code is taken from https://developer.apple.com/documentation/vision/reading_phone_numbers_in_real_time But when performs it by VNImageRequestHandler. I'm getting the following warning: Could not determine an appropriate width index for aspect ratio 0.0062 Could not determine an appropriate width index for aspect ratio 0.0078 Could not determine an appropriate width index for aspect ratio 0.0089 ... I tried to use fast for recognitionLevel and it helped but results are not that good as in accurate level. Can you suggest how to fix the problem accurate?
1
0
764
Oct ’21
VNRecognizeTextRequest ios15 problem recognizing text
Hi, I found a problem with the vision framework in my app using iOS15. I write recognized text in a string and under ios15 the result is not in the right order. Maybe a example would explain it better :-) Text to scan: Hello, my name is Michael and I am the programmer of an app named Scan2Clipboard. Now I've focused a problem with VNRecognizeTextRequest and iOS 15. Result under iOS 14: Hello, my name is Michael and I am the programmer of an app named Scan2Clipboard. Now I've focused a problem with VNRecognizeTextRequest and iOS 15. Result under iOS15: Hello, my name is Michael and I am the programmer of an app VNRecognizeTextRequest and iOS 15. named Scan2Clipboard. Now I've focused a problem with I've tried some other app from the App Store (Scan&Copy, Quick Scan). They are showing the same behavior. They are using the vision framework to. Does anyone have this issue to?
4
0
1.6k
Oct ’21
Customize VNDocumentCameraViewController behaviour
We are developing Credit Card Scanning feature in our app. We came to VNDocumentCameraViewController for the image capturing step. (the text detection is done using Vision's text recognization API). Implementation VNDocumentCameraViewController *vc = [[VNDocumentCameraViewController alloc] init]; vc.delegate = self;      [self presentViewController:vc animated:YES completion:nil]; Query-1 Now, here we want to remove editing mode of VNDocumentCameraViewController when capturing fails for the card and we do want to allow only 1 image capturing. We did not find anything for the same on documentation - https://developer.apple.com/documentation/visionkit/vndocumentcameraviewcontroller Would you please help that how can we achieve that. Query-2 Can we use Credit Card Scan feature of Safari (which appears when field is configured as Credit Card Number input) in the iOS Native application. Is there any to do that? Please let us know.
0
0
1.5k
Aug ’21
How to scan 1D Barcode in an image picked from device photos library in IOS?
I am not able to scan or read the 1D barcode present in the device photos library image, whereas the same I have achieved for QR code(2D barcode) image using the below code. CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}]; if (detector) { CIImage *img = [[CIImage alloc]initWithImage:image]; NSArray* imgFeatures = [detector featuresInImage:img]; NSString* contents; for (CIQRCodeFeature* imgFeature in imgFeatures) { DLog(@"decode %@ ",imgFeature.messageString); contents = imgFeature.messageString; if(contents){ DLog(@"Success"); }else{ DLog(@"Failure"); } return; } } As per my inference, the CIDetector has only the following types to detect from image CIDetectorTypeFace CIDetectorTypeRectange CIDetectorTypeQRCode CIDetectorTypeText https://developer.apple.com/documentation/coreimage/cidetector/detector_types?language=objc Please let me know how I can get my barcode images from the device photos library read/scanned.
Replies
1
Boosts
0
Views
1.7k
Activity
Oct ’21
Will there be Japanese language support for VNRecognizeTextRequest in the near future?
I would like to use the on-device optical character recognition feature offered by the Vision framework for reading Japanese text. Will this language be supported soon?
Replies
1
Boosts
0
Views
931
Activity
Oct ’21
using the camera to make a document scanning app
I want to develop an app and using the camera to scan document into PDF with some processing on the document to make it clear as much as possible. is using the camera after grant it from the user of course is there any special arrangement or agreement with apple or I just can develop the application directly using the built in framework.
Replies
0
Boosts
0
Views
564
Activity
Oct ’21
Cameraview
Hi Everyone, I'm making a broadcast app. In this app I have an UIView and 3 buttons: 1 button for the ultra wide camera. 1 button for the wide camera. 1 button for the tele photo lens. How can I display the camera view in the UIView if I pressed one the buttons? Thanks, Robby Flockman
Replies
1
Boosts
0
Views
729
Activity
Oct ’21
VNRecognizeTextRequest doesn't recognize text in iOS 15
I'm using VNRecognizeTextRequest with: request.recognitionLevel = .accurate request.usesLanguageCorrection = false request.recognitionLanguages = ["en-US", "de-DE"] Basically code is taken from https://developer.apple.com/documentation/vision/reading_phone_numbers_in_real_time But when performs it by VNImageRequestHandler. I'm getting the following warning: Could not determine an appropriate width index for aspect ratio 0.0062 Could not determine an appropriate width index for aspect ratio 0.0078 Could not determine an appropriate width index for aspect ratio 0.0089 ... I tried to use fast for recognitionLevel and it helped but results are not that good as in accurate level. Can you suggest how to fix the problem accurate?
Replies
1
Boosts
0
Views
764
Activity
Oct ’21
VNRecognizeTextRequest ios15 problem recognizing text
Hi, I found a problem with the vision framework in my app using iOS15. I write recognized text in a string and under ios15 the result is not in the right order. Maybe a example would explain it better :-) Text to scan: Hello, my name is Michael and I am the programmer of an app named Scan2Clipboard. Now I've focused a problem with VNRecognizeTextRequest and iOS 15. Result under iOS 14: Hello, my name is Michael and I am the programmer of an app named Scan2Clipboard. Now I've focused a problem with VNRecognizeTextRequest and iOS 15. Result under iOS15: Hello, my name is Michael and I am the programmer of an app VNRecognizeTextRequest and iOS 15. named Scan2Clipboard. Now I've focused a problem with I've tried some other app from the App Store (Scan&Copy, Quick Scan). They are showing the same behavior. They are using the vision framework to. Does anyone have this issue to?
Replies
4
Boosts
0
Views
1.6k
Activity
Oct ’21
Customize VNDocumentCameraViewController behaviour
We are developing Credit Card Scanning feature in our app. We came to VNDocumentCameraViewController for the image capturing step. (the text detection is done using Vision's text recognization API). Implementation VNDocumentCameraViewController *vc = [[VNDocumentCameraViewController alloc] init]; vc.delegate = self;      [self presentViewController:vc animated:YES completion:nil]; Query-1 Now, here we want to remove editing mode of VNDocumentCameraViewController when capturing fails for the card and we do want to allow only 1 image capturing. We did not find anything for the same on documentation - https://developer.apple.com/documentation/visionkit/vndocumentcameraviewcontroller Would you please help that how can we achieve that. Query-2 Can we use Credit Card Scan feature of Safari (which appears when field is configured as Credit Card Number input) in the iOS Native application. Is there any to do that? Please let us know.
Replies
0
Boosts
0
Views
1.5k
Activity
Aug ’21
LIDAR running in the background
Hi folks, I would like to ask if it's possible to keep the LIDAR/back camera running in the background while having open other app? Thank you, Matej
Replies
2
Boosts
0
Views
734
Activity
Aug ’21
VNDocumentCameraViewController 한글
How to support Korean language for VNDocumentCameraViewController? Can't suported apply? recognitionLanguages = ["ko-KR"] Not applicable. Please support Korean.
Replies
1
Boosts
0
Views
883
Activity
Jul ’21