locked
OpenCV Web Service RRS feed

  • Question

  • Hi,

    I have created a c++ project using Visual Studio 2012 and OpenCV 2.4.4. I would like to know the best way to create a web application or web service from my project and host it using Azure.

    The idea is that a user upload an image, the script take the image, make calculations and manipulations and return some values from a csv file and also images.

    I have not found details how I could achieve that?

    Please help me to solve my problem and host my application using azure worldwide.

    Thank you

    Tuesday, February 23, 2016 3:42 PM

Answers

All replies

  • It sounds like you just want to deploy a web service created using C++ and OpenCV. There are a few ways to do it, none of which has anything to do with Azure ML.

    You can use Azure Web Apps, Azure PaaS Cloud Service, or Azure IaaS VM. I'd start with Azure Web Apps.

    • Proposed as answer by Hai Ning Wednesday, February 24, 2016 5:51 AM
    Wednesday, February 24, 2016 5:32 AM
  • Hi,

    thank you for the answer. I have no idea how to do that using Azure Web Apps. Where can I find a step by step how to port my c++ project from visual studio and opencv 2.4.x to the azure web app? I found step by step using c# but not c++.

    Thanks

    Wednesday, February 24, 2016 8:26 AM
  • You can create a simple C# web service, add your compiled C++ project as a reference DLL, use .NET PInvoke (Platform Invoke Service) to call the C++ functions from within your C# project. Then deploy the web service into Azure as a Azure Web App.
    Thursday, February 25, 2016 2:28 AM
  • Hi, thank you for the good news.

    So if I will create this web service and host on Azure, will more users be able to run my app at the same time without a performace or other problem? What would you suggest?


    • Edited by etrust05 Thursday, February 25, 2016 1:24 PM
    Thursday, February 25, 2016 1:23 PM
  • Yes there are many scale options using Azure Web Apps.

    https://azure.microsoft.com/en-us/documentation/articles/web-sites-scale/

    • Edited by Hai Ning Friday, February 26, 2016 6:10 AM link
    • Proposed as answer by Hai Ning Tuesday, March 1, 2016 3:06 AM
    • Marked as answer by Roopali V Kaujalgi Tuesday, March 1, 2016 6:20 PM
    Friday, February 26, 2016 5:57 AM