(4 hours ago)SpriggsySpriggs Wrote: Ha! And some more changes! I added the ability to adjust the saturation level. Why? Because I can! Now you can have greyscale images as well as full color OR oversaturated images.
Also, I left the code for copying the frame to clipboard but commented out the call because we can just copy it using _ClipboardImage anyways.
Nice! Those might come in handy to make it easier to detect movement with the camera.
Can we drop the quality down to 8-bit color?
Doing some of this from the API might speed up the processing by eliminating calculations where we're analyzing a frame pixel-by-pixel.
However, just being able to process a frame as an image, pixel-by-pixel, opens up some fun possibilities!
Want to see yourself in color ASCII characters? No problem! Or inverse video or other funky effects that used to be built into camcorders back in the day. You could even emulate green screen from software!
Though I'm not sure how we'd grab input from 2 simultaneous webcam video sources, or maybe the background could come from a video file that plays and the code superimposes your greenscreen video over it, frame by frame? I know we can write images to an image file, I wonder how might we write these altered image frames back to a video file? Hmmm...