title: Code not detecting mouth in opencv and c++
body: <p>I am using C++ and opencv. I am using the code from this post <a href="https://stackoverflow.com/questions/21248611/opencv-assertion-failed">OpenCv assertion failed</a> ,ie,with the answer. However I slightly changed the code by dividing mouthROI.width and mouthROI.height by 5. The code displays a red rectangle near the eyes region when it should have detected the mouth. Does anyone know what is wrong with the code?thanks</p>