VisionKit

RSS for tag

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

Posts under VisionKit tag

166 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
754
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
799
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
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
956
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
583
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
754
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
799
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