You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/camera_support.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,3 +63,73 @@ If you're camera has built in methods to ensure the correct frame rate (e.g. whe
63
63
The `get_image` method has no input arguments, but must return an image as a numpy array. We also recommend converting images to 8-bit integers (data type `uint8`).
64
64
65
65
The `get_image_on_time` method has no input arguments, but must return an image as a numpy array (as in `get_image`) and the timestamp at which the image is returned (using python's `time.time()` function).
66
+
67
+
### Camera Specific Tips for Installation & Use:
68
+
69
+
#### Basler cameras
70
+
71
+
Basler USB3 cameras are compatible with Aravis. However, integration with DeepLabCut-live-GUI can also be obtained with `pypylon`, the python module to drive Basler cameras, and supported by the company. Please note using `pypylon` requires you to install Pylon viewer, a free of cost GUI also developed and supported by Basler and available on several platforms.
If you want to use DeepLabCut-live-GUI with a Basler USB3 camera via pypylon, see the folllowing instructions. Please note this is tested on Ubuntu 20.04. It may (or may not) work similarly in other platforms (contributed by [@antortjim](https://github.com/antortjim)). This procedure should take around 10 minutes:
77
+
78
+
**Install Pylon viewer**
79
+
80
+
1. Download .deb file
81
+
Download the .deb file in the downloads center of Basler. Last version as of writing this was **pylon 6.2.0 Camera Software Suite Linux x86 (64 Bit) - Debian Installer Package**.
82
+
83
+
84
+
2. Install .deb file
85
+
86
+
```
87
+
sudo dpkg -i pylon_6.2.0.21487-deb0_amd64.deb
88
+
```
89
+
90
+
**Install swig**
91
+
92
+
Required for compilation of non python code within pypylon
93
+
94
+
1. Install swig dependencies
95
+
96
+
You may have to install these in a fresh Ubuntu 20.04 install
97
+
98
+
```
99
+
sudo apt install gcc g++
100
+
sudo apt install libpcre3-dev
101
+
sudo apt install make
102
+
```
103
+
104
+
2. Download swig
105
+
106
+
Go to http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz and download the tar gz
or go to https://github.com/basler/pypylon/releases and get the version you want!
126
+
127
+
2. Install pypylon
128
+
129
+
```
130
+
tar -zxvf 1.7.2.tar.gz
131
+
cd pypylon-1.7.2
132
+
python setup.py install
133
+
```
134
+
135
+
Once you have completed these steps, you should be able to call your Basler camera from DeepLabCut-live-GUI using the BaslerCam camera type that appears after clicking "Add camera")
0 commit comments