Latest 1.0.1
Homepage https://github.com/anandramdeo-df/df-documents
License MIT
Platforms ios 10.0
Authors

df-documents (Document Capture SDK)

This SDK based on AVFoundationKit and OpenCV which is been created to scan, capture & crop the document.

  • Capture Document from Front and Back
  • Crop with Auto-Edge-Detection

Sole purpose of this SDK is to capture the snapshot of document via scan mode, even you get the functionality of auto-edge-detection, so that you can crop the images more accurately.

You can achieve the functionality with easy integration of following steps:

  • In a new terminal window, run pod install --repo-update to install and update. Get Cocoapods
    you can skip this case if you have updated pod in you mac.

  • Create the podfile in your project.

    pod init
  • Open the pod file from directory and add pods in podfile.

    pod 'DFDocument'
  • Run command to install

    pod install

    If any error occure in the process of pod install then try with pod update command. Now close the xcode project and open prj.xcworkspace instead.

  • Add your org’s DCAccessToken token in your Info.plist file.

  • import DFDocument in your UIViewController file where you want to use this feature.

  • And instantiate the view with following code.

    DFDocument.sharedInstance.getCapturedImages(success: { frontImage, backImage  in
        print(frontImage)
        print(backImage)
    
    }, failure: { (error) in
        print(error?.userInfo ?? "Your api token is not valid")
    })

DFDocumentDFDocumentDFDocumentDFDocument

Repeat the same procedure to capture the back of document as well.

Latest podspec

{
    "name": "DFDocument",
    "version": "1.0.1",
    "summary": "This SDK based on AVFoundationKit and OpenCV which is been created to scan, capture & crop the document.",
    "description": "Sole purpose of this SDK is to capture the snapshot of document via scan mode, even you get the functionality of auto-edge-detection, so that you can crop the images more accurately.",
    "homepage": "https://github.com/anandramdeo-df/df-documents",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kritika Middha": "[email protected]"
    },
    "source": {
        "http": "https://github.com/anandramdeo-df/df-documents/releases/download/1.0.1/DFDocument.zip"
    },
    "platforms": {
        "ios": "10.0"
    },
    "ios": {
        "vendored_frameworks": "DFDocument.framework"
    },
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This