Monday, 25 March 2019

How to run Tensorflow object detection on iOS

I'm try to figure out the easiest way to run object detection from a Tensorflow model (Inception or mobilenet) in an iOS app.

I have iOS Tensorflow image classification working in my own app and network following this example, https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios

and have Tensorflow image classification and object detection working in Android for my own app and network following this example, https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android/src/org/tensorflow/demo

but the iOS example does not contain object detection, only image classification, so how to extend the iOS example code to support object detection, or is there a complete example for this in iOS? (preferably objective-C)

I did find, https://medium.com/@junjiwatanabe/how-to-build-real-time-object-recognition-ios-app-ca85c193865a

https://github.com/csharpseattle/tensorflowiOS

but it recompiles Tensorflow from source, which seems complex,

also found Tensorflow lite, https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/ios

but again no object detection.

I also found option of converting Tensorflow model to Apple Core ML, and using Core ML, but this seems very complex, and could not find a complete example for object detection in Core ML



from How to run Tensorflow object detection on iOS

No comments:

Post a Comment