{"id":24522817,"url":"https://github.com/gbzarelli/androidfacedetectopencv","last_synced_at":"2025-04-14T12:12:15.786Z","repository":{"id":180990140,"uuid":"115126060","full_name":"gbzarelli/AndroidFaceDetectOpenCV","owner":"gbzarelli","description":"[ANDROID] Sample project on how to implement the OpenCV SDK on Android with face detection","archived":false,"fork":false,"pushed_at":"2019-07-17T14:37:30.000Z","size":969,"stargazers_count":15,"open_issues_count":1,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T12:12:05.976Z","etag":null,"topics":["android","android-sdk","android-studio","face-detection","gradle","haar","java","opencv","opencv-sdk"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbzarelli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-12-22T15:11:35.000Z","updated_at":"2024-08-15T18:14:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb2829a9-eca2-4d95-a6c4-f66a30298501","html_url":"https://github.com/gbzarelli/AndroidFaceDetectOpenCV","commit_stats":null,"previous_names":["gbzarelli/androidfacedetectopencv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbzarelli%2FAndroidFaceDetectOpenCV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbzarelli%2FAndroidFaceDetectOpenCV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbzarelli%2FAndroidFaceDetectOpenCV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbzarelli%2FAndroidFaceDetectOpenCV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbzarelli","download_url":"https://codeload.github.com/gbzarelli/AndroidFaceDetectOpenCV/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877959,"owners_count":21176244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-sdk","android-studio","face-detection","gradle","haar","java","opencv","opencv-sdk"],"created_at":"2025-01-22T03:35:47.009Z","updated_at":"2025-04-14T12:12:15.762Z","avatar_url":"https://github.com/gbzarelli.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Native OpenCV in Android Studio with face detect\n\nThis application is a sample of the `OpenCV` in Android. \nIn the sample we use the [OpenCV SDK](https://sourceforge.net/projects/opencvlibrary/files/opencv-android/)\n to detect faces.\n\nThe application has been tested with:\n\n* Android Compile SDK '28'\n* Android Build Tools '28.0.3'\n* Gradle '3.4.2'\n* OpenCV SDK '3.4.3'\n\n## Configuration / Usage:\n\nHere is how to use this project to run native `OpenCV` code.\n\n* Make sure you have `Android SDK` up to date, with `NDK` installed\n* Download [OpenCV SDK 3.4.3](https://sourceforge.net/projects/opencvlibrary/files/opencv-android/) for Android from OpenCV.org and decompress the zip file.\n* Clone [this project](https://github.com/gbzarelli/AndroidFaceDetectOpenCV)\n* Create a symlink named `jniLibs` in `app/src/main` that points to `${YOUR_HOME_OPENCV_SDK}/sdk/native/libs`\n* In `app/CMakeLists.txt` change line 9 to points to `${YOUR_HOME_OPENCV_SDK}/sdk/native/jni/include`\n* Sync gradle\n* Run the application\n\n### Notes:\n\n- The openCVLibaray343 library inside the project contains the java code of \n`/openCVLibrary343/src/main/java`, copied from the `${YOUR_HOME_OPENCV_SDK}/sdk/java/src` folder.\n\n- The aidl folder `/openCVLibrary343/src/main/aidl` contains the contents \nof `${YOUR_HOME_OPENCV_SDK}/sdk/java/src/org/opencv/engine` folder, \nkeeping the same package.\n\n- For detection we are using a `Haar Cascade` frontal face detection \ninserted in `res/raw/haarcascade_frontalface_alt.xml` ( We can find other \nHaar at: [GitHub Link](https://github.com/opencv/opencv/tree/master/data/haarcascades) )\n\n----\n\n## Sample App Image\n\n\u003cimg src=\"faces_detected.png\" width=\"400\" \u003e\n\n### References\n\n - https://github.com/leadrien/opencv_native_androidstudio","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbzarelli%2Fandroidfacedetectopencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbzarelli%2Fandroidfacedetectopencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbzarelli%2Fandroidfacedetectopencv/lists"}