Tracking direction is reversed in front Camera mode
when i use tracker to track object.
in back Camera mode,The tracking object moves to the left and the check box moves to the left.
in front camera mode,The tracking object moves to the left and the check box moves to the right.!?
Is this a problem caused by data inversion? How to solve it?(ps:I do not use JavaCameraView.)
no, tracking usually does not behave like that. it sounds more like a bug in your program
@berak isUpdate = mTracker.update(mSrcMat, mSelectArea); Log.e("rain", "run: -- isUpdate = "+isUpdate+"--"+mSelectArea.x+"--"+mSelectArea.y);
but,i print the log. It is found that the printed value should have been increased (Rect2d moved to the right), but the actual value is smaller (Rect2d moves to the left)
maybe you flipped the image ?
again, i do not think, the tracking is the problem here.
@berak in front mode ,i try to use Core.flip(Mat src, Mat dst, int flipCode) ,and flipCode select 1(1>0).then, mTracker.update(dst, mSelectArea);
i found it's ok!