|
1 |
| -# veryfi-lens-swiftui-ios-demo |
2 |
| -Veryfi Lens example about how to user our Lens SDK inside a SwiftUI iOS project |
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +[](https://opensource.org/licenses/MIT) |
| 6 | +# Veryfi Lens |
| 7 | +Veryfi Lens is code (a framework) with UI for your mobile app to give it document capture superpowers in minutes. |
| 8 | + |
| 9 | +Let Veryfi handle the complexities of frame processing, asset preprocessing, edge routing, and machine vision challenges in document capture. We have been at this for a long time and understand the intricate nature of mobile capture. That’s why we built Lens. Veryfi Lens is built by developers for developers; making the whole process of integrating Lens into your app fast and easy with as few lines as possible. |
| 10 | + |
| 11 | +Veryfi Lens is a Framework: a self-contained, reusable chunks of code and resources you can import into you app. |
| 12 | + |
| 13 | +Lens is built in native code and optimized for fast performance, clean user experience and low memory usage. |
| 14 | + |
| 15 | +You can read further about Lens in Veryfi's dedicated page: https://www.veryfi.com/lens/ |
| 16 | + |
| 17 | +## Table of content |
| 18 | +1. [Veryfi Lens iOS Example](#example) |
| 19 | +2. [Other Lens iOS Examples](#examples) |
| 20 | +3. [Configuration](#configuration) |
| 21 | +4. [Other platforms](#other_platforms) |
| 22 | +5. [Get in contact with our team](#contact) |
| 23 | + |
| 24 | +## Veryfi Lens iOS Example <a name="example"></a> |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +## Other Lens iOS Examples <a name="examples"></a> |
| 29 | +This is an example of how to use Veryfi Lens Receipts in your app, you can find the developer documentation [here](iOSLensReceipts.pdf). |
| 30 | +You can find five example projects, which are the five versions of Lens that we currently offer: |
| 31 | +- [Lens for Long Receipts](https://github.com/veryfi/veryfi-lens-long-receipts-ios-demo) |
| 32 | +- [Lens for Receipts](https://github.com/veryfi/veryfi-lens-receipts-ios-demo) |
| 33 | +- [Lens for Credit Cards](https://github.com/veryfi/veryfi-lens-credit-cards-ios-demo) |
| 34 | +- [Lens for Business Cards](https://github.com/veryfi/veryfi-lens-business-cards-ios-demo) |
| 35 | +- [Lens for Checks](https://github.com/veryfi/veryfi-lens-checks-ios-demo) |
| 36 | + |
| 37 | +### Configuration <a name="configuration"></a> |
| 38 | +- Make sure your iOS credentials are set to access Veryfi's private Cocoapods repository [here](https://hub.veryfi.com/api/settings/keys). |
| 39 | + |
| 40 | +### Optional: Git credentials tool |
| 41 | +If you want to avoid typing the credentials you set in the previous step everytime you run pod install run `git credential approve` and type in a single entry the following information: |
| 42 | + |
| 43 | +``` |
| 44 | +protocol=https |
| 45 | +host=repo.veryfi.com |
| 46 | +path=shared/lens/veryfi-lens-podspec.git |
| 47 | +username=YOUR_USERNAME |
| 48 | +password=YOUR_PASSWORD |
| 49 | +
|
| 50 | +``` |
| 51 | + |
| 52 | +- Clone this repository |
| 53 | +- Run `pod install --repo-update` to install VeryfiLens and its dependencies |
| 54 | +- Open the workspace within the project in Xcode |
| 55 | +- Replace credentials in `LensManager` with yours |
| 56 | +``` |
| 57 | +let CLIENT_ID = "XXX" // replace XXX with your assigned Client Id |
| 58 | +let AUTH_USERNAME = "XXX" // replace XXX with your assigned Username |
| 59 | +let AUTH_APIKEY = "XXX" // replace XXX with your assigned API Key |
| 60 | +let URL = "XXX" // replace XXX with your assigned Endpoint URL |
| 61 | +``` |
| 62 | +- Run the project |
| 63 | + |
| 64 | +### Other platforms <a name="other_platforms"></a> |
| 65 | +You can find these examples for Android [here](https://github.com/veryfi?q=android&type=all). We also support the following wrappers for hybrid frameworks: |
| 66 | +- [Cordova](https://hub.veryfi.com/lens/docs/cordova/) |
| 67 | +- [React Native](https://hub.veryfi.com/lens/docs/react-native/) |
| 68 | +- [Flutter](https://hub.veryfi.com/lens/docs/flutter/) |
| 69 | +- [Xamarin](https://hub.veryfi.com/lens/docs/xamarin/) |
| 70 | + |
| 71 | +If you don't have access to our Hub, please contact our sales team, you can find the contact bellow. |
| 72 | + |
| 73 | +### Get in contact with our sales team <a name="contact"></a> |
| 74 | +Contact sales@veryfi.com to learn more about Veryfi's awesome products. |
| 75 | + |
0 commit comments