RealOrangeOne / zoloto

A fiducial marker system powered by OpenCV - Supports ArUco and April
https://zoloto.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

Support for variable capture resolution #226

Open trickeydan opened 4 years ago

trickeydan commented 4 years ago

Either as an Enum of resolutions, or a tuple.

Probably should be an argument to process_frame

RealOrangeOne commented 4 years ago

I don't think an enum of resolutions is viable, as that'll depend on what the camera supports.

We should probably also validate this before capture. It looks like OpenCV will not set an invalid or unsupported resolution, so using this to check it's set correctly is probably a good idea! https://stackoverflow.com/questions/19448078/python-opencv-access-webcam-maximum-resolution