|
Re: Video resolution: msg#01244lib.opencv
Hi i managed to resize the window, the parameter for cvNamedWindow should be 0... but i cant set the resolution for the image. the following is a segment of my code: cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 320); cvSetCaptureProperty(capture,CV_CAP_PROP_FRAME_HEIGHT, 240); frame = cvRetrieveFrame(capture); frame_copy = cvCreateImage (cvSize(frame->width, frame->height), IPL_DEPTH_8U, frame->nChannels); i thought the resolution of the frame_copy should be 320x240 but it is still 640x480 when i capture an image of it. anybody know why this is so? Regards KJ >From: "Kok Jun" <ck_jun@xxxxxxxxxxx> >Reply-To: OpenCV@xxxxxxxxxxxxxxx >To: OpenCV@xxxxxxxxxxxxxxx >Subject: Re: [OpenCV] Video resolution >Date: Thu, 30 Mar 2006 14:21:41 +0800 > >Hi i tried doing what you suggested. I tried it on a webcam as well as on a >matrox frame capture card. > >for the webcam, there was no effect, the window still remained the same >size... > >for the matrox, there was an error and the program had to terminate...would >you know what the problem might be? > >Regards >KJ > > > >From: Rafael Nevarez <epilef99@xxxxxxxxx> > >Reply-To: OpenCV@xxxxxxxxxxxxxxx > >To: OpenCV@xxxxxxxxxxxxxxx > >Subject: Re: [OpenCV] Video resolution > >Date: Tue, 28 Mar 2006 09:29:11 -0800 (PST) > > > >Hi > > > > If you want to change the resolution of the captured frame, use: > > > > cvSetCaptureProperty(frame, CV_CAP_PROP_FRAME_WIDTH, 320); //640 > > cvSetCaptureProperty(frame, CV_CAP_PROP_FRAME_HEIGHT, 240); //480 > > > > Or if you want to only to change the size of the window use: > > > > cvNamedWindow("camara", 1); //CV_WINDOW_AUTOSIZE); Set to the size > >of the frame > > cvResizeWindow("camara", 320, 240); > > > > Regards > > > >Kok Jun <ck_jun@xxxxxxxxxxx> wrote: hi, > > > > when i use the function cvCaptureFromCam(-1), it automatically displays >a > > window of a default size. > > > > what can i do so that the display window will be of the size 320x240? > > > > thanks!! > > > > Regards > > KJ > > > > > > > > > > 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 > > > > > > > > > > SPONSORED LINKS > > Open source software > > Computer vision > > > >--------------------------------- > > YAHOO! GROUPS LINKS > > > > > > Visit your group "OpenCV" on the web. > > > > To unsubscribe from this group, send an email to: > > OpenCV-unsubscribe@xxxxxxxxxxxxxxx > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > > >--------------------------------- > > > > > > > > > > > >--------------------------------- > >Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low >rates. > > > >[Non-text portions of this message have been removed] > > > > > > > >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 > > > >Yahoo! Groups Links > > > > > > > > > > > > > > > > >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 > >Yahoo! Groups Links > > > > > > > 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: | Number of joined neighbours rectangles of cvHaarDetectObjects.: 01244, Gonçalo Monteiro |
|---|---|
| Next by Date: | using cvFileStorages: 01244, Indika Bandara Udagedara |
| Previous by Thread: | Re: Video resolutioni: 01244, nathan043081 |
| Next by Thread: | eliminating the background from an image: 01244, Zarrouk sawsen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |