Skip to content

Instantly share code, notes, and snippets.

@ahmedfgad
Created May 9, 2019 12:40
Show Gist options
  • Save ahmedfgad/39c8845f3c19baa6d167b9994ba26ef0 to your computer and use it in GitHub Desktop.
Save ahmedfgad/39c8845f3c19baa6d167b9994ba26ef0 to your computer and use it in GitHub Desktop.
import kivy.app
import Fruits
class FirstApp(kivy.app.App):
def classify_image(self):
img_path = self.root.ids["img"].source
img_features = Fruits.extract_features(img_path)
predicted_class = Fruits.predict_output("weights.npy", img_features, activation="sigmoid")
self.root.ids["label"].text = "Predicted Class : " + predicted_class
firstApp = FirstApp(title="Fruits 360 Recognition.")
firstApp.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment