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

How to use TextureView

Note: This article is reproduced from https://blog.csdn.net/way/ping/article/details/26592125? UTM? Source = tuicool & UTM? Medium = reference Recently, in the modification of Android 4.4's native camera Camera2, I'm used to looking for SurfaceView. As a result, even if I use grep or ack, I can't find SurfaceView. Finally, I ...

Posted on Sat, 14 Dec 2019 15:38:51 -0500 by sweetstuff2003

Android Call Local Camera

Links to the original text: https://my.oschina.net/u/860952/blog/549212 To make an application, you may sometimes need to call a local camera, so here's how you want to call it. Camer ...

Posted on Wed, 09 Oct 2019 13:45:07 -0400 by Cereals

Android Player Realizes Real-time Enlargement and Reduction of Video Window

Many developers want our Android platform RTSP/RTMP player to achieve video window zooming and zooming function. To this end, we have made a simple demo, through the player callback RGB data, directly in the upper view operation and processing, Github: https://github.com/daniulive/SmarterStreaming No video, no truth: http://www.iqiyi.com/w_19s9 ...

Posted on Wed, 02 Oct 2019 21:56:25 -0400 by young_coder

[Android] Simple Play Video

Playing Video Using kotlin Using MediaController+VideoView to Realize Video Playing and Common Control This is the simplest way to implement Android, which is provided by the native Android framework. It has better compatibility. VideoView in ...

Posted on Sat, 24 Aug 2019 09:05:08 -0400 by wtg21.org

Using ZXing Library to Scan Two-Dimensional Codes in Android Development

stay Last article In this paper, we introduce the generation of two-dimensional codes, then how to scan the generated two-dimensional codes after the generation of a two-dimensional code? With this in mind, we will go on to implement this function step by step. First of all, we introduce the idea: in order to realize the function of scanning ...

Posted on Fri, 05 Jul 2019 18:24:13 -0400 by Antistatic

Basic Learning day11-Multimedia

1 Several ways of computer representation of graphics Multimedia: (including text, pictures, audio and video) Graphic size = total pixels of the picture * size of each pixel Monochrome. Each pixel can represent up to two colors. Only binary bits of length 1 are needed to represent each pixel, then 1/8 byte 16 colors. Each pixel can represen ...

Posted on Thu, 04 Jul 2019 12:44:13 -0400 by flexxall