|
1 |
| -# DocScan |
2 |
| -App for document scanning. |
| 1 | +# peed comparison between native and Java OpenCV calls |
| 2 | +This is just a quick and dirty branch for measuring OpenCV timings. |
3 | 3 |
|
4 |
| -<a href='https://play.google.com/store/apps/details?id=at.ac.tuwien.caa.docscan&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' width="250px"/></a> |
| 4 | +Results gained on Pixel 4A (in seconds). Mat size is 3000x4000. |
5 | 5 |
|
6 |
| -## Authors |
7 |
| -Fabian Hollaus, |
8 |
| -Florian Kleber, |
9 |
| -Markus Diem |
10 |
| - |
11 |
| -### Build Instructions |
12 |
| -DocScan makes use of native (C++) OpenCV and OpenCV Java API. The Java part is automatically downloaded after syncing, |
13 |
| -the native part is imported as a git submodule from `https://github.com/hollaus/opencv_libs.git` which also automatically |
14 |
| -downloads the resources. |
15 |
| - |
16 |
| -### Sync and build the project |
17 |
| - |
18 |
| -## API keys |
19 |
| -The app makes use of two APIs that require keys which are not published in the repository and should never be provided to the public. Instead not working dummy keys are provided in the following files: |
20 |
| -- `gradle.properties`: contains the key for Dropbox integration |
21 |
| -- `google-services.json`: contains the key for Firebase integration (needed for OCR) |
22 |
| - |
23 |
| -You can get the API key if you send a mail to docscan@cvl.tuwien.ac.at. Before you replace the dummy keys, assure that you do not commit the keys with the following commands: |
24 |
| -- `git update-index --assume-unchanged google-services.json` |
25 |
| -- `git update-index --assume-unchanged gradle.properties` |
26 |
| - |
27 |
| -## Cheatsheet |
28 |
| -In case you need a more detailed error message for build errors, try: ``.\gradlew clean build`` |
29 |
| - |
30 |
| -## Visual Studio Project (C++ Library) |
31 |
| -- Optional for testing the C++ module |
32 |
| -- C++ lib for page segmentation and focus measure |
33 |
| -- use CMake to create a Visual Studio Project |
34 |
| - - source code path: DocScan/app/src/main |
35 |
| - - binaries path e.g.: DocScan/build2015-x64 |
36 |
| - - Specify OpenCV_DIR |
| 6 | +| Operation | C++ | Java | |
| 7 | +| ------------- |:-----:|:-----:| |
| 8 | +| Accessing mat pixel-wise | 0.3 | 6 | |
| 9 | +| cv::remap (INTER_LANCZOS4) | 0.75 | 0.75 | |
| 10 | +| cv::remap (INTER_LINEAR) | 0.08 | 0.08 | |
| 11 | +| cv::remap (INTER_CUBIC) | 0.05 | 0.05 | |
0 commit comments