p2p-ld / numpydantic

Type annotations for specifying, validating, and serializing arrays with arbitrary backends in Pydantic (and beyond)
https://numpydantic.readthedocs.io/
MIT License
66 stars 1 forks source link

[video] Correctly read grayscale arrays as 2-dimensional #22

Open sneakers-the-rat opened 2 months ago

sneakers-the-rat commented 2 months ago

Currently we aren't setting the VideoCaptureMode, so grayscale videos are getting read in as BGR.

Should detect grayscale videos and set that flag accordingly, add tests for grayscale videos plz

(when this is resolved, fix the docs at serialization that say video reading is broken)