Skip to content

Detecting movement

Tim edited this page Oct 20, 2022 · 12 revisions

The movement detector reports the distance a bCode moved between successive detections, and how much it rotated around its center. It operates on bCode detection files, such as the one created from the example video. In this video, a single pixel corresponds to 0.0339973 mm of real-world space. Movement and rotation can thus be detected by running

java -jar movement_detector.jar filtered.data.file=2018-08-03-09-03-18-039.txt \
frame.rate=10 mm.per.pixel=0.0339973 movement.file=distance_moved.txt

on the bCode detection file 2018-08-03-09-03-18-039.txt, which we created in this tutorial. This will result in a file named distance_moved.txt that lists all movements and rotations in the format described here.

Getting started

Making things

Identifying individuals

Detecting behavior

Miscellaneous

Clone this wiki locally