|
Re: Camera code does not recognize target
Having spent a good bit of time trying to get good target detection, I have found that there seems to be a problem with the C++ code. In the target.cpp file the sort function does not seem to actually sort the targets. So if the real target happens to be first on the list the program will appear successful but otherwise the program will either find something that is not the real target or not find any valid targets.
Another team mentor looked up information about the sort function and thinks the function is looking for a boolean comparison rather than a 1 or -1 integer. I have not had a chance to try changing to a boolean comparison but expect that will likely fix the problem.
|