x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Open CV / Unreal Engine Integration on Mac(with CMake)

Hello! I've been trying to get a prototype off the ground but am currently stuck at this step. OpenCV is properly installed and set up and I'm able to create basic Open CV command line Xcode projects without errors. Unfortunately the only documentation I can find on UE4/Open CV integration is for Windows and since I'm on Mac I've used CMake and need to know how this would be accomplished. I found one forum which indicated it had something to do with the Unreal Editor but it didn't seem clear what I needed to do.

Any help on the points below would be GREATLY appreciated:

  1. Provide detailed outline on integrating Open CV into Unreal Engine via Xcode/CMake

  2. Provide basic example code for webcam via OpenCv into the blueprints system.

Please note I am fairly new and self taught so no detail is too obvious or small to note, thanks again!

Product Version: UE 4.10
Tags:
more ▼

asked Jan 03 '16 at 01:35 AM in Everything Else

avatar image

cr4sh111
1 2 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

So your goal is to OpenCV function in UE4, then you need to add OpenCV in to build settings in build scripts, so compiler will know how to link to library. Keep in mind UE4 does not use XCode or VS build systems, or either CMake (but use them indirecly thats why they still needed to be installed), but it has it's own build system called UnrealBuildTool, because of that build settings in IDEs are mostly ignored and settings in build scripts are more valid.

Lucky for you someone made a nice wiki page showing how to use OpenCV in UE4, including setting up build scripts as well as make basic blueprint integration:

https://wiki.unrealengine.com/Integrating_OpenCV_Into_Unreal_Engine_4

Steps are very similar to any other library you want to use, but before you decide to use any external library makes sure that UE4 does not already have support for it's function (for example you don't need to link Steam library, there SteamOnlineSubsystem UE4 module for that) , using build-in functions is the safest and fastest route.

more ▼

answered Jan 03 '16 at 03:50 AM

avatar image

Shadowriver
35.7k 925 168 1102

avatar image cr4sh111 Jan 04 '16 at 03:45 PM

Thanks for your response but I'm afraid I still don't understand, I've tried to use that tutorial and it didn't make sense and seems to be for people using VS/Windows. I'll look for more documentation on the UnrealBuildTool and hopefully something will click.

avatar image Shadowriver Jan 05 '16 at 05:39 AM

Sorry, i though you C++ person considering you want to use OpenCV :p There is no offical OpenCV implementation for UE4, so only way of using it is C++, maybe try searching for some OpenCV plugin for UE4 (i can't find anything in breaf search), if you can't do it then someone else need to do it for you

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question