summaryrefslogtreecommitdiffstats
path: root/README.md
blob: b5f95afcde8e94cae40e3a03e6e3c2ea27f37b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## uca-net

A transparent TCP-based network bridge camera for remote access of libuca
cameras.

### Installation and usage

The only dependency is libuca itself and any camera you wish to access. Build
the server and client with

    $ mkdir build && cd build
    $ cmake ..
    $ make && (sudo) make install

Now, you can start a server on a remote machine with

    $ ucad mock

and connect to it from any other machine, e.g.

    $ uca-grab -p host=foo.bar.com:4567 -n 10 net            # grab ten frames
    $ uca-camera-control -c net     # control graphically

or from [Concert](https://github.com/ufo-kit/concert)

```python
from concert.devices.cameras.uca import Camera

camera = Camera('net', {'host': 'foo.bar:1234'})

with camera.recording():
    print(camera.grab())
```

Besides using the `host` property one can also set the `UCA_NET_HOST`
environment variable to set the host and port of the remote `ucad` service.