# \[JAVA\] Remove background and record screen through chroma key

**URL:** <https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912>\
**Category:** Coding Questions\
**Created:** [March 23, 2022, 4:41pm UTC](https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912 "2022-03-23T16:41:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![th75](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@th75](https://discourse.processing.org/u/th75)\
**Post date:** [March 26, 2022, 12:32am UTC](https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912/2 "2022-03-26T00:32:32Z")

</div>

Hi GWAK,  
i don’t know library for this, i will go for glsl filter…  
but, more easily, you can process each pixels, get the color, if it is “green” replace by a color or same pixel from another image,  
like [here](https://forum.processing.org/two/discussion/25647/greenscreen-effect-for-movie.html) for movie frames

i found too this in the forum: [key-out-color-from-video](https://discourse.processing.org/t/key-out-color-from-video/324)  
i hope it help…

---

_[View the full topic](https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912)._
