Page 1 of 1

How to use webcam video stream in CoppeliaSim ?

Posted: 13 Feb 2024, 10:13
by letmeregister14000
Hello,
I have seen some old post about this subject such as https://forum.coppeliarobotics.com/viewtopic.php?t=4347 and https://forum.coppeliarobotics.com/view ... hp?t=2843 but with the current CoppeliaSim there is no folder "programming/windowsOnlyProjects/v_repExtCam" and I couldn't find It on google.

My goal is to get the video from my webcam and put It somehow in my simulation on a screen. I don't have the folder "windowsOnlyProjects" and I couldn't find any example scene that takes a video from a webcam. I don't know where to find the old programming folder from vrep and I haven't found an equivalent to this in the current coppeliasim.

Thank you for your attention.

Re: How to use webcam video stream in CoppeliaSim ?

Posted: 13 Feb 2024, 11:08
by fferri
You can use the simIM plugin. It has functions for accessing OpenCV video capture devices:
  • simIM.openVideoCapture
  • simIM.closeVideoCapture
  • simIM.readFromVideoCapture