Trensorflow an open source api for machine learning was used to detect object, through the object detection api, which was compiled on andriod and ios uisng andriod studio and swift. Find the open source algorithm for both extenstions in the repository.
Download and unzip this entire repository from GitHub, either interactively, or by entering the following in your Terminal.
https://github.com/jerryduncan/object_detection.git