Prevent flipping of the front facing camera

前端 未结 2 2056
夕颜
夕颜 2020-12-03 15:01

I\'m attempting to access the raw feed of android\'s front facing camera. By default, the front facing camera\'s preview is flipped horizontally so users can see themselves

2条回答
  •  死守一世寂寞
    2020-12-03 15:52

    The data from the front camera is as the camera the sees it, looking at you. The left side of its image is your right side. I think this is what you want already? When put onto a SurfaceView it is flipped so it acts as you say, but that's a separate cosmetic transformation.

    At least, this is how every device I've seen works and I've looked hard at this to implement front camera support in Barcode Scanner / Barcode Scanner+.

提交回复
热议问题