IBM Datacap Mobile SDK Developer s Guide

Similar documents
IBM Case Manager Mobile Version Users' Guide IBM SC

ios 9 support in IBM MobileFirst Platform Foundation IBM

Networking Bootstrap Protocol

IBM Security QRadar Version 7 Release 3. Community Edition IBM

CONFIGURING SSO FOR FILENET P8 DOCUMENTS

Getting Started with InfoSphere Streams Quick Start Edition (VMware)

IBM emessage Version 8.x and higher. Account Startup Overview

Platform LSF Version 9 Release 1.3. Migrating on Windows SC

Installing Watson Content Analytics 3.5 Fix Pack 1 on WebSphere Application Server Network Deployment 8.5.5

Using application properties in IBM Cúram Social Program Management JUnit tests

IBM StoredIQ Platform Version Overview Guide GC

IBM Kenexa LCMS Premier on Cloud. Release Notes. Version 9.3

IBM. Networking INETD. IBM i. Version 7.2

Development tools System i5 Debugger

ReadMeFirst for IBM StoredIQ

IBM Maximo Calibration Version 7 Release 6. Installation Guide

IBM Endpoint Manager Version 9.1. Patch Management for Ubuntu User's Guide

IBM Cognos Dynamic Query Analyzer Version Installation and Configuration Guide IBM

IBM Security QRadar Version Customizing the Right-Click Menu Technical Note

System i. Networking RouteD. Version 5 Release 4

IBM Security QRadar Version Forwarding Logs Using Tail2Syslog Technical Note

IBM Storage Driver for OpenStack Version Installation Guide SC

IBM TRIRIGA Application Platform Version 3 Release 5.3. User Experience User Guide IBM

IBM StoredIQ Platform Version Overview Guide IBM GC

Platform LSF Version 9 Release 1.1. Migrating on Windows SC

IBM StoredIQ Platform Version Overview Guide IBM GC

Version 1 Release 1 November IBM Social Marketing Solution Pack User's Guide IBM

iscsi Configuration Manager Version 2.0

IBM Maximo for Service Providers Version 7 Release 6. Installation Guide IBM

IBM Storage Driver for OpenStack Version Release Notes

IBM. Avoiding Inventory Synchronization Issues With UBA Technical Note

IBM LoadLeveler Version 5 Release 1. Documentation Update: IBM LoadLeveler Version 5 Release 1 IBM

IBM Copy Services Manager Version 6 Release 1. Release Notes August 2016 IBM

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

IBM Worklight V5.0.6 Getting Started

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

IBM License Metric Tool Enablement Guide

IBM Watson Explorer Content Analytics Version Upgrading to Version IBM

IBM Case Manager Mobile Version SDK for ios Developers' Guide IBM SC

IBM Storage Driver for OpenStack Version Installation Guide SC

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

IBM Spectrum LSF Process Manager Version 10 Release 1. Release Notes IBM GI

IBM Financial Transactions Repository Version IBM Financial Transactions Repository Guide IBM

IBM Geographically Dispersed Resiliency for Power Systems. Version Release Notes IBM

Migrating on UNIX and Linux

IBM OpenPages GRC Platform Version 7.0 FP2. Enhancements

IBM Security QRadar Version Community Edition IBM

IBM TRIRIGA Application Platform Version 3 Release 5.3. Graphics User Guide IBM

IBM. Release Notes November IBM Copy Services Manager. Version 6 Release 1

IBM Tealeaf UI Capture j2 Version 2 Release 1 May 15, IBM Tealeaf UI Capture j2 Release Notes

IBM OpenPages GRC Platform - Version Interim Fix 1. Interim Fix ReadMe

IBM Cloud Orchestrator. Content Pack for IBM Endpoint Manager for Software Distribution IBM

Migrating Classifications with Migration Manager

Installing on Windows

IBM Operational Decision Manager. Version Sample deployment for Operational Decision Manager for z/os artifact migration

IBM Integration Designer Version 8 Release 5. Hello World for WebSphere DataPower Appliance IBM

IBM OpenPages GRC Platform Version Interim Fix 5. Interim Fix ReadMe

Best practices. Reducing concurrent SIM connection requests to SSM for Windows IBM Platform Symphony

IBM Storage Management Pack for Microsoft System Center Operations Manager (SCOM) Version Release Notes

IBM Spectrum LSF Version 10 Release 1. Readme IBM

Tivoli Access Manager for Enterprise Single Sign-On

IBM Content Analytics with Enterprise Search Version 3.0. Expanding queries and influencing how documents are ranked in the results

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

IBM UrbanCode Cloud Services Security Version 3.0 Revised 12/16/2016. IBM UrbanCode Cloud Services Security

IBM FlashSystem V MTM 9846-AC3, 9848-AC3, 9846-AE2, 9848-AE2, F, F. Quick Start Guide IBM GI

IBM Storage Driver for OpenStack Version Release Notes

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

Power Systems. Power Integrated Facility for Linux (Power IFL) IBM

IBM Tivoli Directory Server Version 5.2 Client Readme

IBM Maximo for Aviation MRO Version 7 Release 6. Installation Guide IBM

IBM. Networking Open Shortest Path First (OSPF) support. IBM i. Version 7.2

Best practices. Linux system tuning for heavilyloaded. IBM Platform Symphony

Determining dependencies in Cúram data

IBM Cloud Object Storage System Version Time Synchronization Configuration Guide IBM DSNCFG_ K

IBM FlashSystem V Quick Start Guide IBM GI

Implementing Enhanced LDAP Security

IBM Storage Device Driver for VMware VAAI. Installation Guide. Version 1.1.0

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

IBM XIV Provider for Microsoft Windows Volume Shadow Copy Service. Version 2.3.x. Installation Guide. Publication: GC (August 2011)

IBM Decision Server Insights. Installation Guide. Version 8 Release 6

IBM ATLAS POLICY SUITE V6.0.3 FIX PACK 4 README. Release Date: December 05, 2016

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

IBM BladeCenter Chassis Management Pack for Microsoft System Center Operations Manager 2007 Release Notes

IBM Maximo for Service Providers Version 7 Release 6. Installation Guide

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

COBOL for AIX. Source conversion utility (scu)

Contents. Configuring AD SSO for Platform Symphony API Page 2 of 8

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

IBM Operations Analytics - Log Analysis: Network Manager Insight Pack Version 1 Release 4.1 GI IBM

IBM Intelligent Video Analytics Version 2 Release 0. IBM IVA Integration Plug-in for Genetec Security Center 5.5sr5 Installation and enablement IBM

IBM Directory Integrator 5.1.2: Readme Addendum

Application and Database Protection in a VMware vsphere Environment

IBM VisualAge for Java,Version3.5. External Version Control

Proposal for a Tivoli Storage Manager Client system migration from Solaris with VxFS to Linux with GPFS or AIX with GPFS or JFS2

Limitations and Workarounds Supplement

IBM License Metric Tool Version 9.0 (includes version 9.0.1, and ) Tuning Performance Guide

Best practices. Defining your own EGO service to add High Availability capability for your existing applications. IBM Platform Symphony

Release Notes. IBM Security Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

Printing Systems Division. Infoprint Manager for AIX NLV Release Notes

IBM Maximo Calibration Version 7 Release 5. Installation Guide

Transcription:

IBM Datacap Mobile SDK Developer s Guide Contents Versions... 2 Overview... 2 ios... 3 Package overview... 3 SDK details... 3 Prerequisites... 3 Getting started with the SDK... 4 FAQ... 5 Android... 6 Package overview... 6 SDK details... 6 Prerequisites... 6 Getting started with the SDK... 6 FAQ... 8 Notices... 9

Versions 1.0 (29th June 2015) Overview You can build high-quality mobile capture apps for the Apple ios and Google Android platforms with the IBM Datacap Mobile SDK. Here are the main goals of the SDK: Encapsulation of implementation detail The encapsulation of low-level implementation detail helps you focus on higher value work such as business logic or user experience. This low-level detail includes the following items: Networking Persistence XML parsing and image processing Small API Custom control The API provides the means for achieving a task in only one way so that the API can be kept as small as possible. You can inject custom logic to achieve greater control over system behavior. Here are some of the tasks that you can perform with the SDK: Connect to a Datacap application and access the DCO through the object library. Capture sets of documents or images by using a camera controller UI widget. Set batch, document, and page fields. Perform client-side OCR or barcode capture. Perform image processing, such as processing that uses deskew, brightness, and contrast filters. Upload a set of documents to your Datacap server

ios Package overview The IBM Datacap Mobile SDK package includes the following components: SDK Sample project Reference documentation The SDK is written in Objective-C, but it can be integrated with either Objective-C or Swift code. The sample Xcode project contains a working app. To familiarize yourself with the mechanisms and features of the SDK, run the sample App and review the comments in the sample App's code. The comments in the app are numbered. Important: The sample project is not intended to be a tutorial on how to design your application. For example, it does not contain robust error handling and recovery. The SDK provides reference documentation in Docset format for each public interface class, method, and type. This documentation can be imported into your Xcode project. SDK details The SDK follows Apple's cocoa guidelines in terms of naming, style, and coding conventions. For information about these guidelines, see Introduction to Coding Guidelines for Cocoa. The SDK makes extensive use of NSAssert to verify preconditions in public and private methods. It aims to "fail early" with good error messages that clarify the API contract so developers can debug issues without the library source code. The SDK is organized into two frameworks: IBMCapture IBMCaptureUI Model, networking, and image-processing functions Complete UI components, such as a camera controller with automated edge detection and deskew Prerequisites You are expected to have a working knowledge of IBM Datacap, Apple's Xcode, and the Objective-C or Swift programming languages. Here are the prerequisites for using the SDK: An IBM Datacap server that runs IBM Datacap 9.0.0.1+ An Apple Mac that runs OS X 10.10+ with Xcode 6.3+ installed The IBM Datacap Mobile SDK 1.0.0.0+ package 3 P age

Getting started with the SDK To use the IBM Datacap Mobile SDK, you must integrate it with an existing or new Xcode project. Typically, your use of the SDK begins with the factory class ICPObjectFactory. To integrate the SDK with an Xcode project: 1. Create the following subfolders in your project directory: o Frameworks o Frameworks/iphoneos o Frameworks/iphonesimulator 2. Copy device frameworks IBMCapture.framework and IBMCaptureUI.framework into the Frameworks/iphoneos directory. 3. Copy simulator frameworks IBMCapture.framework and IBMCaptureUI.framework into the Frameworks/iphonesimulator directory. 4. Open Xcode, click your App target, and click Build Settings. 5. Ensure that All is selected in the top left of the target window (as opposed to Basic). 6. Navigate to the Framework Search Path entry. 7. Edit the entry by double-clicking it. Add a line that contains the following text: $(PROJECT_DIR)/Frameworks/$(PLATFORM_NAME)" 8. Navigate to the Other Linker Flags entry. 9. Edit the entry by double-clicking it. Add a line that contains the following text: -framework IBMCaptureUI -framework IBMCapture 10. Click Build Phases. 11. Add a build phase by clicking the + button and choosing New Run Script Phase. 12. Call the new build phase Copy bundled frameworks. 4 P age

13. Add the following script: set -ex source="${project_dir/frameworks/${platform_name" dest="${configuration_build_dir/${frameworks_folder_path" mkdir -p "${CONFIGURATION_BUILD_DIR/${FRAMEWORKS_FOLDER_PATH" rsync -av --filter "- CVS/" --filter "-.svn/" --filter "-.git/" -- filter "-.hg/" --filter "- Headers/" --filter "- PrivateHeaders/" - -filter "- Modules/" "${source/ibmcapture.framework" "${dest" rsync -av --filter "- CVS/" --filter "-.svn/" --filter "-.git/" -- filter "-.hg/" --filter "- Headers/" --filter "- PrivateHeaders/" - -filter "- Modules/" "${source/ibmcaptureui.framework" "${dest" if [ "${CODE_SIGNING_REQUIRED" == "YES" ]; then /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY -- preserve-metadata=identifier,entitlements "${dest/ibmcapture.framework" /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY -- preserve-metadata=identifier,entitlements "${dest/ibmcaptureui.framework" fi FAQ Why should I use the ICPObjectFactory rather than creating my own objects? The IBM Datacap Mobile SDK manages the object lifecycle. In order to create managed objects, you must use the provided object factory. 5 P age

Android Package overview The IBM Datacap Mobile SDK package includes the following components: SDK Sample project The SDK is written in Java as a native Android library module. It is packaged in the AAR format, which contains Java classes and XML view files. The sample Android project contains a working app. To familiarize yourself with the mechanisms and features of the SDK, explore and run the sample project and review the comments in the sample App's code. Use the sample project as a starting point since it contains all the necessary setup. Important: The sample project is not intended to be a tutorial on how to design your application. For example, it does not contain robust error handling and recovery. Reference documentation The SDK provides reference documentation in standard JavaDoc format for each public interface class, method, and type. This documentation can be viewed in any standard browser. SDK details The SDK is organized into two frameworks, which are also the two main AAR libraries. Other dependent AAR libraries also exist. Here are the two frameworks: CaptureSDK CaptureUISDK Model, networking, and image-processing functions Complete UI components, such as a camera controller with automated edge detection and deskew Prerequisites You are expected to have a working knowledge of IBM Datacap, Android Studio, the Android SDK, and the Java programming language. Here are the prerequisites for using the SDK: 1. An IBM Datacap server that runs IBM Datacap 9.0.0.1+ 2. A computer that can run Android Studio, preferably with the latest version installed. 3. The IBM Datacap Mobile SDK 1.0+ package Getting started with the SDK To use the IBM Datacap Mobile SDK, you must integrate it with an existing or new Android project. Typically, your use of the SDK begins with the factory class IBMECMCPFactory. 6 P age

To integrate the SDK with an Android project: 1. In your main project s build.gradle file, add the flatdir requirement under the following repositories: allprojects { repositories { flatdir { dirs 'libs' Doing so is necessary because the SDK libraries are distributed as local AAR files. Your project must be set up to read them locally. 2. In current application s module, place the SDK (AAR files) into the libs folder as illustrated here. This folder is the one that you referenced in the previous step. 7 P age

3. In your current application s module, reference the SDK and dependency libraries in the build.gradle as shown here: //Main Capture SDKs compile(name:'capturesdk-1.0', ext:'aar'){ transitive=true compile(name:'captureuisdk-1.0', ext:'aar'){ transitive=true //ThirdParty SDKs compile(name:'arfland-1.0', ext:'aar'){ transitive=true compile(name:'opencv-1.0', ext:'aar'){ transitive=true compile(name:'tess-two-1.0', ext:'aar'){ transitive=true compile 'org.lucasr.twowayview:twowayview:0.1.4' compile 'com.squareup.picasso:picasso:2.5.2' FAQ Why should I use the IBMECMCPFactory rather than creating my own objects? The IBM Datacap Mobile SDK manages the object lifecycle. In order to create managed objects, you must use the provided object factory. 8 P age

Notices This information was developed for products and services offered in the U.S.A. This material may be available from IBM in other languages. However, you may be required to own a copy of the product or product version in that language in order to access it. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-ibm product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY10504-1785 U.S.A. For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: Intellectual Property Licensing Legal and Intellectual Property Law IBM Japan Ltd. 19-21, Nihonbashi- Hakozakicho, Chuo-ku Tokyo 103-8510, Japan The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM Corporation J46A/G4 555 Bailey Avenue San Jose, CA 95141-1003 U.S.A. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us. 9 P age

Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurements may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-ibm products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-ibm products. Questions on the capabilities of non-ibm products should be addressed to the suppliers of those products. All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. Terms and conditions for product documentation Permissions for the use of these publications are granted subject to the following terms and conditions. Applicability These terms and conditions are in addition to any terms of use for the IBM website. Personal use You may reproduce these publications for your personal, noncommercial use provided that all proprietary notices are preserved. You may not distribute, display or make derivative work of these publications, or any portion thereof, without the express consent of IBM. Commercial use You may reproduce, distribute and display these publications solely within your enterprise provided that all proprietary notices are preserved. You may not make derivative works of these publications, or reproduce, distribute or display these publications or any portion thereof outside your enterprise, without the express consent of IBM. Rights Except as expressly granted in this permission, no other permissions, licenses or rights are granted, either express or implied, to the publications or any information, data, software or other intellectual property contained therein. IBM reserves the right to withdraw the permissions granted herein whenever, in its discretion, the use of the publications is detrimental to its interest or, as determined by IBM, the above instructions are not being properly followed. You may not download, export or re-export this information except in full compliance with all applicable laws and regulations, including all United States export laws and regulations. IBM MAKES NO GUARANTEE ABOUT THE CONTENT OF THESE PUBLICATIONS. THE PUBLICATIONS ARE PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. 10 P age

Privacy policy considerations IBM Software products, including software as a service solutions, ( Software Offerings ) may use cookies or other technologies to collect product usage information, to help improve the end user experience, to tailor interactions with the end user or for other purposes. In many cases no personally identifiable information is collected by the Software Offerings. Some of our Software Offerings can help enable you to collect personally identifiable information. If this Software Offering uses cookies to collect personally identifiable information, specific information about this offering s use of cookies is set forth below. This Software Offering does not use cookies or other technologies to collect personally identifiable information. If the configurations deployed for this Software Offering provide you as customer the ability to collect personally identifiable information from end users via cookies and other technologies, you should seek your own legal advice about any laws applicable to such data collection, including any requirements for notice and consent. For more information about the use of various technologies, including cookies, for these purposes, See IBM s Privacy Policy at http://www.ibm.com/privacy and IBM s Online Privacy Statement at http://www.ibm.com/privacy/details the section entitled Cookies, Web Beacons and Other Technologies and the IBM Software Products and Software-as-a-Service Privacy Statement at http://www.ibm.com/software/info/product-privacy. Trademarks The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both: http://www.ibm.com/legal/copytrade.shtml Other product and service names might be trademarks of IBM or other companies. 11 P age