To setup the same project in your system first download the opencv sdk from this link:
https://sourceforge.net/projects/opencvlibrary/files/4.2.0/opencv-4.2.0-android-sdk.zip/download
Extract the above zip file.
Then open the ScanIN/ScanIN
folder in Android Studio and change the following files:
-
In filelocal.pro perties
change thesdk.dir
to the Android Sdk location on your system. -
If the
ScanIN/ScanIN/gradle.properties
doesn't exist create it. -
Add the following settings in your
gradle.properties
file:
org.gradle.jvmargs=-Xmx2048m
android.useAndroidX=true
android.enableJetifier=true
opencvsdk=/home/kaushal/Android/opencv-4.2.0-android-sdk/OpenCV-android-sdk
- Change the
opencvsdk
to such that the path{opencvsdk}/sdk
points to the OpenCVsdk
folder. For eg. if your OpenCV SDK is located at/home/kaushal/Android/opencv-4.2.0-android-sdk/OpenCV-android-sdk/sdk
then:
opencvsdk=/home/kaushal/Android/opencv-4.2.0-android-sdk/OpenCV-android-sdk