logo       

Re: Video resolution: msg#01250

lib.opencv

Subject: Re: Video resolution

Hi

You are right about the parameter for cvNamedWindow, the
1=CV_WINDOW_AUTOSIZE is to set the window to the frame size, like it say my
previous message.

But Im not sure about the function "cvSetProperty to change the
resolution of a captured image, it is not implemented for cameras". It is not
implemented for all types of cameras?
Because ir work fine for me, and Im using logitech webcams and a PTZ camera
from activmedia robotics.

It is important to say that Im using Opencv-0.9.7 (beta 5) and like the
old 28735 message say he is using cvcam lib, I suppose he is using
Opencv-0.9.5. So it maybe was not implemented at that time.

Regards
Rafael Nevarez



Kok Jun <ck_jun@xxxxxxxxxxx> wrote:
hi thanks for the reply.

After playing around with the code, it seems that the parameter for the
cvNamedWindow when set to 0 and not 1, then will enable the window to be
resized using the cvResizeWindow function.

But even then, like u said, only the size has changed, the resolution still
remains the same...

According to what i read from the documentation regarding using
cvSetProperty to change the resolution of a captured image, it is not
implemented for cameras yet, thus didnt work for me... like Nathan, i came
across the solution to that in the posting
http://groups.yahoo.com/group/OpenCV/message/28735.

Regards
KJ



>From: Rafael Nevarez <epilef99@xxxxxxxxx>
>Reply-To: OpenCV@xxxxxxxxxxxxxxx
>To: OpenCV@xxxxxxxxxxxxxxx
>Subject: Re: [OpenCV] Video resolution
>Date: Thu, 30 Mar 2006 09:38:50 -0800 (PST)
>
>Hello
>
> It is weird that it hasnt work with the webcam, what type of webcam
>you are using?
>
> Try a cvWaitKey(500) after the cvResizeWindow, sometimes you have to give
>a little time to the window to resize. And for the error you talk about, is
>there a message?
>
> Maybe it will be more easy to help you if you share the code.
>
> regards
>
> Rafael Nevarez
>
>Kok Jun <ck_jun@xxxxxxxxxxx> wrote: 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
> >
> >
> >
>
>
>---------------------------------
>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


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.


---------------------------------





---------------------------------
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo!
Messenger with Voice.

[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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise