Awesome
BurstImageProcessing
This project is experimental & unofficial, a proof-of-concept. Don't try using it in any serious capacity yet.
This project requires Unity 2018.
Demo 1 - Effect Composer
This demo demonstrates processing input from a webcam in real time. The main bottleneck in doing this is copying data from the webcam. That problem haven't been solved yet, and is a roadblock to practical use of this approach.
The effect composer allows you to define the image effect in a granular , per channel way.
You can find it on the WebcamDisplay
object in the WebcamComposerDemo
scene.
There's three factors for each channel in the composer:
-
the Operator, which defines the mathematical or bitwise operation to use
-
the Comparator, which defines the comparison to use. One of
Greater
,Equal
,Less
. -
the Operand, which defines whether the Operator works against the pixel's own value or the threshold value.
Self
means operate on the pixel's value,Other
means operate on the threshold value.
In addition, you can also enable / disable processing for each color channel, as well as changing the value of the color threshold.
If this sounds confusing, i would encourage you to just try out the demo scene and see how the image processing changes as you change the parameters.