Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to execute this program using photo library? #1

Open
bosuksh opened this issue Jul 6, 2018 · 3 comments
Open

Is it possible to execute this program using photo library? #1

bosuksh opened this issue Jul 6, 2018 · 3 comments

Comments

@bosuksh
Copy link

bosuksh commented Jul 6, 2018

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

@thewozz
Copy link

thewozz commented Jul 16, 2018

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

@jeffxtang
Copy link
Owner

@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
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants