Comments (9)
You can try this example, but also enable returning of dewarped image as described here.
from blinkid-ios.
How to see the image which is scaning?
from blinkid-ios.
After obtaining PPImageMetadata as explained in link above, you can get UIImage from its image property. You can then display this UIImage as you wish.
from blinkid-ios.
Thanks. Can i somehow get whole image which is procesing (from camera, not croped) and get bounds of object if is it recognized(in coordinate)?
from blinkid-ios.
Yes, you can. To obtain every video frame as PPImageMetadata, enable receiving of currentFrame. To obtain frame that was used to obtain successful recognition, enable receiving of successfulFrame.
from blinkid-ios.
Thanks for all. And how to get coordinates of recognized object on successful frame? Is it possible?
from blinkid-ios.
Yes, it is possible. You just need to implement scanningViewController:didFinishDetectionWithResult:
from blinkid-ios.
We are trying to understand how PPDetectorResult works. For example if we use PPQuadDetectorResult.detectionLocation to get coordinate points, how to actually use return value to show corner points on screen. Example code below give us strange results.
override func cameraViewController(_ cameraViewController: UIViewController, didFinishDetectionWith result: PPDetectorResult) {
if let docResult = result as? PPQuadDetectorResult {
if result.status == PPDetectionStatus.success{
let p = docResult.detectionLocation
topLeftView.frame = CGRect(x: p.upperLeft.x, y: p.upperLeft.y, width: 5, height: 5)
topRightView.frame = CGRect(x: p.upperRight.x, y: p.upperRight.y, width: 5, height: 5)
bottomLeftView.frame = CGRect(x: p.lowerLeft.x, y: p.lowerLeft.y, width: 5, height: 5)
bottomRightView.frame = CGRect(x: p.lowerRight.x, y: p.lowerRight.y, width: 5, height: 5)
}
}
}
from blinkid-ios.
The coordinates in PPQuadDetectorResult.detectionLocation are given in image's coordinate sytem. To transform those coordinates into screen coordinate system, use transform property.
from blinkid-ios.
Related Issues (20)
- Extraction didn't completed when connected to pulse secure HOT 5
- I am not able to download the PPBlinkId v5.14.0 using this link:- https://github.com/BlinkID/blinkid-ios/releases/download/v5.14.0/blinkid-ios_v5.14.0.tar.gz it returns Error 503 Backend.max_conn reached. Please check HOT 2
- Explanation HOT 7
- Build Errors when Upgrading to 5.15.2 or 5.15.1 but not on 5.15.0 HOT 4
- Where can you see front scan result? US-DL HOT 8
- No versions of 'blinkid-swift-package' match the requirement 5.15.2..<6.0.0 HOT 4
- Swift Package Manager and BlinkID iOS 5.19.1 HOT 2
- Front camera not performing scanning HOT 3
- Address returned as empty string for Maltese national id HOT 4
- Unable to scan USDL barcode with iPhone 14 Pro Max HOT 13
- Issue with OCR -- NY vertical DL, latest model HOT 1
- Support for iOS 12 HOT 1
- Unable to scan new version of USDL Pennsylvania HOT 1
- Memory leak when using in SwiftUI HOT 3
- License key expired HOT 2
- Incorrect checksum in SPM manifest HOT 2
- Crash on 'NSInvalidArgumentException' of 'NSLayoutConstraint' in 'Document not recognized' alert. HOT 8
- Linker Errors in Xcode Project with BlinkID SDK HOT 4
- Get high resolution image HOT 1
- Scanner stuck after 'Retry' pressed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blinkid-ios.