简体   繁体   中英

How to use 2 camera preview in surfaceView Android

Recently I am trying to make a simple OCR app that reads numbers from a image. And I want to use 2 preview in the camera to take the image in android like the link below.

在此处输入图片说明

Is it possible to use two surfaceView to take the image in android or are there any better solution ?

That doesn't look like two camera previews. That looks like one camera preview with a couple of rectangles and some text drawn on it. Unless I'm missing something, you should be able to use a custom View , or a second SurfaceView with setZOrderMediaOverlay(true) set, to render on top of the camera preview surface.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM