Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webcam Pong v0.01
#19
(02-28-2025, 03:35 PM)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...
Reply


Messages In This Thread
Webcam Pong v0.01 - by madscijr - 02-28-2025, 01:08 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 02:56 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 03:12 AM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 04:05 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 03:38 AM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 04:11 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 06:17 AM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 12:59 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 06:21 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 06:26 AM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 06:30 AM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 12:57 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 01:03 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 01:21 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 01:23 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 01:52 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 03:24 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 03:35 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 04:11 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 04:18 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 04:29 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 04:39 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 05:10 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 05:33 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 06:04 PM
RE: Webcam Pong v0.01 - by madscijr - 02-28-2025, 06:26 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 06:52 PM
RE: Webcam Pong v0.01 - by SpriggsySpriggs - 02-28-2025, 08:41 PM
RE: Webcam Pong v0.01 - by madscijr - 03-01-2025, 06:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Video Webcam API w/ Filters and Adjustments SpriggsySpriggs 34 6,188 05-21-2025, 07:41 PM
Last Post: madscijr
  real 2-4 player Pong (requires 2-4 USB mice plugged into your PC) madscijr 1 754 06-26-2024, 01:09 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)