Giter Club home page Giter Club logo

real-time-filter-demo's Introduction

Real-time Filter Demo

A Lumia example application demonstrating the use of the Lumia Imaging SDK for real-time image effects. The effects are applied to the stream received from the camera and shown in the viewfinder. This app does not support capturing photos.

This repository contains two separate implementation solutions:

RealtimeFilterDemoWP - Real-time Filter Demo for Windows Phone 8

RealtimeFilterDemoWindows - Real-time Filter Demo for Windows and Windows Phone 8.1 |

These example applications are hosted in GitHub: https://github.com/Microsoft/real-time-filter-demo/

License

See the license text file delivered with this project: https://github.com/Microsoft/real-time-filter-demo/blob/master/Licence.txt

real-time-filter-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

real-time-filter-demo's Issues

Potential Deadlock

Code in Application_Launching method of real-time-filter-demo/RealtimeFilterDemoWP/RealtimeFilterDemo/App.xaml.cs, shown below, may deadlock.

var task = PhotoCaptureDevice.OpenAsync(CameraSensorLocation.Back, resolution).AsTask();
task.Wait();
...
Camera.SetPreviewResolutionAsync(resolution).AsTask().Wait();

This code waits synchronously on Tasks -- mixing synchronous and asynchronous operations is
dangerous, as noted here: http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html

A possible fix is to run the async operation OpenAsync on a threadpool thread using the Task.Run API documented here: https://msdn.microsoft.com/en-us/library/system.threading.tasks.task.run(v=vs.110).aspx

How to set front camera as source in WP8.1 version?

In "real-time-filter-demo / RealtimeFilterDemoWindows / RealtimeFilterDemo.Shared / MainPageViewModel.cs"
camera is initialized in following command:
await _cameraPreviewImageSource.InitializeAsync(string.Empty);

It sets front camera as image source on my Windows Phone 8.1 device. How can I set back camera? String parameter preferedDeviceId should be "name of the camera to use for preview" but I don't know what exactly should I put as camera name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.