mercredi 16 avril 2014

EMGU CV - c# - prendre des images avec une résolution plus élevée de traitement de l'image ? -Débordement de pile


I am trying capture frames with higher resolution (eg. 800x600) and brightness using EmguCV(emgucv 2.1.0.793).


I am using A4 Tech PK-730MJ Web Cam.


I tried to set capture property like this _capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 600);


But it always capturing 640x480 frame. How to set the frame capture, brightness property? Is this capture property camera specific? If yes, What camera should I use? Will Logitech Webcam Pro 9000 work?




Hope you solved the problem. For anyone who might be interested, you can only set it to one of the default resolutions, e.g 1280*1024, 600*480. I guess 800*600 is not one of the default settings. Try setting the height to 1024. It works for me. ^ ^




try this,


Image<Bgr, Byte> frame = capture.QueryFrame().Resize(1024,768,Emgu.CV.CvEnum.INTER.CV_INTER_LINEAR).Copy();


I am trying capture frames with higher resolution (eg. 800x600) and brightness using EmguCV(emgucv 2.1.0.793).


I am using A4 Tech PK-730MJ Web Cam.


I tried to set capture property like this _capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 600);


But it always capturing 640x480 frame. How to set the frame capture, brightness property? Is this capture property camera specific? If yes, What camera should I use? Will Logitech Webcam Pro 9000 work?



Hope you solved the problem. For anyone who might be interested, you can only set it to one of the default resolutions, e.g 1280*1024, 600*480. I guess 800*600 is not one of the default settings. Try setting the height to 1024. It works for me. ^ ^



try this,


Image<Bgr, Byte> frame = capture.QueryFrame().Resize(1024,768,Emgu.CV.CvEnum.INTER.CV_INTER_LINEAR).Copy();

0 commentaires:

Enregistrer un commentaire