How to make a crop camera view on SurfaceView Android

后端 未结 2 694
孤独总比滥情好
孤独总比滥情好 2021-02-06 18:54

I want to create an cropping application using surfaceview on the android operating system. I\'ve made ​​a display surface for displaying direct view camera, but I still fails w

2条回答
  •  轮回少年
    2021-02-06 19:25

    Check this tutorial. Displays a camera preview and a custom view than can define your region to be cropped, by dragging. You can modify it according to your needs. The only problems I could find are with orientation of the screen, that modify the preview, and of the resulting image.

    http://adblogcat.com/a-camera-preview-with-a-bounding-box-like-google-goggles/

提交回复
热议问题