Google Glass API Full Details
Written by Mike James   
Tuesday, 16 April 2013

With the shipping of the Google Glass Explorer kit to the lucky people who qualified, Google has released detailed specifications for the hardware and the full Mirror API.


googleglassgal

One thing about Google Glass that is becoming tiresome is the range of glass related names being invented.

What is a Glass app called? 

Glassware of course.

The Mirror API, as explained in our earlier news item Google Glass The Mirror API - How It Works, is a Restful API that works within a fairly simple interaction framework. The user can navigate through a timeline of display cards by swiping and taping on the side arm of the glasses. Using the API you can: 

  • Create new cards on a timeline
  • Update current cards on a timeline
  • Receive user-initiated input exposed through a card's menu
  • Subscribe to notifications from Glass devices to be notified of user actions

 If you take a look at the API specification then you might be surprised at how simple it is, but you need to remember that Glass is just an I/O device - an innovative one but the main actions are to display small chunks of information to the user and receive some very simple user gestures. 

 

mirrorglass1

 

The layout of the Timeline cards doesn't use HTML directly. It uses a JSON encoding of a range of allowed items. For example, the text:string property sets the text to be displayed in the card. There are properties that allow you to take advantage of the advanced hardware. For example, speakableText adds a menu option that the user can tap to hear the string read aloud. For more complex layouts there is an html property that you can use to specify the HTML that determines the look of the card. What isn't clear at the moment is the range of HTML tags that you can use. The documentation suggests sticking with the supplied templates.  

Also important are the technical details of the display:

  • Screen aspect ratio: 16x9
  • Screen resolution: 640 x 360 pixels
  • Share contact icon size: 640 x 360 pixels
  • Menu option icon size: 50 x 50 pixels
  • Supported media format:
    Container: MP4
    Video: H.264 baseline and H.263 baseline
    Audio: AAC and MP3

 You can also include attachments to the card in the form of a photo, audio or video files. Cards can also be bundled into sets that the user can work with as a group.

There is also an online tutorial to get you started. It only covers using Java or Python at the moment - but REST isn't difficult in any language. 

As you read through the reference material the main impression that you form is "simple". This is both good and bad. It is good that you can understand the API in a few minutes, but it does slightly depress the enthusiasm - surely cutting edge technology should have more going for it? 

The point is that Glass is just an I/O device and as such the interaction with it should be simple. What makes the system exciting is what you can build on the server side that delivers the information to the wearer and responds to requests in novel ways. 

As well as the API we also have details of the hardware:

Display

High resolution display is the equivalent of a 25 inch high definition screen from eight feet away.

Camera

  • Photos - 5 MP
  • Videos - 720p

 Audio 

  • Bone Conduction Transducer

 Connectivity

  • Wifi - 802.11b/g
  • Bluetooth

 Storage 

  • 12 GB of usable memory, synced with Google cloud storage. 16 GB Flash total.

Battery

One full day of typical use. Some features, like Hangouts and video recording, are more battery intensive.

 

There is also an Android app that lets Glass use your phone as a communications and GPS device.  It seems that Glass is better paired with an Android and this should come as no surprise.

As well as the documentation Google also have released some videos on creating Glassware:

In this video Timothy provides guidance on developing for Glass:

 

 

 

Here Timothy explains how Contacts work in the Google Mirror API:

 

Next, Timothy explains how Menu Items work in the Google Mirror API:

 

 

And now he explains how Timeline Cards work in the Google Mirror API.

 

 

Finally, Timothy explains how Subscriptions work in the Google Mirror API.

 

 

 

timelinecard

 

More Information

Google Glass API

Google Glass Tech Specs

Related Articles

Google Glass The Mirror API - How It Works

Google I/O 2013 Website Opens With Lots Of Fun       

Opportunity To Become a Glass Explorer 

Google Glass Developer Events       

Sight - A Short Movie About Future AR

Google Glass - The Microsoft Version

Google Glass - How it Could Be

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

blog comments powered by Disqus

 

Banner


Robots That Can See Through Walls
21/08/2014

Using WiFi signals a pair of robots can detect unseen features behind thick solid walls and can differentiate between materials, giving the ability to detect the presence of humans.



GraphLab Create
29/07/2014

Software designed to let data science teams gain insights into big data up to 10,000 times faster than rival products has been announced by GraphLab and is downloadable for free.


More News

 

 

Last Updated ( Tuesday, 16 April 2013 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.