jetpacapp / DeepBeliefSDK

The SDK for Jetpac's iOS Deep Belief image recognition framework
Other
2.86k stars 437 forks source link

Python wrapper? #55

Open danielchalef opened 8 years ago

danielchalef commented 8 years ago

Hi all,

Is anybody aware of a Python wrapper for the DeepBeliefSDK?

Daniel

NikhilPeri commented 8 years ago

Hey Daniel,

I was able to have sucess importing the libjpcnn.so (or .dll) into python by using ctypes. Since this is basically a c interface. Take a look at the sinppet below it might help

import ctypes lib = ctypes.cdll.LoadLibrary('[path]/libjpcnn.so') network = lib.jpcnn_create_network([path]/ccv2012.ntwk') lib.jpcnn_print_network(network)

Hope this will help