Tensorflow with cocos2d-x

Tensorflow with cocos2d-x
0.0 0

#1

I am building an app which uses Tensorflow for neural networks. I have completed on iOS and everything running smooth.
I am not an Android person, so can anyone help me do that on android as well.
If anyone need, I can help in running cocos2d-x along with tensor flow for ios.


#2

ARCore? Google Developer site has lots of examples on integrating TensorFlow.


#3

No ARCore. Just using Trained models to identifying alphabets.
Google site has example of integrating it into native android apps. We need to integrate in Cocos2d-x project. Also in google examples they are using java wrapped APIs for tensorflow inference, while tensoflow APIs are available in c++ so do we really need any Java wrapper. we should be able to compile tensorflow c++ library that we can use in our cocos2d-x projects.


#4

We don’t do anything special. Just drop in tensorflow and get started.


#5

How do i do that?
How do i link tensorflow into my cocos2d-x project?


#6

Why do you use TensorFlow and not TensorFlow Lite?


#7

i will use what ever suits best for me and whatever works.
i am naive in android there for i get mad when it comes to android project settings.
i build a library for ios from tensorflow source and used that in my game. But i don’t know how and where to start on android side. Need guidance


#8

@slackmoehrle @mars3142
can anyone help me to add tensorflow and link it with cocos2d-x project?


#9

I only integrated it into the Java-world for a proof-of-concept app yet. Sorry.


#10

i also run their demo app and worked on my device. But in cocos2d-x is whole another story i guess


#11

I don’t have time to show you how to do this. Use Android Studio and there are examples on Android Developer that are working examples.


#12

Hi, i will try if you can share your working project for iOS


#13

Hi
i can guid you through the complete process for iOS.


#14

ok, how you can guide me? Here or email?


#15

I can guide you here so that others can take benefit as well.
First of all, you need to create tensorflow framework that you can add in you iOS project. you need to follow the steps to create framework from this link : http://machinethink.net/blog/tensorflow-on-ios/ in section TensorFlow on iOS.
This is a time taking process and everyone need to do it in their own system. Do not copy it from anyone.
Follow all steps and run your project. If you face any problem, post here.


#16

hmm, what about this notice?

Most of the information in this blog post is still valid but the sections about building TensorFlow for iOS are out-of-date.


#17

You can follow this guide as well