Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Using OpenCVSharp in Unity 5

Discussion in 'Scripting' started by simitro, Aug 25, 2016.

  1. simitro

    simitro

    Joined:
    Feb 13, 2015
    Posts:
    123
    Hi, I've been trying to get OpenCVSharp running in Unity for the past 2 days and can't get it to work. I've seen the OpenCV Asset in the Asset Store, but I can't afford it. Does anyone have any experience in getting OpenCV to run in Unity? Any help would be very appreciated!
     
  2. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    I guess now you know why the Asset Store product is so expensive. :)

    @Billy4184 didn't you say you've worked with OpenCV before on some robotics project?
     
  3. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    5,981
    Hmm I never used it in Unity, I just imported it (C++ version) into Visual Studio, and that was a couple of years ago now. If I have time in the next week or two I might try it out and see what happens.
     
  4. FreeFly90

    FreeFly90

    Joined:
    May 28, 2016
    Posts:
    177
    I managed to make it work just a couple of days ago, and it took me two days too to figure out how to properly configure it. To make it easier for you, I've created a plugin folder, you can download it from HERE, copy and paste it inside your project and you're almost done. Be sure to include the OpenCvSharp namespace in your file and to call the functions using the "Cv" prefix, that should be it.
     
    Last edited: Aug 25, 2016
    Billy4184, simitro and MV10 like this.
  5. simitro

    simitro

    Joined:
    Feb 13, 2015
    Posts:
    123
    Thank you very much, but Mega wants some kind of key. Can you send me a message or something?
     
  6. FreeFly90

    FreeFly90

    Joined:
    May 28, 2016
    Posts:
    177
    I clicked on "share link without key", but it didn't listen .-. HERE's a dropbox link, it should work this time :)
     
    JoeStrout and simitro like this.
  7. simitro

    simitro

    Joined:
    Feb 13, 2015
    Posts:
    123
    Ok, it works! Thank You!
     
  8. FreeFly90

    FreeFly90

    Joined:
    May 28, 2016
    Posts:
    177
    You're welcome! :)