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 pertieschange thesdk.dirto the Android Sdk location on your system. -
If the
ScanIN/ScanIN/gradle.propertiesdoesn't exist create it. -
Add the following settings in your
gradle.propertiesfile:
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
opencvsdkto such that the path{opencvsdk}/sdkpoints to the OpenCVsdkfolder. For eg. if your OpenCV SDK is located at/home/kaushal/Android/opencv-4.2.0-android-sdk/OpenCV-android-sdk/sdkthen:
opencvsdk=/home/kaushal/Android/opencv-4.2.0-android-sdk/OpenCV-android-sdk