diff --git a/_config.yml b/_config.yml index 4df0529..a8654b7 100644 --- a/_config.yml +++ b/_config.yml @@ -3,6 +3,8 @@ repositoryUrl: https://github.com/dynamsoft-docs/document-normalizer-docs-mobile docFullPath: https://www.dynamsoft.com/document-normalizer/docs/mobile/ firstLevelUrl: /document-normalizer/docs/mobile docHomePage: /document-normalizer/docs/core/introduction/ +needSearchIndex: true +searchNeedFilter: true parameters: /document-normalizer/docs/core/parameters/ diff --git a/programming/android/user-guide-v2.2.3000.md b/programming/android/user-guide-v2.2.3000.md index 53999e9..9bb968f 100644 --- a/programming/android/user-guide-v2.2.3000.md +++ b/programming/android/user-guide-v2.2.3000.md @@ -14,21 +14,21 @@ permalink: /programming/android/user-guide-v2.2.3000.html In this guide, you will learn step by step on how to build a document scanner application with Dynamsoft Capture Vision Android SDK. - [Android User Guide for Document Scanner Integration](#android-user-guide-for-document-scanner-integration) - - [Requirements](#requirements) - - [Add the SDK](#add-the-sdk) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) - - [Initialize Camera Module](#initialize-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) - - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) - - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) - - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) - - [Display the Normalized Image](#display-the-normalized-image) - - [Build and Run the Project](#build-and-run-the-project) + - [Requirements](#requirements) + - [Add the SDK](#add-the-sdk) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) + - [Initialize Camera Module](#initialize-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) + - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) + - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) + - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) + - [Display the Normalized Image](#display-the-normalized-image) + - [Build and Run the Project](#build-and-run-the-project) ## Requirements @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/android/user-guide-v2.4.2000.md b/programming/android/user-guide-v2.4.2000.md index f377be3..4269d3c 100644 --- a/programming/android/user-guide-v2.4.2000.md +++ b/programming/android/user-guide-v2.4.2000.md @@ -14,21 +14,21 @@ permalink: /programming/android/user-guide.html In this guide, you will learn step by step on how to build a document scanner application with Dynamsoft Capture Vision Android SDK. - [Android User Guide for Document Scanner Integration](#android-user-guide-for-document-scanner-integration) - - [Requirements](#requirements) - - [Add the SDK](#add-the-sdk) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) - - [Initialize Camera Module](#initialize-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) - - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) - - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) - - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) - - [Display the Normalized Image](#display-the-normalized-image) - - [Build and Run the Project](#build-and-run-the-project) + - [Requirements](#requirements) + - [Add the SDK](#add-the-sdk) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) + - [Initialize Camera Module](#initialize-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) + - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) + - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) + - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) + - [Display the Normalized Image](#display-the-normalized-image) + - [Build and Run the Project](#build-and-run-the-project) ## Requirements @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the similar source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/android/user-guide-v2.6.1000.md b/programming/android/user-guide-v2.6.1000.md index 771122d..f3e1aae 100644 --- a/programming/android/user-guide-v2.6.1000.md +++ b/programming/android/user-guide-v2.6.1000.md @@ -14,21 +14,21 @@ permalink: /programming/android/user-guide.html In this guide, you will learn step by step on how to build a document scanner application with Dynamsoft Capture Vision Android SDK. - [Android User Guide for Document Scanner Integration](#android-user-guide-for-document-scanner-integration) - - [Requirements](#requirements) - - [Add the SDK](#add-the-sdk) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) - - [Initialize Camera Module](#initialize-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) - - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) - - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) - - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) - - [Display the Normalized Image](#display-the-normalized-image) - - [Build and Run the Project](#build-and-run-the-project) + - [Requirements](#requirements) + - [Add the SDK](#add-the-sdk) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) + - [Initialize Camera Module](#initialize-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) + - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) + - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) + - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) + - [Display the Normalized Image](#display-the-normalized-image) + - [Build and Run the Project](#build-and-run-the-project) ## Requirements @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the similar source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/android/user-guide-v2.6.1001.md b/programming/android/user-guide-v2.6.1001.md index 2b097a2..c542b97 100644 --- a/programming/android/user-guide-v2.6.1001.md +++ b/programming/android/user-guide-v2.6.1001.md @@ -14,21 +14,21 @@ permalink: /programming/android/user-guide.html In this guide, you will learn step by step on how to build a document scanner application with Dynamsoft Capture Vision Android SDK. - [Android User Guide for Document Scanner Integration](#android-user-guide-for-document-scanner-integration) - - [Requirements](#requirements) - - [Add the SDK](#add-the-sdk) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) - - [Initialize Camera Module](#initialize-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) - - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) - - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) - - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) - - [Display the Normalized Image](#display-the-normalized-image) - - [Build and Run the Project](#build-and-run-the-project) + - [Requirements](#requirements) + - [Add the SDK](#add-the-sdk) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [MainActivity for Realtime Document Normalization](#mainactivity-for-realtime-document-normalization) + - [Initialize Camera Module](#initialize-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Add a Captured Result Receiver and Filter](#add-a-captured-result-receiver-and-filter) + - [Start and Stop Video Document Normalization](#start-and-stop-video-document-normalization) + - [Additional Steps in MainActivity](#additional-steps-in-mainactivity) + - [ResultActivity for Displaying the Normalized Image](#resultactivity-for-displaying-the-normalized-image) + - [Display the Normalized Image](#display-the-normalized-image) + - [Build and Run the Project](#build-and-run-the-project) ## Requirements @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the similar source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/android/user-guide-v2.6.1002.md b/programming/android/user-guide-v2.6.1002.md index 461927d..7cd555c 100644 --- a/programming/android/user-guide-v2.6.1002.md +++ b/programming/android/user-guide-v2.6.1002.md @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the similar source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/android/user-guide.md b/programming/android/user-guide.md index 337eeb0..93cd08b 100644 --- a/programming/android/user-guide.md +++ b/programming/android/user-guide.md @@ -68,8 +68,7 @@ In this section, let's see how to create a HelloWorld app for detecting and norm > > - Android Studio 2022.2.1 is used here in this guide. > - You can get the similar source code of the HelloWorld app from the following link -> - [Java](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalize){:target="_blank"}. -> - [Kotlin](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/android/DocumentScanner/AutoNormalizeKt){:target="_blank"}. +> - [DocumentScanner Android Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/Android/DocumentScanner){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.2.3000.md b/programming/ios/user-guide-v2.2.3000.md index 5a636ed..f8d74a6 100644 --- a/programming/ios/user-guide-v2.2.3000.md +++ b/programming/ios/user-guide-v2.2.3000.md @@ -13,23 +13,23 @@ enableLanguageSelection: true # iOS User Guide for Document Scanner Integration - [iOS User Guide for Document Scanner Integration](#ios-user-guide-for-document-scanner-integration) - - [System Requirements](#system-requirements) - - [Add the SDK](#add-the-sdk) - - [Add the xcframeworks via CocoaPods](#add-the-xcframeworks-via-cocoapods) - - [Add the xcframeworks via Swift Package Manager](#add-the-xcframeworks-via-swift-package-manager) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [Main ViewController for Realtime Detection of Quads](#main-viewcontroller-for-realtime-detection-of-quads) - - [Get Prepared with the Camera Module](#get-prepared-with-the-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Set up Result Receiver](#set-up-result-receiver) - - [Configure the methods viewDidLoad, viewWillAppear, and viewWillDisappear](#configure-the-methods-viewdidload-viewwillappear-and-viewwilldisappear) - - [Display the Normalized Image](#display-the-normalized-image) - - [Configure Camera Permissions](#configure-camera-permissions) - - [Additional Steps for iOS 12.x or Lower Versions](#additional-steps-for-ios-12x-or-lower-versions) - - [Build and Run the Project](#build-and-run-the-project) + - [System Requirements](#system-requirements) + - [Add the SDK](#add-the-sdk) + - [Add the xcframeworks via CocoaPods](#add-the-xcframeworks-via-cocoapods) + - [Add the xcframeworks via Swift Package Manager](#add-the-xcframeworks-via-swift-package-manager) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [Main ViewController for Realtime Detection of Quads](#main-viewcontroller-for-realtime-detection-of-quads) + - [Get Prepared with the Camera Module](#get-prepared-with-the-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Set up Result Receiver](#set-up-result-receiver) + - [Configure the methods viewDidLoad, viewWillAppear, and viewWillDisappear](#configure-the-methods-viewdidload-viewwillappear-and-viewwilldisappear) + - [Display the Normalized Image](#display-the-normalized-image) + - [Configure Camera Permissions](#configure-camera-permissions) + - [Additional Steps for iOS 12.x or Lower Versions](#additional-steps-for-ios-12x-or-lower-versions) + - [Build and Run the Project](#build-and-run-the-project) ## System Requirements @@ -80,8 +80,7 @@ This guide will walk you through the process of creating a HelloWorld app for de > > - Xcode 14.0 is used in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Objective-C](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalizeObjc){:target="_blank"}. -> - [Swift](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalize){:target="_blank"}. +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.4.2000.md b/programming/ios/user-guide-v2.4.2000.md index d692685..d1d6c4e 100644 --- a/programming/ios/user-guide-v2.4.2000.md +++ b/programming/ios/user-guide-v2.4.2000.md @@ -13,23 +13,23 @@ enableLanguageSelection: true # iOS User Guide for Document Scanner Integration - [iOS User Guide for Document Scanner Integration](#ios-user-guide-for-document-scanner-integration) - - [System Requirements](#system-requirements) - - [Add the SDK](#add-the-sdk) - - [Add the xcframeworks via CocoaPods](#add-the-xcframeworks-via-cocoapods) - - [Add the xcframeworks via Swift Package Manager](#add-the-xcframeworks-via-swift-package-manager) - - [Build Your First Application](#build-your-first-application) - - [Create a New Project](#create-a-new-project) - - [Include the Library](#include-the-library) - - [Initialize License](#initialize-license) - - [Main ViewController for Realtime Detection of Quads](#main-viewcontroller-for-realtime-detection-of-quads) - - [Get Prepared with the Camera Module](#get-prepared-with-the-camera-module) - - [Initialize Capture Vision Router](#initialize-capture-vision-router) - - [Set up Result Receiver](#set-up-result-receiver) - - [Configure the methods viewDidLoad, viewWillAppear, and viewWillDisappear](#configure-the-methods-viewdidload-viewwillappear-and-viewwilldisappear) - - [Display the Normalized Image](#display-the-normalized-image) - - [Configure Camera Permissions](#configure-camera-permissions) - - [Additional Steps for iOS 12.x or Lower Versions](#additional-steps-for-ios-12x-or-lower-versions) - - [Build and Run the Project](#build-and-run-the-project) + - [System Requirements](#system-requirements) + - [Add the SDK](#add-the-sdk) + - [Add the xcframeworks via CocoaPods](#add-the-xcframeworks-via-cocoapods) + - [Add the xcframeworks via Swift Package Manager](#add-the-xcframeworks-via-swift-package-manager) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [Main ViewController for Realtime Detection of Quads](#main-viewcontroller-for-realtime-detection-of-quads) + - [Get Prepared with the Camera Module](#get-prepared-with-the-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Set up Result Receiver](#set-up-result-receiver) + - [Configure the methods viewDidLoad, viewWillAppear, and viewWillDisappear](#configure-the-methods-viewdidload-viewwillappear-and-viewwilldisappear) + - [Display the Normalized Image](#display-the-normalized-image) + - [Configure Camera Permissions](#configure-camera-permissions) + - [Additional Steps for iOS 12.x or Lower Versions](#additional-steps-for-ios-12x-or-lower-versions) + - [Build and Run the Project](#build-and-run-the-project) ## System Requirements @@ -80,8 +80,7 @@ This guide will walk you through the process of creating a HelloWorld app for de > > - Xcode 14.0 is used in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Objective-C](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalizeObjc){:target="_blank"}. -> - [Swift](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalize){:target="_blank"}. +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.6.1000.md b/programming/ios/user-guide-v2.6.1000.md index 9b5a860..da0cb22 100644 --- a/programming/ios/user-guide-v2.6.1000.md +++ b/programming/ios/user-guide-v2.6.1000.md @@ -80,8 +80,7 @@ This guide will walk you through the process of creating a HelloWorld app for de > > - Xcode 14.0 is used in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Objective-C](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalizeObjc){:target="_blank"}. -> - [Swift](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalize){:target="_blank"}. +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.6.1001.md b/programming/ios/user-guide-v2.6.1001.md index 36bd3c5..f3d3338 100644 --- a/programming/ios/user-guide-v2.6.1001.md +++ b/programming/ios/user-guide-v2.6.1001.md @@ -80,8 +80,7 @@ This guide will walk you through the process of creating a HelloWorld app for de > > - Xcode 14.0 is used in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Objective-C](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalizeObjc){:target="_blank"}. -> - [Swift](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalize){:target="_blank"}. +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.6.1002.md b/programming/ios/user-guide-v2.6.1002.md index bd90312..d379581 100644 --- a/programming/ios/user-guide-v2.6.1002.md +++ b/programming/ios/user-guide-v2.6.1002.md @@ -80,8 +80,7 @@ This guide will walk you through the process of creating a HelloWorld app for de > > - Xcode 14.0 is used in this guide. > - You can get the source code of the HelloWorld app from the following link -> - [Objective-C](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalizeObjc){:target="_blank"}. -> - [Swift](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/main/ios/DocumentScanner/AutoNormalize){:target="_blank"}. +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. ### Create a New Project diff --git a/programming/ios/user-guide-v2.6.1003.md b/programming/ios/user-guide-v2.6.1003.md new file mode 100644 index 0000000..9cdc2c8 --- /dev/null +++ b/programming/ios/user-guide-v2.6.1003.md @@ -0,0 +1,605 @@ +--- +layout: default-layout +title: Detect and Normalize Document - iOS User Guide +description: This page introduce how to detect and normalize document with Dynamsoft Capture Vision iOS SDK. +keywords: user guide, iOS, document scanner +needAutoGenerateSidebar: true +needGenerateH4Content: true +noTitleIndex: true +multiProgrammingLanguage: true +enableLanguageSelection: true +--- + +# iOS User Guide for Document Scanner Integration + +- [iOS User Guide for Document Scanner Integration](#ios-user-guide-for-document-scanner-integration) + - [System Requirements](#system-requirements) + - [Add the SDK](#add-the-sdk) + - [Add the xcframeworks via CocoaPods](#add-the-xcframeworks-via-cocoapods) + - [Add the xcframeworks via Swift Package Manager](#add-the-xcframeworks-via-swift-package-manager) + - [Build Your First Application](#build-your-first-application) + - [Create a New Project](#create-a-new-project) + - [Include the Library](#include-the-library) + - [Initialize License](#initialize-license) + - [Main ViewController for Realtime Detection of Quads](#main-viewcontroller-for-realtime-detection-of-quads) + - [Get Prepared with the Camera Module](#get-prepared-with-the-camera-module) + - [Initialize Capture Vision Router](#initialize-capture-vision-router) + - [Set up Result Receiver](#set-up-result-receiver) + - [Configure the methods viewDidLoad, viewWillAppear, and viewWillDisappear](#configure-the-methods-viewdidload-viewwillappear-and-viewwilldisappear) + - [Display the Normalized Image](#display-the-normalized-image) + - [Configure Camera Permissions](#configure-camera-permissions) + - [Additional Steps for iOS 12.x or Lower Versions](#additional-steps-for-ios-12x-or-lower-versions) + - [Build and Run the Project](#build-and-run-the-project) + +## System Requirements + +- Supported OS: iOS 11 or higher (iOS 13 and higher recommended). +- Supported ABI: arm64 and x86_64. +- Development Environment: Xcode 13 and above (Xcode 14.1+ recommended). + +## Add the SDK + +There are two ways to add the SDK into your project - **CocoaPods**, or via **Swift Package Manager**. + +### Add the xcframeworks via CocoaPods + +1. Add the frameworks in your **Podfile**. + + ```sh + target 'HelloWorld' do + use_frameworks! + + pod 'DynamsoftCaptureVisionBundle','2.6.1003' + + end + ``` + +2. Execute the pod command to install the frameworks and generate workspace(**HelloWorld.xcworkspace**): + + ```sh + pod install + ``` + +### Add the xcframeworks via Swift Package Manager + +1. In your Xcode project, go to **File --> AddPackages**. + +2. In the top-right section of the window, search "https://github.com/Dynamsoft/capture-vision-spm" + +3. Select `capture-vision-spm`, choose `Exact version`, enter **2.6.1003**, then click **Add Package**. + +4. Check all the frameworks and add. + + + +## Build Your First Application + +This guide will walk you through the process of creating a HelloWorld app for detecting and normalizing documents via a camera video input. + +>Note: +> +> - Xcode 14.0 is used in this guide. +> - You can get the source code of the HelloWorld app from the following link +> - [DocumentScanner iOS Sample](https://github.com/Dynamsoft/capture-vision-mobile-samples/tree/dcv_v2.6.1003/ios/DocumentScanner/){:target="_blank"}. + +### Create a New Project + +1. Open Xcode and select create a new project. + +2. Select **iOS -> App** for your application. + +3. Input your product name (HelloWorld), interface (StoryBoard) and language (Objective-C/Swift). + +4. Click on the **Next** button and select the location to save the project. + +5. Click on the **Create** button to finish. + +### Include the Library + +Add the SDK to your new project. Please read [Add the SDK](#add-the-sdk) section for more details. + +### Initialize License + +Initialize the license first. In your **ViewController** file, add the following code to initialize the license. + +
+>- Objective-C +>- Swift +> +>1. +```objc +// Import the DynamsoftLicense module to init license +#import