2025-09-27 4:10 AM
Hello ST Team and Community,
I'm working with the STM32MP257F-DK board and exploring the provided AI demo examples. I noticed that most of the camera-related demos (especially those involving image inference or real-time processing) are designed around libcamera as the default source, as indicated in code snippets like:
parser.add_argument("--camera_src", default="LIBCAMERA", help="use V4L2SRC for MP1x and LIBCAMERA for MP2x")
While I understand that libcamera is appropriate for MIPI-CSI cameras (which MP2x supports), I'm currently using a USB UVC camera, which libcamera does not support.
From what I know, USB webcams work well with V4L2 but are ignored by libcamera due to its pipeline design.
Are there any official plans or guidance for supporting USB cameras on STM32MP2x using V4L2, especially in AI demos?
Why is V4L2 support not more visible or included as an option in the MP2x examples, considering the popularity of USB webcams for quick prototyping?
Would ST consider providing dual-path examples (libcamera and V4L2) for broader compatibility?
I believe many developers would benefit from having clearer USB camera support, especially when MIPI modules are not readily available.
Any advice, roadmap updates, or workarounds would be greatly appreciated.
Thanks in advance!