Video recording in r

Hello
Are you aware of a way to record videos using r programming?

I working on a small project where we have to capture short videos and the recommendation was to use python. Since I am not that familiar with python codes, and before digging into python, I wanted to check if there is a way to do the same thing in r.

what I am trying to do is:

  • when the code is run, record a video from a usb webcam into r
  • then export it into .avi or any other format.

I read a bit over the last 3 days and there are packages in r such as av, opencv, videoplayR but I could not find a way to do this specific task.
there is also a shiny module called shinysense, but it mainly captures images not vidoes.

thank you

No experience with it, but after a quick google, I would try Rvision
Computer vision library for R • Rvision (swarm-lab.github.io)

thank you.
I never tried this one because I have troubles installing packages using devtools
but looks like that it has more functionality for live stream compared to the other packages https://swarm-lab.github.io/Rvision/articles/z2_io.html#camera-streams

I will attempt to install and post a script that worked for video recording

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.