# Crash when set OpenCV resolution

**URL:** <https://forums.unrealengine.com/t/crash-when-set-opencv-resolution/429591>\
**Category:** Cinematics & Media\
**Tags:** opencv, unreal-engine, crash, UE4, CPP, question\
**Created:** [July 17, 2018, 10:29am UTC](https://forums.unrealengine.com/t/crash-when-set-opencv-resolution/429591 "2018-07-17T10:29:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WiHilliman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WiHilliman](https://forums.unrealengine.com/u/WiHilliman)\
**Post date:** [July 17, 2018, 10:29am UTC](https://forums.unrealengine.com/t/crash-when-set-opencv-resolution/429591/1 "2018-07-17T10:29:05Z")

</div>

I create a vs project use OpenCV to call a camera followed this link:[A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Detailed_Account_Of_Integrating_OpenCV_Into_UE4_With_VS2017) ,but when I modify the resize deminsions and run the UE ,It just crashed.I see maybe the problem is run this function: cv::resize(frame, frame, size);  
Is there anyone know how to solve this? Thanks a million!
