mobiletfbook icon indicating copy to clipboard operation
mobiletfbook copied to clipboard

Is it possible to execute this program using photo library?

Open bosuksh opened this issue 7 years ago • 3 comments

I want to execute this code not using an image file that I put in but photos in my device. Is it possible??

bosuksh avatar Jul 06 '18 04:07 bosuksh

I am trying the same thing, but finding difficulty using objective C. If it could be possible to have a swift version of Chapter 3. Thanks

thewozz avatar Jul 16 '18 23:07 thewozz

@bosuksh sorry for the late reply. Definitely - there're many online tutorials on how to select a photo from library and use the selected photo. Below is some code snippet used in my published iOS apps for dog and flower type recognition. Hope this helps.

code.m.zip

jeffxtang avatar Jul 17 '18 04:07 jeffxtang

@thewozz sorry i don't have a swift version of Ch 3 ready but you can follow the swift project in Ch 2 and add the swift code to select a photo from library or take one with camera then call the inference code in objective-c in Ch 3 - you'll have to mix the TensorFlow C++ and Objective-C wrapper code with Swift UI code.

jeffxtang avatar Jul 17 '18 04:07 jeffxtang