c# - MediaCapture grab single frame -
i'm trying grab single frame making use of mediacapture class. i've viewed various tutorials, of them focus on easy stuff. i've had @ following: access preview frame mediacapture, tutorial focuses on windows 10.
so, first question is, possible? secondly, if so, have advice?
many in advance!
i assume tags desktop? because phone has had api capture preview frames (photocapturedevice.getpreviewbuffer*
, see here: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.phone.media.capture.photocapturedevice.aspx). although keep in mind windows.phone.media.capture deprecated @ point.
on desktop, might take full picture. won't slower, , because usb cameras have single stream capture types (preview, photo, video, see: https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.capture.videodevicecharacteristic.aspx), means streams run @ same resolution.
look mediacapture.capturephototostreamasync()
or capturephototostoragefileasync()
. more information here: https://msdn.microsoft.com/en-us/library/windows/apps/hh700840.
Comments
Post a Comment