I have a CSV file that contains: "timestamp", "x", "y", and "polarity" by a camera-based event.
For example:
timestamp,x,y,polarity
1673364315040516,34,477,1
1673364315040516,34,478,1
1673364315040516,36,473,1
1673364315040516,37,474,1
1673364315040516,38,469,1
1673364315040516,38,470,1
1673364315040516,38,472,1
1673364315040516,39,472,1
I need to take a window size e.g (0.1 sec) and determine how many events in this window size belong to the light system and how many to the other changes (like sensor movement or change in the vision).
Any advice or guidance on how to do this will be appropriate!
These results are needed for the final mission - from the pixels that belong to the light system which of them are present in a straight line -> no obstacle, and which of them does not -> there is an obstacle.