{"id":23152754,"url":"https://github.com/michaeltroger/feature-matching-native-android","last_synced_at":"2026-03-03T00:03:00.102Z","repository":{"id":47605423,"uuid":"68513146","full_name":"michaeltroger/feature-matching-native-android","owner":"michaeltroger","description":"Augmented Reality Template Matching (Feature Matching)  using OpenCV 4 for \u003e= Android 5  using the NDK and an async approach (Coroutines)","archived":false,"fork":false,"pushed_at":"2024-02-29T17:47:10.000Z","size":461342,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T13:23:11.924Z","etag":null,"topics":["android","augmented-reality","augmented-reality-applications","computer-vision","cpp","feature-matching","ndk","ndk-sample","opencv","template-matching"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaeltroger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"michaeltroger","custom":"http://paypal.me/trogermichael/3"}},"created_at":"2016-09-18T10:05:10.000Z","updated_at":"2025-02-09T20:42:02.000Z","dependencies_parsed_at":"2022-09-08T06:53:16.313Z","dependency_job_id":null,"html_url":"https://github.com/michaeltroger/feature-matching-native-android","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/michaeltroger/feature-matching-native-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltroger%2Ffeature-matching-native-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltroger%2Ffeature-matching-native-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltroger%2Ffeature-matching-native-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltroger%2Ffeature-matching-native-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeltroger","download_url":"https://codeload.github.com/michaeltroger/feature-matching-native-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltroger%2Ffeature-matching-native-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270902540,"owners_count":24665281,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","augmented-reality","augmented-reality-applications","computer-vision","cpp","feature-matching","ndk","ndk-sample","opencv","template-matching"],"created_at":"2024-12-17T19:18:43.319Z","updated_at":"2026-03-03T00:02:59.946Z","avatar_url":"https://github.com/michaeltroger.png","language":"Kotlin","readme":"# Augmented Reality Template Matching using the Android NDK (based on C++)\n## Approach: Feature Matching - Brute-Force Matching with ORB Descriptors\n## Uses an async approach (Coroutines) and OpenCV 4\n\n[![Android CI](https://github.com/michaeltroger/feature-matching-native-android/actions/workflows/android.yml/badge.svg)](https://github.com/michaeltroger/feature-matching-native-android/actions/workflows/android.yml)\n\nAttention: This app was created in 2016. I was a beginner to Android development and Computer Vision back then. So don't expect a perfect code please. Over the years I updated the dependencies and converted it to Kotlin, while the business logic remained unchanged.\n\nNote: Originally I targeted min SDK 14 (Android 4), more architectures (\"mips\", \"mips64\", \"armeabi\") and OpenCV 3 with this project. Nowadays the repo uses newer versions. If you need to support older devices, then you can look back in the repo's Git history.\n\n\u003cimg src=\"/screenshots/demo.gif\" alt=\"Feature matching native\" width=\"800px\"/\u003e\nCopyright of the logo: The Coca-Cola Company\n\n### What is this repository for?\n* Uses the camera image to search for a specified template image within it via a feature matching approach using the OpenCV C++ library. The detected object is marked with lines within the scene. This can be used to e.g. find a logo.\n* uses an async approach (Coroutines), that means that not every frame will be searched for the object and the GUI stays fluent/responsible\n* the OpenCV Java library is used as well for loading the template image. The processing on the other hand is done by the OpenCV C++ library only. \n* currently the async calculated image is painted over the live camera preview which can be seen on the edge. This might be changed in the future.\n* More computer vision projects at https://michaeltroger.com/computervision/\n\n### How do I get set up?\n* IDE: Android Studio\n* Android SDK \u0026 NDK\n* Template image location: res/drawable Changeable in CameraPreviewView\n\n### Default template image\n\u003cimg src=\"/app/src/main/res/drawable/coca_cola.bmp\" alt=\"\" width=\"400px\"/\u003e\nCopyright of the logo: The Coca-Cola Company\n\n### Author ###\n[Michael Troger](https://michaeltroger.com)\n\n### Credits\n* The passing of the camera frame data from Java to C++ and the async approach is based on Jay Rambhia's AsyncCamera  https://github.com/jayrambhia/AsynCamera\n* The feature matching is based on this official OpenCV tutorial http://docs.opencv.org/2.4/doc/tutorials/features2d/feature_homography/feature_homography.html Unlike in this application their version is using OpenCV 2 and is for use with static images files\n* This C++ library integration builds on code from the Android Open Source Project: https://github.com/googlesamples/android-ndk/tree/master/hello-libs\n","funding_links":["https://github.com/sponsors/michaeltroger","http://paypal.me/trogermichael/3"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltroger%2Ffeature-matching-native-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeltroger%2Ffeature-matching-native-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltroger%2Ffeature-matching-native-android/lists"}