Posts: 806
Threads: 35
Joined: Apr 2022
Reputation:
54
You should be able to modify it for snapping a photo only. I think when I first started working on that API, I started with capturing JPGs. I don't have that code now but I could look at this API some more this week, after Thanksgiving and Black Friday, and see if I can make a nice and stable capture for you.
The noticing will continue
Posts: 2,480
Threads: 250
Joined: Apr 2022
Reputation:
126
Alternative...
1) Timer loops 60 seconds.
2) Windows API call to do a screen capture.
3) QB64 routine to save the image.
I suppose a QB64 / WIN API routine could monitor the PID of the webcam routine and if it no longer existed, exit the QB64 image capture loop. Maybe some more research would need to be done to determine if a webcam ap is active.
Pete
Posts: 806
Threads: 35
Joined: Apr 2022
Reputation:
54
11-22-2022, 09:38 PM
(This post was last modified: 11-22-2022, 09:39 PM by SpriggsySpriggs.)
No offense but I don't think that's a great alternative, Pete. It'd be better to just grab the frame straight from the camera rather than trying to do some screenshot of a program that shows the webcam. The code I have already grabs the raw frames. I just have to tweak the code to instead do the logic for a picture rather than a video.
The noticing will continue
Posts: 4,147
Threads: 187
Joined: Apr 2022
Reputation:
243
02-25-2025, 09:29 PM
(This post was last modified: 02-26-2025, 01:10 AM by bplus.)
OMG someone else tries to invoke the spirits of Christmas Past!
Edit: I do hope he comes back, he was into interesting stuff!
b = b + ...
Posts: 806
Threads: 35
Joined: Apr 2022
Reputation:
54
Hey, y'all. I did see your posts. I'm working on this right now. I've got it to save a bmp file and now I just have to get it to work a little better. Thank you for your patience.
The noticing will continue