(02-26-2025, 07:46 PM)SpriggsySpriggs Wrote: Now you can export straight to memory, mi amigo.
It should be noted that it has to export to clipboard first and then load to memory. So your clipboard will contain the image as well. But that's the nature of the beast.
Wow! That totally works!
You're amazing. Thank you.
Thinking out loud...
I'd like to try using this to try to track a simple object, maybe a red laser pointer on a white wall.
This would mean looking at pixels. I'm thinking it would help to adjust the camera settings to whatever would make it easier and faster for the code to identify an object or a certain color.
Looking at the Windows control panel for the camera, I see settings to adjust Zoom, Brightness, Contrast, Sharpness, Saturation.
I don't see any control panel setting for lowering camera resolution, which should speed up scanning the image (but not so low that the thing we're looking for isn't visible). I wonder if there's a way to change camera resolution at the API or software level?
I wonder if the control panel settings can be read from the API to save to variables, then set to lo-res, high contrast, etc. (settings to make finding certain colors or objects easier) and then when the program is done running, restore the original values for normal webcam use?
(If you think any of that might be possible, I'd be curious.)
But in any case, thanks a million for showing us how to acess the webcam from QB64PE!