Last active
September 19, 2017 16:30
-
-
Save csanz/118ceca54ce5b8fa5657cd6a68ea90d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# COLLECT / TRAIN | |
from skycatch import drone, ai | |
async def run(): | |
try: | |
collection = | |
await drone.runCollection() | |
await | |
ai.train.labeling_queue(collection.data) | |
except Exception as exc: | |
print('Internal collection ' | |
'error: {!r}'.format(exc)) | |
# INSPECT / ACT | |
from skycatch import drone, api, ai | |
async def run(): | |
try: | |
collection = | |
await drone.runInspection() | |
inferences = | |
await ai.infer(inspection.data) | |
# customer workflow API, callback | |
api.callback(inferences) | |
except Exception as exc: | |
print('Internal inspection ' | |
'error: {!r}'.format(exc)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment