문제

I'm using the barcodescanner library from dm77 and it works just great.

Now I would like to use the front camera instead of the rear camera.

I can't find a way to do so, has anyone found a way to achieve this?

I made this work with ZXing native libraries, using Camera.open(Camera.CameraInfo.CAMERA_FACING_FRONT), but I now would like to use the other library that uses ZBar instead.

DM77's barcodescanner uses CameraUtils's getCameraInstance() to get the camera, which uses Camera.open(). I would like to change that behavior wihout having to clone and modify the original sources.

도움이 되었습니까?

해결책

Lokks like this is not possible without altering the sources.

I'll use the "raw" ZBar library or clone that dmyy's library.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top