Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Lev · Jun 02, 2015 at 11:01 AM · osxopencvemgucv

opencv (emgucv) not working in unity in osx?

i am at the point, where i just would want to know if anybody out there has emguCV.unity running inside unity in osx?

there are many tips concerning DllNotFoundExceptions and unity. all of them do not work in my case. i spent allmost four days searching and trying out everything.

the exact error is:

System.TypeInitializationException: An exception was thrown by the type initializer for Emgu.CV.OCR.OcrInvoke ---> System.TypeInitializationException: An exception was thrown by the type initializer for Emgu.CV.CvInvoke ---> System.DllNotFoundException: Assets/Plugins/emgucv.bundle/Contents/MacOS/libopencv_core.3.0.0.dylib at (wrapper managed-to-native) Emgu.CV.CvInvoke:cvRedirectError (Emgu.CV.CvInvoke/CvErrorCallback,intptr,intptr) at Emgu.CV.CvInvoke..cctor () [0x001f7] in /Users/Lev/Documents/workspace/Text_Scanner/Assets/Emgu.CV/Emgu.CV/PInvoke/CvInvoke.cs:353 --- End of inner exception stack trace --- at Emgu.CV.OCR.OcrInvoke..cctor () [0x00006] in /Users/Lev/Documents/workspace/Text_Scanner/Assets/Emgu.CV/Emgu.CV.OCR/OcrInvoke.cs:26 --- End of inner exception stack trace --- at Emgu.CV.OCR.Tesseract..ctor () [0x00011] in /Users/Lev/Documents/workspace/Text_Scanner/Assets/Emgu.CV/Emgu.CV.OCR/Tesseract.cs:45

(there is the emgucv.bundle in Assets/Plugins/ with the libopencv_core.3.0.0.dylib inside at the correct position. i copied the dylibs and the whole bundle to alle possible positions. including the project folder, unity-editor folder, ...)

there is no compilition error. the error happens after starting play in editor and in standallone mac as well. i built emgucv with the cmake settings in emgucv.unity from emgucv 3.0.0.

(i even tried opencvsharp did not work neither)

i am desperate. please help me or just tell me, there is no way.

thanks in advance, lev

Comment
Add comment · Show 11
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mahlm · Aug 04, 2015 at 08:41 PM 0
Share

Did you ever figure this out? I can help if you need E$$anonymous$$GU running within unity on OSX, however, still working on getting it working when exporting to Android/iOS.

avatar image daniellima · Aug 28, 2015 at 11:16 AM 0
Share

@daniellimahp Having the exact same problem here... Any news @mahlm ???

avatar image mahlm · Aug 28, 2015 at 03:30 PM 1
Share

@daniellima - I contacted the E$$anonymous$$GU $$anonymous$$m, and they basically told me the public release wont work on iOS (as of stable release early aug) . However, you can request a trial for the Unity E$$anonymous$$GU asset.

avatar image daniellima · Aug 28, 2015 at 03:37 PM 0
Share

And android? I can generate AP$$anonymous$$ file and install on androids, but get the error: cvextern library not found... Tried many things

avatar image mahlm · Aug 28, 2015 at 03:42 PM 1
Share

@daniellima, sorry, I never tried exporting to Android - I'd assume it's the same case as iOS. Probably be easier to contact them.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Lev · Aug 05, 2015 at 09:23 AM

this is, how i got it to work:

  1. do as instructed here until the cmake command (don't do the cmake) http://www.emgu.com/wiki/index.php/Download_And_Installation#OSX instead do:

  2. cd platforms/osx/

  3. ./configure_universal

  4. ./makeBundle

  5. cd ../../Emgu.CV.Unity/

  6. ./copy_unity_assets

  7. ./copy_demo_assets

  8. then copy the folder Emgu.CV.Unity to your workspace and open it with unity as a project.

that was it for me :-)

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mahlm · Aug 05, 2015 at 02:49 PM 0
Share

That works when exporting from unity into xcode for iOS? That's where I get my road blocks.

avatar image Lev · Aug 05, 2015 at 02:57 PM 0
Share

no sorry, i have no idea how to integrate E$$anonymous$$GUCV with iOS. that is just what i did to have E$$anonymous$$GUCV working in OSX. (answer for my own question) sorry mahlm :-(

avatar image mahlm · Aug 05, 2015 at 02:59 PM 0
Share

No problem, I'll keep plugging away at it. I'll post a solution if I find one. Thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Plugins on OSX (OpenCV and EmguCV) 2 Answers

C#, EmguCv, opencv and mavericks 0 Answers

OpenCV integration 2 Answers

Open CV (Emgu CV) integration with unity 2018.1 0 Answers

EMGUCV with Unity : System.Windows.Forms.dll assembly is referenced by user code, but is not supported on Android platform. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges