Android heart rate monitor.
Video demonstration here
Tool | Version |
---|---|
OpenCV | 4.5.2 |
Android Studio | 4.2 |
Android Build Tools | 30.0.2 |
Android NDK | r21d |
Kotlin | 1.5.0 |
Gradle | 6.7.1 |
-
Download and Install Android Studio.
-
Install NDK, CMake and LLDB.
-
Clone this repository as an Android Studio project :
- In Android Studio, click on
File -> New -> Project from Version Control -> Git
- Paste this repository Github URL, choose a project directory and click next.
- In Android Studio, click on
-
Install OpenCV Android release :
- Download OpenCV 4.5.2 Android release.
- Unzip downloaded file and put OpenCV-android-sdk directory on a path of your choice.
-
Link your Android Studio project to the OpenCV Android SDK you just downloaded :
-
Open gradle.properties file and edit following line with your own OpenCV Android SDK directory path :
opencvsdk=C\:/Users/Example/Downloads/OpenCV-android-sdk
-
-
Sync Gradle and run the application on your Android Device!
CameraActivity.java in opencv module has been changed for better compatibility.
public class CameraActivity extends Activity {
public class CameraActivity extends AppCompatActivity {