Skip to content

ElsevierSoftwareX/SOFTX-D-22-00197

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TraClets

Sublime's custom image

What is a TraClet?

A traclet is an image representation of a trajectory. This representation is indicative of the mobility patterns of the moving objects. TraClets need to efficiently visualize and capture two key features that characterize the trajectory patterns of moving objects: i) the shape of the trajectory which indicates the way the object moves in space, and ii) the speed that indicates how fast the object moves in space.


Example Usage

General cmd
python traclet.py --d [dataset_path] --s [size of the resulting images]
A local example cmd
python traclet.py --d dataset.csv --s 224

After the execution, a folder called traclets is created that contains one folder per label in the dataset. Each label folder contains the respective trajectory images.

Dependencies
  • numpy
  • pandas
  • opencv-python
  • bresenham

Classification Example

The repository also contains a file that uses the RandomForests classifier to perform k-fold cross-validation on the generated traclets. The features used for the classification are:

  • Color histogram
  • Hu invariant moments
General cmd
python classifer.py --d [dataset_path] --f [number of folds]
A local example cmd
python classifer.py --d traclets --f 5
Dependencies
  • numpy
  • opencv-python
  • imutils
  • scikit-learn

Relevant Repositories


References

1. I. Kontopoulos, A. Makris, D. Zissis, K. Tserpes, "A computer vision approach for trajectory classification", 22nd IEEE International Conference on Mobile Data Management (MDM), 2021.
2. I. Kontopoulos, A. Makris, K. Tserpes, "A Deep Learning Streaming Methodology for Trajectory Classification", ISPRS International Journal of Geo-Information, Volume 10, Issue 4, 2021.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%