修复鼠标框识别逻辑不对的问题

1600-900
Jeffrey_Li 2 years ago
parent 02edff48f1
commit a65d0b6006

@ -76,10 +76,16 @@ bool CheckSelectRects(
int LabelCnt
)
{
bool find;
if (!(t_DisplayLabelConf.Flag[LabelCnt] & DisplayLabel_Type_Bit))
{
return false;
}
if (VecCnt < VecRects.size())
{
for (int i = 0; i < VecRects[VecCnt].size(); i++)
{
find = false;
for(int j = 0; j < t_DisplayLabelConf.RectVet[LabelCnt].size(); j++)
{
cv::Rect LocalRect = VecRects[VecCnt][i].second;
@ -94,11 +100,16 @@ bool CheckSelectRects(
)
);
if(LocalRect != (LocalRect & CheckRect))
cv::Rect tempRect = (LocalRect & CheckRect);
if(LocalRect == tempRect)
{
return true;
find = true;
}
}
if(!find)
{
return true;
}
}
}
return false;

Loading…
Cancel
Save