c# - capturing images on tablets with dual webcams -
i have built application capture , upload images taken tablet webcam database, app works on tablets have 1 webcam refuses load driver tablets have dual webcams. code i'm using straight code project solution, i'm using code here
does know if there fix tablets sporting dual webcams?
public void start(ulong framenum) { try { // safety, call stop, in case running this.stop(); // setup capture window mcaphwnd = capcreatecapturewindowa("webcap", 0, 0, 0, m_width, m_height, this.handle.toint32(), 0); // connect capture device application.doevents(); sendmessage(mcaphwnd, wm_cap_connect, 0, 0); sendmessage(mcaphwnd, wm_cap_set_preview, 0, 0); // set frame number m_framenumber = framenum; // set timer information this.timer1.interval = m_timetocapture_milliseconds; bstopped = false; this.timer1.start(); } catch (exception excep) { messagebox.show("an error ocurred while starting video capture. check webcamera connected , turned on.\r\n\n" + excep.message); this.stop(); } }
Comments
Post a Comment