Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using Basler camera with deeplabcut-live-GUI #27

Open
NadineKGut opened this issue Jan 12, 2024 · 1 comment
Open

using Basler camera with deeplabcut-live-GUI #27

NadineKGut opened this issue Jan 12, 2024 · 1 comment

Comments

@NadineKGut
Copy link

NadineKGut commented Jan 12, 2024

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
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants