@admirethemeyer · 2019. 9. 19. · enables creative ideas to come to life they solve regularly...

Post on 05-Oct-2020

2 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

@AdmireTheMeyer

How do we get there?

Developer Platform: Apple (iOS and the App Store)

Developer Platform: Google

Developer Platform: Amazon

Developer Platform: Twilio

What about Hardware?

Developer Platform: Arduino

Developer Platform: Raspberry Pi

Developer Platform: NVIDIA

● Enables creative ideas to come to life

● They solve regularly encountered problems for us

● They make the build process faster

Developer Platforms: Why do we need them

We’re living in a world full of software

We’re (increasingly) living in a world full of robots

Software developers will define the future of robotics in our homes and offices

We all need to understand what that means

Let’s look at a few examples

if len(data) > 1 and "personName" in data.keys():

name = data["personName"]

if name != 'unknown person':

#If the person is known, the response will include the person's name

knownPerson(robot)

#Let's send ourselves a text message that our robot saw one of our friends

if not lastSentMessage or time.time() - lastSentMessage > 60:

sendTextMessage("Hey! I just saw " + name + " at the office! -Love Misty", '+1303XXXXXXX')

lastSentMessage = time.time()

assert subscription_key

vision_base_url = "https://westus.api.cognitive.microsoft.com/vision/v2.0/"

text_recognition_url = vision_base_url + "read/core/asyncBatchAnalyze"

headers = {'Ocp-Apim-Subscription-Key': subscription_key,

'Content-Type': 'application/octet-stream'}

params = {'mode': 'Handwritten'}

image_data = open(image_path, "rb").read()

response = requests.post(text_recognition_url, headers=headers, params=params, data=image_data)

response.raise_for_status()

response_final = requests.get(response.headers["Operation-Location"], headers=headers)

analysis = response_final.json()

results = ""

if ("recognitionResults" in analysis):

# Extract the recognized text, with bounding boxes.

for line in analysis["recognitionResults"][0]["lines"]:

print(line["text"])

results += line["text"] + " "

return [results]

Take a look for yourself github.com/MistyCommunity

Come talk to us at Booth 204 Sign up for the Workshop Thursday (6/20)

http://bit.ly/misty-brooklyn

top related