Professional Documents
Culture Documents
Matlab - Preview and Capture Webcam Into An Axes
Matlab - Preview and Capture Webcam Into An Axes
Matlab - Preview and Capture Webcam Into An Axes
android delphi internet Lazarus/FPC linux matlab php project review windows
Previewandcapturewebcamintoanaxes
PostedbyadminonJul7,2012inmatlab|16comments MyfirstMatlabtips.WewillcreateaGUIformthatwillpreviewandcapturepicturefromwebcamconnected toyourcomputer.Webcampreviewandcapturedimagewillbeshownonanaxes. CreateanewblankGUIusingMatlabsGUIDE(File>New>GUI>BlankGUI).Putone panel,twopushbuttonandoneaxes.Youcanarrangethemlikethis:
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
1/7
12/10/13
asforthepbCapture_Callback.MostofcodesexplanationarethesameaspbPreview_Callback
1v i d=v i d e o i n p u t ( ' w i n v i d e o ' ,1 ,' Y U Y 2 _ 1 7 6 x 1 4 4 ' ) ; 2v i d . F r a m e s P e r T r i g g e r=1 ; 3v i d . R e t u r n e d C o l o r s p a c e=' r g b ' ; 4t r i g g e r c o n f i g ( v i d ,' m a n u a l ' ) ; 5v i d R e s=g e t ( v i d ,' V i d e o R e s o l u t i o n ' ) ; 6i m W i d t h=v i d R e s ( 1 ) ; 7i m H e i g h t=v i d R e s ( 2 ) ; 8n B a n d s=g e t ( v i d ,' N u m b e r O f B a n d s ' ) ; 9h I m a g e=i m a g e ( z e r o s ( i m H e i g h t ,i m W i d t h ,n B a n d s ) ,' p a r e n t ' ,h a n d l e s . a x P r e v i e w ) 1 0p r e v i e w ( v i d ,h I m a g e ) ; 1 1
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
2/7
12/10/13
Exampleresult:
RelatedPostsviaTaxonomies
Detectinginstalledwebcamviacommandline/mscriptfile(5) [matlab]gettingandsettingvalueinotherform/figure/gui(4) Matlabvariablesharing(globalvariableandsuchandsuch)(4) ConnectandaccessMySQLdatabase(3) Savebandwidth,blockimagehotlinking(1)
16ResponsestoPreviewandcapture webcamintoanaxes
1.
2.
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
3/7
12/10/13
Reply
3.
4.
5.
6.
7.
8.
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
4/7
12/10/13
9.
10.
11.
12.
13.
LeaveaReply
Youremailaddresswillnotbepublished.Requiredfieldsaremarked* Name* Email* Website
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
5/7
12/10/13
Comment YoumayusetheseHTMLtagsandattributes:< ah r e f = " "t i t l e = " " >< a b b rt i t l e = " " >< a c r o n y mt i t l e = " " >< b >< b l o c k q u o t e
c i t e = " " >< c i t e >< c o d e >< d e ld a t e t i m e = " " >< e m >< i >< qc i t e = " " >< s t r i k e >< s t r o n g > SubmitComment
populartags
androidaptasusazurebing.combioscodeigniterdatamarket
lazarus
debiandelphifpcfreepascalfreewaregadgetgisgoogleGUIDEhtaccessimage
phpexcelphpoffice
projectreview
SponsoredLinks
SubscribetoBlogviaEmail
Enteryouremailaddresstosubscribetothisblogandreceivenotificationsofnewpostsbyemail. Join21othersubscribers
EmailAddress Subscribe
Badge
Archives
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
6/7
12/10/13
FeaturedPosts
NuSpherePhpEDcodecompletionforCodeIgniterFramework CreatingMsWordDocumentusingCodeIgniterandPHPWord YtConv.nethasbeenreportedasattacksitebyGoogleSafebrowsing Detectinginstalledwebcamviacommandline/mscriptfile
RSSFeeds
RSS2.0FeedURL AtomFeedURL CommentsRSS2.0Feed RSS/RDF1.0FeedURL DesignedbyElegantThemes|PoweredbyWordpress
www.ahowto.net/matlab/preview-and-capture-webcam-into-an-axes
7/7