Camera setup
What a computer needs before Live Tracking works, and a first session to check it. Do this once per computer.
How TraCell reaches a camera
TraCell does not talk to a camera itself. A camera service does: a program on the same computer that controls the camera through the software of its maker and hands the frames to TraCell. TraCell connects to it through a port of this computer.
The camera service is not part of TraCell. It belongs to the camera: your lab, or whoever set up the camera, provides it. If there is none for your camera yet, the camera API describes how to write one, in any programming language, and comes with a complete example.
What you need
- TraCell installed.
- The camera, connected and working with its maker's own software.
- The camera service for that camera, and the port it listens on (52740 unless yours says otherwise).
1. Start the camera service
Start the camera service and leave it running. Close the camera maker's own program first, so that only one program controls the camera. TraCell never starts or stops the camera service.
2. Tell TraCell the port
- Start TraCell and open Edit > Preferences (Ctrl+,).
- In the Camera service row give the port.
- Press Check…. After a moment a message says that the camera service answers and lists its camera as ready. If it says not ready, the line gives the reason.
- Press OK.
3. See the camera's picture
- Tools > Live Tracking. Type the resolution, FPS and exposure you want and press Live View. If Windows Firewall asks about the camera service or TraCell, allow it on private networks.
- The camera's picture shows in the main window. Focus and light the channel as usual.
- Press CSR for the black reference, if your camera has one, and cover the lens when TraCell asks.
A session uses the camera's memory
AutoTrack and Record set the camera's resolution, frame rate and exposure, and record over what is in the camera's memory. Save recordings you still need from the camera first.
4. A first session
A short run that shows whether everything works, before a real experiment. Any flow with something to see in it will do: cells, or beads in water.
- With Live View on, set detection as for a video: Mask, Contours and Tracker. Tools > Mask > Show Mask and Show Contours show what TraCell finds.
- In Live Tracking choose a Partition length (see Live Tracking), open Other rules and choose Stop after partitions: 3. The results are always saved.
- Press AutoTrack. It records a partition, tracks it while the next one records, and stops after the third.
- Check: traces sit on the cells; the Dashboard has a point per cell; Open Session Folder shows
tables,cells.csvandsession.json.
Then use the stop rule of your experiment (Live Tracking) and save the settings with File > Save, so the next session starts from them.
When it does not work
| TraCell says | What to do |
|---|---|
| No camera service answers on port … | Start the camera service; check the port in Edit > Preferences |
| The camera service … speaks another version of the camera API | The camera service has to be updated for this TraCell (or the other way round) |
| An error text of the camera service, such as "no camera found" | It comes from the camera service: check power, cable and network, and that the maker's own program is closed |
| Frames per partition is limited to a small number | The partition being recorded is held in memory. Close other programs, or lower the resolution |
| Anything else | Edit > Preferences > Camera service > Check… shows whether the camera service answers. Help > Report a Problem saves a zip with the log; send it with a line on what you did |