1 / 28

Camera & Sensors in Windows Phone Application

Session Code. Camera & Sensors in Windows Phone Application. Larry Lieberman Product Mgr , Windows Phone Developer Microsoft Corporation. Agenda. What sensors are available, and how do I use them? How do I access the camera to address various scenarios.

denver
Télécharger la présentation

Camera & Sensors in Windows Phone Application

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Session Code Camera & Sensors in Windows Phone Application Larry Lieberman Product Mgr, Windows Phone Developer Microsoft Corporation

  2. Agenda • What sensors are available, and how do I use them? • How do I access the camera to address various scenarios

  3. New scenarios enabled in Windows Phone 7.5 • Augmented reality • Barcode scanning apps • Custom cameras • Image processing

  4. What hardware sensors are supported? • Accelerometer • Compass • Gyro New for 7.5

  5. Motion sensor All the sensors + a bunch of math! Motion Sensor Use this sensor whenever available

  6. Why not always use motion sensor? • Motion.IsSupported is false • Motion will work even without gyroscope • When you want data specific to the sensor reading • Accelerometer – acceleration (in g’s) • Gyro –rotational velocity (rad/s) • Compass – heading (degrees) • Advanced Usages • Custom motion algorithms • Gestures • ?

  7. Two Ways to Access the Camera • PhotoCamera Class: • New ISV Managed API developed for WP • Silverlight 4 WebCam API • Ported SL4 API with added functionality and perf

  8. Scenarios Dictate Which Camera API Choice

  9. Camera “Good to Know” • Output for Video recorded is MP4 • Always check for device specific support for Flash mode • Use Y or YUV format for Processing Samples

  10. Hardware Availability and Debugging • Not all phones will have same hardware configuration • Gyro and Compass optional (but if Gyro present, Compass present) • Motion Sensor quality based on sensors present • Accelerometer, Gyro, and Compass - best quality • Accelerometer and Compass – good for AR scenarios(reduced quality without Gyro) • Physical hardware required for most debugging scenarios • Accelerometer can be debugged with emulator

  11. Re-cap • Gyro, compass, and motion sensor are coming • The new motion sensor class does all the hard math for you • You can still access raw sensor data if you need to • New camera API’s will enable cool new scenarios on the phone • Augmented Reality • Customer Photo Camera Questions?

  12. Summary • Many of the most compelling mobile applications and games leverage sensors to create wildly interactive experiences

  13. Related Content

  14. Resources

  15. Feedback Your feedback is very important! Please complete an evaluation form! Thank you!

  16. Questions? • Session Code • Speaker Name • Title • Email • Blog • … • You can ask your questions at “Ask the expert” zone within an hour after end of this session

  17. Session Code Company Name Company Title of Presentation Name

  18. Session Code Company Name Company Name Company Title of Presentation Name

  19. Contents

  20. Slide Title • First level • Second level • Third level • Fourth level • Fifth level

  21. PowerPoint Guidelines • Font, size, and color for text have been formatted for you in the Slide Master • Use the color palette shown below • Hyperlink color: www.microsoft.com Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill

  22. Bar Chart Example

  23. Demo Title Name demo

  24. Video Title video

  25. Announcement Title announcement

  26. Code Sample • Get-Process –computername srv1 • class TechEdProgram • { • public static void Main() • { • System.Console.WriteLine("Hello, Tech·Ed!"); • } • }

More Related