简体   繁体   中英

OpenCV Error : Assertion failed while calling detectMultiScale

Getting OpenCV Error : Assertion failed while calling detectMultiScale for human body detection using webcam.

Error details

Unhandled exception at 0x000007FEFD9F9E5D in BodyDetection.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000001AF470.

OpenCV Error : Assertion failed (0 <= roi.x && 0<= roi.width && roi.x + roi.width <= m.cols && 0<= roi.y && 0<= roi.height && roi.y + roi.height <= m.roys) in cv:: Mat :: Mat, file C:\\builds\\master_PackSlave-win64-vc12-shared\\opencv\\modules\\core\\src\\matrix.cpp, line 508

I'm using visual studio 2013 with x64

This was mainly because of opencv files that i have installed. 32 bit and 64 bit is a tricky one!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM