Code Monkey home page Code Monkey logo

chroma-key-demo's Introduction

Chroma Key Demo

Chroma Key Demo is an example demonstrating the Imaging SDK chroma key filter.

Tap on the upper original viewfinder to select a chroma key color (for example a green backdrop canvas) and use the color distance slider to adjust the threshold of the color range to be made transparent. Tap on the lower modified viewfinder to toggle between a video background and a "transparent" background.

This example application is hosted in GitHub:

For more information on implementation visit Lumia Developer's Library:

Developed with Microsoft Visual Studio Express for Windows Phone 2012.

Compatible with:

  • Windows Phone 8

Tested to work on:

  • Nokia Lumia 520
  • Nokia Lumia 1020
  • Nokia Lumia 1520

Instructions

Make sure you have the following installed:

  • Windows 8
  • Windows Phone SDK 8.0
  • Nuget 2.7+

To build and run the sample:

  1. Open the SLN file: File > Open Project, select the solution (.sln postfix) file
  2. Select the target 'Device' and platform 'ARM'.
  3. Press F5 to build the project and run it on device.

If the project does not compile on the first attempt it's possible that you did not have the required packages yet. With Nuget 2.7 or later the missing packages are fetched automatically when build process is invoked, so try building again. If some packages cannot be found there should be an error stating this in the Output panel in Visual Studio Express.

For more information on deploying and testing applications see: http://msdn.microsoft.com/library/windowsphone/develop/ff402565(v=vs.105).aspx

About the implementation

Important folders:

Folder Description
/ Contains the project file, the license information and this file (README.md)
ChromaKeyDemo Root folder for the implementation files.
ChromaKeyDemo/Assets Graphic assets like icons and tiles.
ChromaKeyDemo/Properties Application property files.
ChromaKeyDemo/Resources Application resources.

Important files:

File Description
Mainpage.cs Renders camera live feed to an Image removing selected color from the image.

Important classes:

Class Description
MainPage Renders camera live feed to an Image removing selected color from the image.

Known issues

None.

License

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

Background video attribution

The video oceantrip-small.mp4 used in this application is a short clip from http://www.youtube.com/watch?v=nzgfOBTNye0. The original video is copyright of the "zero-project" (http://www.zero-project.gr/) and licensed under the Creative Commons Attribution 3.0 Unported (CC BY 3.0) license (http://creativecommons.org/licenses/by/3.0/).

Version history

  • 1.1: Second public release of Chroma Key Demo

    • Updated to the latest Imaging SDK version 1.1.177
  • 1.0: First public release of Chroma Key Demo

chroma-key-demo's People

Contributors

mortonfox avatar shyofutu avatar shyoty avatar tompaana avatar

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

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

chroma-key-demo's Issues

Potential Deadlock

The following lines in App.xaml.cs wait synchronously on Tasks.

App.xaml.cs(70):            task.Wait();
App.xaml.cs(73):            Camera.SetPreviewResolutionAsync(resolution).AsTask().Wait();
App.xaml.cs(83):            task.Wait();
App.xaml.cs(86):            Camera.SetPreviewResolutionAsync(resolution).AsTask().Wait();

Synchronous waiting on tasks is dangerous, and may cause deadlocks.
Please refer to http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html for details.

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.