Skip to content

Instantly share code, notes, and snippets.

View Oil3's full-sized avatar

Quet Almahdi Morris Oil3

View GitHub Profile
@omz
omz / CoreML Image Recognition.py
Created July 8, 2018 10:36
CoreML Image Recognition.py
#!python3
'''
This is a demo of how you can use the CoreML framework (via objc_util) to classify images in Pythonista. It downloads the trained 'MobileNet' CoreML model from the Internet, and uses it to classify images that are either taken with the camera, or picked from the photo library.
'''
import requests
import os
import io
import photos
import dialogs