Android code to add filtering effects using camera2 API in real time?

一世执手 提交于 2019-12-12 05:05:28

问题


I am writing an android camera app using camera2 API. I want to know how to add various filtering effects i.e sepia, negative in android camera surface as a list. Please help to solve the same.


回答1:


You can set CONTROL_EFFECT_MODE like this:

mPreviewRequestBuilder.set(CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_SEPIA);


来源:https://stackoverflow.com/questions/40079276/android-code-to-add-filtering-effects-using-camera2-api-in-real-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!