Merge pull request #890 from caorong:patch-1

pull/948/merge
Roman Donchenko 12 years ago
commit 127a152f76
  1. 6
      samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java

@ -215,9 +215,9 @@ public class FdActivity extends Activity implements CvCameraViewListener2 {
else if (item == mItemFace20)
setMinFaceSize(0.2f);
else if (item == mItemType) {
mDetectorType = (mDetectorType + 1) % mDetectorName.length;
item.setTitle(mDetectorName[mDetectorType]);
setDetectorType(mDetectorType);
int tmpDetectorType = (mDetectorType + 1) % mDetectorName.length;
item.setTitle(mDetectorName[tmpDetectorType]);
setDetectorType(tmpDetectorType);
}
return true;
}

Loading…
Cancel
Save