sccn / labstreaminglayer

LabStreamingLayer super repository comprising submodules for LSL and associated apps.
Other
522 stars 157 forks source link

Data from camera #71

Open ecartman2208 opened 3 years ago

ecartman2208 commented 3 years ago

I would like to record PPG data in sync with an opencv compatible camera. I am streaming at 60 fps from the camera. How can I collect data from both sources simultaneously? Also, is it possible to record data only on a local machine, without access to a router? Thank you.

aojeda commented 3 years ago

For recording from opencv cameras https://bitbucket.org/neatlabs/videoacq/wiki/Home

ecartman2208 commented 3 years ago

Thank you. What if I have a camera which opencv can not directly communicate with rather requires an SDK for acquiring frames?

aojeda commented 3 years ago

The app above is not very modular in the sense that you can't really swap out the opencv code by calls to another sdk, so probably better to start from scratch. Basically, the idea is to capture samples at regular intervals (maybe use a time at 60hz) in a loop and send the frame counter to lsl like I do here. Hope that helps.