facebookresearch / ocean

Ocean is the in-house framework for Computer Vision (CV) and Augmented Reality (AR) applications at Meta. It is platform independent and is mainly implemented in C/C++.
https://facebookresearch.github.io/ocean/
MIT License
614 stars 54 forks source link

API for device enumeration and their supported video formats #27

Open pzoltowski opened 1 month ago

pzoltowski commented 1 month ago

🚀 Feature

Provide API for enumerating camera devices and video formats the support

Motivation & Examples

I'm working on musical app idea that needs to process video stream with lowest latency possible. In native iOS I usually want 640x480 at 120fps with highest Fov. Would great to have option to iterate all devices and their respective formats. Also utility method to choose configuration the closest to requested:

with maybe some optional flag what we want to prioritise such as PRIORITY_HIGHEST_FRAMERATE, PRIORITY_HIGHEST_RESOLUTION

Data models could be even basic for now, similar to those at OpenFrameworks: https://openframeworks.cc///documentation/video/ofVideoDevice/ https://openframeworks.cc///documentation/video/ofVideoFormat/

leapally commented 1 month ago

We'll look into that, thanks!