Skip to content
This repository was archived by the owner on Sep 6, 2020. It is now read-only.

Commit 1b8a76a

Browse files
committed
Andrid OCR Added
1 parent 4b7f1fd commit 1b8a76a

40 files changed

+1830
-0
lines changed

OCRAndroid/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures

OCRAndroid/.idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/gradle.xml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/misc.xml

+69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/modules.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OCRAndroid/CardScanner_1.0.apk

16.5 MB
Binary file not shown.
14.4 MB
Binary file not shown.

OCRAndroid/LibRecognizer/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
configurations.maybeCreate("default")
2+
artifacts.add("default", file('LibRecognizer.aar'))

OCRAndroid/app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

OCRAndroid/app/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 24
5+
buildToolsVersion "24.0.1"
6+
7+
defaultConfig {
8+
applicationId "brainbreaker.cardscanner"
9+
minSdkVersion 16
10+
targetSdkVersion 24
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(include: ['*.jar'], dir: 'libs')
24+
testCompile 'junit:junit:4.12'
25+
compile 'com.android.support:appcompat-v7:24.2.0'
26+
compile project(':LibRecognizer')
27+
compile files('libs/PGSDK_v1.0.jar')
28+
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
29+
compile 'cn.pedant.sweetalert:library:1.3'
30+
}

OCRAndroid/app/libs/PGSDK_v1.0.jar

44.3 KB
Binary file not shown.

OCRAndroid/app/proguard-rules.pro

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /home/brainbreaker/android-sdk-linux/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
-keep class com.microblink.** { *; }
20+
-keepclassmembers class com.microblink.** { *; }
21+
-dontwarn android.hardware.**
22+
-dontwarn android.support.v4.**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package brainbreaker.cardscanner;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="brainbreaker.cardscanner">
5+
6+
<uses-permission android:name="android.permission.CAMERA" />
7+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
8+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
9+
<uses-permission android:name="android.permission.FLASHLIGHT" />
10+
<uses-permission android:name="android.permission.INTERNET"/>
11+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
12+
13+
<uses-feature android:name="android.hardware.camera" />
14+
<uses-feature
15+
android:name="android.hardware.camera.autofocus"
16+
android:required="false" />
17+
<uses-feature
18+
android:name="android.hardware.camera.flash"
19+
android:required="false" />
20+
21+
<application
22+
android:allowBackup="true"
23+
android:icon="@mipmap/ic_launcher"
24+
android:label="@string/app_name"
25+
android:largeHeap="true"
26+
tools:replace="android:icon"
27+
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
28+
<activity
29+
android:name=".FullScreenOCR"
30+
android:screenOrientation="portrait">
31+
<intent-filter>
32+
<action android:name="android.intent.action.MAIN" />
33+
34+
<category android:name="android.intent.category.LAUNCHER" />
35+
</intent-filter>
36+
</activity>
37+
38+
<activity
39+
android:name=".MerchantActivity"
40+
android:label="@string/app_name">
41+
</activity>
42+
<activity
43+
android:name="com.paytm.pgsdk.PaytmPGActivity"
44+
android:screenOrientation="portrait"
45+
android:configChanges="keyboardHidden|orientation|keyboard"/><!-- ATTENTION: This was auto-generated to add Google Play services to your project for
46+
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
47+
<meta-data
48+
android:name="com.google.android.gms.version"
49+
android:value="@integer/google_play_services_version" />
50+
</application>
51+
52+
</manifest>

0 commit comments

Comments
 (0)