Моя реализация onCameraFrame() выглядит следующим образом:
Код: Выделить всё
@Override
public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
final Mat frame = inputFrame.rgba();
return bs.process(frame);
}
Код: Выделить всё
@Override
public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
final Mat frame = inputFrame.rgba();
Mat result = bs.process(frame);
frame.release();
return result;
}
Подробнее здесь: https://stackoverflow.com/questions/402 ... inputframe
Мобильная версия