| | |
| | | using namespace std; |
| | | |
| | | struct ScoredRect { |
| | | ScoredRect() : id(-1) ,isMask(false){} |
| | | bool isMask; |
| | | ScoredRect() : id(-1) ,isMove(false),times(0){} |
| | | bool isMove; |
| | | time_t times; |
| | | float score; |
| | | cv::Rect rect; |
| | | long id; |
| | |
| | | if (lastRect.id >= 0 && (rect.rect & lastRect.rect).area() > lastRect.rect.area() * 0.4) { |
| | | found = true; |
| | | rect.id = lastRect.id; |
| | | lastRect.properties["time"]=rect.properties["time"]; |
| | | lastRect.properties["imgKey"]=rect.properties["imgKey"]; |
| | | rect.properties = lastRect.properties; |
| | | tempScoreRects.push_back(rect); |
| | | break; |