alchemist hour: image tagging
TRANSCRIPT
What will be covered today?
#AlchemistHour
• Image Tagging overview• Sample calls• Parameter explanation
The housekeeping items
#AlchemistHour
• Webinar slides, recording and Q&A will be emailed• Enter questions in chat on webinar panel• Interact with us on Twitter @alchemyapi
• Use #AlchemistHour
Remember, you can…
#AlchemistHour
• Get an API Key • Download an SDK• Check out the Getting Started Guides• Ask me questions!
AlchemyVision — Overview
#AlchemistHour
• Image-based content — an overwhelming data source!• Another type of unstructured data
• A pillar of AI• Practical applications are everywhere
• Adding keywords to images (enables text search)• Video analytics• Visual similarity search
Since 2014, AlchemyAPI has been providing a scalable and reliable solution to the computer vision problem: AlchemyVision
AlchemyVision — Overview
#AlchemistHour
• The goal: • Provided with image data (pixels only!), we want to
deliver meaningful, visually relevant keywords• Bonus: with an image library, serve up the most visually
similar images given an input image (again, pixels only!)
Making API Calls - cURL
#AlchemistHour
curl --data-binary @cat.jpg 'http://access.alchemyapi.com/calls/image/ImageGetRankedImageKeywords? apikey='$API_KEY'&imagePostMode=raw&outputMode=json'
{
"imageKeywords": [
{
"text": "cat",
"score": "0.999389"
}
]
}
Making API Calls - Python
#AlchemistHour
import requests
apikey=YOUR_API_KEY
picture = open('cat.jpg', 'rb').read()
url = "http://access.alchemyapi.com/calls/image/ImageGetRankedImageKeywords?apikey=%s&outputMode=json&imagePostMode=raw&forceShowAll=1" % apikey
r = requests.post(url = url, data = picture)
print r.text
Parameters
#AlchemistHour
• url – url of image• only used with endpoint URLGetRankedImageKeywords
• imagePostMode - set to raw, pass image via POST• only used with endpoint
ImageGetRankedImageKeywords• apikey – your API key• outputMode – json or xml• forceShowAll – set to 1 to include less relevant results• knowledgeGraph – set to 1 to expose knowledge graph info
Additional info
#AlchemistHour
• Maximum image document size is 1 MB• 4 transaction credits per image call, with 1 additional
transaction for knowledge graph info
• Look out for a follow up email with a copy of these slides, a recording of the webinar, Q&A recap, and additional resources
• The series continues bi-weekly on Wednesdays @ 12pm ET / 9am PT
• June 10 - Entity Extraction
• June 24 - Face Recognition
#AlchemistHour
What’s next?
Contact us1-877-253-0308
Thank you for attending!
#AlchemistHour