{
//2
If (pDoc - & gt; The count==0)
{
PDoc - & gt; count++;
//mouse response
//Rect2d bbox1=selectROI (img1_tmp, true);
//Rect2d bbox2=selectROI (img2_tmp, true);
Rect2d bbox1 (0, 0, 20, 20);
Rect2d bbox2 (0, 0, 20, 20);
A rectangle (img1_tmp bbox1, Scalar (0, 255, 0), 2, 1);
A rectangle (img2_tmp bbox2, Scalar (0, 255, 0), 2, 1);
Trackxz - & gt; Init (img1_tmp bbox1);//the left camera
Trackxy - & gt; Init (img2_tmp bbox2);//top camera
}
The else
If (bbox1 width!=0 & amp; & Bbox2 width!=0)
Particledetect3d ();
}
ROI area to 0 in the update, lead to can't normal track, do you have a great god know opencv use two questions tracker? Thank you very much
CodePudding user response: