Experiments with Real-Time video processing

in #chromakick7 years ago (edited)


ChromaKick I

A silly App I wrote which makes videos with "ChromaKey-Green" areas get twirled around. Just click the thumbnail below to watch a demo of the result

A video showing the result

What I did here:

I Took GSChromaKeyFilter from Apple's "AVGreenScreenPlayer" sample code, made it compile for iOS and put it inside Apple`s RossyWriter sample code (instead of the "Rosy" CIFilter).

I then changed the "Checkerboard Image Generator" background to the input image with the CITwirlDistortion applied to it


▶️ DTube
▶️ IPFS

ChromaKick II

Seeing how much fun it was to write it and how interesting the result was, I decided to make some changes. Click the thumbnail below to watch a demo of the modified version

A video showing the result

What I did here:

I took the code from before. Also this time I took each input image frame coming in from the video camera and made two copies of it. But now, on one copy I applied a filter called CICircularWrap which caused the entire image content to wrap itself around a black filled circle in the middle. On the other copy I used a ChromaKey (green) filter where every green pixel was replaced with its corresponding pixel from the first (Circular) copy. The result is that green areas are replaced by texture of their circular surrounding. So I took a round green object (a soft ball from Ikea) and recorded it with the App. It looked like the ball is made out of a reflective material.


▶️ DTube
▶️ IPFS

Source code

Is available on GitHub

Coin Marketplace

STEEM 0.28
TRX 0.21
JST 0.039
BTC 97116.48
ETH 3691.84
USDT 1.00
SBD 3.96