Pass cam pointer into python process
AnsweredHello,
I would like to pass cam pointer into a process class, but i have an error !
class acquire_images(mp.Process):
# override the constructor
def __init__(self, serial_number, queue, cam):
# execute the base constructor
mp.Process.__init__(self)
# store the value
self.serial_number = serial_number
self.queue = queue
self._cam = cam
The error :
TypeError: cannot pickle 'SwigPyObject' object
Do you have a exemple to use Pyspin with Thread or Process?
Best regards
Yann
0
-
Official comment
Hi Yann,
Yes, we do have some sample projects that demonstrate multithread pyspin application.
Please open support ticket using our contact form at https://flir.custhelp.com/app/ask to send you a sample code for reference.
Thanks,
Ifeanyi.
-
Hello Yann,
As per resolution summary and future reference, I have uploaded the project that demonstrate how to use pyspin with threads in our github https://github.com/Teledyne-MV/Spinnaker-Examples/tree/main/AcquisitionMultipleThread
Thanks,
Ifeanyi.
0
Please sign in to leave a comment.
Comments
2 comments