Link to home
Start Free TrialLog in
Avatar of RUSS_EMI
RUSS_EMI

asked on

Is it possible to take a snapshot from a videocam within a form?

I have a logitech Notebook VideoCam Pro.  I would like to use it to take simple employee photos and include them into an Ole object field.  I know how to save the picture & link to it, but I don't know how to directly import it as an object.
Thanks,
Russ
Avatar of dannywareham
dannywareham
Flag of United Kingdom of Great Britain and Northern Ireland image

Your LogiTech camera should have photo software with it to take a snapshot or streaming file.
Access can manipulate the software commands (possibly through API calls).

Unfortunately, I personally would have to refer you to the LogiTech program.

However, someone else here may be able to help
Avatar of SidFishes
possible yes...but not simple (well... guess depends on your skill level)

you'd need to look at the Windows Media Encoder SDK

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/wmencoder_9_sdk_intro.asp

i tried to have a look at the sdk to see what's involved but the DL link at microsoft is broken...




Avatar of RUSS_EMI
RUSS_EMI

ASKER

Thanks.  I'll have to do another way, since the download isn't working.  Anyone else got something?
Russ
ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That works very well for video.  I don't mind the VB. I do need more help to capture only 1 frame as all I need is a picture.
Russ
the shrinkwrapvb has a still shot capability.  I have been unsuccessful in getting the video to initialize with VBA.  The comments suggest ME.Show is needed, which doesn't exist in VBA.  I do need further assistance on this move to VBA.
Thanks,
Russ

told you it wasn't simple ;)

i'm having a look at this in my spare time...the form needs to rebuilt from scratch...but i think it's doable...i recently converted a vb app to record audio...and this looks about the same...

keep checking and i'll post in a day or 2 when (if) i've got something
OK, I can display the video, take a snapshot and create a .BMP.  How do programatically load the field "Photo" with the .BMP?
I have tried .Value; .Object; neither works.
Thanks,
Russ
"How do programatically load the field "Photo" with the .BMP?"

not sure what you mean...can you elaborate


I got it.  For what I asked  for you will get the credit.  Here is what I meant;
An id photo is taken from a video camera, saved as a bitmap.  I then needed a way to put that image into the DB.
My first tries where with .Object;.Value;Source Item all of which failed.  
I found that I needed to do the following -
1. .Source Doc = image path
2. .Action = acOLECreateEmbed
3. .TypeAllowed = acOLEEmbedded

Thanks again,
Russ