简体   繁体   中英

Invert the color of an AVCaptureSession

I am looking to invert the color of the screen in my app while using the camera. However, I do not know if (1) it is possible and (2) how to do it if it is.

Thanks!

you can use Core Image to do this or you can use Brad Larson's great framework GPUImage

to do a lot of video effects easily, the framework includes a lot of examples take a look.

Well, you can try to use Core Image , which has a filter called CIColorInvert . I'm not sure that it will work with camera, but it is worth to give it a try. Here a some links, that you might find helpful:

Besides it, have a look at this answer .

Hope this helps!

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