Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZED Camera: Setting Resolution via Python 2.7 and OpenCV #9

Closed
atomoclast opened this issue May 25, 2016 · 5 comments
Closed

ZED Camera: Setting Resolution via Python 2.7 and OpenCV #9

atomoclast opened this issue May 25, 2016 · 5 comments
Labels
closed_for_stale Issue closed for inactivity Stale

Comments

@atomoclast
Copy link

atomoclast commented May 25, 2016

Hello,

I was wondering if there was a way to directly adjust the ZED camera's resolution? I know we can do it through Cheese, so it should be possible to do it with other code vs only using the ZED SDK.

I have tried code such as:

cap = cv2.VideoCapture(0)

cap.set(3, 4416)
cap.set(4, 1242)

as well as code such as:

cap = cv2.VideoCapture(0)

cap.set(3, 2208)
cap.set(4, 1242)

The default resolution is still just 640x480 for each frame (or 1280x480 combined).

Has any one had to do this or had any success in changing the resolution via other means by using the ZED as just a USB camera?

Thanks in advance,

Andrew

@Bootstrap360
Copy link

Have you found any solutions?

@Bardo91
Copy link

Bardo91 commented Oct 18, 2016

I am using it in the c++ code and I am able to configure its resolution using:

     zedCamera.set(CV_CAP_PROP_FRAME_WIDTH, width);
     zedCamera.set(CV_CAP_PROP_FRAME_HEIGHT, height);

I assume that it should be also possible from the python code,

@Bootstrap360
Copy link

I got it working in Python.

I forgot that the ZED camera is twice as wide as the typical 16:9 aspect ratio.

cap = cv2.VideoCapture(0)

cap.set(3, 2560)
cap.set(4, 720)

@Bardo91
Copy link

Bardo91 commented Oct 19, 2016

So... is it closed the issue?

@bnascimento bnascimento mentioned this issue Nov 25, 2016
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days

@github-actions github-actions bot added Stale closed_for_stale Issue closed for inactivity labels Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed_for_stale Issue closed for inactivity Stale
Development

No branches or pull requests

3 participants