Giter Site home page Giter Site logo

Dewarp passport about blinkid-ios HOT 9 CLOSED

blinkid avatar blinkid commented on May 30, 2024
Dewarp passport

from blinkid-ios.

Comments (9)

DoDoENT avatar DoDoENT commented on May 30, 2024

You can try this example, but also enable returning of dewarped image as described here.

from blinkid-ios.

vladimirzivanov avatar vladimirzivanov commented on May 30, 2024

How to see the image which is scaning?

from blinkid-ios.

DoDoENT avatar DoDoENT commented on May 30, 2024

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.

vladimirzivanov avatar vladimirzivanov commented on May 30, 2024

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.

DoDoENT avatar DoDoENT commented on May 30, 2024

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.

vladimirzivanov avatar vladimirzivanov commented on May 30, 2024

Thanks for all. And how to get coordinates of recognized object on successful frame? Is it possible?

from blinkid-ios.

DoDoENT avatar DoDoENT commented on May 30, 2024

Yes, it is possible. You just need to implement scanningViewController:didFinishDetectionWithResult:

from blinkid-ios.

zjoka avatar zjoka commented on May 30, 2024

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.

DoDoENT avatar DoDoENT commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.