andreaschiavinato / python_grabber

Python tool to capture photo from camera and for doing simple image processing using DirectShow and OpenCV
MIT License
57 stars 27 forks source link

grabber's size #4

Closed donaldlee2008 closed 4 years ago

donaldlee2008 commented 4 years ago

I grab image from camera in size of (480, 640) as default. the camera is (1080,1920). how can I set the grabber's size ?

andreaschiavinato commented 4 years ago

From the application you can set the resolution using the Set format... command from the Camera menu. It's not possible at the moment to set the format by a function on the PyGrabber or dshow_graph classes. I will add it when I have time.

donaldlee2008 commented 4 years ago

thanks

andreaschiavinato commented 4 years ago

I implemented this functionality, see the example setting_format.py

donaldlee2008 commented 4 years ago

great