DeepLabCut / DeepLabCut-live-GUI

GUI to run DeepLabCut on live video feed
GNU General Public License v3.0
53 stars 20 forks source link

using Basler camera with deeplabcut-live-GUI #27

Open NadineKGut opened 6 months ago

NadineKGut commented 6 months ago

Hi,

I cannot make our Basler camera work with deeplabcut-live-GUI. I installed dlclivegui from the Basler branch, installed pylon viewer, pypylon, swig. the Gui opens, but I cannot see my camera.

Windows 11 python 3.9

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\TDT\anaconda3\envs\dlc_live\lib\tkinter__init.py", line 1885, in call__ return self.func(*args) File "C:\Users\TDT\anaconda3\envs\dlc_live\lib\site-packages\dlclivegui\dlclivegui.py", line 317, in edit_cam_settings arg_names, arg_vals, arg_dtypes, arg_restrict = self.get_cam_args() File "C:\Users\TDT\anaconda3\envs\dlc_live\lib\site-packages\dlclivegui\dlclivegui.py", line 380, in get_cam_args cam_obj = getattr(camera, this_cam["type"]) AttributeError: module 'dlclivegui.camera' has no attribute 'Add Camera'

What am I missing?

Any advice would be very helpful. Thank you Nadine

abhixjangid commented 3 months ago

Hi, I encountered the same problem but by:

  1. Downloading the basler camera python file "https://github.com/DeepLabCut/DeepLabCut-live-GUI/blob/master/dlclivegui/camera/basler.py" and putting that in the cameras folder in the dlc-live solves the job.
  2. You also need to write the importing statement "from dlclivegui.camera.basler import BaslerCam" inside the init.py file/

You can now see your basler camera inside the 'Add Camera' inside the dlc-live gui :)