Practice Guide for Camera development on Android platform

Article catalog I. Camera Practice Guide 1.1 turn on the camera 1.2 turn off the camera 1.3 open Preview 1.4 close Preview 1.5 taking photos 1.6 start video recording 1.7 end video recording II. Camera2 Practice Guide 2.1 turn on the camera 2.2 turn off the camera 2.3 open Preview 2.4 close Preview 2.5 ...

Posted on Mon, 08 Jun 2020 22:51:00 -0400 by gelwa

android virtual camera

At the moment when I typed the title, I was a little excited. After all, the virtual camera has been working for several weeks, and it has successfully realized this function by bypassing many restrictions when android native system does not support it. In the next few days, I can finally get a good ...

Posted on Wed, 03 Jun 2020 00:56:52 -0400 by mmj

android recycleView can also be used to display four videos

Recently, the company made a project, which requires that four-way video can be displayed. It would be very troublesome to use layout package. Later, under the leadership of the God, I learned that recycling view can be used, The specific requirements are as follows The specific requirements are ...

Posted on Sat, 02 May 2020 03:56:34 -0400 by wdsmith

How to realize seamless bitstream cutting in Android

Mode 1: 1. Generally, it is a switching mode. For example, when the system player switches the code stream, first Stop, then Create Player, then onPrepare, and then Start Mode 2: 2. In fact, there is also a seamless switching code stream. If it is a single instance player, click to switch the code stream without destroying the player, just paus ...

Posted on Fri, 24 Apr 2020 08:56:12 -0400 by ethosadvisory

Chapter 58. Photo function realization (learn Android from scratch)

Come from: http://blog.csdn.net/jianghuiquan/article/details/8569187 Android has two ways to take photos: one is to call the system's photo Intent directly, use onActivityResult to get picture resources or specify a picture path, and read the picture after the photo returns successfully; the other is to use Sur ...

Posted on Wed, 01 Apr 2020 15:23:34 -0400 by toxic_brain

Android horizontal and vertical screen switch stuck problem

Today, an android system is stuck when switching between horizontal and vertical screens. It can only turn around in about 3 seconds. Finally, it is pointed out that the function of the ScreenRotationAnimation class is called SurfaceControl.screenshot(SurfaceControl.getBuiltInDisplay( ...

Posted on Wed, 11 Mar 2020 03:30:01 -0400 by R0bb0b

Android one minute understanding of simple native FaceDetector face recognition to solve the problem of unclear recording video of SurfaceView+MediaRecorder

Recently, I found that when I logged into the background management system, I found that the uploaded authentication video was too vague, so I found that I did not set the frame frequency for the MediaRecorder. // Set the frame frequency to make the recorded video clearer mRecorder.setVideoEncodingBitRate(5*1024*1024); 1. Tur ...

Posted on Mon, 03 Feb 2020 11:16:14 -0500 by cljones81

Android uses camera to realize the problem of staying in the preview interface after taking photos

camera realizes the code of taking photos: /** * Start taking photos */ public void startCapture() { if (null != camera) { camera.takePicture(null, null, pictureCallback); } } private final Camera.PictureCallback pictureCallback = new Camera.PictureCallback() { @Over ...

Posted on Sun, 12 Jan 2020 10:52:23 -0500 by nutshell

Android - Custom external shadow, internal transparent canvas mask layout

Explain: A simple requirement, the external shadow, the internal layout is transparent, and the camera is opened at the bottom (here only the layout code, click here with the camera). Code: 1. Call Just call in Activity, set the height and width of the middle area. Activity code private OcrFaceMaskSurfaceView surfacevie ...

Posted on Sun, 05 Jan 2020 11:00:14 -0500 by mpunn

android Camera camera class

Several process methods related to Camera class Camera.open(cameraId) camera.setDisplayOrientation(0) set camera horizontal direction Mgamera.setpreviewdisplay (holder) displays the picture on the SurfaceHolder mCamera.setPreviewCallback(callback) sets the callback to pass Yuv data to the onPreviewFrame method Previewrate mparames = mmamer ...

Posted on Thu, 02 Jan 2020 04:31:30 -0500 by ayzee01