none
Using Face SDK in Windows 8 Store App

    Question

  • Hi, currently, we are in the process of porting one of our apps http://www.whatsmyheartrate.com to Windows 8 Store App platform (Metro Style)

    We are very much interested in making use of Microsoft Face SDK, as drop in replacement for OpenCV. OpenCV itself is not being supported in Windows 8 Store App (Metro Style) at this moment.

      • Can Microsoft Face SDK be used in Windows Store App? As according to license agreement, it seems that it was only allowed to be used in Windows Phone App.
      • Can Microsoft Face SDK be used directly in Windows Store App? As initially, this SDK is created for Windows Phone platform. May I know what sort of modification needed, to make this SDK plays well in Windows Store App?

    Thanks a lot!

    Cheok


    Thursday, October 11, 2012 2:50 AM

Answers

  • Cheok,

    Thanks for your interest in Face SDK. Current version is restricted to Windows Phone apps only.

    I haven't tried it in Windows Store apps. I guess there might be some problem since the SDK and Win8 apps use different .NET Frameworks. Your experiment might have already proven this.

    Thanks.

    Friday, October 12, 2012 6:58 AM
    Owner

All replies

  • Although I know licensing prohibits me from doing this, I try to do an internal testing for sick of curiosity purpose :)

    I have the very basic Windows 8 Store App project code

    With reference to 

    • Microsoft.FaceSdk.Cartoon.Wp7
    • Microsoft.FaceSdk.Core.Wp7
    • Microsoft.FaceSdk.Detection.Wp7
    • Microsoft.FaceSdk.Tracker.Wp7
    • Microsoft.FaceSdk.Utility.Wp7
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    using Microsoft.FaceSdk.Tracker;
    using Microsoft.FaceSdk.Image;
    using Microsoft.FaceSdk.ImageHelper;
    
    namespace App2
    {
    
        /// <summary>
        /// An empty page that can be used on its own or navigated to within a Frame.
        /// </summary>
        public sealed partial class MainPage : Page
        {
    
            public MainPage()
            {
                var input = new Microsoft.FaceSdk.Image.ImageGray((int)100, (int)100);
    
                this.InitializeComponent();
            }
    
            /// <summary>
            /// Invoked when this page is about to be displayed in a Frame.
            /// </summary>
            /// <param name="e">Event data that describes how this page was reached.  The Parameter
            /// property is typically used to configure the page.</param>
            protected override void OnNavigatedTo(NavigationEventArgs e)
            {
            }
        }
    }

    When performing compilation, I get the following error.

    Error	1	The "GenerateResource" task failed unexpectedly.
    System.InvalidOperationException: Item named 'resources/template/background/beard.01.jpg' of type 'System.IO.UnmanagedMemoryStream' cannot be added to the resource file because it is not serializable.
       at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, IResourceWriter writer)
       at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(ReaderInfo reader, String filename)
       at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFileOrDir)
       at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
       at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass, Boolean extractingResWFiles, String resWOutputDirectory)
       at Microsoft.Build.Tasks.GenerateResource.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()	App2

    So, does it mean, it is not possible to use Microsoft Face SDK in Windows 8 Store App? Or, is there any workaround, or hacking way I can apply?

    Thanks a lot!

    Cheok


    Thursday, October 11, 2012 3:57 AM
  • Cheok,

    Thanks for your interest in Face SDK. Current version is restricted to Windows Phone apps only.

    I haven't tried it in Windows Store apps. I guess there might be some problem since the SDK and Win8 apps use different .NET Frameworks. Your experiment might have already proven this.

    Thanks.

    Friday, October 12, 2012 6:58 AM
    Owner
  • I am facing the same issue. I want to make an application for Windows 8 that uses Face SDK. Is there anything new related to terms of use, or portability?

    If not, can you please give me an alternative to this SDK?

    Thanks

    Tuesday, April 22, 2014 11:22 PM