2020-10-04 08:32:45 -0600 | received badge | ● Student (source) |
2012-12-10 06:08:58 -0600 | asked a question | OpenCV crop function fatal signal 11 Hello I am doing an android app which uses OpenCV to detect rectangles/squares, to detect them I am using functions (modified a bit) from squares.cpp. Points of every square found I am storing in vector<vector<point>> squares, then i pass it to the function which choose the biggest one and store it in vector<point> theBiggestSq. The problem is with the cropping function which code i will paste below (i will post the link to youtube showing the problem too). If the actual square is far enough from the camera it works ok but if i will close it a bit in some point it will hang. I will post the print screen of the problem from LogCat and there are the points printed out (the boundaries points taken from theBiggestSq vector, maybe it will help to find the solution). video of my app and its problems cords printed respectively are: roi.x roi.y roi.width roi.height Another problem is that the boundaries drawn should have a green colour but as you see on the video they are distorted (flexed like those boundaries would be made from glass?). Thank you for any help. I am new in openCV doing it from only one month so please be tolerant. |