Skip to content

Commit 97009c4

Browse files
(v0.0.9) -> Improve speed & accuracy & add more documents
- OCR engine got several modifications to improve speed and accuracy * use of float32 instead of float64 * different activation parameters * SIMD intrinsics for the activation functions. Open sourced. ARM NEON at [1], AVX2 at [2] and SSE at [3][4] * better pattern matching enforcement using candidates from the LSTM proposals * better and faster binarization algorithm * fix some math overflow issues - Changed the default MAGSAC parameters. Check [5] and [6]. We highly recommend changing these values in your application. - Classifier is more accurate while using the same number of parameters - Support for more documents. Now we support more than 5027 documents. Complete list at [7] [1] https://github.com/DoubangoTelecom/compv/blob/master/base/math/intrin/arm/compv_math_activation_functions_intrin_neon.cxx [2] https://github.com/DoubangoTelecom/compv/blob/master/base/math/intrin/x86/compv_math_activation_functions_intrin_avx2.cxx [3] https://github.com/DoubangoTelecom/compv/blob/master/base/math/intrin/x86/compv_math_activation_functions_intrin_sse41.cxx [4] https://github.com/DoubangoTelecom/compv/blob/master/base/math/intrin/x86/compv_math_activation_functions_intrin_sse2.cxx [5] https://www.doubango.org/SDKs/kyc-documents-verif/docs/Configuration_options.html#magsac-sigma [6] https://www.doubango.org/SDKs/kyc-documents-verif/docs/Configuration_options.html#magsac-resampler [7] https://github.com/DoubangoTelecom/KYC-Documents-Verif-SDK/blob/main/Graphs.pdf
1 parent 83b9107 commit 97009c4

File tree

15 files changed

+11
-11
lines changed

15 files changed

+11
-11
lines changed

Graphs.pdf

836 Bytes
Binary file not shown.

binaries/linux/x86_64/benchmark

0 Bytes
Binary file not shown.
12.1 KB
Binary file not shown.

binaries/linux/x86_64/verify

0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

binaries/windows/x86_64/benchmark.exe

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

binaries/windows/x86_64/verify.exe

0 Bytes
Binary file not shown.

samples/cpp/benchmark/benchmark.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ static const char* __jsonConfig =
5353
"\"ocr_tunning_apply_whitelist\": true,"
5454
"\"ocr_tunning_apply_blacklist\": true,"
5555
""
56-
"\"magsac_sigma\": 2.0,"
56+
"\"magsac_sigma\": 1.0,"
5757
"\"magsac_max_iters\": 5000,"
58-
"\"magsac_resampler\": \"prosac\","
58+
"\"magsac_resampler\": uniform\","
5959
""
6060
"\"tps_enabled\": true,"
6161
"\"tps_speed\": 1,"

samples/cpp/verify/verify.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ static const char* __jsonConfig =
9898
"\"ocr_tunning_apply_whitelist\": true,"
9999
"\"ocr_tunning_apply_blacklist\": true,"
100100
""
101-
"\"magsac_sigma\": 2.0,"
101+
"\"magsac_sigma\": 1.0,"
102102
"\"magsac_max_iters\": 5000,"
103-
"\"magsac_resampler\": \"prosac\","
103+
"\"magsac_resampler\": uniform\","
104104
""
105105
"\"tps_enabled\": true,"
106106
"\"tps_speed\": 1,"

samples/csharp/verify/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ static String BuildJSON(String assetsFolder = "", String tokenDataBase64 = "")
141141
ocr_tunning_apply_whitelist = true,
142142
ocr_tunning_apply_blacklist = true,
143143

144-
magsac_sigma = 2.0,
144+
magsac_sigma = 1.0,
145145
magsac_max_iters = 5000,
146-
magsac_resampler = "prosac",
146+
magsac_resampler = uniform
147147

148148
tps_enabled = true,
149149
tps_speed = 1,

samples/java/verify/Verify.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ static String BuildJSON(String assetsFolder, String tokenDataBase64)
161161
"\"ocr_tunning_apply_whitelist\": true," +
162162
"\"ocr_tunning_apply_blacklist\": true," +
163163
"" +
164-
"\"magsac_sigma\": 2.0," +
164+
"\"magsac_sigma\": 1.0," +
165165
"\"magsac_max_iters\": 5000," +
166-
"\"magsac_resampler\": \"prosac\"," +
166+
"\"magsac_resampler\": \"uniform\"," +
167167
"" +
168168
"\"tps_enabled\": true," +
169169
"\"tps_speed\": 1," +

samples/python/verify/verify.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
"ocr_tunning_apply_whitelist": True,
4949
"ocr_tunning_apply_blacklist": True,
5050

51-
"magsac_sigma": 2.0,
51+
"magsac_sigma": 1.0,
5252
"magsac_max_iters": 5000,
53-
"magsac_resampler": "prosac",
53+
"magsac_resampler": "uniform",
5454

5555
"tps_enabled": True,
5656
"tps_speed": 1,

0 commit comments

Comments
 (0)