Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11

    Default Re: Capture Images From 2 deffirent webcams


    Quote Originally Posted by [gja] View Post
    guys mao ni aq gipraktisan krn....

    Webcam using DirectShow.NET - CodeProject

    honestly,wa jud q kasabot sa ani..hehe unsaon mani para mkadetect cya ug duha ka webcam..murag isa raman jud iyang madetect ang default webcam raman jud...

    pwd patabang ani..
    mau k nakakita ra kag sample sa DirectShow.NET bro.
    though di ko familiar ug VB.NET, familiar ko sa mga interfaces na gigamit. hopefully mkahelp ko bisag gamay lng.

    pagpangita sa webcams bro, naa cya sulod sa FindCaptureDevice() na function. ang nahitabo is si devEnum.CreateClassEnumerator na function, mao na ang ng enumerate sa unsay available na webcams naa sa imo system. nya ang output sa enumeration mao na si classEnum. nya para makita nimo to mga enumerated devices (assuming 2 kabuok), mao na si classEnum.Next(...) na function. mao ng usa ray makita nimo kay kas-a raman gitawag ang classEnum.Next(...). Dayon ang first na nakita, usualy ang default, tawag na dayon siya sa BindToObject() na function nya exit na sa function. try daw ug loop na classEnum.Next() na function bro or tawag pa ug laing classEnum.Next() nya echeck ang return value. if successful gani (= 0 iyang successful) , sure nga naapil sa enumeration ang 2nd device nimo.

  2. #12

    Default Re: Capture Images From 2 deffirent webcams

    bai akisuki,

    nakuha na naku mka display naq ug duha ka webcam...den aq nsad gibalhin sa picturebox ang pgdisplay kay diha sa example kay sa Form raman na nya gipadisplay.

    gi-ing.ani nku bai..

    Dim fetched As IntPtr = Marshal.AllocHGlobal(IntPtr.Zero)
    Dim iid As Guid = GetType(IBaseFilter).GUID

    If classEnum.Next(moniker.Length, moniker, fetched) = 0 Then
    Dim iFetched As Integer = Marshal.ReadInt32(fetched)
    Dim pCtx As IBindCtx = Nothing
    Dim str As String = String.Empty
    moniker(0).GetDisplayName(pCtx, Nothing, str)

    moniker(0).BindToObject(Nothing, Nothing, iid, source1)
    moniker(1).BindToObject(Nothing, Nothing, iid, source2)
    End If

    wala raku mi loop dn nkuha naman naq ang instance sa duha ka webcam naq..

    ang problema nsad naq unsaon pg.grab sa frame dn ibutang sa picturebox para ma.save naq sa database..
    i heard SampleGrabber but wala q kbalo unsaon ni cya pag.implement..


    salamat keu sa inyong mga reply mga istoryans..

  3. #13

    Default Re: Capture Images From 2 deffirent webcams

    mau k nidagan na bro. and yes, SampleGrabber imo gkinahanglan ana. if tama ko sa ako pgkahinumdom, deprecated na ang SampleGrabber na interface pagsulod sa Vista ba to or Win7 so bisag daghan pa ghapon nggamit ana kron (apil ko), basig maglisud tag pangita ug resources para maport cya sa VB.NET. even in C++, kinahanglan pa kopyahon ang mga GUID definitions sa older na mga SDK's pra mgamit nimo cya sa Vista and later SDK's. naa ba documentation na imo sample nadownload bro? or makita ba nimo ang mga exposed na interfaces ana? k if giapil nila ug expose ang SampleGrabber, swerte kau ka. as for porting to VB.NET, hehe. d kau ko familiar VB pod bro. basin naa lain makatabang nato ani.

  4. #14

    Default Re: Capture Images From 2 deffirent webcams

    Nicheck ko sa documentation sa ISampleGrabber na interface sa msdn bai (http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx). ang importante ani is kana GetCurrentBuffer na function. kaapan kay pointer sa current buffer (ang current frame na naa sa webcam) ang output ana. d ko kabalo unsaon na sa VB. hehe. if mkatry kag port ani nga sample (http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx) sa VB, i think hayag2x ang kaugmaon. pero sana naa rapod ka makita na other samples using ISampleGrabber.

  5. #15

    Default Re: Capture Images From 2 deffirent webcams

    sa tanan nga mireply dri sa ako post salamat kaau ninyo mga migo..hehe

    nahuman njud aq problem..

    THREAD CLOSED.

  6.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Replies: 39
    Last Post: 01-24-2011, 09:06 PM
  2. Friendster.com steals image from istockphoto.com
    By Pinkdimensions in forum Websites & Multimedia
    Replies: 6
    Last Post: 01-27-2010, 10:01 AM
  3. Newest images from MRO
    By rodsky in forum Science
    Replies: 1
    Last Post: 09-11-2009, 07:30 AM
  4. Replies: 16
    Last Post: 07-09-2009, 03:20 PM
  5. Sound Card that captures audio from CASSETTE TAPE
    By MeMing in forum Computer Hardware
    Replies: 3
    Last Post: 10-02-2006, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top