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
The project is under active development and do not have public API documentation, a more or less complete API documentation can be generated using Sphinx.
16
+
The project is under active development and do not have public API documentation, a more or less complete API documentation can be generated using Sphinx.
17
+
18
+
## Documentation
19
+
20
+
### Retrieve data from a tracking.txt file
21
+
A tracking.txt file can be loaded and several method are available to select objects and frames:
22
+
```
23
+
import fastanalysis as fa
24
+
25
+
tracking = fa.Load("tracking.txt")
26
+
fa.isObjectsInFrame(0, 100) # Check if object with id 0 is in the 100th frame
27
+
fa.isObjectsInFrame([0, 1], 100) # Check if object with id 0 and 1 is in the 100th frame
28
+
a = tracking.getObjectsInFrames(0, 100) # Select data of the object with id 0 in the 100th frame
29
+
b = tracking.getObjectsInFrames([0,1], [100,101]) # Select data of the object with id 0 and 1 in the 100th and 101th frames
30
+
c = tracking.getObjects(0) # Select data of the object with id 0 for all the frames
31
+
d = tracking.getObjects([0,1]) # Select data of the object with id 0 and 1 for all the frames
32
+
e = tracking.getFrame(100) # Select data for all the objects in the 100th frame
33
+
f = tracking.getFrame([100,101]) # Select data for all the objects in the 100th and 101th frames
34
+
```
35
+
36
+
### Export data
37
+
```
38
+
import fastanalysis as fa
39
+
40
+
tracking = fa.Load("tracking.txt")
41
+
keys = fa.keys() # List saved features
42
+
fa.saved("output.xlsx", delimiter='\t', keys=["xHead", "yHead", "imageNumber", "id"], ids=None, indexes=None, format="excel") # Saved a list of features for all the frames and all the objects in an excel file.
43
+
fa.saved("output.txt", delimiter='\t', keys=None, ids=None, indexes=None, format="excel") # Saved all thefeatures for all the frames and all the objects in an csv file.
0 commit comments