How to Establish a Different Picture of the Androi
2016-08-23
0 0 0
no vote
Other
Earn points
Translation maninwest@Codeforge Author: Mr. Lai Tai-Yu@CodeProject Sometimes we find it interesting to take pictures, so let's make it more interesting. It's not hard to design gray and anime style photos. You just need to have an Android phone and install an interesting camera App. &Usually, when taking a picture, we will encounter the problem of auto focus. First, we have to wait for the auto focus to complete before taking a picture. That's why we need to rewrite the autofocus method to help us shoot more clearly. Secondly, the original data needs to be converted into bitmap format in image processing. We use bitmap factories for transformation. Third, there are two image processing effects to choose from, gray scale and animation style. Gray scale is very simple, just take the number of R, G and B and divide by 3. But we still need to know how to get the R, G and B channels separately. Using the color method to get pixel values helps us get the values of & nbsp; R, G and B & nbsp. Animation style needs two processes, including Sobel filtering and orderly dithering. We need to combine two methods to complete the animation effect. If you want to develop more effects, you can use this code architecture to continue development. Because it's ready to autofocus and call back the function to take a picture. You just need to add new image effects according to this architecture. This app will turn on the camera before you select the image effect, and then you can select the effect. You can press the "take a picture" button and view the processed image. There are only two files to develop this application, which is very simple. &Nbsp; for beginners. Background device operating system: Android 4.1.2 developer utility: Eclipse ADT use code file name: AndroidManifest.xml
java
android
图像处理
摄像头
使用
效果
不同
获得
经过
照片
动漫
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
No comment