Skip to content Skip to sidebar Skip to footer

How To Run Opencv Videocapture's Read Function Outside Multithreading Class?

I am using Nathancy's SO code to read two static videos from disk in parallel, leveraging multithreading. The below modified code works perfectly fine for me: from threading import

Solution 1:

After trying out couple of ways, adding the self.status, self.image and self.frame in the init solved the problem. Since it is multi-threaded, we need to explicitly init these variables in the constructor.


Post a Comment for "How To Run Opencv Videocapture's Read Function Outside Multithreading Class?"