News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

webcam screenshot

Started by statis06, October 02, 2023, 04:43:01 AM

Previous topic - Next topic

statis06

Hello il need make screenshot with webcam do you have samples ?

zedd

I think you really mean 'screen capture'? Or do you want screen capture with motion?

Btw, this isn't how it works here, you can't just 'order' a piece of code.  :smiley:

Welcome to the forum, regardless.  :thumbsup:
If someone wants to help with this, they 'might'. But you can't simply ask for someone else's code.
If you have some code already started, we can help you with that.  :thumbsup:

There are a few screen capture examples, do a forum search... for "screen capture"
But, as far as I know, no examples of screen capture with motion, only a single screen capture at a time.  :smiley:

Unless of course you actually want to record your screen with a webcam. In that case, not sure if you will find the help you need with that here... I could be mistaken about exactly what you want to achieve.


NoCforMe

Capturing video from a window would certainly be an interesting programming challenge. Wonder if there are any Win32 APIs for this? Must be somewhere ...
Assembly language programming should be fun. That's why I do it.

stoo23

#3
Well, once again, our good friend OBS Studio comes to mind  :wink2:  :smiley:

https://obsproject.com/

statis06

Thank you for all these responses which I did not see because I received no notification.
I wasn't specific enough because I thought I would have a methodical answer like "you have to look for the camera DLL and..."
I don't really like using ready-made code that needs to be adapted, so "building" the routines doesn't bother me.
The project is to be able to provide the community with a small software for the He3d Ciclop 3d Scanner. This model is an almost unusable scam. A user created plugins for the software to be able to do photogrammetry but it crashes on various versions of Windows.
The principle is to advance a turntable step by step, for this point no problem for me I know how to do it in order to send the commands to the machine. And take a photo at each position in order to have a number to use with a photogrammetry program. Also having a starting visualization would be good to adjust the light exposure of the scanned object.

Biterider

Hi statis06
A good starting point is this MS API https://learn.microsoft.com/en-us/windows/win32/multimedia/video-capture
An example you can use as reference can be found here https://github.com/ObjAsm/ObjAsm-C.2/tree/master/Projects/X/WebCam

Regards, Biterider

jj2007

Quote[The feature associated with this page, Video Compression Manager, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

Of course, they don't tell you which one to use instead :cool:

NoCforMe

Um, isn't it AVICap? That's what they describe when you click on "About Video Capture".

Myself, I know nothing about this stuff. I'm just curious enough to see if I can get it to access my $5 webcam at some point (when I'm completely bored).
Assembly language programming should be fun. That's why I do it.

adeyblue

I think the current hotness is still Media Foundation.
The method to capture video is described here. It is COM though, so you know, it's quite verbose