freemocap / skellycam

The camera back-end for the `freemocap` project - or - An easy and efficient way to connect to one or more cameras and record synchronized videos💀📸
GNU Affero General Public License v3.0
19 stars 5 forks source link

Implement "Shared Memory" strategy #24

Closed jonmatthis closed 1 year ago

jonmatthis commented 1 year ago

Replace use of queues to share image data from camera process to shared_memory solution similar to the one in this article -

https://medium.com/analytics-vidhya/using-numpy-efficiently-between-processes-1bee17dcb01

https://github.com/bml1g12/benchmarking_multiprocessing_np_array_comms

jonmatthis commented 1 year ago

Tried this, but couldn't quite get it working. Left the abortive attempt on branch jon/fiddling_with_data_sharing_strats

After conversation with @endurance, we can probably fix the underlying issue (frame queue filling up with more cams) by pulling the 'frame grabbing' responsibility off the main process ( i.e. #21 )