Android OpenGL ES Camera2 realizes real-time cutout effect

In the previous article, portrait cutout + OpenGL ES can still be played like this? Unexpectedly , we introduced the mask image generated by the portrait cutout algorithm, and then combined with OpenGL can produce some interesting effects.

picture

Cutout technology is widely used. For example, many mobile phone cameras come with a "portrait color retention" filter: the human body area is retained in color, and the outside of the human body area is grayscaled. Therefore, the key technology for portrait color retention lies in high-precision and high-performance segmentation algorithms.

This article will build a real-time portrait segmentation app based on the open source portrait matting algorithm model and OpenGL. The app is now open source. Interested students can refer to this project to use the matting algorithm to create some interesting special effects.

yq1.gif

Encapsulating the algorithm model into a class can easily transplant it to your player or camera .

#

Guess you like

Origin blog.csdn.net/Kennethdroid/article/details/131970349