|
AIRSnapshot
AIR Snapshot Application
IntroductionAIR application that takes an image from a webcam, geotags it, and uploads it to a flickr account. Application built for the Adobe on AIR Bus Tour. Requirements
SourceSource is in Flex 3 and ActionScript 3. You can compile it using mxmlc (included in Flex 3 SDK Beta) or in Flex Builder 3 beta. Compiling
ScreenshotsScreenshot after an image has been taken Flickr Authorization Panel Settings Panel UsageCurrently, there is not an AIR file for distribution, so to use, you must first compile and either launch via ADL or Flex Builder, or build and install an AIR file. Before using the application you must fill in the settings, and authorize the application with Flickr. SettingsThe following settings are required:
Normally, the Flickr API Key and Secret of the application author is compiled into the application. However, because this is an open source project, you must supply your owb key and secret. Flickr has a page with information on how to obtain a key. The key should have an Auth mode of Desktop. Flickr AuthorizationOnce you have specified your Flickr API Key and secret in the settings, then you must authorize the application with Flickr. This will all the application to upload images to your Flickr account. To do this, click the authorize button, and follow the steps in the wizard. Setting up the WebcamIn order to set up your webcam:
If the output of the webcam does not show up in the application, make sure that another program is not already access the webcam. Taking a pictureOnce the application is authorized with Flick, and the webcam is set up, you can take a picture by clicking the "Take Picture" button. This will take a picture of the current webcam view, encode it into a PNG, and then upload it to the Flickr account. Geo Encoding ImagesIf the application is called from the command line, and passed latitude and longitude, then an image will automatically be taken, geo-encoded, and uploaded to flickr. Latitude and longitude are expected in the following format: latitude=-122.437858 longitude=37.736639 Thus, to pass this information into the application in Windows: AIR Snapshot.exe latitude=-122.437858 longitude=37.736639 and on Mac: AIRSnapshot.app/Contents/MacOS/AIRSnapshot latitude=-122.437858 longitude=37.736639 This will take a picture, geo-tag it with the specified information, and upload it to Flickr. This allows you to use a program like gpsbabel to interface with your GPS device, and then pass the information into the application. OfflineIf the application is running offline, then images will be save to the file system, and then uploaded once the application can connect to Flickr again. Code HighlightsThe application contains examples of:
Bugs / Feature RequestsPlease log any bugs and / or feature requests on the Issues page. //todo:
|
Sign in to add a comment


