Skip to content

Commit

Permalink
- updated VideoCapture grabbing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
maljoras committed Jan 4, 2017
1 parent 535ec29 commit ec85ac4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,19 @@ Tracking stops when the tracking display window is closed and results
are saved. Note that the video is continuously recorded in the
background until the ft object is cleared.

Although xyTracker is currently only tested with ptGrey cameras, it should be
also possible to use the OpenCV VideoCapture method for video grabbing. That is, try
(with camara index 0)
### Grabbing with other cameras

Although xyTracker is currently only tested with ptGrey cameras, it can also be used with other cameras through the OpenCV VideoCapture functionality for video grabbing. That is, try
for real-time tracking of 4 animals (with a camera with index 0)

~~~~
>> T = xy.Tracker(0);
>> T = xy.Tracker('0','nindiv',4);
>> T.setDisplay(1); % to test the tracking; note,however, that plotting will introduce a delay
>> T.track();
>> clear all; % will release the video hardware
~~~~

Note that the camera index is given as a string in matlab. Cameras indeces 0-9 are supported. However, in contrast to the FlyCapture Method (see above), the video is currently not saved in background, when using this VideoCapture method.


## Stimulation
Expand Down

0 comments on commit ec85ac4

Please sign in to comment.