I have Machine Vision project made in objective-C (a couple of thousands of lines). To complete it I need to import my machine My_model.mlmodel with the latest coreML library. (as digression My_model.mlmodel was created in Python with coremltools ) I am trying to instantiate it, but nothing works I couldn't find any tutorials or helps on this topic. Of course, I imported my model to the pure Swift project, and it works. So I attached Swift class to my project hoping to make it work this way, but here again, Xcode translate the model to "Objective-C generated interface for model" and the model is not visible in Swift class.
Below picture shows that Xcode automatically imports .mlmodel as Objective-C class.
I need to put vector in the model and get the response.
Please help me; I am stacked a couple of lines from completing this project. How to use My_model.mlmodel inside of Objective-C Is there any work around or maybe straight easy way like in Swift
Thanks a lot.
This is the way that worked for me using my own image recognition model:
I hope I've helped ;)