NMGRL / toupcam

Python interface to ToupCam Cameras
http://www.touptek.com/product/showproduct.php?lang=en&id=108
Apache License 2.0
26 stars 15 forks source link

interfacing several camera #6

Open sashagaz opened 5 years ago

sashagaz commented 5 years ago

Can you please advise how to interface with several cameras? When I create an instance of the class, I always connect only to one of the cameras, unless I physically disconnect it.

jirhiker commented 5 years ago

with the current version you cannot yet open multiple cameras. Im working on implementing this functionality but the toupcam docs are a little cryptic. https://github.com/NMGRL/toupcam/blob/master/docs.md#toupcam_enum

you can see what ive got so far on the develop branch

jirhiker commented 5 years ago

Checkout the latest version on develop. Ive completed enumerate_cameras and enabled instantiating a camera by name

cam = ToupCamCamera(cid='U3CMOS10000KPA(USB2.0)')

Not sure if enumerate_cameras will function properly when multiple cameras are connected. This will require some testing and maybe some modification to core.ToupcamInst