Samples for detecting images on iOS/Android with OpenCV
This is not a final solution - it is a collection of scripts from few projects which can be usefull for someone who would like to dive deep into OpenCV on mobile.
Repo is divided into 3 modules:
- detect targets - it is a Python script which extracts keypoints and their descriptors from images and saves it into XML file
- backend - simple script that I used on AWS Lambda for matching images on backend
- iOS - iOS Objective-c / C++ modules which enables to load XML with keypoints and find matches as:
val targetDetector = TargetDetector()
targetDetector.loadTargets("path to xml")
let results = targetDetector.detectTargets(image)
MIT License © Sparing Interactive