imhdi / mbdoccapture Goto Github PK
View Code? Open in Web Editor NEWMBDocCapture makes it easy to add document scanning functionalities to your iOS app but also image editing (Cropping and contrast enhacement).
License: MIT License
MBDocCapture makes it easy to add document scanning functionalities to your iOS app but also image editing (Cropping and contrast enhacement).
License: MIT License
I've followed the readme and implemented the ImageScannerController
like this:
let scannerViewController = ImageScannerController(delegate: self)
present(scannerViewController, animated: true)
Now, when trying it out on my device, it all works fine, but the tab bar buttons are missing:
I've noticed, that I can still press the buttons when pressing at the very edge of the screen.
Have I overlooked any setting or what's wrong here?
Recently discovered this repo and wanted to check it out but was unable to install the MBDocCapture
using CocoaPods:
[!] Unable to find a specification for
MBDocCapture
I tried the following:
pod 'MBDocCapture', '>= 0.9'
(from readme.md
)pod 'MBDocCapture', '>= 0.1.1'
(b/c that's the version in the .podspec
)pod 'MBDocCapture'
Neither of those work, unfortunately.
Cancel button on navigationBar disappears after camera starts.
when we try batch scan app terminate due to memory issue. I tested via leaks instrument when we assign delegate like @IBAction func didSelectType1Button(_ sender: Any) { let scanner = ImageScannerController(delegate: self) // this Line show memory leak scanner.shouldScanTwoFaces = false scanner.modalPresentationStyle = .fullScreen present(scanner, animated: true) }
it show 14 memory leaks. I'm new to swift I did tried to solve this but couldn't. is there anyone who can help me with this
Hey, was wondering whether you considered distributing the library through Carthage.
I'm developing an iPad app that is landscape-only. Is it possible to present the ImageScannerController
in landscape?
As the readme suggests, I made my view controller conform to ImageScannerControllerDelegate
and added all 4 protocol methods to my code:
extension DocumentUploaderViewController: ImageScannerControllerDelegate {
func imageScannerController(_ scanner: ImageScannerController, didFinishScanningWithResults results: ImageScannerResults) {
scanner.dismiss(animated: true)
}
func imageScannerController(_ scanner: ImageScannerController, didFinishScanningWithPage1Results page1Results: ImageScannerResults, andPage2Results page2Results: ImageScannerResults) {
scanner.dismiss(animated: true)
}
func imageScannerControllerDidCancel(_ scanner: ImageScannerController) {
scanner.dismiss(animated: true)
}
func imageScannerController(_ scanner: ImageScannerController, didFailWithError error: Error) {
scanner.dismiss(animated: true)
}
}
Now, Xcode (10.2.1) complains that I'm still missing some protocol stubs:
Type 'DocumentUploaderViewController' does not conform to protocol 'ImageScannerControllerDelegate'
Do you want to add protocol stubs?
When I press Fix
, Xcode adds the didFailWithError
method:
func imageScannerController(_ scanner: ImageScannerController, didFailWithError error: Error) {
}
...and then complains that I have added an invalid redeclaration of the method (because it was already there!):
Invalid redeclaration of 'imageScannerController(_:didFailWithError:)'
I have already tried:
None of these tries helped.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.