'OpenCV integration in Unreal Engine Problem

I wanted to integrate OpenCV in Unreal and also test that the integration worked well. To do so, I followed those tutorials : https://www.youtube.com/watch?v=YOidIl2kTD0 and https://www.youtube.com/watch?v=IOJ2iMGXaS0, the tutorial gets the webcam input and adds some effects to it thanks to OpenCV (in the Unreal Engine Scene).

Everything compiles fine, but as soon as I put the CameraReader_BP in the Unreal Engine Scene and hit the "play" button (just like in the end of the second tutorial, see 18:38 & 18:49 mins), it crashes completely.

Notes : I work on Unreal Engine 4.27 and Visual Studio 2019, which are compatible according the the Unreal documentation. I use OpenCV 4.5.4. Also, I was able to make OpenCV work fine on Visual Studio (without putting Unreal in the equation, like in this tutorial : https://www.youtube.com/watch?v=vDhKsqCdZpQ). I also installed "debbugging symbols" from the Unreal Engine Laucher.

Has someone any idea how to deal with that ?

Thank you, Mathilde



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source