|
Re: How to programatically define incoming frame size: msg#01225lib.opencv
i have try this VidFormat vidFmt={WIDTH, HEIGHT, FRAMESPERSEC}; cvcamSetProperty(camIdx, CVCAM_PROP_SETFORMAT, &vidFmt); but didn't work for me.... i get this error: 'VideoFormat' : undeclared identifier why?? what to do?? > Date: Tue, 30 Aug 2005 01:00:05 -0000 > From: "Saurabh Garg" <saurgarg@...> > Subject: Re: How to programatically define incoming frame size > > Hi I am not sure why this doesnt work but you can change image > resolution using > > VidFormat vidFmt={WIDTH, HEIGHT, FRAMESPERSEC}; > cvcamSetProperty(camIdx, CVCAM_PROP_SETFORMAT, &vidFmt); > > -Saurabh > > --- In OpenCV@xxxxxxxxxxxxxxx, Javed Shaikh <jas71pk@xxxx> wrote: > > > > Hi > > > > I want to programatically define the incoming video frame size to > be 320x240 for all types of cameras that I have. I tried the > following code patches (in OpenCV4b), but they don't affect the > frame size. The frame size coming from the camera is always the one > which is the default size set in the camera! One camera gives > 320x240 frame size by default, and other camera send 640x480 frame > size by default. > > > > Here are the patches: > > > > Approach # 1: > > > > int frameWidth = 160; > > > > int frameHeight = 120; > > > > cvcamSetProperty(0, CVCAM_RNDWIDTH, (void*)&frameWidth); > > > > cvcamSetProperty(0, CVCAM_RNDHEIGHT, (void*)&frameHeight); > > > > Approach # 2: > > > > int frameWidth = 160; > > > > int frameHeight = 120; > > > > cvcamSetProperty(0, CVCAM_RNDWIDTH, &frameWidth); > > > > cvcamSetProperty(0, CVCAM_RNDHEIGHT, &frameHeight); > > > > Can someone please tell me what the problem is with the above > codes lines? > > > > One more query: How can we know programatically, what is the > frames/second set in the camera (using OpenCV 4b)? > > > > Regards! > > > > Javed > > > > --------------------------------- > Start your day with Yahoo! - make it your home page > Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | avi with sound: 01225, Sagrãst |
|---|---|
| Next by Date: | Re: quation: 01225, Parameswaran |
| Previous by Thread: | avi with soundi: 01225, Sagrãst |
| Next by Thread: | About the wavelet for the face detection: 01225, Fun Collector |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |