Did you mean to implement the member method:
vector<Rect> Detection::detection(string fileName)
{
//...
}
instead of the free function
vector<Rect> detection(string fileName)
?
Note that if you reached the linking stage without any compiler errors, it means that detection
can probably be marked as static
or even be a free function, as it doesn't appear to be directly tied with a single Detection
object.
Also, consider passing fileName
by const
reference.