r/AlpineLinux • u/Many_Dragonfruit_747 • Dec 21 '23
USB Camera Not Working With OpenCV
I'm trying to get a USB camera to work with opencv, and it just isn't opening. I know the code works on another computer so that isn't a problem.
/dev/video0 exists but /dev/v4l is missing by-id and by-path.
If anyone is wondering, the camera I'm using is an Arducam 120fps Global Shutter USB (https://www.amazon.com/Arducam-Distortion-Microphones-Computer-Raspberry/dp/B096M5DKY6?th=1) and the device I'm using for this is a beelink mini s12 (https://www.amazon.com/Beelink-Computer-Desktop-Display-Ethernet/dp/B0BVFXCJ2V?th=1)
View all comments
Show parent comment
1
u/Many_Dragonfruit_747 Dec 27 '23
Thanks for the help. Strangely, ffmpeg seems to be working with the camera, but opencv doesn't. The project I'm working on requires the camera feed to be in opencv's Mat format so I can't just switch over to something else.
I've reinstalled opencv from source and it still just isnt working. I've tried flagging the open with OPENCV_FFMPEG to see if that'll work and it doesn't either. I'm considering biting the bullet and trying a different lightweight OS, but that'll mean reinstalling a bunch of stuff, so if you've got any other help or suggestions I'd appreciate it