简体   繁体   中英

Android Camera Filters

I wish to apply camera filters to camera preview. As I understand, the solution can be to process byte stream incoming from the camera, decode it from YUV format to Bitmap and then pass frames to surface View, but for me it's unclear how to customize it. How can i create camera filter (ex. as in Instagram or other camera apps)

I know it's an old question, but maybe someone will be looking for the same thing and might find this useful....

If you want to apply filter to the live preview, it's not easy, because the conversion from YUV to RGB is expensive and the performance is low on android devices. Please check my other answer on this topic and one other similar question .

If you only want to apply filter to a single taken image, it shouldn't be a problem, it's just a matter of image processing. The code will be similar to the examples in the linked questions.

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