OpenCV c++ highgui library with windows store

asked 2014-05-07 15:33:57 -0600

Hi,

I am trying to use c++ highgui library to capture frames from camera and apply face detection on the frame using Windows Store app (XAML UI).

Before, I was able to do such job in an ordinary desktop application. A while ago, I installed OpenCV 2.4.8 release which is supposed to support WinRT and it has a sample that apply grayscale and other operations on an image.

But when I tried to use cv::VideoCapture with highgui imported and then ran the app, it gave me an exception.

Please suggest what I have to do to enable Highgui library functions on windows store apps.

edit retag flag offensive close merge delete

Comments

2

after reading this twice, i still don't know, what the actual problem with windows store and highgui might be. could you explain a bit more here ?

if there was an exception, which one exactly ?

berak gravatar imageberak ( 2014-05-07 15:41:43 -0600 )edit

thanks for your quick response. I am talking about OcvImageProcessing sample installed with 2.4.7 release. When I run it as it is it run without any problem and I am able to apply grayscale on lena image.

But when I add a line such as this: cv::VideoCapture camera(0); which depends on highgui library and run the application it crashes with an exception:

Unable to activate Windows Store app.... The OcvImageProcessing.exe process started, but the activation request failed with error. The app didn't started.

Ameer Nasrallah gravatar imageAmeer Nasrallah ( 2014-05-07 15:54:32 -0600 )edit

You need to start with a debug session to grab the actual error. I am guessing you are forgetting a link to a library or a missing include?

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-08 04:52:15 -0600 )edit